Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler") translateModel(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7382/0.7382, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001842/0.001842, allocations: 152 kB / 143.7 MB, free: 4.879 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 9.137e-06/9.157e-06, allocations: 0 / 173.4 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05567/0.05569, allocations: 25.17 MB / 198.6 MB, free: 13.94 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.029/3.085, allocations: 1.452 GB / 1.646 GB, free: 51.42 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/3.085, allocations: 70.3 kB / 1.646 GB, free: 51.42 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.552/4.638, allocations: 439.5 MB / 2.076 GB, free: 9.355 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.513e-05/4.638, allocations: 16.38 kB / 2.076 GB, free: 9.352 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.008396/4.646, allocations: 1.736 MB / 2.077 GB, free: 8.242 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/4.646, allocations: 8.844 kB / 2.077 GB, free: 8.242 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005825/4.647, allocations: 78.53 kB / 2.077 GB, free: 8.207 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/4.648, allocations: 471.5 kB / 2.078 GB, free: 7.879 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/4.649, allocations: 58.16 kB / 2.078 GB, free: 7.84 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001881/4.649, allocations: 38.69 kB / 2.078 GB, free: 7.832 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001223/4.65, allocations: 0.5291 MB / 2.079 GB, free: 7.641 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001263/4.651, allocations: 0.6308 MB / 2.079 GB, free: 7.312 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/4.651, allocations: 3.938 kB / 2.079 GB, free: 7.309 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.899e-05/4.651, allocations: 5.531 kB / 2.079 GB, free: 7.309 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/4.651, allocations: 13.53 kB / 2.079 GB, free: 7.309 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2438/4.895, allocations: 62.43 MB / 2.14 GB, free: 16.26 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004355/4.896, allocations: 321.3 kB / 2.14 GB, free: 16.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002347/4.896, allocations: 175.4 kB / 2.141 GB, free: 16.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6947/5.591, allocations: 186.4 MB / 2.323 GB, free: 58.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005771/5.591, allocations: 323.4 kB / 2.323 GB, free: 58.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 2.043e-06/5.591, allocations: 0 / 2.323 GB, free: 58.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.01434/5.606, allocations: 2.986 MB / 2.326 GB, free: 58.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.738e-05/5.606, allocations: 222.2 kB / 2.326 GB, free: 58.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003921/5.606, allocations: 343.4 kB / 2.326 GB, free: 58.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.869e-05/5.606, allocations: 25.7 kB / 2.326 GB, free: 58.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000179/5.606, allocations: 279.8 kB / 2.327 GB, free: 57.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/5.607, allocations: 173.4 kB / 2.327 GB, free: 57.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.202e-05/5.607, allocations: 0 / 2.327 GB, free: 57.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.881e-05/5.607, allocations: 362.7 kB / 2.327 GB, free: 57.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003016/5.607, allocations: 209.7 kB / 2.327 GB, free: 57.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003812/5.607, allocations: 368.2 kB / 2.328 GB, free: 57.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003524/5.611, allocations: 0.6694 MB / 2.328 GB, free: 57.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/5.611, allocations: 0 / 2.328 GB, free: 57.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.004534/5.615, allocations: 1.175 MB / 2.33 GB, free: 57.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/5.615, allocations: 3.719 kB / 2.33 GB, free: 57.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/5.616, allocations: 9.594 kB / 2.33 GB, free: 57.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000726/5.616, allocations: 152.1 kB / 2.33 GB, free: 57.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005234/5.617, allocations: 135.8 kB / 2.33 GB, free: 57.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/5.618, allocations: 0.7673 MB / 2.331 GB, free: 56.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006457/5.618, allocations: 64.56 kB / 2.331 GB, free: 56.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.831e-05/5.619, allocations: 31.94 kB / 2.331 GB, free: 56.73 MB / 298.7 MB Warning: Assuming fixed start value for the following 1 variables: controller.x:VARIABLE(start = controller.x_start ) "State of block" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 16 (SteamValve.state_b.phase,SteamValve.state_a.phase,$whenCondition1,$whenCondition2,pump.medium.phase,q_F_Tab.a,q_F_Tab.b,q_F_Tab.last,$PRE.q_F_Tab.nextEvent,q_F_Tab.nextEvent,Y_Valve_Tab.a,Y_Valve_Tab.b,Y_Valve_Tab.last,$PRE.Y_Valve_Tab.nextEvent,Y_Valve_Tab.nextEvent,sink.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002489/5.619, allocations: 193.9 kB / 2.331 GB, free: 56.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000215/5.619, allocations: 107.6 kB / 2.331 GB, free: 56.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004166/5.623, allocations: 1.859 MB / 2.333 GB, free: 56.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.869e-05/5.623, allocations: 18.91 kB / 2.333 GB, free: 56.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/5.623, allocations: 0 / 2.333 GB, free: 56.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/5.623, allocations: 11.23 kB / 2.333 GB, free: 56.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003829/5.627, allocations: 2.214 MB / 2.335 GB, free: 56.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/5.627, allocations: 6.125 kB / 2.335 GB, free: 56.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004134/5.628, allocations: 92.5 kB / 2.335 GB, free: 56.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008578/5.628, allocations: 249.2 kB / 2.335 GB, free: 56.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.205e-05/5.628, allocations: 21.97 kB / 2.335 GB, free: 56.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/5.629, allocations: 0.9182 MB / 2.336 GB, free: 55.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/5.63, allocations: 3.281 kB / 2.336 GB, free: 55.58 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003532/5.633, allocations: 2.091 MB / 2.338 GB, free: 55.37 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/5.633, allocations: 146.2 kB / 2.338 GB, free: 55.24 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/5.633, allocations: 4.938 kB / 2.338 GB, free: 55.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005177/5.634, allocations: 49.48 kB / 2.338 GB, free: 55.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.972e-05/5.634, allocations: 49.08 kB / 2.338 GB, free: 55.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.417e-05/5.634, allocations: 30.62 kB / 2.339 GB, free: 55.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0002473/5.634, allocations: 270.8 kB / 2.339 GB, free: 55.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.005617/5.64, allocations: 1.335 MB / 2.34 GB, free: 55.14 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (evaporator.p,evaporator.V_l,controller.x) * Number of discrete variables: 18 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse11.phase,$cse14.phase,$cse15.phase,$cse15.region,$whenCondition1,$whenCondition2,pump.medium.phase,q_F_Tab.a,q_F_Tab.b,q_F_Tab.last,q_F_Tab.nextEvent,Y_Valve_Tab.a,Y_Valve_Tab.b,Y_Valve_Tab.last,Y_Valve_Tab.nextEvent) * Number of discrete states: 10 (Y_Valve_Tab.last,Y_Valve_Tab.nextEvent,Y_Valve_Tab.b,Y_Valve_Tab.a,$whenCondition2,q_F_Tab.last,q_F_Tab.nextEvent,q_F_Tab.b,q_F_Tab.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.008927/5.649, allocations: 2.185 MB / 2.342 GB, free: 54.94 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001731/5.651, allocations: 0.913 MB / 2.343 GB, free: 54.87 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/5.651, allocations: 4.562 kB / 2.343 GB, free: 54.87 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009357/5.652, allocations: 0.7358 MB / 2.344 GB, free: 54.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/5.653, allocations: 208.6 kB / 2.344 GB, free: 54.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/5.655, allocations: 1.247 MB / 2.345 GB, free: 54.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005491/5.656, allocations: 1.048 MB / 2.346 GB, free: 53.81 MB / 298.7 MB Notification: Performance of SimCode: time 1.052e-06/5.656, allocations: 0 / 2.346 GB, free: 53.81 MB / 298.7 MB Notification: Performance of Templates: time 0.05601/5.712, allocations: 41.52 MB / 2.387 GB, free: 50.97 MB / 298.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.sim & ./Modelica_3.1_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe 2>&1)