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.001378/0.001378, allocations: 111.1 kB / 17.74 MB, free: 5.336 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.001539/0.001539, allocations: 188.2 kB / 18.67 MB, free: 4.41 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.397/1.397, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.185/0.185, allocations: 38.03 MB / 330.6 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.91 kB / 458.8 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4698/0.4711, allocations: 58.06 MB / 0.5047 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.009039/0.4802, allocations: 7.572 MB / 0.5121 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004715/0.485, allocations: 2.319 MB / 0.5144 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007904/0.4858, allocations: 25.88 kB / 0.5144 GB, free: 0.957 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002313/0.4882, allocations: 0.855 MB / 0.5153 GB, free: 448 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001672/0.4899, allocations: 0.5097 MB / 0.5158 GB, free: 140 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.4915, allocations: 454.1 kB / 0.5162 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00248/0.494, allocations: 1.327 MB / 0.5175 GB, free: 15.37 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.4952, allocations: 0.681 MB / 0.5182 GB, free: 15.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001524/0.4968, allocations: 0.5819 MB / 0.5187 GB, free: 14.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.4981, allocations: 0.6793 MB / 0.5194 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.4982, allocations: 81 kB / 0.5195 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007464/0.499, allocations: 269.4 kB / 0.5197 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006495/0.4997, allocations: 0.5048 MB / 0.5202 GB, free: 14.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006831/0.5004, allocations: 0.5495 MB / 0.5207 GB, free: 14 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002287/0.5026, allocations: 1.325 MB / 0.522 GB, free: 13.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.5027, allocations: 0 / 0.522 GB, free: 13.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.5027, allocations: 0 / 0.522 GB, free: 13.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.403e-05/0.5027, allocations: 1.125 kB / 0.522 GB, free: 13.5 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.00332/0.506, allocations: 1.342 MB / 0.5234 GB, free: 12.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.5061, allocations: 12.91 kB / 0.5234 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00125/0.5074, allocations: 165.7 kB / 0.5235 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001549/0.5089, allocations: 0.7399 MB / 0.5242 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.3e-05/0.509, allocations: 66.66 kB / 0.5243 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002793/0.5093, allocations: 109.5 kB / 0.5244 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002347/0.5117, allocations: 1.218 MB / 0.5256 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.312e-05/0.5117, allocations: 3.156 kB / 0.5256 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.5118, allocations: 32.89 kB / 0.5256 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002864/0.5121, allocations: 66.02 kB / 0.5257 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.5141, allocations: 1.007 MB / 0.5267 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007163/0.5212, allocations: 4.762 MB / 0.5313 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.5225, allocations: 0.6694 MB / 0.532 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007114/0.5232, allocations: 454.8 kB / 0.5324 GB, free: 7.016 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.498e-05/0.5233, allocations: 10.52 kB / 0.5324 GB, free: 7.012 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008834/0.5242, allocations: 0.5068 MB / 0.5329 GB, free: 6.668 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 2.485e-06/0.5242, allocations: 0 / 0.5329 GB, free: 6.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.00601/0.5302, allocations: 2.789 MB / 0.5357 GB, free: 4.961 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.5304, allocations: 168.2 kB / 0.5358 GB, free: 4.766 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009715/0.5314, allocations: 0.5842 MB / 0.5364 GB, free: 4.426 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.12e-05/0.5315, allocations: 42.45 kB / 0.5364 GB, free: 4.383 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005245/0.532, allocations: 483.6 kB / 0.5369 GB, free: 3.961 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003178/0.5323, allocations: 254.7 kB / 0.5371 GB, free: 3.742 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003406/0.5327, allocations: 174.3 kB / 0.5373 GB, free: 3.637 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.5329, allocations: 399.6 kB / 0.5377 GB, free: 3.258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006651/0.5335, allocations: 373 kB / 0.538 GB, free: 3.086 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008322/0.5344, allocations: 0.6345 MB / 0.5387 GB, free: 2.562 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.007732/0.5421, allocations: 3.443 MB / 0.542 GB, free: 500 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.287e-05/0.5422, allocations: 2.562 kB / 0.542 GB, free: 500 kB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00292/0.5451, allocations: 1.341 MB / 0.5433 GB, free: 15.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.288e-05/0.5452, allocations: 34.7 kB / 0.5434 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.072e-05/0.5452, allocations: 9.031 kB / 0.5434 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006905/0.5459, allocations: 243.4 kB / 0.5436 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.5471, allocations: 270.4 kB / 0.5439 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005888/0.553, allocations: 6.081 MB / 0.5498 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009886/0.554, allocations: 39.89 kB / 0.5498 GB, free: 9.066 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.997e-05/0.5541, allocations: 32 kB / 0.5499 GB, free: 9.035 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.0007782/0.5549, allocations: 380.9 kB / 0.5502 GB, free: 8.648 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.555, allocations: 79 kB / 0.5503 GB, free: 8.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.557, allocations: 1.145 MB / 0.5514 GB, free: 7.398 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-05/0.557, allocations: 15.94 kB / 0.5514 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.5571, allocations: 0 / 0.5514 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.5571, allocations: 11.92 kB / 0.5514 GB, free: 7.371 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00366/0.5607, allocations: 2.239 MB / 0.5536 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.5608, allocations: 0 / 0.5536 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009452/0.5617, allocations: 191.7 kB / 0.5538 GB, free: 4.855 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006664/0.5624, allocations: 246.4 kB / 0.5541 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.454e-05/0.5625, allocations: 31.92 kB / 0.5541 GB, free: 4.574 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005152/0.5676, allocations: 6.015 MB / 0.56 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5677, allocations: 0 / 0.56 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002704/0.5704, allocations: 1.643 MB / 0.5616 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002839/0.5707, allocations: 148.2 kB / 0.5617 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.5708, allocations: 31.98 kB / 0.5617 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004221/0.5712, allocations: 23.98 kB / 0.5618 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.5714, allocations: 56.67 kB / 0.5618 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.296e-05/0.5715, allocations: 23.98 kB / 0.5618 GB, free: 12.15 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005376/0.572, allocations: 411 kB / 0.5622 GB, free: 11.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.572, allocations: 0 / 0.5622 GB, free: 11.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001271/0.5733, allocations: 280.1 kB / 0.5625 GB, free: 11.48 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.0002475/0.5735, allocations: 139.1 kB / 0.5626 GB, free: 11.33 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002242/0.5758, allocations: 1.396 MB / 0.564 GB, free: 9.887 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.5758, allocations: 0 / 0.564 GB, free: 9.887 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001311/0.5771, allocations: 0.9124 MB / 0.5649 GB, free: 8.922 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009971/0.5781, allocations: 185.8 kB / 0.5651 GB, free: 8.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003822/0.582, allocations: 2.245 MB / 0.5672 GB, free: 6.453 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007838/0.5828, allocations: 1.122 MB / 0.5683 GB, free: 5.305 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002533/0.583, allocations: 59.44 kB / 0.5684 GB, free: 5.246 MB / 430.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5831, allocations: 0 / 0.5684 GB, free: 5.246 MB / 430.1 MB Notification: Performance of Templates: time 0.02869/0.6117, allocations: 21.1 MB / 0.589 GB, free: 168 kB / 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)