Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") [: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.001069/0.001069, allocations: 189.8 kB / 8.135 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.205/1.205, allocations: 194.2 MB / 202.8 MB, free: 8.82 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.001629/0.001629, allocations: 126.2 kB / 247.8 MB, free: 6.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1694/0.1694, allocations: 37.92 MB / 330.5 MB, free: 6.934 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.793e-06/6.893e-06, allocations: 0 / 389.8 MB, free: 78.12 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09157/0.09159, allocations: 53.23 MB / 443 MB, free: 24.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2913/0.3829, allocations: 107 MB / 0.5372 GB, free: 0.7852 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.3832, allocations: 96.39 kB / 0.5372 GB, free: 0.7383 MB / 346.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: Performance of FrontEnd: time 0.08072/0.4639, allocations: 27.68 MB / 0.5643 GB, free: 9.098 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.128e-05/0.464, allocations: 19.98 kB / 0.5643 GB, free: 9.078 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004062/0.4681, allocations: 1.642 MB / 0.5659 GB, free: 7.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.4681, allocations: 8.031 kB / 0.5659 GB, free: 7.422 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000814/0.469, allocations: 162.6 kB / 0.5661 GB, free: 7.262 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00514/0.4741, allocations: 1.642 MB / 0.5677 GB, free: 5.859 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006931/0.4748, allocations: 0.4939 MB / 0.5681 GB, free: 5.305 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002917/0.4751, allocations: 63.72 kB / 0.5682 GB, free: 5.246 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002812/0.478, allocations: 1.688 MB / 0.5699 GB, free: 4.133 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002567/0.4805, allocations: 1.693 MB / 0.5715 GB, free: 2.871 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.108e-05/0.4806, allocations: 4 kB / 0.5715 GB, free: 2.867 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/0.4807, allocations: 3.984 kB / 0.5715 GB, free: 2.863 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001755/0.4809, allocations: 81.52 kB / 0.5716 GB, free: 2.789 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009988/0.4909, allocations: 5.695 MB / 0.5772 GB, free: 14.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002/0.493, allocations: 1.201 MB / 0.5783 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.4943, allocations: 0.9918 MB / 0.5793 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001029/0.4945, allocations: 20.55 kB / 0.5793 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001663/0.4961, allocations: 1.152 MB / 0.5804 GB, free: 11.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=125): time 3.497e-06/0.4961, allocations: 0 / 0.5804 GB, free: 11.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=126): time 0.008309/0.5045, allocations: 4.2 MB / 0.5845 GB, free: 7.609 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.562e-05/0.5046, allocations: 106.1 kB / 0.5846 GB, free: 7.484 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005473/0.5051, allocations: 361.1 kB / 0.585 GB, free: 7.133 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001288/0.5053, allocations: 41.69 kB / 0.585 GB, free: 7.086 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002876/0.5056, allocations: 308.6 kB / 0.5853 GB, free: 6.777 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004026/0.506, allocations: 406.1 kB / 0.5857 GB, free: 6.375 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.832e-05/0.5061, allocations: 4 kB / 0.5857 GB, free: 6.371 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.5063, allocations: 390.7 kB / 0.5861 GB, free: 5.98 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.5077, allocations: 0.9319 MB / 0.587 GB, free: 5.043 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001444/0.5091, allocations: 1.076 MB / 0.588 GB, free: 3.922 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001821/0.511, allocations: 1.04 MB / 0.5891 GB, free: 2.887 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.511, allocations: 4 kB / 0.5891 GB, free: 2.883 MB / 394.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.01101/0.522, allocations: 4.066 MB / 0.593 GB, free: 14.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.522, allocations: 7.938 kB / 0.593 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.522, allocations: 4 kB / 0.5931 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006929/0.529, allocations: 1.747 MB / 0.5948 GB, free: 13.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009417/0.5299, allocations: 155.8 kB / 0.5949 GB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01835/0.5483, allocations: 9.983 MB / 0.6047 GB, free: 2.637 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/0.5499, allocations: 187.9 kB / 0.6048 GB, free: 2.453 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001921/0.5501, allocations: 67.94 kB / 0.6049 GB, free: 2.387 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 97 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0003947/0.5505, allocations: 149.8 kB / 0.605 GB, free: 2.238 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002345/0.5508, allocations: 75.06 kB / 0.6051 GB, free: 2.164 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003694/0.5545, allocations: 2.144 MB / 0.6072 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.289e-05/0.5546, allocations: 35.92 kB / 0.6072 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.5546, allocations: 0 / 0.6072 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.5546, allocations: 3.984 kB / 0.6072 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006337/0.561, allocations: 3.821 MB / 0.611 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.561, allocations: 4 kB / 0.611 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0126/0.5736, allocations: 3.154 MB / 0.6141 GB, free: 8.879 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001345/0.5737, allocations: 32.84 kB / 0.6141 GB, free: 8.844 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001934/0.5739, allocations: 27.97 kB / 0.6141 GB, free: 8.816 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00118/0.5751, allocations: 1.408 MB / 0.6155 GB, free: 7.293 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.685e-06/0.5752, allocations: 7.938 kB / 0.6155 GB, free: 7.285 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005416/0.5806, allocations: 3.655 MB / 0.6191 GB, free: 3.504 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007209/0.5813, allocations: 340 kB / 0.6194 GB, free: 3.152 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000334/0.5817, allocations: 75.94 kB / 0.6195 GB, free: 3.078 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001642/0.5833, allocations: 243.8 kB / 0.6197 GB, free: 2.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004014/0.5837, allocations: 136.7 kB / 0.6198 GB, free: 2.707 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001374/0.5839, allocations: 43.97 kB / 0.6199 GB, free: 2.664 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003953/0.5843, allocations: 271.2 kB / 0.6201 GB, free: 2.398 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001552/0.5858, allocations: 327.9 kB / 0.6204 GB, free: 2.078 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 91 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005294/0.5864, allocations: 236.3 kB / 0.6207 GB, free: 1.836 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004719/0.5911, allocations: 2.532 MB / 0.6231 GB, free: 15.28 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.5911, allocations: 3.938 kB / 0.6231 GB, free: 15.28 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005847/0.597, allocations: 2.247 MB / 0.6253 GB, free: 13.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008022/0.5978, allocations: 106.1 kB / 0.6254 GB, free: 12.92 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006749/0.6045, allocations: 2.969 MB / 0.6283 GB, free: 9.891 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001343/0.6059, allocations: 1.221 MB / 0.6295 GB, free: 8.641 MB / 442.7 MB Notification: Performance of SimCode: time 5.01e-07/0.6059, allocations: 3.938 kB / 0.6295 GB, free: 8.637 MB / 442.7 MB Notification: Performance of Templates: time 0.03341/0.6393, allocations: 22.77 MB / 0.6518 GB, free: 1.887 MB / 458.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)