﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5898	loadCompletePackageFromMp fails when directory-structured library has models that differs only in letter case	dariomangoni@…	Adrian Pop	"Strange situation, not sure if it is specifications-compliant:

OpenModelica cannot load a library in Directory Hierarchy structure whose models have names that differ only for letter case.

I passed from OneFile to Directory structure with a well-known Modelica editor...

My package was like this:
- MyPackage
|- model1
|- Model1

at the beginning, ''model1'' and ''Model1'' were both in a single '''MyPackage.mo''' file. Good.

Once I split in single files (i.e. Directory structure), this famous Modelica editor gave me a subfolder named '''MyPackage''' whose '''package.order''' file have TWO lines, namely ''model1'' and ''Model1'', however in the folder I have just ONE file, named '''model1.mo'''.
Of couse, I couldn't have a '''Model1.mo''' in the same folder, so in the same '''model1.mo''' file both ''model1'' and ''Model1'' models have to be fit!

However, this throws the error:
{{{
[1] 12:19:22 Translation Error
[C:/dev/OM64bit/OMCompiler/Compiler/FrontEnd/ClassLoader.mo: 299:9-299:128]: Internal error loadCompletePackageFromMp failed for unknown reason: mp=C:/workspace/_modelica_temp/ pack=DirectoryFailure

[2] 12:19:22 Scripting Error
Failed to load package DirectoryFailure () using MODELICAPATH C:/workspace/_modelica_temp/.}}}

HOWEVER, strange as it seems, if you put the original one-file library '''MyPackage.mo''' in the same containing folder in which there is also the folder '''MyPackage''' everything works back, even if you ask to load the '''MyPackage/package.mo'''!!!!
Plase read carefully this few lines above because it's tryuly incredible.
"	defect	assigned	high	Future	Interactive Environment				
