Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001513/0.001513, allocations: 169.1 kB / 16.75 MB, free: 4.906 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.352/1.352, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007539/0.000754, allocations: 90.41 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1671/0.1671, allocations: 38.08 MB / 357.6 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003333/0.0003333, allocations: 16 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.255, allocations: 56.31 MB / 480.2 MB, free: 9.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1321/0.3872, allocations: 103.8 MB / 0.5703 GB, free: 14.58 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/0.3874, allocations: 83.95 kB / 0.5704 GB, free: 14.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07027/0.4577, allocations: 25.87 MB / 0.5957 GB, free: 4.305 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4578, allocations: 0 / 0.5957 GB, free: 4.305 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.082e-05/0.4578, allocations: 28 kB / 0.5957 GB, free: 4.277 MB / 426.7 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.002265/0.4601, allocations: 1.205 MB / 0.5969 GB, free: 3.008 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.4601, allocations: 8.031 kB / 0.5969 GB, free: 3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009965/0.4611, allocations: 177.2 kB / 0.597 GB, free: 2.828 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/0.4631, allocations: 1.026 MB / 0.5981 GB, free: 1.762 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.013e-05/0.4632, allocations: 66 kB / 0.5981 GB, free: 1.695 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001631/0.4633, allocations: 95.83 kB / 0.5982 GB, free: 1.602 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/0.4651, allocations: 1.192 MB / 0.5994 GB, free: 348 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.381e-05/0.4652, allocations: 11.92 kB / 0.5994 GB, free: 336 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.283e-05/0.4652, allocations: 32 kB / 0.5994 GB, free: 304 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-05/0.4653, allocations: 49.98 kB / 0.5995 GB, free: 252 kB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.4669, allocations: 0.9756 MB / 0.6004 GB, free: 15.27 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005635/0.4725, allocations: 4.691 MB / 0.605 GB, free: 10.39 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.4736, allocations: 0.6717 MB / 0.6056 GB, free: 9.691 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006344/0.4742, allocations: 474.6 kB / 0.6061 GB, free: 9.223 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.588e-05/0.4743, allocations: 12.55 kB / 0.6061 GB, free: 9.211 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007457/0.475, allocations: 0.5243 MB / 0.6066 GB, free: 8.664 MB / 442.7 MB Notification: Performance of pre-optimization done (n=73): time 3.136e-06/0.475, allocations: 0 / 0.6066 GB, free: 8.664 MB / 442.7 MB Notification: Performance of matching and sorting (n=77): time 0.004836/0.4799, allocations: 2.896 MB / 0.6095 GB, free: 5.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.021e-05/0.48, allocations: 170.9 kB / 0.6096 GB, free: 5.477 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006927/0.4807, allocations: 0.5781 MB / 0.6102 GB, free: 4.891 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.23e-05/0.4808, allocations: 41.7 kB / 0.6102 GB, free: 4.844 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003609/0.4812, allocations: 471.1 kB / 0.6107 GB, free: 4.375 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002312/0.4814, allocations: 264.3 kB / 0.6109 GB, free: 4.113 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.064e-05/0.4815, allocations: 20 kB / 0.6109 GB, free: 4.094 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.4817, allocations: 386.8 kB / 0.6113 GB, free: 3.707 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005973/0.4823, allocations: 393.7 kB / 0.6117 GB, free: 3.324 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007443/0.483, allocations: 0.6258 MB / 0.6123 GB, free: 2.59 MB / 442.7 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.01098/0.494, allocations: 4.873 MB / 0.6171 GB, free: 13.56 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.494, allocations: 4 kB / 0.6171 GB, free: 13.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002306/0.4963, allocations: 1.369 MB / 0.6184 GB, free: 12.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.633e-05/0.4964, allocations: 33.7 kB / 0.6184 GB, free: 12.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.4964, allocations: 11.94 kB / 0.6184 GB, free: 12.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006247/0.497, allocations: 246.8 kB / 0.6187 GB, free: 11.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.4981, allocations: 255.6 kB / 0.6189 GB, free: 11.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005067/0.5032, allocations: 5.569 MB / 0.6244 GB, free: 5.633 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006732/0.5039, allocations: 43.97 kB / 0.6244 GB, free: 5.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-05/0.5039, allocations: 36.05 kB / 0.6244 GB, free: 5.555 MB / 458.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: 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: 34 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$PRE.switch.t0,$PRE.switch.open,$PRE.switch.closed,$whenCondition2,switch.control[1],switch.t0,switch.open,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006325/0.5046, allocations: 379.2 kB / 0.6248 GB, free: 5.168 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.5047, allocations: 79 kB / 0.6249 GB, free: 5.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002091/0.5068, allocations: 1.192 MB / 0.626 GB, free: 3.867 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.62e-05/0.5068, allocations: 12 kB / 0.626 GB, free: 3.855 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.5069, allocations: 8 kB / 0.6261 GB, free: 3.848 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.5069, allocations: 7.984 kB / 0.6261 GB, free: 3.84 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003556/0.5104, allocations: 2.321 MB / 0.6283 GB, free: 1.434 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-06/0.5105, allocations: 4 kB / 0.6283 GB, free: 1.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008959/0.5114, allocations: 195.9 kB / 0.6285 GB, free: 1.238 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006943/0.5121, allocations: 242.2 kB / 0.6288 GB, free: 0.9922 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.855e-05/0.5121, allocations: 31.92 kB / 0.6288 GB, free: 0.9609 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004914/0.5171, allocations: 5.515 MB / 0.6342 GB, free: 11.04 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5171, allocations: 32 / 0.6342 GB, free: 11.04 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002932/0.52, allocations: 1.714 MB / 0.6358 GB, free: 9.277 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000304/0.5204, allocations: 156.1 kB / 0.636 GB, free: 9.105 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.5205, allocations: 19.98 kB / 0.636 GB, free: 9.086 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004228/0.5209, allocations: 35.97 kB / 0.636 GB, free: 9.051 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.5211, allocations: 60.42 kB / 0.6361 GB, free: 8.992 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.7e-05/0.5212, allocations: 27.92 kB / 0.6361 GB, free: 8.965 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005312/0.5217, allocations: 407 kB / 0.6365 GB, free: 8.574 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5217, allocations: 0 / 0.6365 GB, free: 8.574 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001141/0.5229, allocations: 304 kB / 0.6368 GB, free: 8.277 MB / 474.7 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 (56): * Single equations (assignments): 48 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003335/0.5232, allocations: 190.9 kB / 0.637 GB, free: 8.082 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.5254, allocations: 1.42 MB / 0.6384 GB, free: 6.617 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5254, allocations: 0 / 0.6384 GB, free: 6.617 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.5268, allocations: 0.9357 MB / 0.6393 GB, free: 5.625 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009995/0.5278, allocations: 179.9 kB / 0.6395 GB, free: 5.445 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003773/0.5316, allocations: 2.732 MB / 0.6421 GB, free: 2.66 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007291/0.5323, allocations: 1.111 MB / 0.6432 GB, free: 1.523 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002599/0.5326, allocations: 71.42 kB / 0.6433 GB, free: 1.457 MB / 474.7 MB Notification: Performance of SimCode: time 5.11e-07/0.5326, allocations: 0 / 0.6433 GB, free: 1.457 MB / 474.7 MB Notification: Performance of Templates: time 0.202/0.7347, allocations: 21.43 MB / 0.6642 GB, free: 132.7 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)