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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 101.8 kB / 16.5 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 194.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 241.1 MB, free: 13.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1734/0.1734, allocations: 38.02 MB / 329.3 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 57.31 kB / 398.1 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1381, allocations: 58.07 MB / 456.1 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.01224/0.1504, allocations: 8.393 MB / 464.5 MB, free: 76 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005436/0.1559, allocations: 2.497 MB / 467 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001366/0.1573, allocations: 59.62 kB / 467.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0017/0.159, allocations: 462.2 kB / 467.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001783/0.1608, allocations: 0.5097 MB / 468.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001113/0.162, allocations: 359.5 kB / 468.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002341/0.1643, allocations: 1.925 MB / 470.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001232/0.1656, allocations: 0.7062 MB / 471 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001121/0.1667, allocations: 0.5368 MB / 471.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001308/0.168, allocations: 0.7048 MB / 472.3 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002884/0.1683, allocations: 56 kB / 472.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00126/0.1696, allocations: 0.5148 MB / 472.8 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006861/0.1703, allocations: 478.8 kB / 473.3 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001016/0.1713, allocations: 0.5209 MB / 473.8 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001727/0.1731, allocations: 1.484 MB / 475.3 MB, free: 5.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1731, allocations: 0 / 475.3 MB, free: 5.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1731, allocations: 3.938 kB / 475.3 MB, free: 5.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.242e-05/0.1731, allocations: 0 / 475.3 MB, free: 5.242 MB / 350.1 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.003732/0.1769, allocations: 1.564 MB / 476.9 MB, free: 3.602 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.1769, allocations: 12.03 kB / 476.9 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009202/0.1779, allocations: 155.6 kB / 477.1 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.1792, allocations: 0.694 MB / 477.7 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.1793, allocations: 179.6 kB / 477.9 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002721/0.1796, allocations: 103.9 kB / 478 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002873/0.1825, allocations: 1.532 MB / 479.6 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.1826, allocations: 8 kB / 479.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.1827, allocations: 36 kB / 479.6 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001634/0.1828, allocations: 81.88 kB / 479.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002381/0.1852, allocations: 1.167 MB / 480.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006816/0.1921, allocations: 4.785 MB / 485.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00287/0.1949, allocations: 1.117 MB / 486.7 MB, free: 9.414 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001301/0.1963, allocations: 0.5773 MB / 487.3 MB, free: 8.828 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.89e-05/0.1964, allocations: 12.56 kB / 487.3 MB, free: 8.816 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001496/0.1979, allocations: 0.7143 MB / 488 MB, free: 8.082 MB / 366.1 MB Notification: Performance of pre-optimization done (n=80): time 3.186e-06/0.1979, allocations: 0 / 488 MB, free: 8.082 MB / 366.1 MB Notification: Performance of matching and sorting (n=81): time 0.007948/0.2058, allocations: 3.193 MB / 491.2 MB, free: 4.789 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.875e-05/0.2059, allocations: 123.4 kB / 491.4 MB, free: 4.645 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008081/0.2068, allocations: 0.5849 MB / 491.9 MB, free: 4.051 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.392e-05/0.2069, allocations: 53.69 kB / 492 MB, free: 3.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000518/0.2074, allocations: 455 kB / 492.4 MB, free: 3.539 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000325/0.2077, allocations: 276.3 kB / 492.7 MB, free: 3.266 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003859/0.2081, allocations: 198.4 kB / 492.9 MB, free: 3.066 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002335/0.2084, allocations: 394.7 kB / 493.3 MB, free: 2.672 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008446/0.2092, allocations: 490 kB / 493.8 MB, free: 2.191 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009886/0.2102, allocations: 0.746 MB / 494.5 MB, free: 1.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001844/0.2121, allocations: 1.242 MB / 495.8 MB, free: 15.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.2121, allocations: 8 kB / 495.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002955/0.2151, allocations: 1.588 MB / 497.4 MB, free: 14.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001145/0.2152, allocations: 73.55 kB / 497.4 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002064/0.2173, allocations: 1.321 MB / 498.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004744/0.2178, allocations: 117.7 kB / 498.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007572/0.2185, allocations: 199.6 kB / 499.1 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003056/0.2216, allocations: 3.063 MB / 0.4904 GB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007105/0.2223, allocations: 79.77 kB / 0.4904 GB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.2225, allocations: 83.88 kB / 0.4905 GB, free: 9.102 MB / 382.1 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,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006107/0.2231, allocations: 373.6 kB / 0.4909 GB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/0.2233, allocations: 71.16 kB / 0.4909 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002903/0.2262, allocations: 1.274 MB / 0.4922 GB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.915e-05/0.2263, allocations: 19.98 kB / 0.4922 GB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.2263, allocations: 3.984 kB / 0.4922 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.2263, allocations: 3.984 kB / 0.4922 GB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00454/0.2309, allocations: 2.444 MB / 0.4946 GB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.2309, allocations: 4 kB / 0.4946 GB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007044/0.2316, allocations: 143.8 kB / 0.4947 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.421e-05/0.2317, allocations: 36.78 kB / 0.4948 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.478e-05/0.2318, allocations: 27.97 kB / 0.4948 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00113/0.2329, allocations: 1.471 MB / 0.4962 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.2329, allocations: 0 / 0.4962 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003819/0.2368, allocations: 1.919 MB / 0.4981 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003681/0.2372, allocations: 244 kB / 0.4983 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002125/0.2374, allocations: 83.94 kB / 0.4984 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007791/0.2382, allocations: 83.88 kB / 0.4985 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.2383, allocations: 52.58 kB / 0.4985 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.434e-05/0.2384, allocations: 31.97 kB / 0.4986 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000502/0.2389, allocations: 406.7 kB / 0.499 GB, free: 108 kB / 382.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.2389, allocations: 0 / 0.499 GB, free: 108 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001083/0.24, allocations: 244.3 kB / 0.4992 GB, free: 15.86 MB / 398.1 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]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003995/0.2404, allocations: 173.3 kB / 0.4994 GB, free: 15.69 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003035/0.2435, allocations: 1.63 MB / 0.501 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.2435, allocations: 0 / 0.501 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.2449, allocations: 0.66 MB / 0.5016 GB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009982/0.2459, allocations: 170.8 kB / 0.5018 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004342/0.2502, allocations: 2.725 MB / 0.5044 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000795/0.251, allocations: 1.111 MB / 0.5055 GB, free: 9.273 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006633/0.2517, allocations: 238.5 kB / 0.5057 GB, free: 9.035 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002243/0.2519, allocations: 63.44 kB / 0.5058 GB, free: 8.973 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.252, allocations: 4 kB / 0.5058 GB, free: 8.969 MB / 398.1 MB Notification: Performance of Templates: time 0.2264/0.4784, allocations: 10.5 MB / 0.5161 GB, free: 69.21 MB / 398.1 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)