Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 187.8 kB / 23.72 MB, free: 4.68 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1845/0.1845, allocations: 38.55 MB / 346.3 MB, free: 2.117 MB / 270.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-master/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.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter")
translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 75.88 kB / 484.5 MB, free: 11.14 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3983/0.4003, allocations: 61.29 MB / 0.533 GB, free: 5.57 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007348/0.4077, allocations: 6.683 MB / 0.5396 GB, free: 0.6523 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002851/0.4105, allocations: 1.332 MB / 0.5409 GB, free: 15.57 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0004526/0.411, allocations: 36.19 kB / 0.5409 GB, free: 15.55 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000412/0.4114, allocations: 129.2 kB / 0.541 GB, free: 15.44 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.001172/0.4125, allocations: 437.1 kB / 0.5414 GB, free: 15.09 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0006032/0.4132, allocations: 234.9 kB / 0.5417 GB, free: 14.9 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001573/0.4147, allocations: 1.125 MB / 0.5428 GB, free: 14.27 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0004432/0.4152, allocations: 259.5 kB / 0.543 GB, free: 14.11 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0008749/0.416, allocations: 0.5118 MB / 0.5435 GB, free: 13.82 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0009998/0.417, allocations: 0.5578 MB / 0.5441 GB, free: 13.49 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001471/0.4172, allocations: 64.94 kB / 0.5441 GB, free: 13.49 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002102/0.4174, allocations: 65.84 kB / 0.5442 GB, free: 13.49 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0004448/0.4178, allocations: 345.9 kB / 0.5445 GB, free: 13.27 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000536/0.4184, allocations: 407.5 kB / 0.5449 GB, free: 13 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001422/0.4198, allocations: 0.9188 MB / 0.5458 GB, free: 12.37 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.4198, allocations: 0 / 0.5458 GB, free: 12.37 MB / 398.1 MB
Notification: Performance of FrontEnd: time 2.605e-06/0.4198, allocations: 1.219 kB / 0.5458 GB, free: 12.37 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.684e-05/0.4198, allocations: 3.984 kB / 0.5458 GB, free: 12.36 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.002558/0.4224, allocations: 1.091 MB / 0.5469 GB, free: 11.53 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.4224, allocations: 13.41 kB / 0.5469 GB, free: 11.52 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001998/0.4226, allocations: 87.92 kB / 0.547 GB, free: 11.48 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.4238, allocations: 0.5382 MB / 0.5475 GB, free: 11.08 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.4239, allocations: 119.3 kB / 0.5476 GB, free: 10.98 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.424, allocations: 67.36 kB / 0.5477 GB, free: 10.96 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.4259, allocations: 0.863 MB / 0.5485 GB, free: 10.4 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.4259, allocations: 5.375 kB / 0.5485 GB, free: 10.39 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.577e-05/0.426, allocations: 26.22 kB / 0.5485 GB, free: 10.38 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001329/0.4262, allocations: 41.88 kB / 0.5486 GB, free: 10.36 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.4275, allocations: 0.6185 MB / 0.5492 GB, free: 10.06 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004642/0.4321, allocations: 2.694 MB / 0.5518 GB, free: 7.938 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001787/0.4339, allocations: 0.5754 MB / 0.5524 GB, free: 7.629 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0008183/0.4347, allocations: 292.4 kB / 0.5527 GB, free: 7.484 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.4348, allocations: 9.359 kB / 0.5527 GB, free: 7.48 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000887/0.4357, allocations: 350.3 kB / 0.553 GB, free: 7.246 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=41): time 2.074e-06/0.4357, allocations: 0 / 0.553 GB, free: 7.246 MB / 398.1 MB
Notification: Performance of matching and sorting (n=42): time 0.004925/0.4406, allocations: 1.688 MB / 0.5546 GB, free: 5.68 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.4407, allocations: 122.8 kB / 0.5548 GB, free: 5.535 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.4418, allocations: 0.5066 MB / 0.5553 GB, free: 5.02 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.427e-05/0.4418, allocations: 41.69 kB / 0.5553 GB, free: 4.973 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0006971/0.4425, allocations: 368.5 kB / 0.5557 GB, free: 4.605 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0004103/0.4429, allocations: 150.8 kB / 0.5558 GB, free: 4.457 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/0.4432, allocations: 126.2 kB / 0.5559 GB, free: 4.328 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002469/0.4434, allocations: 362.8 kB / 0.5563 GB, free: 3.965 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003952/0.4438, allocations: 229.1 kB / 0.5565 GB, free: 3.738 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005231/0.4443, allocations: 402.5 kB / 0.5569 GB, free: 3.277 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0009136/0.4453, allocations: 0.6133 MB / 0.5575 GB, free: 2.586 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.4453, allocations: 8 kB / 0.5575 GB, free: 2.578 MB / 398.1 MB
Notification: Performance of matching and sorting (n=74) (initialization): time 0.001535/0.4468, allocations: 0.8151 MB / 0.5583 GB, free: 1.742 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 0.0002061/0.447, allocations: 53.69 kB / 0.5583 GB, free: 1.684 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/0.447, allocations: 8 kB / 0.5583 GB, free: 1.676 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0003293/0.4474, allocations: 86 kB / 0.5584 GB, free: 1.586 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.4478, allocations: 107.8 kB / 0.5585 GB, free: 1.48 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003299/0.4511, allocations: 3.048 MB / 0.5615 GB, free: 14.2 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005161/0.4516, allocations: 31.97 kB / 0.5615 GB, free: 14.17 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.112e-05/0.4517, allocations: 48.02 kB / 0.5616 GB, free: 14.12 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.0005282/0.4522, allocations: 269.6 kB / 0.5618 GB, free: 13.85 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.188e-05/0.4523, allocations: 59.62 kB / 0.5619 GB, free: 13.79 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001815/0.4541, allocations: 0.6289 MB / 0.5625 GB, free: 13.15 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.4541, allocations: 4 kB / 0.5625 GB, free: 13.15 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.4541, allocations: 4 kB / 0.5625 GB, free: 13.14 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.4541, allocations: 7.984 kB / 0.5625 GB, free: 13.14 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002943/0.4571, allocations: 1.425 MB / 0.5639 GB, free: 11.65 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.4571, allocations: 0 / 0.5639 GB, free: 11.65 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003094/0.4574, allocations: 59.97 kB / 0.564 GB, free: 11.59 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0003076/0.4577, allocations: 101.6 kB / 0.5641 GB, free: 11.48 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.415e-05/0.4577, allocations: 15.98 kB / 0.5641 GB, free: 11.47 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003075/0.4608, allocations: 3.06 MB / 0.5671 GB, free: 8.176 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4608, allocations: 0 / 0.5671 GB, free: 8.176 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002474/0.4633, allocations: 0.997 MB / 0.568 GB, free: 7.148 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0003142/0.4636, allocations: 91.58 kB / 0.5681 GB, free: 7.059 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.4637, allocations: 31.98 kB / 0.5681 GB, free: 7.027 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004145/0.4641, allocations: 39.94 kB / 0.5682 GB, free: 6.988 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.964e-05/0.4642, allocations: 27.89 kB / 0.5682 GB, free: 6.961 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-05/0.4643, allocations: 24.11 kB / 0.5682 GB, free: 6.938 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0005187/0.4648, allocations: 358.8 kB / 0.5686 GB, free: 6.59 MB / 414.1 MB
Notification: Performance of sort global known variables: time 1.1e-07/0.4648, allocations: 0 / 0.5686 GB, free: 6.59 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0007907/0.4656, allocations: 152 kB / 0.5687 GB, free: 6.441 MB / 414.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.0001974/0.4658, allocations: 131 kB / 0.5688 GB, free: 6.305 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.001842/0.4676, allocations: 0.8551 MB / 0.5697 GB, free: 5.41 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4676, allocations: 0 / 0.5697 GB, free: 5.41 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001017/0.4686, allocations: 493.2 kB / 0.5702 GB, free: 4.902 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009671/0.4696, allocations: 150.3 kB / 0.5703 GB, free: 4.766 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003083/0.4727, allocations: 1.513 MB / 0.5718 GB, free: 3.207 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007345/0.4734, allocations: 0.9683 MB / 0.5727 GB, free: 2.211 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0003555/0.4738, allocations: 112.9 kB / 0.5728 GB, free: 2.098 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.4739, allocations: 43.44 kB / 0.5729 GB, free: 2.055 MB / 414.1 MB
Notification: Performance of SimCode: time 8.62e-07/0.4739, allocations: 0 / 0.5729 GB, free: 2.055 MB / 414.1 MB
Notification: Performance of Templates: time 0.0176/0.4915, allocations: 7.946 MB / 0.5806 GB, free: 10.18 MB / 430.1 MB
"
[Timeout remaining time 660]
make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile [Timeout 660]
(rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 480]
diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.306764727458358]