Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,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.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,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.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 114.9 kB / 17.74 MB, free: 5.293 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.001889/0.001889, allocations: 188.4 kB / 18.67 MB, free: 4.375 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 / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1804/0.1804, allocations: 38.04 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 63.89 kB / 458.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3544, allocations: 58.05 MB / 0.5048 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.00729/0.3618, allocations: 6.497 MB / 0.5111 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00394/0.3657, allocations: 2.435 MB / 0.5135 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004956/0.3663, allocations: 25.06 kB / 0.5135 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.3675, allocations: 439.6 kB / 0.5139 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001554/0.3691, allocations: 0.5944 MB / 0.5145 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.3704, allocations: 497.4 kB / 0.515 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002259/0.3727, allocations: 1.96 MB / 0.5169 GB, free: 15.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.374, allocations: 0.8641 MB / 0.5177 GB, free: 15.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00167/0.3757, allocations: 0.7853 MB / 0.5185 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001779/0.3775, allocations: 0.963 MB / 0.5194 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003223/0.3778, allocations: 160.4 kB / 0.5196 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001442/0.3792, allocations: 0.6507 MB / 0.5202 GB, free: 14.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008605/0.3801, allocations: 0.6419 MB / 0.5209 GB, free: 14.47 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009257/0.3811, allocations: 0.672 MB / 0.5215 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002908/0.384, allocations: 2.036 MB / 0.5235 GB, free: 13.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.384, allocations: 4.656 kB / 0.5235 GB, free: 13.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.384, allocations: 3.938 kB / 0.5235 GB, free: 13.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.677e-05/0.384, allocations: 0 / 0.5235 GB, free: 13.37 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.005437/0.3895, allocations: 1.9 MB / 0.5254 GB, free: 12.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.3895, allocations: 14.56 kB / 0.5254 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008145/0.3904, allocations: 164.1 kB / 0.5255 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002312/0.3927, allocations: 0.9718 MB / 0.5265 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000614/0.3933, allocations: 0.497 MB / 0.527 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002855/0.3936, allocations: 107.9 kB / 0.5271 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004317/0.3979, allocations: 2.01 MB / 0.529 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.398, allocations: 1.062 kB / 0.529 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000148/0.3981, allocations: 45.05 kB / 0.5291 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002311/0.3984, allocations: 88.3 kB / 0.5292 GB, free: 9.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00525/0.4036, allocations: 2.244 MB / 0.5314 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01019/0.4139, allocations: 5.657 MB / 0.5369 GB, free: 4.973 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004832/0.4187, allocations: 1.792 MB / 0.5386 GB, free: 4.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00292/0.4217, allocations: 1.149 MB / 0.5398 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001112/0.4218, allocations: 14.64 kB / 0.5398 GB, free: 3.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003232/0.4251, allocations: 1.391 MB / 0.5411 GB, free: 2.629 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 3.647e-06/0.4251, allocations: 0 / 0.5411 GB, free: 2.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.0145/0.4396, allocations: 5.63 MB / 0.5466 GB, free: 13.26 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.093e-05/0.4397, allocations: 98.11 kB / 0.5467 GB, free: 13.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007369/0.4405, allocations: 0.4939 MB / 0.5472 GB, free: 12.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002208/0.4407, allocations: 57.7 kB / 0.5473 GB, free: 12.58 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003467/0.4411, allocations: 368.6 kB / 0.5476 GB, free: 12.22 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004946/0.4416, allocations: 414 kB / 0.548 GB, free: 11.81 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005312/0.4421, allocations: 222.8 kB / 0.5482 GB, free: 11.58 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.4423, allocations: 402.8 kB / 0.5486 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002155/0.4445, allocations: 1.025 MB / 0.5496 GB, free: 10.16 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002262/0.4468, allocations: 1.18 MB / 0.5508 GB, free: 8.938 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004363/0.4511, allocations: 2.043 MB / 0.5528 GB, free: 6.848 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.4512, allocations: 0 / 0.5528 GB, free: 6.848 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01146/0.4626, allocations: 3.895 MB / 0.5566 GB, free: 2.934 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001276/0.4628, allocations: 61.67 kB / 0.5566 GB, free: 2.867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/0.4628, allocations: 4 kB / 0.5566 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006067/0.4689, allocations: 2.067 MB / 0.5586 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.47, allocations: 199.7 kB / 0.5588 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02685/0.4969, allocations: 11.29 MB / 0.5699 GB, free: 5.156 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/0.4986, allocations: 163.8 kB / 0.57 GB, free: 4.996 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004074/0.499, allocations: 83.86 kB / 0.5701 GB, free: 4.914 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.001105/0.5001, allocations: 373.5 kB / 0.5704 GB, free: 4.539 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004588/0.5006, allocations: 82.98 kB / 0.5705 GB, free: 4.457 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006315/0.5069, allocations: 2.365 MB / 0.5728 GB, free: 2.082 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.393e-05/0.507, allocations: 27.98 kB / 0.5729 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.507, allocations: 128 / 0.5729 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/0.507, allocations: 11.98 kB / 0.5729 GB, free: 2.043 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009246/0.5163, allocations: 4.097 MB / 0.5769 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.5163, allocations: 4.25 kB / 0.5769 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01105/0.5274, allocations: 2.017 MB / 0.5789 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.476e-05/0.5275, allocations: 4 kB / 0.5789 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003522/0.5278, allocations: 39.91 kB / 0.5789 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-05/0.5278, allocations: 15.92 kB / 0.5789 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.5279, allocations: 4 kB / 0.5789 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009113/0.537, allocations: 3.859 MB / 0.5827 GB, free: 7.867 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007917/0.5378, allocations: 344 kB / 0.583 GB, free: 7.512 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003898/0.5382, allocations: 91.88 kB / 0.5831 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/0.5398, allocations: 183.7 kB / 0.5833 GB, free: 7.242 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004558/0.5402, allocations: 192.7 kB / 0.5835 GB, free: 7.055 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/0.5404, allocations: 39.98 kB / 0.5835 GB, free: 7.016 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005445/0.541, allocations: 350.8 kB / 0.5838 GB, free: 6.672 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.541, allocations: 0 / 0.5838 GB, free: 6.672 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001709/0.5427, allocations: 359.9 kB / 0.5842 GB, free: 6.32 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005557/0.5433, allocations: 221.2 kB / 0.5844 GB, free: 6.094 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006983/0.5502, allocations: 2.994 MB / 0.5873 GB, free: 3.074 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.5503, allocations: 0 / 0.5873 GB, free: 3.074 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006112/0.5564, allocations: 1.891 MB / 0.5892 GB, free: 1.184 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.558, allocations: 179.7 kB / 0.5893 GB, free: 1.012 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008308/0.5663, allocations: 3.425 MB / 0.5927 GB, free: 13.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009399/0.5673, allocations: 1.14 MB / 0.5938 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006139/0.5679, allocations: 79.42 kB / 0.5939 GB, free: 12.29 MB / 462.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5679, allocations: 0 / 0.5939 GB, free: 12.29 MB / 462.1 MB Notification: Performance of Templates: time 0.02961/0.5975, allocations: 19.25 MB / 0.6127 GB, free: 9.078 MB / 478.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches