Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_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.001077/0.001077, allocations: 107.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.001133/0.001133, allocations: 188 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.414/1.414, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1757/0.1757, allocations: 38.04 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 59.91 kB / 458.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3677, allocations: 58.06 MB / 0.5041 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.006923/0.3747, allocations: 6.581 MB / 0.5105 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00278/0.3775, allocations: 1.741 MB / 0.5122 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004714/0.378, allocations: 24.47 kB / 0.5122 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007177/0.3787, allocations: 228 kB / 0.5125 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008652/0.3796, allocations: 388.3 kB / 0.5128 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005151/0.3801, allocations: 231 kB / 0.5131 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.3812, allocations: 1.071 MB / 0.5141 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006324/0.3818, allocations: 0.5163 MB / 0.5146 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006739/0.3825, allocations: 480.7 kB / 0.5151 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006195/0.3831, allocations: 484.8 kB / 0.5155 GB, free: 324 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.3833, allocations: 85.53 kB / 0.5156 GB, free: 324 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001434/0.3834, allocations: 85.53 kB / 0.5157 GB, free: 324 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002627/0.3837, allocations: 285.3 kB / 0.516 GB, free: 184 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003991/0.3841, allocations: 405.8 kB / 0.5163 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001353/0.3855, allocations: 1.036 MB / 0.5174 GB, free: 15.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3855, allocations: 0.5 kB / 0.5174 GB, free: 15.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.427e-06/0.3855, allocations: 5.234 kB / 0.5174 GB, free: 15.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.967e-05/0.3855, allocations: 3.938 kB / 0.5174 GB, free: 15.54 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.002275/0.3878, allocations: 1.009 MB / 0.5184 GB, free: 14.85 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.3878, allocations: 9.531 kB / 0.5184 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.388, allocations: 75.38 kB / 0.5184 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/0.3892, allocations: 0.6591 MB / 0.5191 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.3893, allocations: 109.1 kB / 0.5192 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.3895, allocations: 63.83 kB / 0.5192 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.3908, allocations: 0.7478 MB / 0.52 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.3908, allocations: 0 / 0.52 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.547e-05/0.3909, allocations: 22.53 kB / 0.52 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.3909, allocations: 19.78 kB / 0.52 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.3923, allocations: 0.602 MB / 0.5206 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003914/0.3962, allocations: 2.452 MB / 0.523 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009189/0.3971, allocations: 424.3 kB / 0.5234 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004318/0.3976, allocations: 207.6 kB / 0.5236 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.3976, allocations: 4.25 kB / 0.5236 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004953/0.3981, allocations: 238.1 kB / 0.5238 GB, free: 11.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=36): time 1.794e-06/0.3981, allocations: 0 / 0.5238 GB, free: 11.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.003292/0.4014, allocations: 0.8808 MB / 0.5247 GB, free: 11.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.685e-05/0.4015, allocations: 133.9 kB / 0.5248 GB, free: 11.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004755/0.402, allocations: 405.3 kB / 0.5252 GB, free: 10.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.636e-05/0.402, allocations: 31.86 kB / 0.5252 GB, free: 10.87 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002211/0.4023, allocations: 321.6 kB / 0.5255 GB, free: 10.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.951e-05/0.4024, allocations: 124.7 kB / 0.5257 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.4025, allocations: 79.19 kB / 0.5257 GB, free: 10.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.4027, allocations: 352.3 kB / 0.5261 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003082/0.403, allocations: 130.1 kB / 0.5262 GB, free: 10.1 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003743/0.4034, allocations: 252.5 kB / 0.5264 GB, free: 9.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.4049, allocations: 0.6568 MB / 0.5271 GB, free: 9.555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.4049, allocations: 5.219 kB / 0.5271 GB, free: 9.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001226/0.4062, allocations: 0.5201 MB / 0.5276 GB, free: 9.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.4062, allocations: 6.469 kB / 0.5276 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.4062, allocations: 3.969 kB / 0.5276 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000509/0.4067, allocations: 163.1 kB / 0.5278 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003126/0.4071, allocations: 75.89 kB / 0.5278 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003866/0.4109, allocations: 2.253 MB / 0.53 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004604/0.4114, allocations: 53.75 kB / 0.5301 GB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.4115, allocations: 21.58 kB / 0.5301 GB, free: 7.34 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.000444/0.4119, allocations: 244.9 kB / 0.5303 GB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.412, allocations: 45.86 kB / 0.5304 GB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001368/0.4134, allocations: 483.2 kB / 0.5308 GB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.4134, allocations: 8.75 kB / 0.5308 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.4134, allocations: 5.188 kB / 0.5309 GB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.4135, allocations: 6.656 kB / 0.5309 GB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009248/0.4144, allocations: 0.6747 MB / 0.5315 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.4144, allocations: 5.406 kB / 0.5315 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002466/0.4147, allocations: 41.44 kB / 0.5316 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004433/0.4151, allocations: 149.8 kB / 0.5317 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.985e-05/0.4151, allocations: 11.48 kB / 0.5317 GB, free: 6.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003316/0.4185, allocations: 2.247 MB / 0.5339 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.4185, allocations: 1.062 kB / 0.5339 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.4202, allocations: 0.6842 MB / 0.5346 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.4204, allocations: 150.7 kB / 0.5347 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.468e-05/0.4205, allocations: 19.7 kB / 0.5347 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002471/0.4207, allocations: 19.52 kB / 0.5348 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.4208, allocations: 35.27 kB / 0.5348 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.4208, allocations: 12.34 kB / 0.5348 GB, free: 3.766 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003208/0.4212, allocations: 278.5 kB / 0.5351 GB, free: 3.598 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4212, allocations: 0 / 0.5351 GB, free: 3.598 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007144/0.4219, allocations: 162.8 kB / 0.5352 GB, free: 3.559 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.0001419/0.4221, allocations: 107.4 kB / 0.5353 GB, free: 3.457 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.4232, allocations: 0.5103 MB / 0.5358 GB, free: 3.148 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.4232, allocations: 0 / 0.5358 GB, free: 3.148 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000609/0.4238, allocations: 336.2 kB / 0.5361 GB, free: 2.922 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007038/0.4245, allocations: 164.5 kB / 0.5363 GB, free: 2.832 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002435/0.4269, allocations: 1.252 MB / 0.5375 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006787/0.4276, allocations: 0.9276 MB / 0.5384 GB, free: 1.199 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003037/0.428, allocations: 80.56 kB / 0.5385 GB, free: 1.164 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.703e-05/0.428, allocations: 34.91 kB / 0.5385 GB, free: 1.156 MB / 398.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4281, allocations: 0 / 0.5385 GB, free: 1.156 MB / 398.1 MB Notification: Performance of Templates: time 0.01547/0.4435, allocations: 8.292 MB / 0.5466 GB, free: 12.17 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)