﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5794	PowerGrids model fails during compilation in OMEdit but works fine from the command line	Francesco Casella	Adeel Asghar	"Please try simulating {{{PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation}}}, using the latest Windows nightly.

I get the following errors:
{{{
[11] 19:23:20 Error
File.open: Failed to open file PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation_info.json with mode 2: No such file or directory


[12] 19:23:20 Translation Error
[C:/dev/OM64bit/OMCompiler/Compiler/SimCode/SerializeModelInfo.mo: 115:9-115:84]: Internal error SerializeModelInfo.serialize failed

[13] 19:23:20 Error
File.open: Failed to open file PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation_functions.c with mode 2: No such file or directory


[14] 19:23:20 Error
File.open: Failed to open file PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation_literals.h with mode 2: No such file or directory


[15] 19:23:20 Translation Error
Template error: A template call failed (C:\Program Files\OpenModelica1.16.0-dev-64bit\bin\OMEdit.exe: [unknown function name]). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics).

[16] 19:23:20 Error
File.open: Failed to open file PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation_init.xml with mode 2: No such file or directory


[17] 19:23:20 Translation Error
[C:/dev/OM64bit/OMCompiler/Compiler/SimCode/SimCodeMain.mo: 466:7-466:78]: Internal error C:\Program Files\OpenModelica1.16.0-dev-64bit\bin\OMEdit.exe: [unknown function name] failed
}}}

However, if I run the very same model from the test.mos script, it works fine.

I've deleted all the files in the working directory, but to no avail.

Any idea why this happens? I remember a similar issue some time ago but I can't recall if or how it was solved.

We are releasing PowerGrids as open source in a couple of weeks and planning a tutorial at the OpenModelicaWorshop, I'd be glad if we can get this to work before that.

Thank you!
"	defect	closed	critical	1.16.0	OMEdit		fixed		
