Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001652/0.001652, allocations: 186 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.02/2.02, allocations: 205.2 MB / 218.9 MB, free: 9.211 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001077/0.001077, allocations: 84.91 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2735/0.2735, allocations: 37.97 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.655e-05/3.675e-05, allocations: 0 / 416.8 MB, free: 41.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 56.31 MB / 473.1 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4718/0.5747, allocations: 103.6 MB / 0.5632 GB, free: 100 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.5751, allocations: 79.95 kB / 0.5633 GB, free: 20 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1213/0.6964, allocations: 25.87 MB / 0.5886 GB, free: 5.832 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.6964, allocations: 0 / 0.5886 GB, free: 5.832 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.584e-05/0.6965, allocations: 31.94 kB / 0.5886 GB, free: 5.801 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.00355/0.7001, allocations: 1.072 MB / 0.5897 GB, free: 4.672 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.7002, allocations: 12.03 kB / 0.5897 GB, free: 4.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001935/0.7021, allocations: 186.5 kB / 0.5898 GB, free: 4.477 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005662/0.7078, allocations: 1.362 MB / 0.5912 GB, free: 3.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-05/0.7079, allocations: 62 kB / 0.5912 GB, free: 3.012 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002805/0.7082, allocations: 87.91 kB / 0.5913 GB, free: 2.926 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002984/0.7112, allocations: 1.179 MB / 0.5925 GB, free: 1.676 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.452e-05/0.7113, allocations: 4 kB / 0.5925 GB, free: 1.672 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001447/0.7115, allocations: 39.98 kB / 0.5925 GB, free: 1.633 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001516/0.7116, allocations: 57.91 kB / 0.5926 GB, free: 1.578 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00272/0.7144, allocations: 0.9486 MB / 0.5935 GB, free: 0.625 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01021/0.7246, allocations: 4.688 MB / 0.5981 GB, free: 11.75 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001822/0.7265, allocations: 0.664 MB / 0.5987 GB, free: 11.06 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001131/0.7277, allocations: 466.7 kB / 0.5992 GB, free: 10.6 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.76e-05/0.7278, allocations: 16.55 kB / 0.5992 GB, free: 10.59 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/0.729, allocations: 0.5252 MB / 0.5997 GB, free: 10.04 MB / 442.7 MB Notification: Performance of pre-optimization done (n=73): time 4.218e-06/0.7291, allocations: 0 / 0.5997 GB, free: 10.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=77): time 0.007272/0.7363, allocations: 2.535 MB / 0.6022 GB, free: 7.418 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.7365, allocations: 174.9 kB / 0.6023 GB, free: 7.211 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/0.7375, allocations: 0.4993 MB / 0.6028 GB, free: 6.707 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001509/0.7377, allocations: 45.69 kB / 0.6029 GB, free: 6.656 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005158/0.7382, allocations: 489.6 kB / 0.6033 GB, free: 6.172 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000403/0.7386, allocations: 268.3 kB / 0.6036 GB, free: 5.906 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.003e-05/0.7387, allocations: 20 kB / 0.6036 GB, free: 5.887 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.7389, allocations: 350.8 kB / 0.6039 GB, free: 5.535 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.74, allocations: 381.8 kB / 0.6043 GB, free: 5.16 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.7413, allocations: 0.622 MB / 0.6049 GB, free: 4.434 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.01948/0.7608, allocations: 3.773 MB / 0.6086 GB, free: 0.6016 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.7609, allocations: 4 kB / 0.6086 GB, free: 0.5977 MB / 442.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003834/0.7647, allocations: 1.308 MB / 0.6099 GB, free: 15.26 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.981e-05/0.7648, allocations: 34.95 kB / 0.6099 GB, free: 15.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.266e-05/0.7649, allocations: 8 kB / 0.6099 GB, free: 15.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.766, allocations: 259 kB / 0.6102 GB, free: 14.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002486/0.7685, allocations: 271.6 kB / 0.6104 GB, free: 14.69 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008027/0.7766, allocations: 5.562 MB / 0.6159 GB, free: 8.727 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.7778, allocations: 43.97 kB / 0.6159 GB, free: 8.684 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/0.7779, allocations: 40 kB / 0.6159 GB, free: 8.645 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,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete 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.0003825/0.7783, allocations: 197.2 kB / 0.6161 GB, free: 8.441 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.7785, allocations: 87.06 kB / 0.6162 GB, free: 8.355 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003529/0.782, allocations: 1.172 MB / 0.6174 GB, free: 7.156 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.316e-05/0.7821, allocations: 12 kB / 0.6174 GB, free: 7.145 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.7822, allocations: 4 kB / 0.6174 GB, free: 7.141 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/0.7822, allocations: 3.984 kB / 0.6174 GB, free: 7.137 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006381/0.7886, allocations: 2.304 MB / 0.6196 GB, free: 4.742 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.7886, allocations: 0 / 0.6196 GB, free: 4.742 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001998/0.7907, allocations: 203.7 kB / 0.6198 GB, free: 4.543 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001287/0.792, allocations: 254.3 kB / 0.6201 GB, free: 4.285 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.7921, allocations: 19.98 kB / 0.6201 GB, free: 4.266 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007708/0.7998, allocations: 5.5 MB / 0.6254 GB, free: 14.37 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/0.7999, allocations: 8.094 kB / 0.6255 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004614/0.8045, allocations: 1.754 MB / 0.6272 GB, free: 12.51 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000357/0.8049, allocations: 148.2 kB / 0.6273 GB, free: 12.35 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.8051, allocations: 24 kB / 0.6273 GB, free: 12.32 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007992/0.806, allocations: 35.95 kB / 0.6274 GB, free: 12.29 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.8062, allocations: 60.41 kB / 0.6274 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.888e-05/0.8063, allocations: 27.98 kB / 0.6275 GB, free: 12.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007806/0.8071, allocations: 403.2 kB / 0.6278 GB, free: 11.81 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8071, allocations: 0 / 0.6278 GB, free: 11.81 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001641/0.8088, allocations: 300 kB / 0.6281 GB, free: 11.52 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) * 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.0005072/0.8093, allocations: 203.3 kB / 0.6283 GB, free: 11.31 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003764/0.8131, allocations: 1.421 MB / 0.6297 GB, free: 9.836 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.8131, allocations: 4 kB / 0.6297 GB, free: 9.832 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002346/0.8155, allocations: 0.9085 MB / 0.6306 GB, free: 8.875 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.8169, allocations: 171.1 kB / 0.6308 GB, free: 8.711 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005033/0.8219, allocations: 1.9 MB / 0.6326 GB, free: 6.754 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/0.823, allocations: 1.138 MB / 0.6337 GB, free: 5.586 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004498/0.8235, allocations: 63.42 kB / 0.6338 GB, free: 5.527 MB / 474.7 MB Notification: Performance of SimCode: time 1.924e-06/0.8235, allocations: 0 / 0.6338 GB, free: 5.527 MB / 474.7 MB Notification: Performance of Templates: time 0.3419/1.165, allocations: 20.66 MB / 0.654 GB, free: 130.5 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)