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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001878/0.001878, allocations: 207.7 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.621/1.621, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2018/0.2018, allocations: 38.56 MB / 352.5 MB, free: 12.29 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002121/0.002121, allocations: 71.89 kB / 493 MB, free: 4.168 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4343/0.4364, allocations: 62.47 MB / 0.5424 GB, free: 412 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.01333/0.4497, allocations: 6.21 MB / 0.5485 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003228/0.4529, allocations: 1.277 MB / 0.5497 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005946/0.4535, allocations: 36.28 kB / 0.5498 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005067/0.454, allocations: 134.8 kB / 0.5499 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001385/0.4554, allocations: 429.4 kB / 0.5503 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006511/0.4561, allocations: 234.3 kB / 0.5505 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00169/0.4578, allocations: 1.127 MB / 0.5516 GB, free: 9.371 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004369/0.4582, allocations: 251.5 kB / 0.5519 GB, free: 9.223 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001058/0.4593, allocations: 0.5233 MB / 0.5524 GB, free: 8.922 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008625/0.4601, allocations: 0.5331 MB / 0.5529 GB, free: 8.617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.4602, allocations: 64.94 kB / 0.553 GB, free: 8.617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001769/0.4604, allocations: 65.44 kB / 0.553 GB, free: 8.617 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003963/0.4608, allocations: 343.3 kB / 0.5534 GB, free: 8.398 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004264/0.4612, allocations: 328.3 kB / 0.5537 GB, free: 8.207 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001219/0.4625, allocations: 0.9337 MB / 0.5546 GB, free: 7.566 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4625, allocations: 0 / 0.5546 GB, free: 7.566 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4625, allocations: 0.9688 kB / 0.5546 GB, free: 7.566 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.079e-05/0.4625, allocations: 0 / 0.5546 GB, free: 7.566 MB / 398.1 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.002306/0.4648, allocations: 1.091 MB / 0.5557 GB, free: 6.594 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.4648, allocations: 15.98 kB / 0.5557 GB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.465, allocations: 92.42 kB / 0.5558 GB, free: 6.488 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001204/0.4662, allocations: 0.5362 MB / 0.5563 GB, free: 5.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/0.4664, allocations: 223.6 kB / 0.5565 GB, free: 5.668 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001477/0.4666, allocations: 71.97 kB / 0.5566 GB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.4683, allocations: 0.8692 MB / 0.5574 GB, free: 4.688 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.4684, allocations: 4 kB / 0.5574 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.957e-05/0.4684, allocations: 20 kB / 0.5574 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000125/0.4686, allocations: 45.22 kB / 0.5575 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.4699, allocations: 0.6295 MB / 0.5581 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004087/0.4739, allocations: 2.431 MB / 0.5605 GB, free: 1.477 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.4756, allocations: 0.558 MB / 0.561 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000738/0.4763, allocations: 300.2 kB / 0.5613 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.4764, allocations: 12.27 kB / 0.5613 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007533/0.4771, allocations: 350.7 kB / 0.5616 GB, free: 236 kB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.565e-06/0.4771, allocations: 0 / 0.5616 GB, free: 236 kB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004496/0.4816, allocations: 1.68 MB / 0.5633 GB, free: 14.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.202e-05/0.4817, allocations: 118.8 kB / 0.5634 GB, free: 14.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005911/0.4823, allocations: 457.7 kB / 0.5638 GB, free: 13.91 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.54e-05/0.4824, allocations: 41.7 kB / 0.5639 GB, free: 13.86 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004252/0.4828, allocations: 376.3 kB / 0.5642 GB, free: 13.49 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.4829, allocations: 146.8 kB / 0.5644 GB, free: 13.35 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001977/0.4831, allocations: 114.3 kB / 0.5645 GB, free: 13.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.4833, allocations: 370.8 kB / 0.5648 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004497/0.4838, allocations: 250.9 kB / 0.5651 GB, free: 12.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005854/0.4844, allocations: 436.2 kB / 0.5655 GB, free: 12.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/0.4858, allocations: 0.6133 MB / 0.5661 GB, free: 11.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.4858, allocations: 0 / 0.5661 GB, free: 11.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002245/0.4881, allocations: 0.8402 MB / 0.5669 GB, free: 10.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.819e-05/0.4882, allocations: 52.66 kB / 0.567 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.4882, allocations: 4 kB / 0.567 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004577/0.4886, allocations: 89.66 kB / 0.5671 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006233/0.4893, allocations: 107.8 kB / 0.5672 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004036/0.4933, allocations: 2.999 MB / 0.5701 GB, free: 7.086 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007012/0.494, allocations: 31.94 kB / 0.5701 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.4941, allocations: 47.91 kB / 0.5702 GB, free: 7.008 MB / 414.1 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,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006804/0.4948, allocations: 262.2 kB / 0.5704 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.4949, allocations: 51.67 kB / 0.5705 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002224/0.4972, allocations: 0.6284 MB / 0.5711 GB, free: 6.047 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.4972, allocations: 4 kB / 0.5711 GB, free: 6.043 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.4972, allocations: 4 kB / 0.5711 GB, free: 6.039 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.4972, allocations: 7.922 kB / 0.5711 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003818/0.501, allocations: 1.293 MB / 0.5724 GB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.501, allocations: 0 / 0.5724 GB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004423/0.5015, allocations: 55.91 kB / 0.5724 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004609/0.5019, allocations: 105.6 kB / 0.5725 GB, free: 4.523 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.693e-05/0.502, allocations: 11.98 kB / 0.5725 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003929/0.5059, allocations: 2.991 MB / 0.5754 GB, free: 1.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.5059, allocations: 4 kB / 0.5754 GB, free: 1.316 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002455/0.5084, allocations: 0.9969 MB / 0.5764 GB, free: 296 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002938/0.5087, allocations: 95.64 kB / 0.5765 GB, free: 200 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.99e-05/0.5088, allocations: 39.92 kB / 0.5765 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003788/0.5091, allocations: 35.95 kB / 0.5766 GB, free: 124 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.155e-05/0.5092, allocations: 31.94 kB / 0.5766 GB, free: 92 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.393e-05/0.5093, allocations: 19.98 kB / 0.5766 GB, free: 72 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004214/0.5097, allocations: 299.1 kB / 0.5769 GB, free: 15.78 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5097, allocations: 0 / 0.5769 GB, free: 15.78 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008016/0.5105, allocations: 152 kB / 0.5771 GB, free: 15.63 MB / 430.1 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]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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,1,100.0%), (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.000202/0.5107, allocations: 130.1 kB / 0.5772 GB, free: 15.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.5123, allocations: 0.8876 MB / 0.5781 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5123, allocations: 0 / 0.5781 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009309/0.5133, allocations: 485.9 kB / 0.5785 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007741/0.514, allocations: 125.1 kB / 0.5786 GB, free: 13.95 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002863/0.5169, allocations: 1.505 MB / 0.5801 GB, free: 12.39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004334/0.5173, allocations: 378.1 kB / 0.5805 GB, free: 12 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002884/0.5176, allocations: 100.6 kB / 0.5806 GB, free: 11.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.5177, allocations: 35.44 kB / 0.5806 GB, free: 11.87 MB / 430.1 MB Notification: Performance of SimCode: time 8.22e-07/0.5177, allocations: 0 / 0.5806 GB, free: 11.87 MB / 430.1 MB Notification: Performance of Templates: time 0.01552/0.5332, allocations: 7.664 MB / 0.5881 GB, free: 4.312 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.7012588027864695] Failed to read output from testmodel.py, exit status != 0: 0.5427531525492668 0.557556607 0.091765048 Calling exit ...