Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001084/0.001084, allocations: 181.2 kB / 8.135 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.244/1.244, allocations: 205.2 MB / 213.7 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009218/0.0009218, allocations: 99.36 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1718/0.1718, allocations: 37.98 MB / 347.7 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1892/0.361, allocations: 62.44 MB / 410.1 MB, free: 46.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.4641, allocations: 56.31 MB / 466.4 MB, free: 6.379 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.333/0.7972, allocations: 114.1 MB / 0.5669 GB, free: 12.35 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.7975, allocations: 91.94 kB / 0.567 GB, free: 12.26 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:17:7-17:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:20:7-20:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 264 * Number of variables: 264 Notification: Performance of Generate backend data structure: time 0.08684/0.8844, allocations: 30.2 MB / 0.5965 GB, free: 13.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.8844, allocations: 12 kB / 0.5965 GB, free: 13.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008924/0.8853, allocations: 178.5 kB / 0.5966 GB, free: 13.51 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005085/0.8904, allocations: 1.637 MB / 0.5982 GB, free: 11.83 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007454/0.8912, allocations: 0.4944 MB / 0.5987 GB, free: 11.26 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002898/0.8915, allocations: 63.98 kB / 0.5988 GB, free: 11.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002791/0.8943, allocations: 1.671 MB / 0.6004 GB, free: 9.523 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002661/0.897, allocations: 1.71 MB / 0.6021 GB, free: 7.742 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.897, allocations: 4 kB / 0.6021 GB, free: 7.738 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00014/0.8972, allocations: 7.984 kB / 0.6021 GB, free: 7.73 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001835/0.8974, allocations: 73.97 kB / 0.6022 GB, free: 7.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01105/0.9084, allocations: 5.737 MB / 0.6078 GB, free: 1.809 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001868/0.9104, allocations: 1.24 MB / 0.609 GB, free: 0.5508 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/0.9117, allocations: 0.9338 MB / 0.6099 GB, free: 15.61 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.645e-05/0.9118, allocations: 16.77 kB / 0.6099 GB, free: 15.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001497/0.9133, allocations: 1.091 MB / 0.611 GB, free: 14.48 MB / 458.7 MB Notification: Performance of pre-optimization done (n=120): time 4.279e-06/0.9134, allocations: 7.938 kB / 0.611 GB, free: 14.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.01533/0.9287, allocations: 6.449 MB / 0.6173 GB, free: 7.965 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.182e-05/0.9288, allocations: 110 kB / 0.6174 GB, free: 7.84 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006284/0.9295, allocations: 353.1 kB / 0.6177 GB, free: 7.492 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004628/0.9299, allocations: 45.69 kB / 0.6178 GB, free: 7.441 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003481/0.9303, allocations: 340.2 kB / 0.6181 GB, free: 7.102 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004881/0.9308, allocations: 394.2 kB / 0.6185 GB, free: 6.711 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.138e-05/0.9309, allocations: 0 / 0.6185 GB, free: 6.711 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.9311, allocations: 394.8 kB / 0.6188 GB, free: 6.316 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/0.9325, allocations: 0.8847 MB / 0.6197 GB, free: 5.43 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.9338, allocations: 1.039 MB / 0.6207 GB, free: 4.344 MB / 458.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01243/0.9463, allocations: 3.694 MB / 0.6243 GB, free: 0.6367 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.9463, allocations: 4 kB / 0.6243 GB, free: 0.6328 MB / 458.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.01267/0.959, allocations: 4.931 MB / 0.6292 GB, free: 11.69 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.959, allocations: 7.938 kB / 0.6292 GB, free: 11.68 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/AC3ph/Impedances.mo:125:7-125:29:writable] Error: Initialization problem is structurally singular, error found sorting equations 112: $DER.ind.i[3] = 0.0; 60: 1.732050807568877 * $DER.ind.i[3] = 0.0; for variables meterDC.v(137), inverter.inverter.iDC1(92), inverter.inverter.v[2](84) Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002562/0.9616, allocations: 0.9874 MB / 0.6301 GB, free: 10.7 MB / 474.7 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated Error: Internal error SimCode: The model PowerSystems.Examples.AC3ph.Inverters.InverterToGrid could not be translated to FMU