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.001221/0.001221, allocations: 115.1 kB / 16.63 MB, free: 6.812 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.001198/0.001198, allocations: 186 kB / 17.55 MB, free: 5.934 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.4/1.4, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1752/0.1752, allocations: 38.03 MB / 329.4 MB, free: 8.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001279, allocations: 64.03 kB / 398.3 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1274, allocations: 58.06 MB / 456.3 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.01014/0.1376, allocations: 8.389 MB / 464.7 MB, free: 4 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005155/0.1428, allocations: 2.45 MB / 467.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008299/0.1436, allocations: 55.62 kB / 467.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00139/0.145, allocations: 468 kB / 467.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001432/0.1465, allocations: 0.5175 MB / 468.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009455/0.1474, allocations: 351.5 kB / 468.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001513/0.149, allocations: 1.407 MB / 470 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001025/0.15, allocations: 0.842 MB / 470.8 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008357/0.1509, allocations: 0.6306 MB / 471.4 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000932/0.1518, allocations: 0.7243 MB / 472.2 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.1519, allocations: 96 kB / 472.2 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008776/0.1528, allocations: 0.5499 MB / 472.8 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004766/0.1533, allocations: 0.5027 MB / 473.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006311/0.154, allocations: 0.5638 MB / 473.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001606/0.1556, allocations: 1.519 MB / 475.4 MB, free: 5.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.1556, allocations: 0 / 475.4 MB, free: 5.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.139e-06/0.1556, allocations: 7.922 kB / 475.4 MB, free: 5.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.684e-05/0.1556, allocations: 0 / 475.4 MB, free: 5.293 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.003227/0.1589, allocations: 1.56 MB / 476.9 MB, free: 3.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.1589, allocations: 11.89 kB / 477 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008257/0.1598, allocations: 159.5 kB / 477.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.1609, allocations: 0.6979 MB / 477.8 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/0.1611, allocations: 175.6 kB / 478 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002495/0.1613, allocations: 107.9 kB / 478.1 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002819/0.1642, allocations: 1.528 MB / 479.6 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.1642, allocations: 4 kB / 479.6 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.1643, allocations: 35.98 kB / 479.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001663/0.1645, allocations: 69.91 kB / 479.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00221/0.1667, allocations: 1.167 MB / 480.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006578/0.1733, allocations: 4.805 MB / 485.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002978/0.1763, allocations: 1.115 MB / 486.8 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001271/0.1776, allocations: 0.5759 MB / 487.4 MB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.51e-05/0.1777, allocations: 12.55 kB / 487.4 MB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001432/0.1791, allocations: 0.7104 MB / 488.1 MB, free: 8.141 MB / 366.1 MB Notification: Performance of pre-optimization done (n=80): time 2.465e-06/0.1791, allocations: 0 / 488.1 MB, free: 8.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=81): time 0.00715/0.1863, allocations: 3.201 MB / 491.3 MB, free: 4.844 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.392e-05/0.1864, allocations: 131.4 kB / 491.4 MB, free: 4.691 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000743/0.1871, allocations: 0.581 MB / 492 MB, free: 4.102 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.971e-05/0.1872, allocations: 57.69 kB / 492.1 MB, free: 4.039 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003692/0.1876, allocations: 459 kB / 492.5 MB, free: 3.582 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/0.1878, allocations: 268.3 kB / 492.8 MB, free: 3.316 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003123/0.1882, allocations: 194.5 kB / 493 MB, free: 3.121 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.1884, allocations: 398.7 kB / 493.4 MB, free: 2.723 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007524/0.1891, allocations: 486 kB / 493.8 MB, free: 2.242 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000984/0.1901, allocations: 0.7382 MB / 494.6 MB, free: 1.402 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00192/0.192, allocations: 1.257 MB / 495.8 MB, free: 20 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.1921, allocations: 4 kB / 495.8 MB, free: 16 kB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003254/0.1953, allocations: 1.58 MB / 497.4 MB, free: 14.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.737e-05/0.1955, allocations: 65.61 kB / 497.5 MB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002074/0.1975, allocations: 1.325 MB / 498.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005013/0.1981, allocations: 117.6 kB / 498.9 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007936/0.1989, allocations: 207.5 kB / 499.1 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003155/0.202, allocations: 3.361 MB / 0.4907 GB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008294/0.2029, allocations: 79.78 kB / 0.4908 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.203, allocations: 79.88 kB / 0.4909 GB, free: 8.848 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.0007722/0.2038, allocations: 377.5 kB / 0.4912 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.204, allocations: 82.98 kB / 0.4913 GB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002757/0.2068, allocations: 1.263 MB / 0.4925 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.16e-05/0.2068, allocations: 12 kB / 0.4925 GB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.2068, allocations: 0 / 0.4925 GB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.2069, allocations: 15.86 kB / 0.4926 GB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004391/0.2113, allocations: 2.444 MB / 0.4949 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.395e-06/0.2113, allocations: 4 kB / 0.495 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007502/0.2121, allocations: 143.8 kB / 0.4951 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001089/0.2122, allocations: 28.84 kB / 0.4951 GB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.3e-05/0.2123, allocations: 32.06 kB / 0.4951 GB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.2135, allocations: 1.63 MB / 0.4967 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2135, allocations: 0 / 0.4967 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003934/0.2175, allocations: 1.923 MB / 0.4986 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004415/0.2179, allocations: 240.2 kB / 0.4988 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001992/0.2181, allocations: 87.92 kB / 0.4989 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007139/0.2189, allocations: 87.88 kB / 0.499 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.2191, allocations: 60.45 kB / 0.4991 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.74e-05/0.2191, allocations: 31.97 kB / 0.4991 GB, free: 72 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005683/0.2197, allocations: 398.8 kB / 0.4995 GB, free: 15.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2197, allocations: 0 / 0.4995 GB, free: 15.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001209/0.2209, allocations: 240 kB / 0.4997 GB, free: 15.45 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.0003519/0.2213, allocations: 179.2 kB / 0.4999 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003852/0.2252, allocations: 1.971 MB / 0.5018 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.2252, allocations: 4.125 kB / 0.5018 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.2266, allocations: 0.6547 MB / 0.5024 GB, free: 12.58 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.2276, allocations: 174.5 kB / 0.5026 GB, free: 12.41 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005233/0.2328, allocations: 2.717 MB / 0.5053 GB, free: 9.648 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001228/0.2341, allocations: 1.118 MB / 0.5064 GB, free: 8.504 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007888/0.2349, allocations: 246.4 kB / 0.5066 GB, free: 8.258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.2351, allocations: 67.42 kB / 0.5067 GB, free: 8.195 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2351, allocations: 0 / 0.5067 GB, free: 8.195 MB / 398.1 MB Notification: Performance of Templates: time 0.2191/0.4542, allocations: 10.97 MB / 0.5174 GB, free: 70.54 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)