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.002194/0.002194, allocations: 183.5 kB / 15.76 MB, free: 6.344 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.115/2.115, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001129/0.001128, allocations: 90.75 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3261/0.3261, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006845/0.0006846, allocations: 12 kB / 422.7 MB, free: 26.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1559, allocations: 56.32 MB / 479 MB, free: 2.055 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5057/0.6616, allocations: 103.7 MB / 0.5691 GB, free: 12.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003261/0.662, allocations: 91.05 kB / 0.5692 GB, free: 12.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1188/0.7808, allocations: 25.88 MB / 0.5945 GB, free: 5.859 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.7809, allocations: 4 kB / 0.5945 GB, free: 5.855 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.484e-05/0.781, allocations: 24 kB / 0.5945 GB, free: 5.832 MB / 394.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.004309/0.7853, allocations: 1.215 MB / 0.5957 GB, free: 4.629 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.7854, allocations: 8.031 kB / 0.5957 GB, free: 4.621 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002036/0.7874, allocations: 178.5 kB / 0.5959 GB, free: 4.445 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00572/0.7932, allocations: 1.377 MB / 0.5972 GB, free: 3.262 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.596e-05/0.7933, allocations: 66.38 kB / 0.5973 GB, free: 3.227 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002811/0.7936, allocations: 91.95 kB / 0.5974 GB, free: 3.164 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003052/0.7967, allocations: 1.187 MB / 0.5985 GB, free: 2.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.655e-05/0.7968, allocations: 11.92 kB / 0.5985 GB, free: 2.219 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001348/0.7969, allocations: 37.56 kB / 0.5986 GB, free: 2.207 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001263/0.7971, allocations: 48.92 kB / 0.5986 GB, free: 2.164 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002734/0.7998, allocations: 0.9723 MB / 0.5996 GB, free: 1.477 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01009/0.81, allocations: 4.689 MB / 0.6041 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001833/0.8118, allocations: 0.6864 MB / 0.6048 GB, free: 12.83 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.757e-05/0.812, allocations: 8.625 kB / 0.6048 GB, free: 12.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001298/0.8133, allocations: 0.5371 MB / 0.6053 GB, free: 12.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=73): time 3.787e-06/0.8133, allocations: 0 / 0.6053 GB, free: 12.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=77): time 0.008337/0.8217, allocations: 3.097 MB / 0.6084 GB, free: 9.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.8218, allocations: 166.8 kB / 0.6085 GB, free: 9.625 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/0.8228, allocations: 0.5106 MB / 0.609 GB, free: 9.211 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001749/0.823, allocations: 49.12 kB / 0.6091 GB, free: 9.168 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000435/0.8235, allocations: 489.2 kB / 0.6095 GB, free: 8.789 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003832/0.8239, allocations: 266.4 kB / 0.6098 GB, free: 8.559 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.755e-05/0.824, allocations: 19.69 kB / 0.6098 GB, free: 8.555 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.8242, allocations: 349.7 kB / 0.6101 GB, free: 8.219 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/0.8252, allocations: 387.3 kB / 0.6105 GB, free: 7.965 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.8264, allocations: 0.6353 MB / 0.6111 GB, free: 7.363 MB / 410.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.01934/0.8458, allocations: 3.807 MB / 0.6148 GB, free: 4.062 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.106e-05/0.8459, allocations: 4 kB / 0.6148 GB, free: 4.059 MB / 410.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.004019/0.8499, allocations: 1.322 MB / 0.6161 GB, free: 3.062 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.263e-05/0.85, allocations: 37.02 kB / 0.6162 GB, free: 3.023 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.731e-05/0.85, allocations: 12 kB / 0.6162 GB, free: 3.012 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.8512, allocations: 251 kB / 0.6164 GB, free: 2.805 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002455/0.8537, allocations: 269.6 kB / 0.6167 GB, free: 2.547 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008422/0.8621, allocations: 5.633 MB / 0.6222 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.8633, allocations: 44.03 kB / 0.6222 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.8634, allocations: 40 kB / 0.6223 GB, free: 12.54 MB / 426.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 () * 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.000887/0.8643, allocations: 376 kB / 0.6226 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002173/0.8646, allocations: 75.06 kB / 0.6227 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003646/0.8682, allocations: 1.177 MB / 0.6238 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.761e-05/0.8683, allocations: 12 kB / 0.6239 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.8683, allocations: 8 kB / 0.6239 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.572e-05/0.8684, allocations: 3.984 kB / 0.6239 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006798/0.8752, allocations: 2.306 MB / 0.6261 GB, free: 8.465 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.8752, allocations: 4.156 kB / 0.6261 GB, free: 8.461 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002046/0.8773, allocations: 203.7 kB / 0.6263 GB, free: 8.262 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001371/0.8787, allocations: 254.3 kB / 0.6266 GB, free: 8.004 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002114/0.879, allocations: 24.22 kB / 0.6266 GB, free: 7.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008589/0.8876, allocations: 5.578 MB / 0.632 GB, free: 2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.8877, allocations: 7.969 kB / 0.632 GB, free: 1.992 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004882/0.8925, allocations: 1.759 MB / 0.6338 GB, free: 144 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003933/0.893, allocations: 148.3 kB / 0.6339 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002463/0.8933, allocations: 31.89 kB / 0.6339 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007971/0.8941, allocations: 31.97 kB / 0.634 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002445/0.8943, allocations: 60.41 kB / 0.634 GB, free: 15.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.006e-05/0.8944, allocations: 24.06 kB / 0.634 GB, free: 15.83 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008061/0.8952, allocations: 415 kB / 0.6344 GB, free: 15.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8953, allocations: 0 / 0.6344 GB, free: 15.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00188/0.8972, allocations: 303.9 kB / 0.6347 GB, free: 15.13 MB / 442.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.0005717/0.8978, allocations: 187 kB / 0.6349 GB, free: 14.94 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003998/0.9018, allocations: 1.435 MB / 0.6363 GB, free: 13.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.9018, allocations: 0.6875 kB / 0.6363 GB, free: 13.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002685/0.9045, allocations: 0.932 MB / 0.6372 GB, free: 12.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/0.9061, allocations: 151.2 kB / 0.6374 GB, free: 12.33 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00665/0.9127, allocations: 2.716 MB / 0.64 GB, free: 9.559 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001111/0.9139, allocations: 1.138 MB / 0.6411 GB, free: 8.391 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004736/0.9144, allocations: 63.42 kB / 0.6412 GB, free: 8.328 MB / 442.7 MB Notification: Performance of SimCode: time 1.062e-06/0.9144, allocations: 0 / 0.6412 GB, free: 8.328 MB / 442.7 MB Notification: Performance of Templates: time 0.04426/0.9587, allocations: 20.67 MB / 0.6614 GB, free: 3.645 MB / 458.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)