Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.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.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") [: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.001029/0.001029, allocations: 190.5 kB / 8.133 MB, free: 2.215 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.162/1.162, allocations: 194.2 MB / 202.8 MB, free: 8.668 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.001707/0.001707, allocations: 119.2 kB / 247.7 MB, free: 6.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1676/0.1676, allocations: 37.9 MB / 330.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.44e-06/5.46e-06, allocations: 0 / 389.8 MB, free: 78.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07804/0.07806, allocations: 53.24 MB / 443 MB, free: 24.96 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2728/0.3509, allocations: 106.7 MB / 0.5368 GB, free: 1.336 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/0.3512, allocations: 90.97 kB / 0.5369 GB, free: 1.293 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 ac_dc.modulator.m not found in scope PowerSystems.AC3ph.Inverters.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 ac_dc.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter.Modulator.$for loop scope$. Notification: Performance of FrontEnd: time 0.06863/0.4198, allocations: 23.53 MB / 0.5599 GB, free: 13.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001002/0.42, allocations: 27.98 kB / 0.5599 GB, free: 13.28 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003412/0.4234, allocations: 1.322 MB / 0.5612 GB, free: 11.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.4234, allocations: 8.031 kB / 0.5612 GB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001105/0.4245, allocations: 162.6 kB / 0.5614 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004315/0.4289, allocations: 1.404 MB / 0.5627 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.4291, allocations: 146.3 kB / 0.5629 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000321/0.4294, allocations: 63.89 kB / 0.5629 GB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001832/0.4313, allocations: 0.9605 MB / 0.5639 GB, free: 9.715 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002304/0.4336, allocations: 1.339 MB / 0.5652 GB, free: 8.637 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.448e-05/0.4336, allocations: 4 kB / 0.5652 GB, free: 8.633 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/0.4337, allocations: 3.938 kB / 0.5652 GB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-05/0.4338, allocations: 61.78 kB / 0.5653 GB, free: 8.574 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006858/0.4407, allocations: 4.59 MB / 0.5697 GB, free: 4.594 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.4418, allocations: 0.7433 MB / 0.5705 GB, free: 4.062 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008952/0.4427, allocations: 0.5325 MB / 0.571 GB, free: 3.684 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.836e-05/0.4428, allocations: 15.72 kB / 0.571 GB, free: 3.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008951/0.4437, allocations: 0.5917 MB / 0.5716 GB, free: 3.219 MB / 378.7 MB Notification: Performance of pre-optimization done (n=82): time 4.388e-06/0.4438, allocations: 0 / 0.5716 GB, free: 3.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.00433/0.4481, allocations: 2.282 MB / 0.5738 GB, free: 1.297 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.265e-05/0.4482, allocations: 134.9 kB / 0.5739 GB, free: 1.145 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006314/0.4489, allocations: 416.5 kB / 0.5743 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.502e-05/0.449, allocations: 48.33 kB / 0.5744 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003897/0.4494, allocations: 400.3 kB / 0.5748 GB, free: 420 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002872/0.4497, allocations: 268.6 kB / 0.575 GB, free: 184 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.647e-05/0.4497, allocations: 0 / 0.575 GB, free: 184 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000227/0.4499, allocations: 385.1 kB / 0.5754 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007776/0.4507, allocations: 0.4941 MB / 0.5759 GB, free: 15.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008803/0.4516, allocations: 0.7559 MB / 0.5766 GB, free: 14.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009062/0.4525, allocations: 0.5945 MB / 0.5772 GB, free: 14.4 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.4526, allocations: 0 / 0.5772 GB, free: 14.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002434/0.455, allocations: 1.509 MB / 0.5787 GB, free: 13.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.455, allocations: 4 kB / 0.5787 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001736/0.4568, allocations: 1.196 MB / 0.5798 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004099/0.4572, allocations: 98.45 kB / 0.5799 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000811/0.458, allocations: 191.6 kB / 0.5801 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002498/0.4605, allocations: 2.835 MB / 0.5829 GB, free: 8.934 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007335/0.4613, allocations: 52.02 kB / 0.5829 GB, free: 8.883 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001487/0.4615, allocations: 67.95 kB / 0.583 GB, free: 8.816 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 108 * Array equations: 2 * 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: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002519/0.4617, allocations: 159.8 kB / 0.5831 GB, free: 8.652 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001822/0.4619, allocations: 67.16 kB / 0.5832 GB, free: 8.586 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/0.4637, allocations: 1.05 MB / 0.5842 GB, free: 7.508 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.405e-05/0.4637, allocations: 20 kB / 0.5842 GB, free: 7.488 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.4638, allocations: 0 / 0.5842 GB, free: 7.488 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.4638, allocations: 3.984 kB / 0.5843 GB, free: 7.484 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003254/0.467, allocations: 2.075 MB / 0.5863 GB, free: 5.332 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.4671, allocations: 4 kB / 0.5863 GB, free: 5.328 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008241/0.4679, allocations: 131.7 kB / 0.5864 GB, free: 5.199 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.793e-05/0.468, allocations: 24.84 kB / 0.5864 GB, free: 5.172 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.836e-05/0.4681, allocations: 19.97 kB / 0.5865 GB, free: 5.152 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.4692, allocations: 1.321 MB / 0.5877 GB, free: 3.711 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.4692, allocations: 4.031 kB / 0.5877 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002536/0.4717, allocations: 1.713 MB / 0.5894 GB, free: 1.918 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000511/0.4722, allocations: 244.1 kB / 0.5897 GB, free: 1.66 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002924/0.4725, allocations: 67.95 kB / 0.5897 GB, free: 1.594 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009154/0.4735, allocations: 95.89 kB / 0.5898 GB, free: 1.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.4736, allocations: 44.58 kB / 0.5899 GB, free: 1.457 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.802e-05/0.4737, allocations: 27.98 kB / 0.5899 GB, free: 1.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004232/0.4742, allocations: 306.8 kB / 0.5902 GB, free: 1.129 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001194/0.4754, allocations: 224.2 kB / 0.5904 GB, free: 0.9102 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 61 * Array equations: 2 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000406/0.4758, allocations: 190.9 kB / 0.5906 GB, free: 0.7109 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002175/0.478, allocations: 1.366 MB / 0.5919 GB, free: 15.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.478, allocations: 3.938 kB / 0.5919 GB, free: 15.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009113/0.4789, allocations: 0.5744 MB / 0.5925 GB, free: 14.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007562/0.4797, allocations: 110.2 kB / 0.5926 GB, free: 14.63 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003762/0.4834, allocations: 1.854 MB / 0.5944 GB, free: 12.74 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001132/0.4846, allocations: 1.191 MB / 0.5955 GB, free: 11.52 MB / 410.7 MB Notification: Performance of SimCode: time 6.51e-07/0.4846, allocations: 0 / 0.5955 GB, free: 11.52 MB / 410.7 MB Notification: Performance of Templates: time 0.01988/0.5045, allocations: 10.2 MB / 0.6055 GB, free: 1.344 MB / 410.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)