Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_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.001294/0.001294, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.00123/0.00123, allocations: 200 kB / 18.01 MB, free: 5.055 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.361/1.361, 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/package.mo): time 0.1746/0.1746, allocations: 38.04 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 63.91 kB / 458.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3807/0.3821, allocations: 58.07 MB / 0.5041 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.01277/0.3949, allocations: 6.488 MB / 0.5104 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004242/0.3992, allocations: 1.319 MB / 0.5117 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006477/0.3999, allocations: 28.22 kB / 0.5118 GB, free: 2.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006024/0.4005, allocations: 124.8 kB / 0.5119 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001763/0.4023, allocations: 424.6 kB / 0.5123 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.4033, allocations: 239.5 kB / 0.5125 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002091/0.4054, allocations: 1.117 MB / 0.5136 GB, free: 1.484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008341/0.4063, allocations: 406.9 kB / 0.514 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001386/0.4077, allocations: 0.5107 MB / 0.5145 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.409, allocations: 0.5182 MB / 0.515 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001664/0.4092, allocations: 69.56 kB / 0.5151 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002274/0.4094, allocations: 65.16 kB / 0.5151 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005376/0.41, allocations: 336.8 kB / 0.5154 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006039/0.4106, allocations: 400.2 kB / 0.5158 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001655/0.4123, allocations: 0.9164 MB / 0.5167 GB, free: 188 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.4123, allocations: 0 / 0.5167 GB, free: 188 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4123, allocations: 1.188 kB / 0.5167 GB, free: 188 kB / 382.1 MB Notification: Performance of Transformations before backend: time 2.822e-05/0.4124, allocations: 0 / 0.5167 GB, free: 188 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.004006/0.4164, allocations: 1.149 MB / 0.5178 GB, free: 15.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.4165, allocations: 13.39 kB / 0.5179 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003071/0.4168, allocations: 83.7 kB / 0.5179 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001838/0.4187, allocations: 0.6095 MB / 0.5185 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002133/0.4189, allocations: 119.2 kB / 0.5186 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001949/0.4191, allocations: 64.11 kB / 0.5187 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00284/0.422, allocations: 0.8674 MB / 0.5196 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/0.422, allocations: 1.828 kB / 0.5196 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/0.4221, allocations: 30.2 kB / 0.5196 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000216/0.4224, allocations: 42.09 kB / 0.5196 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002467/0.4249, allocations: 0.6214 MB / 0.5202 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005697/0.4306, allocations: 2.74 MB / 0.5229 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/0.4325, allocations: 0.9003 MB / 0.5238 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008239/0.4333, allocations: 312.8 kB / 0.5241 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.162e-05/0.4333, allocations: 8.219 kB / 0.5241 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008218/0.4342, allocations: 344.4 kB / 0.5244 GB, free: 11.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.244e-06/0.4342, allocations: 5.062 kB / 0.5244 GB, free: 11.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.00466/0.4389, allocations: 1.977 MB / 0.5264 GB, free: 10.47 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.4389, allocations: 119.4 kB / 0.5265 GB, free: 10.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006682/0.4396, allocations: 0.5089 MB / 0.527 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.133e-05/0.4397, allocations: 39.8 kB / 0.527 GB, free: 10.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003084/0.44, allocations: 353.1 kB / 0.5273 GB, free: 9.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.4401, allocations: 147.2 kB / 0.5275 GB, free: 9.676 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/0.4403, allocations: 119.8 kB / 0.5276 GB, free: 9.613 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.4405, allocations: 374.1 kB / 0.528 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003778/0.4409, allocations: 221.5 kB / 0.5282 GB, free: 9.203 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004538/0.4413, allocations: 398.2 kB / 0.5285 GB, free: 8.922 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007899/0.4421, allocations: 0.6274 MB / 0.5292 GB, free: 8.496 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4421, allocations: 1.094 kB / 0.5292 GB, free: 8.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001318/0.4435, allocations: 0.8889 MB / 0.53 GB, free: 8.047 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.076e-05/0.4435, allocations: 53.23 kB / 0.5301 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.4436, allocations: 6.125 kB / 0.5301 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003099/0.4439, allocations: 90.62 kB / 0.5302 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003987/0.4443, allocations: 107.1 kB / 0.5303 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002609/0.4469, allocations: 3.263 MB / 0.5335 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000481/0.4474, allocations: 36.27 kB / 0.5335 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.425e-05/0.4475, allocations: 40.91 kB / 0.5335 GB, free: 4.703 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.0004517/0.4479, allocations: 262.5 kB / 0.5338 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.942e-05/0.448, allocations: 62.28 kB / 0.5338 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/0.4496, allocations: 0.7016 MB / 0.5345 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.4496, allocations: 4.875 kB / 0.5345 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.4496, allocations: 6.281 kB / 0.5345 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.4496, allocations: 0 / 0.5345 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002637/0.4523, allocations: 1.547 MB / 0.536 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.4523, allocations: 1.125 kB / 0.536 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000297/0.4526, allocations: 57.56 kB / 0.5361 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002906/0.4529, allocations: 100 kB / 0.5362 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.453, allocations: 13.17 kB / 0.5362 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002511/0.4555, allocations: 3.252 MB / 0.5394 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.4555, allocations: 5.094 kB / 0.5394 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/0.4577, allocations: 1.059 MB / 0.5404 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002995/0.458, allocations: 177.2 kB / 0.5406 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.4581, allocations: 32.11 kB / 0.5406 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000418/0.4585, allocations: 39.16 kB / 0.5407 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.804e-05/0.4586, allocations: 33.81 kB / 0.5407 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.665e-05/0.4587, allocations: 21.52 kB / 0.5407 GB, free: 14.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004557/0.4591, allocations: 355.7 kB / 0.5411 GB, free: 14.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4592, allocations: 1.156 kB / 0.5411 GB, free: 14.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000782/0.4599, allocations: 149.3 kB / 0.5412 GB, free: 14.47 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.0001641/0.4601, allocations: 134.5 kB / 0.5413 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001669/0.4618, allocations: 0.9099 MB / 0.5422 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4618, allocations: 1.281 kB / 0.5422 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009958/0.4628, allocations: 0.4889 MB / 0.5427 GB, free: 13.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008757/0.4637, allocations: 150.2 kB / 0.5428 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/0.4664, allocations: 1.477 MB / 0.5443 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005932/0.467, allocations: 0.9758 MB / 0.5452 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003286/0.4673, allocations: 103.6 kB / 0.5453 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.4674, allocations: 44.25 kB / 0.5454 GB, free: 11.48 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4675, allocations: 0 / 0.5454 GB, free: 11.48 MB / 414.1 MB Notification: Performance of Templates: time 0.01359/0.481, allocations: 7.549 MB / 0.5527 GB, free: 5.219 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)