Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001295/0.001295, allocations: 186.3 kB / 8.137 MB, free: 2.129 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9882/0.9882, allocations: 194.2 MB / 202.8 MB, free: 8.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001687/0.001687, allocations: 120.3 kB / 247.7 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1508/0.1508, allocations: 37.92 MB / 330.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1781/0.329, allocations: 59.35 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07734/0.4063, allocations: 53.22 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2588/0.6652, allocations: 109.1 MB / 0.5393 GB, free: 14.69 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.6655, allocations: 93.31 kB / 0.5394 GB, free: 14.64 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/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.0/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.08044/0.7459, allocations: 30.19 MB / 0.5688 GB, free: 4.617 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.746, allocations: 8 kB / 0.5688 GB, free: 4.609 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008324/0.7468, allocations: 178.5 kB / 0.569 GB, free: 4.434 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004405/0.7512, allocations: 1.644 MB / 0.5706 GB, free: 3.031 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000627/0.7519, allocations: 0.4943 MB / 0.5711 GB, free: 2.477 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002147/0.7521, allocations: 63.89 kB / 0.5712 GB, free: 2.414 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002666/0.7548, allocations: 1.672 MB / 0.5728 GB, free: 1.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002458/0.7572, allocations: 1.709 MB / 0.5745 GB, free: 32 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/0.7573, allocations: 3.938 kB / 0.5745 GB, free: 28 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.7574, allocations: 7.984 kB / 0.5745 GB, free: 20 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001749/0.7576, allocations: 74.59 kB / 0.5746 GB, free: 15.96 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009171/0.7668, allocations: 5.742 MB / 0.5802 GB, free: 11.33 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/0.7685, allocations: 1.233 MB / 0.5814 GB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/0.7697, allocations: 0.9401 MB / 0.5823 GB, free: 9.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.404e-05/0.7698, allocations: 17.64 kB / 0.5823 GB, free: 9.898 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001413/0.7712, allocations: 1.103 MB / 0.5834 GB, free: 8.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=120): time 3.797e-06/0.7712, allocations: 0 / 0.5834 GB, free: 8.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.01466/0.7859, allocations: 6.457 MB / 0.5897 GB, free: 2.328 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/0.786, allocations: 98.09 kB / 0.5898 GB, free: 2.215 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004435/0.7864, allocations: 361.1 kB / 0.5901 GB, free: 1.859 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001411/0.7866, allocations: 37.64 kB / 0.5902 GB, free: 1.816 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000247/0.7868, allocations: 344.2 kB / 0.5905 GB, free: 1.473 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003385/0.7872, allocations: 390.3 kB / 0.5909 GB, free: 1.086 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.322e-05/0.7873, allocations: 3.938 kB / 0.5909 GB, free: 1.082 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.7874, allocations: 394.7 kB / 0.5912 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001124/0.7885, allocations: 0.8847 MB / 0.5921 GB, free: 15.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.7898, allocations: 1.043 MB / 0.5931 GB, free: 14.71 MB / 410.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.01188/0.8017, allocations: 3.695 MB / 0.5967 GB, free: 11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.8017, allocations: 0 / 0.5967 GB, free: 11 MB / 410.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.0118/0.8135, allocations: 4.939 MB / 0.6015 GB, free: 6.051 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.8136, allocations: 4 kB / 0.6016 GB, free: 6.047 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/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.001744/0.8153, allocations: 0.9794 MB / 0.6025 GB, free: 5.07 MB / 410.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