Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) 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.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_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.001414/0.001414, allocations: 111 kB / 17.75 MB, free: 5.355 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.001796/0.001796, allocations: 190.4 kB / 18.68 MB, free: 4.434 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.348/1.348, allocations: 222.9 MB / 242.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1771/0.1771, allocations: 38.04 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 59.91 kB / 458.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2977, allocations: 58.06 MB / 0.5048 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.00717/0.305, allocations: 6.927 MB / 0.5115 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003289/0.3083, allocations: 2.033 MB / 0.5135 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005992/0.3089, allocations: 33.41 kB / 0.5136 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001437/0.3103, allocations: 0.4929 MB / 0.514 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001579/0.3119, allocations: 0.565 MB / 0.5146 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.313, allocations: 394 kB / 0.515 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001781/0.3148, allocations: 1.405 MB / 0.5163 GB, free: 132 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001256/0.3161, allocations: 0.815 MB / 0.5171 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001321/0.3174, allocations: 0.6391 MB / 0.5178 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001466/0.3189, allocations: 0.6867 MB / 0.5184 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001953/0.3191, allocations: 98.5 kB / 0.5185 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009823/0.3201, allocations: 0.5105 MB / 0.519 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000545/0.3206, allocations: 0.4937 MB / 0.5195 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006226/0.3213, allocations: 0.5606 MB / 0.5201 GB, free: 14.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00167/0.323, allocations: 1.533 MB / 0.5216 GB, free: 14.05 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.323, allocations: 1.156 kB / 0.5216 GB, free: 14.05 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.323, allocations: 4.516 kB / 0.5216 GB, free: 14.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.323, allocations: 3.938 kB / 0.5216 GB, free: 14.04 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003012/0.326, allocations: 1.57 MB / 0.5231 GB, free: 13.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3261, allocations: 14.06 kB / 0.5231 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000788/0.3269, allocations: 156.2 kB / 0.5233 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.3281, allocations: 0.7274 MB / 0.524 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001628/0.3283, allocations: 174.2 kB / 0.5241 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002444/0.3285, allocations: 115.1 kB / 0.5242 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002892/0.3314, allocations: 1.534 MB / 0.5257 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.856e-05/0.3315, allocations: 1.938 kB / 0.5257 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/0.3316, allocations: 39.94 kB / 0.5258 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001657/0.3318, allocations: 66.47 kB / 0.5258 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002386/0.3342, allocations: 1.167 MB / 0.527 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00604/0.3402, allocations: 4.774 MB / 0.5316 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002941/0.3432, allocations: 1.129 MB / 0.5327 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.3446, allocations: 0.5611 MB / 0.5333 GB, free: 6.812 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.357e-05/0.3446, allocations: 11.98 kB / 0.5333 GB, free: 6.805 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001493/0.3461, allocations: 0.7148 MB / 0.534 GB, free: 6.363 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.765e-06/0.3461, allocations: 0 / 0.534 GB, free: 6.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=81): time 0.007536/0.3537, allocations: 3.189 MB / 0.5371 GB, free: 4.457 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/0.3538, allocations: 128.9 kB / 0.5372 GB, free: 4.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007195/0.3545, allocations: 0.5827 MB / 0.5378 GB, free: 3.977 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.376e-05/0.3546, allocations: 55.75 kB / 0.5379 GB, free: 3.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003489/0.355, allocations: 447.9 kB / 0.5383 GB, free: 3.535 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002366/0.3552, allocations: 279.1 kB / 0.5386 GB, free: 3.297 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002987/0.3555, allocations: 204.7 kB / 0.5388 GB, free: 3.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.3557, allocations: 391.6 kB / 0.5391 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007209/0.3564, allocations: 482 kB / 0.5396 GB, free: 2.582 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008797/0.3573, allocations: 0.7495 MB / 0.5403 GB, free: 2.004 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001621/0.3589, allocations: 1.257 MB / 0.5415 GB, free: 1.148 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.3589, allocations: 2.75 kB / 0.5415 GB, free: 1.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002502/0.3615, allocations: 1.579 MB / 0.5431 GB, free: 288 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.937e-05/0.3615, allocations: 68.86 kB / 0.5432 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001946/0.3635, allocations: 1.334 MB / 0.5445 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003984/0.3639, allocations: 113.9 kB / 0.5446 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007709/0.3647, allocations: 211.5 kB / 0.5448 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002817/0.3675, allocations: 3.345 MB / 0.548 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007357/0.3683, allocations: 76.02 kB / 0.5481 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.3684, allocations: 79.88 kB / 0.5482 GB, free: 10.99 MB / 414.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.0006044/0.369, allocations: 373.5 kB / 0.5485 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/0.3692, allocations: 83 kB / 0.5486 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002888/0.3721, allocations: 1.266 MB / 0.5499 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.3721, allocations: 3.984 kB / 0.5499 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.3721, allocations: 4 kB / 0.5499 GB, free: 9.223 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003566/0.3725, allocations: 240.1 kB / 0.5501 GB, free: 8.969 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000196/0.3727, allocations: 83.88 kB / 0.5502 GB, free: 8.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007213/0.3734, allocations: 95.86 kB / 0.5503 GB, free: 8.793 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.3736, allocations: 56.52 kB / 0.5503 GB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003393/0.377, allocations: 1.467 MB / 0.5518 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003905/0.3809, allocations: 2.042 MB / 0.5537 GB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001131/0.382, allocations: 0.5285 MB / 0.5543 GB, free: 4.672 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004621/0.3825, allocations: 398.8 kB / 0.5546 GB, free: 4.281 MB / 414.1 MB Notification: Performance of Backend: time 2.21e-07/0.3825, allocations: 0 / 0.5546 GB, free: 4.281 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002502/0.385, allocations: 1.379 MB / 0.556 GB, free: 2.863 MB / 414.1 MB Notification: Performance of SimCode: time 0.003238/0.3883, allocations: 2.457 MB / 0.5584 GB, free: 364 kB / 414.1 MB Notification: Performance of Templates: time 0.02188/0.4102, allocations: 14.06 MB / 0.5721 GB, free: 2.391 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Inverter.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches