Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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.Inverters.Chopper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterDCin.i|meterDCin.p|meterDCin.v|meterDCout.i|meterDCout.p|meterDCout.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterDCin.i|meterDCin.p|meterDCin.v|meterDCout.i|meterDCout.p|meterDCout.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.00124, allocations: 109.9 kB / 17.06 MB, free: 6.012 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.001124/0.001124, allocations: 191 kB / 18 MB, free: 5.094 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.443/1.443, allocations: 222.9 MB / 241.7 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.189/0.189, allocations: 38.03 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 59.91 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4394/0.4406, allocations: 58.06 MB / 0.5041 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.008168/0.4488, allocations: 6.591 MB / 0.5105 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003279/0.4521, allocations: 1.742 MB / 0.5122 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005447/0.4527, allocations: 23.44 kB / 0.5123 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008158/0.4535, allocations: 228.9 kB / 0.5125 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001047/0.4547, allocations: 388.2 kB / 0.5128 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005473/0.4552, allocations: 227.7 kB / 0.5131 GB, free: 1.488 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001033/0.4563, allocations: 1.075 MB / 0.5141 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005827/0.4569, allocations: 0.5125 MB / 0.5146 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006573/0.4575, allocations: 476.3 kB / 0.5151 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006863/0.4582, allocations: 486.5 kB / 0.5155 GB, free: 336 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.4584, allocations: 83.81 kB / 0.5156 GB, free: 336 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.4585, allocations: 89.47 kB / 0.5157 GB, free: 332 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002801/0.4588, allocations: 277.2 kB / 0.516 GB, free: 200 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004163/0.4592, allocations: 409.4 kB / 0.5164 GB, free: 15.94 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001473/0.4607, allocations: 1.041 MB / 0.5174 GB, free: 15.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.4607, allocations: 0 / 0.5174 GB, free: 15.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4607, allocations: 0.5 kB / 0.5174 GB, free: 15.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.75e-05/0.4608, allocations: 0 / 0.5174 GB, free: 15.55 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.002462/0.4632, allocations: 1.01 MB / 0.5184 GB, free: 14.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.4633, allocations: 13.58 kB / 0.5184 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.4634, allocations: 77.55 kB / 0.5184 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.4646, allocations: 0.661 MB / 0.5191 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001328/0.4647, allocations: 107.8 kB / 0.5192 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.4648, allocations: 67.67 kB / 0.5193 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.4661, allocations: 0.7504 MB / 0.52 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.4661, allocations: 0 / 0.52 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.273e-05/0.4662, allocations: 25.94 kB / 0.52 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.4662, allocations: 14.59 kB / 0.52 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.4674, allocations: 0.606 MB / 0.5206 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00334/0.4708, allocations: 2.456 MB / 0.523 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000837/0.4716, allocations: 421.3 kB / 0.5234 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004074/0.472, allocations: 199.5 kB / 0.5236 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.934e-05/0.4721, allocations: 11.52 kB / 0.5236 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004306/0.4725, allocations: 238.3 kB / 0.5239 GB, free: 11.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=36): time 2.234e-06/0.4725, allocations: 0 / 0.5239 GB, free: 11.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.002981/0.4755, allocations: 0.8806 MB / 0.5247 GB, free: 11.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.081e-05/0.4756, allocations: 138.9 kB / 0.5248 GB, free: 11.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004802/0.4761, allocations: 400.8 kB / 0.5252 GB, free: 10.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.4762, allocations: 36.38 kB / 0.5253 GB, free: 10.87 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002597/0.4764, allocations: 315.9 kB / 0.5256 GB, free: 10.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.754e-05/0.4765, allocations: 120.8 kB / 0.5257 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.4767, allocations: 76.55 kB / 0.5257 GB, free: 10.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.4768, allocations: 360 kB / 0.5261 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000299/0.4771, allocations: 133.8 kB / 0.5262 GB, free: 10.1 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003667/0.4775, allocations: 244.7 kB / 0.5265 GB, free: 9.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.479, allocations: 0.6531 MB / 0.5271 GB, free: 9.559 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.479, allocations: 5.219 kB / 0.5271 GB, free: 9.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001027/0.4801, allocations: 0.5194 MB / 0.5276 GB, free: 9.324 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.4801, allocations: 8.141 kB / 0.5276 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.4801, allocations: 4.281 kB / 0.5276 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004706/0.4806, allocations: 149.2 kB / 0.5278 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.4809, allocations: 76.06 kB / 0.5278 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003504/0.4844, allocations: 2.265 MB / 0.53 GB, free: 7.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004045/0.4848, allocations: 54.03 kB / 0.5301 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.372e-05/0.4849, allocations: 16.75 kB / 0.5301 GB, free: 7.348 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t1,$PRE.chopper.modulator.t0,chopper.chopper.diode.on,chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.gate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003837/0.4853, allocations: 253.4 kB / 0.5304 GB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.407e-05/0.4854, allocations: 47.02 kB / 0.5304 GB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001244/0.4866, allocations: 473.8 kB / 0.5308 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.4866, allocations: 7.5 kB / 0.5309 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.4866, allocations: 2.266 kB / 0.5309 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.4867, allocations: 2.938 kB / 0.5309 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009598/0.4876, allocations: 0.6764 MB / 0.5315 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.4876, allocations: 5.656 kB / 0.5315 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002804/0.4879, allocations: 51 kB / 0.5316 GB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004093/0.4883, allocations: 147.4 kB / 0.5317 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.4884, allocations: 6 kB / 0.5317 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003191/0.4916, allocations: 2.25 MB / 0.5339 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.4916, allocations: 1.094 kB / 0.5339 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.4932, allocations: 0.6891 MB / 0.5346 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002384/0.4934, allocations: 151.6 kB / 0.5347 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.22e-05/0.4935, allocations: 10.59 kB / 0.5347 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.4937, allocations: 19.77 kB / 0.5348 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.4939, allocations: 43.59 kB / 0.5348 GB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.452e-05/0.4939, allocations: 12.22 kB / 0.5348 GB, free: 3.742 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000374/0.4943, allocations: 278.2 kB / 0.5351 GB, free: 3.574 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4943, allocations: 0 / 0.5351 GB, free: 3.574 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007807/0.4951, allocations: 163.9 kB / 0.5352 GB, free: 3.535 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001491/0.4952, allocations: 107.9 kB / 0.5353 GB, free: 3.434 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.4965, allocations: 0.5109 MB / 0.5358 GB, free: 3.121 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4965, allocations: 2.312 kB / 0.5358 GB, free: 3.121 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005652/0.4971, allocations: 335.5 kB / 0.5362 GB, free: 2.895 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006895/0.4978, allocations: 158.3 kB / 0.5363 GB, free: 2.812 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002966/0.5007, allocations: 1.255 MB / 0.5375 GB, free: 1.996 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008886/0.5016, allocations: 0.9276 MB / 0.5384 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003612/0.502, allocations: 84.94 kB / 0.5385 GB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.5021, allocations: 34 kB / 0.5386 GB, free: 1.133 MB / 398.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5021, allocations: 1.156 kB / 0.5386 GB, free: 1.133 MB / 398.1 MB Notification: Performance of Templates: time 0.01789/0.52, allocations: 8.292 MB / 0.5467 GB, free: 12.12 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches