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) 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.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 108.8 kB / 17.06 MB, free: 6.137 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.001888/0.001888, allocations: 191 kB / 18 MB, free: 5.219 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.462/1.462, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2014/0.2014, allocations: 38.04 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001346, allocations: 59.91 kB / 458.2 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4002/0.4015, allocations: 58.05 MB / 0.5041 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.009361/0.4109, allocations: 6.49 MB / 0.5105 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003391/0.4144, allocations: 1.32 MB / 0.5117 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004139/0.4148, allocations: 32.25 kB / 0.5118 GB, free: 2.555 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004328/0.4153, allocations: 125 kB / 0.5119 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001126/0.4165, allocations: 425.2 kB / 0.5123 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006423/0.4171, allocations: 230.8 kB / 0.5125 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001371/0.4185, allocations: 1.119 MB / 0.5136 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005961/0.4191, allocations: 400.6 kB / 0.514 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008677/0.42, allocations: 0.5159 MB / 0.5145 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008992/0.4209, allocations: 0.5207 MB / 0.515 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.4211, allocations: 68.62 kB / 0.5151 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.4212, allocations: 65.34 kB / 0.5151 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003842/0.4216, allocations: 333.5 kB / 0.5155 GB, free: 0.918 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004171/0.422, allocations: 407.7 kB / 0.5158 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001229/0.4233, allocations: 0.9101 MB / 0.5167 GB, free: 340 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.4233, allocations: 0 / 0.5167 GB, free: 340 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4233, allocations: 0 / 0.5167 GB, free: 340 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.4233, allocations: 0.5156 kB / 0.5167 GB, free: 340 kB / 382.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.002564/0.4259, allocations: 1.149 MB / 0.5179 GB, free: 15.54 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.4259, allocations: 8.531 kB / 0.5179 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000219/0.4262, allocations: 88.44 kB / 0.5179 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.4273, allocations: 0.6183 MB / 0.5185 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001572/0.4275, allocations: 118.7 kB / 0.5187 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001455/0.4277, allocations: 63.48 kB / 0.5187 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/0.4294, allocations: 0.8685 MB / 0.5196 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.4294, allocations: 0 / 0.5196 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.198e-05/0.4295, allocations: 27.48 kB / 0.5196 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001311/0.4296, allocations: 42.05 kB / 0.5196 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.431, allocations: 0.6218 MB / 0.5202 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004883/0.4359, allocations: 2.735 MB / 0.5229 GB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.4376, allocations: 0.9004 MB / 0.5238 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007997/0.4384, allocations: 310.9 kB / 0.5241 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.4384, allocations: 9.094 kB / 0.5241 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007552/0.4392, allocations: 352.7 kB / 0.5244 GB, free: 11.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 3.487e-06/0.4392, allocations: 0 / 0.5244 GB, free: 11.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004731/0.444, allocations: 1.969 MB / 0.5264 GB, free: 10.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.889e-05/0.444, allocations: 120 kB / 0.5265 GB, free: 10.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008227/0.4449, allocations: 0.5111 MB / 0.527 GB, free: 10.26 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.314e-05/0.4449, allocations: 40.81 kB / 0.527 GB, free: 10.22 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003468/0.4453, allocations: 352.5 kB / 0.5273 GB, free: 9.938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.4455, allocations: 143.5 kB / 0.5275 GB, free: 9.828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.4457, allocations: 120.3 kB / 0.5276 GB, free: 9.766 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002199/0.4459, allocations: 368.5 kB / 0.528 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004078/0.4463, allocations: 222.8 kB / 0.5282 GB, free: 9.359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005278/0.4469, allocations: 403.5 kB / 0.5285 GB, free: 9.074 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.4479, allocations: 0.6178 MB / 0.5292 GB, free: 8.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.4479, allocations: 6.125 kB / 0.5292 GB, free: 8.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001713/0.4496, allocations: 0.888 MB / 0.53 GB, free: 8.203 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.387e-05/0.4497, allocations: 53.52 kB / 0.5301 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.4497, allocations: 6.906 kB / 0.5301 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003548/0.4501, allocations: 87.44 kB / 0.5302 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004265/0.4505, allocations: 106.9 kB / 0.5303 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002969/0.4535, allocations: 3.269 MB / 0.5335 GB, free: 4.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004925/0.454, allocations: 32.73 kB / 0.5335 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.964e-05/0.4541, allocations: 45.5 kB / 0.5335 GB, free: 4.918 MB / 398.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.0004962/0.4546, allocations: 274 kB / 0.5338 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.1e-05/0.4547, allocations: 54.78 kB / 0.5338 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/0.4562, allocations: 0.7008 MB / 0.5345 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.4562, allocations: 4.469 kB / 0.5345 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.4562, allocations: 6.25 kB / 0.5345 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.4562, allocations: 1.156 kB / 0.5345 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002511/0.4587, allocations: 1.542 MB / 0.5361 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.4587, allocations: 1.125 kB / 0.5361 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002759/0.459, allocations: 61.06 kB / 0.5361 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002778/0.4593, allocations: 103.3 kB / 0.5362 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.098e-05/0.4594, allocations: 14.27 kB / 0.5362 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002556/0.4619, allocations: 3.26 MB / 0.5394 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.462, allocations: 1.125 kB / 0.5394 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/0.4639, allocations: 1.06 MB / 0.5404 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002523/0.4642, allocations: 176.5 kB / 0.5406 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.315e-05/0.4643, allocations: 28.02 kB / 0.5406 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.4646, allocations: 39.34 kB / 0.5407 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.845e-05/0.4647, allocations: 32.91 kB / 0.5407 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.776e-05/0.4648, allocations: 18.89 kB / 0.5407 GB, free: 14.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004127/0.4652, allocations: 359.9 kB / 0.5411 GB, free: 14.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4652, allocations: 4 kB / 0.5411 GB, free: 14.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007418/0.4659, allocations: 146.2 kB / 0.5412 GB, free: 14.68 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.0001799/0.4661, allocations: 126 kB / 0.5413 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.4677, allocations: 0.9107 MB / 0.5422 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4677, allocations: 1.156 kB / 0.5422 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009287/0.4687, allocations: 0.4923 MB / 0.5427 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008134/0.4695, allocations: 149 kB / 0.5428 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.4721, allocations: 1.485 MB / 0.5443 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006765/0.4728, allocations: 0.9713 MB / 0.5452 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003416/0.4732, allocations: 112 kB / 0.5453 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.4733, allocations: 40.75 kB / 0.5454 GB, free: 11.69 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4733, allocations: 0 / 0.5454 GB, free: 11.69 MB / 414.1 MB Notification: Performance of Templates: time 0.01585/0.4891, allocations: 7.556 MB / 0.5528 GB, free: 5.453 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (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) 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) Reference file matches