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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001657/0.001657, allocations: 184.4 kB / 7.8 MB, free: 2.449 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.809/1.809, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001277/0.001276, allocations: 85.42 kB / 261.4 MB, free: 13.62 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.2799/0.2799, allocations: 37.97 MB / 347.3 MB, free: 7.551 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.165e-06/8.346e-06, allocations: 0 / 409.3 MB, free: 47.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1064, allocations: 56.32 MB / 465.6 MB, free: 6.871 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3673/0.4737, allocations: 102.9 MB / 0.5552 GB, free: 7.938 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.4741, allocations: 81.09 kB / 0.5553 GB, free: 7.859 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.1251/0.5992, allocations: 25.37 MB / 0.5801 GB, free: 14.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.136e-05/0.5993, allocations: 27.94 kB / 0.5801 GB, free: 14.15 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.003721/0.6031, allocations: 1.077 MB / 0.5812 GB, free: 13.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.6032, allocations: 12.03 kB / 0.5812 GB, free: 13 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00221/0.6054, allocations: 182.6 kB / 0.5814 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006013/0.6114, allocations: 1.378 MB / 0.5827 GB, free: 11.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.563e-05/0.6116, allocations: 28 kB / 0.5827 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002306/0.6118, allocations: 56 kB / 0.5828 GB, free: 11.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002778/0.6146, allocations: 0.8394 MB / 0.5836 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002987/0.6176, allocations: 1.085 MB / 0.5847 GB, free: 9.324 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.03e-05/0.6177, allocations: 7.938 kB / 0.5847 GB, free: 9.316 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.6179, allocations: 4 kB / 0.5847 GB, free: 9.312 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001453/0.618, allocations: 54.81 kB / 0.5847 GB, free: 9.258 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01061/0.6286, allocations: 4.528 MB / 0.5892 GB, free: 4.551 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.6306, allocations: 0.6279 MB / 0.5898 GB, free: 3.902 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001159/0.6318, allocations: 464.2 kB / 0.5902 GB, free: 3.441 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.395e-05/0.6319, allocations: 8.656 kB / 0.5902 GB, free: 3.434 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001226/0.6331, allocations: 0.5005 MB / 0.5907 GB, free: 2.906 MB / 426.7 MB Notification: Performance of pre-optimization done (n=73): time 4.178e-06/0.6331, allocations: 0 / 0.5907 GB, free: 2.906 MB / 426.7 MB Notification: Performance of matching and sorting (n=77): time 0.007567/0.6407, allocations: 2.386 MB / 0.593 GB, free: 468 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.6409, allocations: 166.9 kB / 0.5932 GB, free: 264 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000998/0.6419, allocations: 454.4 kB / 0.5936 GB, free: 15.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002152/0.6421, allocations: 29.7 kB / 0.5937 GB, free: 15.77 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004342/0.6426, allocations: 409.5 kB / 0.5941 GB, free: 15.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004454/0.6431, allocations: 256.3 kB / 0.5943 GB, free: 15.11 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.629e-05/0.6431, allocations: 0 / 0.5943 GB, free: 15.11 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.6433, allocations: 350.8 kB / 0.5946 GB, free: 14.76 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/0.6445, allocations: 381.9 kB / 0.595 GB, free: 14.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.6457, allocations: 0.6041 MB / 0.5956 GB, free: 13.68 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.01975/0.6655, allocations: 3.229 MB / 0.5987 GB, free: 10.39 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.6656, allocations: 4 kB / 0.5987 GB, free: 10.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003865/0.6694, allocations: 1.222 MB / 0.5999 GB, free: 9.156 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.6695, allocations: 7.906 kB / 0.5999 GB, free: 9.148 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-05/0.6695, allocations: 11.98 kB / 0.6 GB, free: 9.137 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.6706, allocations: 246.9 kB / 0.6002 GB, free: 8.887 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002513/0.6731, allocations: 239.7 kB / 0.6004 GB, free: 8.652 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009536/0.6827, allocations: 5.46 MB / 0.6058 GB, free: 2.848 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008708/0.6836, allocations: 27.98 kB / 0.6058 GB, free: 2.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.6837, allocations: 36 kB / 0.6058 GB, free: 2.785 MB / 442.7 MB Warning: Assuming redundant initial conditions for the following 3 initial equations: 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 {(3,77.8%) 5,(3,77.8%) 5,(2,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003312/0.6841, allocations: 96.53 kB / 0.6059 GB, free: 2.68 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002279/0.6843, allocations: 75.06 kB / 0.606 GB, free: 2.605 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003748/0.6881, allocations: 1.111 MB / 0.6071 GB, free: 1.469 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.457e-05/0.6882, allocations: 16 kB / 0.6071 GB, free: 1.453 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.6882, allocations: 4 kB / 0.6071 GB, free: 1.449 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.6882, allocations: 3.984 kB / 0.6071 GB, free: 1.445 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006641/0.6949, allocations: 2.171 MB / 0.6092 GB, free: 15.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.829e-06/0.695, allocations: 4 kB / 0.6092 GB, free: 15.19 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002062/0.697, allocations: 184 kB / 0.6094 GB, free: 15.01 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001338/0.6984, allocations: 246.2 kB / 0.6096 GB, free: 14.76 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001349/0.6985, allocations: 27.91 kB / 0.6096 GB, free: 14.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008048/0.7066, allocations: 5.227 MB / 0.6147 GB, free: 9.16 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.428e-06/0.7067, allocations: 7.938 kB / 0.6148 GB, free: 9.152 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004832/0.7115, allocations: 1.777 MB / 0.6165 GB, free: 7.258 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003519/0.7119, allocations: 148.2 kB / 0.6166 GB, free: 7.094 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002182/0.7122, allocations: 23.89 kB / 0.6167 GB, free: 7.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008345/0.713, allocations: 15.98 kB / 0.6167 GB, free: 7.055 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/0.7132, allocations: 52.52 kB / 0.6167 GB, free: 7.004 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.57e-05/0.7133, allocations: 27.98 kB / 0.6167 GB, free: 6.977 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0006973/0.714, allocations: 355.2 kB / 0.6171 GB, free: 6.633 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001711/0.7157, allocations: 271.9 kB / 0.6173 GB, free: 6.367 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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.0004582/0.7162, allocations: 176.8 kB / 0.6175 GB, free: 6.188 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004151/0.7204, allocations: 1.366 MB / 0.6188 GB, free: 4.789 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-05/0.7205, allocations: 4 kB / 0.6189 GB, free: 4.785 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002486/0.723, allocations: 0.8416 MB / 0.6197 GB, free: 3.906 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.7244, allocations: 150.9 kB / 0.6198 GB, free: 3.754 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005948/0.7304, allocations: 1.931 MB / 0.6217 GB, free: 1.754 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001642/0.7321, allocations: 1.207 MB / 0.6229 GB, free: 0.5234 MB / 458.7 MB Notification: Performance of SimCode: time 1.643e-06/0.7321, allocations: 0 / 0.6229 GB, free: 0.5234 MB / 458.7 MB Notification: Performance of Templates: time 0.2371/0.9692, allocations: 21.31 MB / 0.6437 GB, free: 121.8 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)