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.001072/0.001072, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001135/0.001135, allocations: 194.9 kB / 18 MB, free: 5.172 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.46/1.46, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1793/0.1793, allocations: 38.03 MB / 329.9 MB, free: 8.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001696, allocations: 63.91 kB / 458.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4228/0.4245, allocations: 58.05 MB / 0.5041 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.009732/0.4343, allocations: 6.588 MB / 0.5105 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003594/0.4379, allocations: 1.749 MB / 0.5122 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009235/0.4388, allocations: 27.12 kB / 0.5123 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001035/0.4399, allocations: 220.4 kB / 0.5125 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001482/0.4414, allocations: 383.7 kB / 0.5128 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007485/0.4422, allocations: 228.4 kB / 0.5131 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001798/0.444, allocations: 1.071 MB / 0.5141 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008297/0.4449, allocations: 0.51 MB / 0.5146 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001142/0.446, allocations: 469.7 kB / 0.515 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001328/0.4474, allocations: 488 kB / 0.5155 GB, free: 376 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003571/0.4477, allocations: 85.59 kB / 0.5156 GB, free: 376 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005294/0.4483, allocations: 85.03 kB / 0.5157 GB, free: 376 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004766/0.4488, allocations: 273.7 kB / 0.5159 GB, free: 248 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007372/0.4495, allocations: 407.4 kB / 0.5163 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001821/0.4513, allocations: 1.043 MB / 0.5173 GB, free: 15.6 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.4514, allocations: 0.5 kB / 0.5173 GB, free: 15.6 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4514, allocations: 0 / 0.5173 GB, free: 15.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.238e-05/0.4514, allocations: 0.5625 kB / 0.5173 GB, free: 15.6 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.002354/0.4538, allocations: 1.032 MB / 0.5183 GB, free: 14.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.4538, allocations: 14.16 kB / 0.5184 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.454, allocations: 81.66 kB / 0.5184 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001195/0.4552, allocations: 0.6618 MB / 0.5191 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001532/0.4553, allocations: 116.9 kB / 0.5192 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.4555, allocations: 63.03 kB / 0.5193 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.457, allocations: 0.7443 MB / 0.52 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.4571, allocations: 7.875 kB / 0.52 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.75e-05/0.4571, allocations: 26.62 kB / 0.52 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/0.4572, allocations: 15.03 kB / 0.52 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001501/0.4587, allocations: 0.5983 MB / 0.5206 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004379/0.4631, allocations: 2.457 MB / 0.523 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009033/0.464, allocations: 435.8 kB / 0.5234 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004229/0.4644, allocations: 203.1 kB / 0.5236 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.684e-05/0.4645, allocations: 5.062 kB / 0.5236 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005003/0.465, allocations: 240.5 kB / 0.5239 GB, free: 11.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=36): time 4.178e-06/0.465, allocations: 3.984 kB / 0.5239 GB, free: 11.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.003337/0.4683, allocations: 0.8744 MB / 0.5247 GB, free: 11.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.812e-05/0.4684, allocations: 142.5 kB / 0.5249 GB, free: 11.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007248/0.4692, allocations: 403.8 kB / 0.5252 GB, free: 10.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/0.4692, allocations: 32.14 kB / 0.5253 GB, free: 10.87 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003231/0.4696, allocations: 325.5 kB / 0.5256 GB, free: 10.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.4697, allocations: 128.9 kB / 0.5257 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.4698, allocations: 76.77 kB / 0.5258 GB, free: 10.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.4701, allocations: 356.7 kB / 0.5261 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003037/0.4704, allocations: 126 kB / 0.5262 GB, free: 10.1 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003801/0.4708, allocations: 245.4 kB / 0.5265 GB, free: 9.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00152/0.4723, allocations: 0.6668 MB / 0.5271 GB, free: 9.547 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4723, allocations: 1.438 kB / 0.5271 GB, free: 9.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001215/0.4735, allocations: 0.5289 MB / 0.5276 GB, free: 9.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.4736, allocations: 6.844 kB / 0.5276 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.4736, allocations: 3.219 kB / 0.5276 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004934/0.4741, allocations: 146.7 kB / 0.5278 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003223/0.4744, allocations: 76.19 kB / 0.5279 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003851/0.4783, allocations: 2.265 MB / 0.5301 GB, free: 7.371 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000493/0.4788, allocations: 61.56 kB / 0.5301 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.332e-05/0.4788, allocations: 17.12 kB / 0.5301 GB, free: 7.328 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.0004627/0.4793, allocations: 245.5 kB / 0.5304 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.378e-05/0.4794, allocations: 50.5 kB / 0.5304 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/0.4808, allocations: 482.2 kB / 0.5309 GB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.4808, allocations: 8.5 kB / 0.5309 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4808, allocations: 2.156 kB / 0.5309 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.4808, allocations: 3.312 kB / 0.5309 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.482, allocations: 0.676 MB / 0.5316 GB, free: 6.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.482, allocations: 5.5 kB / 0.5316 GB, free: 6.402 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002405/0.4822, allocations: 43.83 kB / 0.5316 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004457/0.4827, allocations: 150.2 kB / 0.5318 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.4827, allocations: 7 kB / 0.5318 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003539/0.4863, allocations: 2.254 MB / 0.534 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.4863, allocations: 6.375 kB / 0.534 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.4879, allocations: 0.6839 MB / 0.5346 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002174/0.4881, allocations: 156.8 kB / 0.5348 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.082e-05/0.4882, allocations: 10.31 kB / 0.5348 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.4884, allocations: 24.77 kB / 0.5348 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.4886, allocations: 35.64 kB / 0.5349 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.4886, allocations: 6.562 kB / 0.5349 GB, free: 3.691 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004791/0.4891, allocations: 287.8 kB / 0.5351 GB, free: 3.516 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.794e-06/0.4891, allocations: 0 / 0.5351 GB, free: 3.516 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007801/0.4899, allocations: 166.9 kB / 0.5353 GB, free: 3.473 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.0001534/0.49, allocations: 103.8 kB / 0.5354 GB, free: 3.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001268/0.4913, allocations: 0.5068 MB / 0.5359 GB, free: 3.066 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.812e-06/0.4913, allocations: 5.094 kB / 0.5359 GB, free: 3.062 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006294/0.492, allocations: 335.9 kB / 0.5362 GB, free: 2.836 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000792/0.4928, allocations: 156 kB / 0.5364 GB, free: 2.754 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002717/0.4955, allocations: 1.27 MB / 0.5376 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007048/0.4962, allocations: 0.9278 MB / 0.5385 GB, free: 1.102 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002954/0.4965, allocations: 81.08 kB / 0.5386 GB, free: 1.066 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.617e-05/0.4966, allocations: 38.39 kB / 0.5386 GB, free: 1.055 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4966, allocations: 0 / 0.5386 GB, free: 1.055 MB / 398.1 MB Notification: Performance of Templates: time 0.01712/0.5138, allocations: 8.3 MB / 0.5467 GB, free: 12.05 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)