Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001148/0.001148, allocations: 184 kB / 8.354 MB, free: 0.7305 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.457/1.457, allocations: 194.3 MB / 203.1 MB, free: 13.03 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.001654/0.001654, allocations: 116.3 kB / 248.1 MB, free: 36 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1517/0.1517, allocations: 37.92 MB / 330.9 MB, free: 2.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.356e-05/1.359e-05, allocations: 4 kB / 390.4 MB, free: 7.094 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2238, allocations: 53.22 MB / 443.6 MB, free: 17.78 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1053/0.3291, allocations: 96.38 MB / 0.5273 GB, free: 1.258 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/0.3294, allocations: 91.94 kB / 0.5274 GB, free: 1.168 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.224/0.5534, allocations: 14.21 MB / 0.5413 GB, free: 88.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5534, allocations: 3.984 kB / 0.5413 GB, free: 88.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.721e-05/0.5535, allocations: 15.75 kB / 0.5413 GB, free: 88.21 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001517/0.555, allocations: 0.9601 MB / 0.5422 GB, free: 87.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.5551, allocations: 8.031 kB / 0.5422 GB, free: 87.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001888/0.5553, allocations: 87.06 kB / 0.5423 GB, free: 87.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002632/0.5579, allocations: 1.174 MB / 0.5435 GB, free: 85.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-05/0.558, allocations: 97.38 kB / 0.5436 GB, free: 85.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.824e-05/0.5581, allocations: 40 kB / 0.5436 GB, free: 85.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007762/0.5589, allocations: 0.514 MB / 0.5441 GB, free: 85.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.5599, allocations: 0.7239 MB / 0.5448 GB, free: 84.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.5599, allocations: 0 / 0.5448 GB, free: 84.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.872e-05/0.56, allocations: 4 kB / 0.5448 GB, free: 84.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.56, allocations: 16 kB / 0.5448 GB, free: 84.47 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002888/0.5629, allocations: 2.621 MB / 0.5474 GB, free: 81.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008673/0.5638, allocations: 0.7913 MB / 0.5482 GB, free: 80.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003431/0.5641, allocations: 262.9 kB / 0.5484 GB, free: 80.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.5642, allocations: 8.234 kB / 0.5484 GB, free: 80.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003315/0.5645, allocations: 286.3 kB / 0.5487 GB, free: 80.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.425e-06/0.5645, allocations: 4 kB / 0.5487 GB, free: 80.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001527/0.5661, allocations: 1.187 MB / 0.5499 GB, free: 79.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.5661, allocations: 106.8 kB / 0.55 GB, free: 78.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003106/0.5664, allocations: 381 kB / 0.5503 GB, free: 78.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.379e-05/0.5665, allocations: 29.7 kB / 0.5504 GB, free: 78.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.5667, allocations: 367.5 kB / 0.5507 GB, free: 78.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.5668, allocations: 130.1 kB / 0.5508 GB, free: 78.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.538e-05/0.5668, allocations: 4.75 kB / 0.5508 GB, free: 78.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.034e-05/0.5669, allocations: 366.7 kB / 0.5512 GB, free: 77.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/0.5671, allocations: 185.3 kB / 0.5514 GB, free: 77.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.5674, allocations: 345.7 kB / 0.5517 GB, free: 77.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002719/0.5677, allocations: 236.6 kB / 0.5519 GB, free: 76.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.5677, allocations: 0 / 0.5519 GB, free: 76.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007626/0.5684, allocations: 0.6171 MB / 0.5525 GB, free: 76.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/0.5685, allocations: 49.69 kB / 0.5526 GB, free: 76.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.5685, allocations: 7.938 kB / 0.5526 GB, free: 76.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001624/0.5687, allocations: 48.83 kB / 0.5526 GB, free: 76.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004141/0.5691, allocations: 116.3 kB / 0.5527 GB, free: 76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009029/0.57, allocations: 1.404 MB / 0.5541 GB, free: 74.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003865/0.5704, allocations: 36.03 kB / 0.5541 GB, free: 74.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/0.5705, allocations: 43.97 kB / 0.5542 GB, free: 74.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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 prepare postOptimizeDAE: time 0.0001464/0.5707, allocations: 133.7 kB / 0.5543 GB, free: 74.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.678e-05/0.5708, allocations: 51.34 kB / 0.5544 GB, free: 74.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006745/0.5715, allocations: 463.4 kB / 0.5548 GB, free: 73.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.5715, allocations: 8 kB / 0.5548 GB, free: 73.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.5715, allocations: 0 / 0.5548 GB, free: 73.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.5715, allocations: 3.984 kB / 0.5548 GB, free: 73.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.573, allocations: 1.225 MB / 0.556 GB, free: 72.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.573, allocations: 0 / 0.556 GB, free: 72.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003218/0.5733, allocations: 67.91 kB / 0.5561 GB, free: 72.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001433/0.5735, allocations: 40.81 kB / 0.5561 GB, free: 72.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.119e-05/0.5735, allocations: 11.98 kB / 0.5561 GB, free: 72.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007884/0.5743, allocations: 1.412 MB / 0.5575 GB, free: 70.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5743, allocations: 4.031 kB / 0.5575 GB, free: 70.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008736/0.5752, allocations: 0.7895 MB / 0.5583 GB, free: 69.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002398/0.5755, allocations: 168.4 kB / 0.5584 GB, free: 69.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.5756, allocations: 23.98 kB / 0.5585 GB, free: 69.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003883/0.576, allocations: 39.94 kB / 0.5585 GB, free: 69.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.958e-05/0.5761, allocations: 35.86 kB / 0.5585 GB, free: 69.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.902e-05/0.5761, allocations: 15.98 kB / 0.5585 GB, free: 69.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002533/0.5764, allocations: 278.9 kB / 0.5588 GB, free: 69.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5764, allocations: 0 / 0.5588 GB, free: 69.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005858/0.577, allocations: 144 kB / 0.5589 GB, free: 69.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001769/0.5771, allocations: 126.9 kB / 0.5591 GB, free: 69.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009146/0.5781, allocations: 0.6748 MB / 0.5597 GB, free: 68.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5781, allocations: 0 / 0.5597 GB, free: 68.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000378/0.5785, allocations: 313.5 kB / 0.56 GB, free: 68.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000618/0.5791, allocations: 110.8 kB / 0.5601 GB, free: 68.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.5807, allocations: 1.069 MB / 0.5612 GB, free: 66.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003625/0.581, allocations: 0.9913 MB / 0.5621 GB, free: 65.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003193/0.5814, allocations: 100.6 kB / 0.5622 GB, free: 65.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.932e-05/0.5815, allocations: 47.44 kB / 0.5623 GB, free: 65.73 MB / 378.7 MB Notification: Performance of SimCode: time 3.5e-07/0.5815, allocations: 0 / 0.5623 GB, free: 65.73 MB / 378.7 MB Notification: Performance of Templates: time 0.008837/0.5903, allocations: 5.572 MB / 0.5677 GB, free: 60.18 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)