Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009763/0.0009763, allocations: 183.8 kB / 8.136 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.128/1.128, allocations: 221.4 MB / 229.9 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008986/0.0008986, allocations: 104.3 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09605/0.09698, allocations: 55.81 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1964/0.2934, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.156/4.449, allocations: 2.837 GB / 3.215 GB, free: 131.2 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/4.449, allocations: 84.78 kB / 3.215 GB, free: 131.2 MB / 442.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.411/5.86, allocations: 0.4893 GB / 3.704 GB, free: 47.24 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/5.86, allocations: 9.406 kB / 3.704 GB, free: 47.24 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002193/5.863, allocations: 303.2 kB / 3.705 GB, free: 47.2 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009344/5.863, allocations: 0.5132 MB / 3.705 GB, free: 46.97 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.691e-05/5.864, allocations: 21.47 kB / 3.705 GB, free: 46.97 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.979e-05/5.864, allocations: 36.81 kB / 3.705 GB, free: 46.97 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007711/5.864, allocations: 0.4888 MB / 3.706 GB, free: 46.97 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008785/5.865, allocations: 0.6736 MB / 3.706 GB, free: 46.77 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/5.865, allocations: 1.031 kB / 3.706 GB, free: 46.77 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.129e-05/5.865, allocations: 9.5 kB / 3.706 GB, free: 46.77 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/5.865, allocations: 12.72 kB / 3.706 GB, free: 46.77 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1145/5.98, allocations: 66.34 MB / 3.771 GB, free: 21.76 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005142/5.98, allocations: 337 kB / 3.771 GB, free: 21.73 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002589/5.981, allocations: 214.7 kB / 3.772 GB, free: 21.72 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07816/6.059, allocations: 39.74 MB / 3.81 GB, free: 29.81 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005552/6.059, allocations: 348.2 kB / 3.811 GB, free: 29.68 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=50): time 2.375e-06/6.059, allocations: 0 / 3.811 GB, free: 29.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=58): time 0.006926/6.066, allocations: 2.125 MB / 3.813 GB, free: 29.25 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.537e-05/6.067, allocations: 216.4 kB / 3.813 GB, free: 29 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004528/6.067, allocations: 376 kB / 3.813 GB, free: 28.88 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.175e-05/6.067, allocations: 29.58 kB / 3.813 GB, free: 28.85 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/6.067, allocations: 286.8 kB / 3.814 GB, free: 28.66 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/6.067, allocations: 184.9 kB / 3.814 GB, free: 28.55 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.742e-05/6.067, allocations: 0 / 3.814 GB, free: 28.55 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001361/6.068, allocations: 373.5 kB / 3.814 GB, free: 28.23 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000325/6.068, allocations: 227.2 kB / 3.814 GB, free: 28.23 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003692/6.068, allocations: 400.3 kB / 3.815 GB, free: 28.04 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/6.069, allocations: 362.5 kB / 3.815 GB, free: 28.02 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/6.069, allocations: 4 kB / 3.815 GB, free: 28.02 MB / 0.4948 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00272/6.072, allocations: 1.095 MB / 3.816 GB, free: 27.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005296/6.073, allocations: 1.748 MB / 3.818 GB, free: 26.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/6.073, allocations: 3.562 kB / 3.818 GB, free: 26.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007395/6.074, allocations: 153.6 kB / 3.818 GB, free: 26.09 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005432/6.074, allocations: 144.3 kB / 3.818 GB, free: 26.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/6.075, allocations: 0.7881 MB / 3.819 GB, free: 25.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006708/6.076, allocations: 65.61 kB / 3.819 GB, free: 25.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.952e-05/6.076, allocations: 35.38 kB / 3.819 GB, free: 25.55 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.793e-06/6.076, allocations: 3.5 kB / 3.819 GB, free: 25.55 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001823/6.078, allocations: 0.7444 MB / 3.82 GB, free: 25.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/6.078, allocations: 3.75 kB / 3.82 GB, free: 25.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006492/6.078, allocations: 160.3 kB / 3.82 GB, free: 25.51 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004679/6.079, allocations: 132.7 kB / 3.82 GB, free: 25.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/6.08, allocations: 0.7816 MB / 3.821 GB, free: 24.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005719/6.081, allocations: 52.12 kB / 3.821 GB, free: 24.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.847e-05/6.081, allocations: 37.58 kB / 3.821 GB, free: 24.98 MB / 0.4948 GB 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.0002631/6.081, allocations: 193 kB / 3.821 GB, free: 24.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007792/6.082, allocations: 268.2 kB / 3.821 GB, free: 24.77 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003325/6.085, allocations: 2.432 MB / 3.824 GB, free: 24.59 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.188e-05/6.085, allocations: 25.83 kB / 3.824 GB, free: 24.59 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/6.085, allocations: 0 / 3.824 GB, free: 24.59 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/6.085, allocations: 7.016 kB / 3.824 GB, free: 24.59 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00364/6.089, allocations: 3.25 MB / 3.827 GB, free: 24.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/6.089, allocations: 0 / 3.827 GB, free: 24.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004109/6.089, allocations: 88.69 kB / 3.827 GB, free: 24.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008143/6.09, allocations: 243.9 kB / 3.827 GB, free: 24.15 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.548e-05/6.09, allocations: 18.98 kB / 3.827 GB, free: 24.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/6.091, allocations: 0.9216 MB / 3.828 GB, free: 23.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/6.091, allocations: 0 / 3.828 GB, free: 23.61 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003798/6.095, allocations: 2.699 MB / 3.831 GB, free: 23.36 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005819/6.101, allocations: 5.064 MB / 3.836 GB, free: 22.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002289/6.101, allocations: 162.6 kB / 3.836 GB, free: 22.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/6.101, allocations: 7.344 kB / 3.836 GB, free: 22.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005004/6.102, allocations: 46.25 kB / 3.836 GB, free: 22.55 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.752e-05/6.102, allocations: 47.67 kB / 3.836 GB, free: 22.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.04e-05/6.102, allocations: 28.27 kB / 3.836 GB, free: 22.55 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.000301/6.102, allocations: 289.3 kB / 3.836 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00671/6.109, allocations: 1.627 MB / 3.838 GB, free: 22.29 MB / 0.4948 GB 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.008932/6.118, allocations: 2.013 MB / 3.84 GB, free: 21.88 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002694/6.121, allocations: 1.745 MB / 3.842 GB, free: 21.71 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/6.121, allocations: 3.188 kB / 3.842 GB, free: 21.71 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001186/6.122, allocations: 1.135 MB / 3.843 GB, free: 21.64 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/6.123, allocations: 205 kB / 3.843 GB, free: 21.63 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002634/6.126, allocations: 1.757 MB / 3.845 GB, free: 21.23 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007292/6.127, allocations: 1.116 MB / 3.846 GB, free: 20.51 MB / 0.4948 GB Notification: Performance of SimCode: time 1.242e-06/6.127, allocations: 3.375 kB / 3.846 GB, free: 20.51 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler_fmu --startTime=0 --stopTime=5400 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe 2>&1)