Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler",fmuType="me",version="2.0",platforms={"static"}) [: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/Complex 3.2.3+maint.om/package.mo): time 0.001041/0.00104, allocations: 180.5 kB / 8.478 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.209/1.209, allocations: 205.2 MB / 214.1 MB, free: 5.168 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009083/0.0009082, allocations: 78.28 kB / 262.1 MB, free: 5.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1598/0.1608, allocations: 52.97 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06643/0.2272, allocations: 47.59 MB / 362.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.92/4.148, allocations: 2.832 GB / 3.186 GB, free: 64.96 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/4.148, allocations: 83.95 kB / 3.186 GB, free: 64.88 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 1.307/5.455, allocations: 495.8 MB / 3.67 GB, free: 33.18 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/5.455, allocations: 9.719 kB / 3.67 GB, free: 33.18 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002331/5.457, allocations: 297.2 kB / 3.67 GB, free: 33.12 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009481/5.458, allocations: 0.5128 MB / 3.671 GB, free: 32.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.816e-05/5.458, allocations: 20.44 kB / 3.671 GB, free: 32.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/5.458, allocations: 38.66 kB / 3.671 GB, free: 32.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008199/5.459, allocations: 0.4939 MB / 3.671 GB, free: 32.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008968/5.46, allocations: 0.6779 MB / 3.672 GB, free: 32.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/5.46, allocations: 9.719 kB / 3.672 GB, free: 32.22 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-05/5.46, allocations: 7.312 kB / 3.672 GB, free: 32.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/5.46, allocations: 15.69 kB / 3.672 GB, free: 32.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1157/5.576, allocations: 66.31 MB / 3.737 GB, free: 10.26 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005208/5.576, allocations: 340.9 kB / 3.737 GB, free: 9.938 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002933/5.577, allocations: 213 kB / 3.737 GB, free: 9.738 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1925/5.769, allocations: 39.73 MB / 3.776 GB, free: 86.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004542/5.77, allocations: 347.5 kB / 3.777 GB, free: 86.39 MB / 458.7 MB Notification: Performance of pre-optimization done (n=50): time 2.845e-06/5.77, allocations: 3.328 kB / 3.777 GB, free: 86.39 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.006343/5.776, allocations: 2.121 MB / 3.779 GB, free: 86.06 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/5.776, allocations: 214.6 kB / 3.779 GB, free: 85.81 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003644/5.776, allocations: 390 kB / 3.779 GB, free: 85.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.235e-05/5.776, allocations: 25.7 kB / 3.779 GB, free: 85.66 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/5.777, allocations: 292.2 kB / 3.779 GB, free: 85.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/5.777, allocations: 180.6 kB / 3.78 GB, free: 85.41 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/5.777, allocations: 2.844 kB / 3.78 GB, free: 85.41 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.442e-05/5.777, allocations: 365.7 kB / 3.78 GB, free: 85.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/5.777, allocations: 229.2 kB / 3.78 GB, free: 85.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003605/5.777, allocations: 402.8 kB / 3.781 GB, free: 84.91 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/5.779, allocations: 356.8 kB / 3.781 GB, free: 84.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/5.779, allocations: 0 / 3.781 GB, free: 84.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002613/5.781, allocations: 1.106 MB / 3.782 GB, free: 84.82 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002763/5.781, allocations: 1.744 MB / 3.784 GB, free: 83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/5.782, allocations: 3.438 kB / 3.784 GB, free: 83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000692/5.782, allocations: 152.6 kB / 3.784 GB, free: 83 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005189/5.783, allocations: 150.2 kB / 3.784 GB, free: 83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009775/5.784, allocations: 0.7821 MB / 3.785 GB, free: 82.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005758/5.784, allocations: 61.25 kB / 3.785 GB, free: 82.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.934e-05/5.784, allocations: 38.05 kB / 3.785 GB, free: 82.47 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.69e-06/5.784, allocations: 7.906 kB / 3.785 GB, free: 82.47 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001698/5.786, allocations: 0.7489 MB / 3.786 GB, free: 82.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/5.786, allocations: 3.906 kB / 3.786 GB, free: 82.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006182/5.787, allocations: 157.5 kB / 3.786 GB, free: 82.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004485/5.787, allocations: 131.8 kB / 3.786 GB, free: 82.44 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009136/5.788, allocations: 0.7897 MB / 3.787 GB, free: 81.92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004812/5.789, allocations: 56.02 kB / 3.787 GB, free: 81.92 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.225e-05/5.789, allocations: 33.92 kB / 3.787 GB, free: 81.92 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 19 ($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,q_F_Tab.nextEventScaled,Y_Valve_Tab.a,Y_Valve_Tab.b,Y_Valve_Tab.last,$PRE.Y_Valve_Tab.nextEvent,Y_Valve_Tab.nextEvent,Y_Valve_Tab.nextEventScaled,SteamValve.state_b.phase,SteamValve.state_a.phase,sink.state.phase,sink.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 67 * 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.000182/5.789, allocations: 196.1 kB / 3.787 GB, free: 81.75 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007019/5.79, allocations: 266.5 kB / 3.787 GB, free: 81.72 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003088/5.793, allocations: 2.417 MB / 3.79 GB, free: 81.56 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.991e-05/5.793, allocations: 26.59 kB / 3.79 GB, free: 81.56 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/5.793, allocations: 3.938 kB / 3.79 GB, free: 81.56 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/5.793, allocations: 3.422 kB / 3.79 GB, free: 81.56 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003144/5.796, allocations: 3.251 MB / 3.793 GB, free: 81.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/5.796, allocations: 2.656 kB / 3.793 GB, free: 81.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003799/5.796, allocations: 91.77 kB / 3.793 GB, free: 81.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007877/5.797, allocations: 236.9 kB / 3.793 GB, free: 81.13 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.084e-05/5.797, allocations: 26.91 kB / 3.793 GB, free: 81.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/5.798, allocations: 0.9144 MB / 3.794 GB, free: 80.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/5.798, allocations: 3.062 kB / 3.794 GB, free: 80.61 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003584/5.802, allocations: 2.705 MB / 3.797 GB, free: 80.35 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005597/5.807, allocations: 5.053 MB / 3.802 GB, free: 79.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001748/5.808, allocations: 165.3 kB / 3.802 GB, free: 79.56 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001303/5.808, allocations: 7.469 kB / 3.802 GB, free: 79.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004614/5.808, allocations: 51.17 kB / 3.802 GB, free: 79.56 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.604e-05/5.808, allocations: 42.94 kB / 3.802 GB, free: 79.56 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.015e-05/5.808, allocations: 35.72 kB / 3.802 GB, free: 79.56 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0002654/5.809, allocations: 288.9 kB / 3.802 GB, free: 79.47 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006303/5.815, allocations: 1.626 MB / 3.804 GB, free: 79.47 MB / 458.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: 25 ($cse1.region3boundary,$cse2.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$whenCondition1,$whenCondition2,pump.medium.phase,q_F_Tab.a,q_F_Tab.b,q_F_Tab.last,q_F_Tab.nextEvent,q_F_Tab.nextEventScaled,Y_Valve_Tab.a,Y_Valve_Tab.b,Y_Valve_Tab.last,Y_Valve_Tab.nextEvent,Y_Valve_Tab.nextEventScaled) * Number of discrete states: 12 (Y_Valve_Tab.nextEvent,Y_Valve_Tab.last,Y_Valve_Tab.nextEventScaled,Y_Valve_Tab.b,Y_Valve_Tab.a,$whenCondition2,q_F_Tab.nextEvent,q_F_Tab.last,q_F_Tab.nextEventScaled,q_F_Tab.b,q_F_Tab.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 7 * 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.005744/5.821, allocations: 1.99 MB / 3.806 GB, free: 79.34 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002253/5.823, allocations: 1.743 MB / 3.807 GB, free: 79.19 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/5.823, allocations: 3.188 kB / 3.807 GB, free: 79.19 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/5.824, allocations: 1.139 MB / 3.808 GB, free: 79.12 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/5.825, allocations: 219.3 kB / 3.809 GB, free: 79.12 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/5.828, allocations: 1.755 MB / 3.81 GB, free: 78.79 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004948/5.828, allocations: 1.122 MB / 3.812 GB, free: 78.08 MB / 458.7 MB Notification: Performance of SimCode: time 3.11e-07/5.828, allocations: 0 / 3.812 GB, free: 78.08 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler_fmu --startTime=0 --stopTime=5400 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe 2>&1)