Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.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.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState") [: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.002441/0.002441, allocations: 177.7 kB / 7.802 MB, free: 1.203 MB / 6.77 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.784/1.784, allocations: 205.2 MB / 213.4 MB, free: 8.523 MB / 178.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0012/0.0012, allocations: 89.72 kB / 261.4 MB, free: 5.176 MB / 210.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2674/0.2674, allocations: 37.98 MB / 347.3 MB, free: 0.9219 MB / 290.8 MB Notification: Performance of FrontEnd - loaded program: time 7.945e-06/7.985e-06, allocations: 0 / 409.3 MB, free: 74.84 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09975/0.09978, allocations: 56.33 MB / 465.6 MB, free: 18.48 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3403/0.4401, allocations: 103 MB / 0.5553 GB, free: 9.438 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.4405, allocations: 78.72 kB / 0.5554 GB, free: 9.402 MB / 370.8 MB Notification: Performance of FrontEnd: time 0.1135/0.554, allocations: 25.33 MB / 0.5801 GB, free: 3.945 MB / 386.8 MB Notification: Performance of Transformations before backend: time 6.734e-05/0.5542, allocations: 16 kB / 0.5801 GB, free: 3.93 MB / 386.8 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.003022/0.5572, allocations: 1.062 MB / 0.5812 GB, free: 2.871 MB / 386.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.5573, allocations: 8.031 kB / 0.5812 GB, free: 2.863 MB / 386.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001617/0.5589, allocations: 186.6 kB / 0.5814 GB, free: 2.68 MB / 386.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005611/0.5645, allocations: 1.346 MB / 0.5827 GB, free: 1.535 MB / 386.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.009e-05/0.5646, allocations: 28 kB / 0.5827 GB, free: 1.508 MB / 386.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002048/0.5649, allocations: 48 kB / 0.5828 GB, free: 1.461 MB / 386.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002274/0.5671, allocations: 0.7589 MB / 0.5835 GB, free: 0.9414 MB / 386.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002542/0.5697, allocations: 1.042 MB / 0.5845 GB, free: 60 kB / 386.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.467e-05/0.5698, allocations: 11.88 kB / 0.5845 GB, free: 48 kB / 386.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001086/0.5699, allocations: 7.906 kB / 0.5845 GB, free: 40 kB / 386.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001521/0.5701, allocations: 54.55 kB / 0.5846 GB, free: 15.98 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009091/0.5792, allocations: 4.58 MB / 0.5891 GB, free: 11.83 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.581, allocations: 0.6162 MB / 0.5897 GB, free: 11.37 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00087/0.5819, allocations: 387.5 kB / 0.59 GB, free: 11.11 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.191e-05/0.582, allocations: 12.64 kB / 0.59 GB, free: 11.1 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000928/0.5829, allocations: 441.9 kB / 0.5905 GB, free: 10.74 MB / 402.8 MB Notification: Performance of pre-optimization done (n=69): time 3.697e-06/0.5829, allocations: 0 / 0.5905 GB, free: 10.74 MB / 402.8 MB Notification: Performance of matching and sorting (n=70): time 0.004851/0.5878, allocations: 1.591 MB / 0.592 GB, free: 9.41 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.588, allocations: 170.6 kB / 0.5922 GB, free: 9.211 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008991/0.5889, allocations: 476.1 kB / 0.5926 GB, free: 8.836 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 8.579e-05/0.589, allocations: 29.7 kB / 0.5927 GB, free: 8.801 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003609/0.5894, allocations: 414.2 kB / 0.5931 GB, free: 8.418 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003153/0.5897, allocations: 232.5 kB / 0.5933 GB, free: 8.215 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-05/0.5897, allocations: 0 / 0.5933 GB, free: 8.215 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.5899, allocations: 346.4 kB / 0.5936 GB, free: 7.883 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007317/0.5907, allocations: 283.2 kB / 0.5939 GB, free: 7.691 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009412/0.5916, allocations: 0.5346 MB / 0.5944 GB, free: 7.156 MB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.5927, allocations: 398.1 kB / 0.5948 GB, free: 6.867 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.5927, allocations: 4 kB / 0.5948 GB, free: 6.863 MB / 402.8 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003402/0.5961, allocations: 1.088 MB / 0.5958 GB, free: 5.992 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.5962, allocations: 4 kB / 0.5958 GB, free: 5.988 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.175e-05/0.5962, allocations: 8 kB / 0.5959 GB, free: 5.98 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001481/0.5977, allocations: 307.9 kB / 0.5961 GB, free: 5.734 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.5987, allocations: 147.4 kB / 0.5963 GB, free: 5.594 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008887/0.6076, allocations: 4.492 MB / 0.6007 GB, free: 1.551 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007607/0.6084, allocations: 19.98 kB / 0.6007 GB, free: 1.531 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.275e-05/0.6085, allocations: 34.23 kB / 0.6007 GB, free: 1.504 MB / 402.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,switch.control[1],$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 (80): * Single equations (assignments): 76 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,100.0%) 16,(2,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002504/0.6088, allocations: 90.02 kB / 0.6008 GB, free: 1.41 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000217/0.609, allocations: 82.69 kB / 0.6009 GB, free: 1.332 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003342/0.6124, allocations: 0.9929 MB / 0.6019 GB, free: 0.5742 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.505e-05/0.6125, allocations: 15.98 kB / 0.6019 GB, free: 0.5586 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/0.6125, allocations: 8 kB / 0.6019 GB, free: 0.5508 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.6125, allocations: 0 / 0.6019 GB, free: 0.5508 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005662/0.6182, allocations: 1.987 MB / 0.6038 GB, free: 14.64 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/0.6182, allocations: 4.281 kB / 0.6038 GB, free: 14.63 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006549/0.6189, allocations: 75.89 kB / 0.6039 GB, free: 14.56 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001676/0.6206, allocations: 313.8 kB / 0.6042 GB, free: 14.25 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.409e-05/0.6207, allocations: 11.98 kB / 0.6042 GB, free: 14.23 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008555/0.6293, allocations: 4.448 MB / 0.6086 GB, free: 9.543 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.988e-06/0.6293, allocations: 3.938 kB / 0.6086 GB, free: 9.539 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003293/0.6326, allocations: 1.211 MB / 0.6097 GB, free: 8.211 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000317/0.633, allocations: 144.2 kB / 0.6099 GB, free: 8.051 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001947/0.6332, allocations: 15.92 kB / 0.6099 GB, free: 8.035 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006735/0.6339, allocations: 12 kB / 0.6099 GB, free: 8.023 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.634, allocations: 44.34 kB / 0.61 GB, free: 7.98 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.118e-05/0.6341, allocations: 20 kB / 0.61 GB, free: 7.961 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.000684/0.6348, allocations: 355.2 kB / 0.6103 GB, free: 7.621 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.001447/0.6363, allocations: 240 kB / 0.6105 GB, free: 7.387 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.closed,switch.control[1],$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 38 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004058/0.6367, allocations: 167 kB / 0.6107 GB, free: 7.211 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.003134/0.6399, allocations: 1.085 MB / 0.6118 GB, free: 6.102 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.6399, allocations: 7.938 kB / 0.6118 GB, free: 6.094 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001874/0.6418, allocations: 0.6896 MB / 0.6124 GB, free: 5.383 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/0.6432, allocations: 139.2 kB / 0.6126 GB, free: 5.242 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004802/0.648, allocations: 1.496 MB / 0.614 GB, free: 3.676 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001355/0.6494, allocations: 1.177 MB / 0.6152 GB, free: 2.473 MB / 418.8 MB Notification: Performance of SimCode: time 1.443e-06/0.6495, allocations: 0 / 0.6152 GB, free: 2.473 MB / 418.8 MB Notification: Performance of Templates: time 0.03547/0.6849, allocations: 17.53 MB / 0.6323 GB, free: 0.9297 MB / 434.8 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)