Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.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.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 110.6 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.001195/0.001196, allocations: 194.8 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.382/1.382, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1776/0.1776, allocations: 38.04 MB / 329.9 MB, free: 8.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 63.91 kB / 458.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4018/0.4029, allocations: 58.06 MB / 0.5041 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.009826/0.4127, allocations: 7.566 MB / 0.5115 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005197/0.418, allocations: 2.322 MB / 0.5137 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006327/0.4187, allocations: 25.19 kB / 0.5138 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002217/0.4209, allocations: 0.8552 MB / 0.5146 GB, free: 288 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001351/0.4223, allocations: 0.5032 MB / 0.5151 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001573/0.4239, allocations: 451.6 kB / 0.5155 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001881/0.4258, allocations: 1.315 MB / 0.5168 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00112/0.4269, allocations: 0.6913 MB / 0.5175 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001194/0.4281, allocations: 0.5671 MB / 0.518 GB, free: 14.67 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.4295, allocations: 0.6823 MB / 0.5187 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001724/0.4297, allocations: 81.88 kB / 0.5188 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008173/0.4305, allocations: 268.5 kB / 0.519 GB, free: 14.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007482/0.4313, allocations: 0.5107 MB / 0.5195 GB, free: 14.17 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007585/0.432, allocations: 0.5458 MB / 0.5201 GB, free: 13.85 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002187/0.4342, allocations: 1.326 MB / 0.5214 GB, free: 13.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.212e-05/0.4343, allocations: 0 / 0.5214 GB, free: 13.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.839e-06/0.4343, allocations: 5.219 kB / 0.5214 GB, free: 13.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.025e-05/0.4343, allocations: 0 / 0.5214 GB, free: 13.35 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003995/0.4383, allocations: 1.366 MB / 0.5227 GB, free: 12.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.4384, allocations: 13.98 kB / 0.5227 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001283/0.4397, allocations: 172.6 kB / 0.5229 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.4412, allocations: 0.7455 MB / 0.5236 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.549e-05/0.4413, allocations: 74.05 kB / 0.5237 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002771/0.4416, allocations: 101.5 kB / 0.5238 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002508/0.4441, allocations: 1.217 MB / 0.525 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.681e-05/0.4441, allocations: 16.45 kB / 0.525 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.4442, allocations: 36.92 kB / 0.525 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002913/0.4445, allocations: 61.44 kB / 0.5251 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002404/0.447, allocations: 1.008 MB / 0.5261 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008315/0.4553, allocations: 4.768 MB / 0.5307 GB, free: 7.461 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.4565, allocations: 0.6706 MB / 0.5314 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006539/0.4572, allocations: 451 kB / 0.5318 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.461e-05/0.4573, allocations: 18.88 kB / 0.5318 GB, free: 6.859 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008763/0.4582, allocations: 0.506 MB / 0.5323 GB, free: 6.516 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 2.905e-06/0.4582, allocations: 5.031 kB / 0.5323 GB, free: 6.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.005543/0.4637, allocations: 2.812 MB / 0.5351 GB, free: 4.785 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.4639, allocations: 164.9 kB / 0.5352 GB, free: 4.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008425/0.4647, allocations: 0.5874 MB / 0.5358 GB, free: 4.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.764e-05/0.4648, allocations: 43.48 kB / 0.5358 GB, free: 4.207 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004362/0.4652, allocations: 487.3 kB / 0.5363 GB, free: 3.781 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002654/0.4655, allocations: 268.8 kB / 0.5366 GB, free: 3.551 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002965/0.4658, allocations: 170.1 kB / 0.5367 GB, free: 3.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.466, allocations: 400.1 kB / 0.5371 GB, free: 3.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006576/0.4667, allocations: 372.3 kB / 0.5375 GB, free: 2.898 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008549/0.4675, allocations: 0.6349 MB / 0.5381 GB, free: 2.375 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007611/0.4752, allocations: 3.439 MB / 0.5414 GB, free: 312 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.4752, allocations: 2.75 kB / 0.5414 GB, free: 312 kB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002866/0.4781, allocations: 1.354 MB / 0.5428 GB, free: 15.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.726e-05/0.4781, allocations: 34.23 kB / 0.5428 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.244e-05/0.4782, allocations: 12.38 kB / 0.5428 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007179/0.4789, allocations: 235.9 kB / 0.543 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.4801, allocations: 274.7 kB / 0.5433 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005773/0.4859, allocations: 6.082 MB / 0.5492 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008448/0.4867, allocations: 40.11 kB / 0.5493 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.45e-05/0.4868, allocations: 39.94 kB / 0.5493 GB, free: 8.961 MB / 414.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,$PRE.switch.t0,$PRE.switch.closed,$PRE.switch.open,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,switch.open,switch.t0,switch.control[1],$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000721/0.4876, allocations: 376.8 kB / 0.5497 GB, free: 8.578 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.4877, allocations: 83.42 kB / 0.5497 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002105/0.4898, allocations: 1.149 MB / 0.5509 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.81e-05/0.4898, allocations: 8 kB / 0.5509 GB, free: 7.312 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.4899, allocations: 4 kB / 0.5509 GB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.4899, allocations: 3.984 kB / 0.5509 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003644/0.4935, allocations: 2.258 MB / 0.5531 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.4936, allocations: 0 / 0.5531 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009105/0.4945, allocations: 187.8 kB / 0.5533 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006878/0.4952, allocations: 242.5 kB / 0.5535 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.319e-05/0.4953, allocations: 27.92 kB / 0.5535 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00513/0.5004, allocations: 6.019 MB / 0.5594 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5004, allocations: 128 / 0.5594 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0025/0.5029, allocations: 1.655 MB / 0.561 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002793/0.5032, allocations: 156.6 kB / 0.5612 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.5033, allocations: 24 kB / 0.5612 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004086/0.5037, allocations: 27.95 kB / 0.5612 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.5039, allocations: 64.36 kB / 0.5613 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.784e-05/0.504, allocations: 23.98 kB / 0.5613 GB, free: 12.05 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000533/0.5045, allocations: 411 kB / 0.5617 GB, free: 11.65 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5045, allocations: 0 / 0.5617 GB, free: 11.65 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001349/0.5059, allocations: 276 kB / 0.562 GB, free: 11.38 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000247/0.5061, allocations: 127.1 kB / 0.5621 GB, free: 11.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002308/0.5084, allocations: 1.392 MB / 0.5634 GB, free: 9.805 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5085, allocations: 384 / 0.5634 GB, free: 9.805 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001383/0.5099, allocations: 0.9239 MB / 0.5643 GB, free: 8.828 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009609/0.5108, allocations: 185.6 kB / 0.5645 GB, free: 8.656 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.5145, allocations: 2.194 MB / 0.5667 GB, free: 6.414 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000788/0.5154, allocations: 1.111 MB / 0.5677 GB, free: 5.277 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005752/0.5159, allocations: 210.5 kB / 0.5679 GB, free: 5.066 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.5161, allocations: 55.42 kB / 0.568 GB, free: 5.012 MB / 430.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5161, allocations: 0 / 0.568 GB, free: 5.012 MB / 430.1 MB Notification: Performance of Templates: time 0.02/0.5361, allocations: 11.18 MB / 0.5789 GB, free: 9.887 MB / 446.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)