Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001092/0.001092, allocations: 199.8 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.114/1.114, allocations: 225.5 MB / 234.4 MB, free: 14.95 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009155/0.0009156, allocations: 90.97 kB / 286.3 MB, free: 12.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09583/0.09677, allocations: 56.88 MB / 343.2 MB, free: 3.719 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.2792, allocations: 51.45 MB / 394.7 MB, free: 33.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.887/4.166, allocations: 2.838 GB / 3.223 GB, free: 135.6 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001822/4.166, allocations: 84.5 kB / 3.223 GB, free: 135.6 MB / 458.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.288/5.455, allocations: 0.4894 GB / 3.713 GB, free: 39.57 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.97e-05/5.455, allocations: 10.81 kB / 3.713 GB, free: 39.57 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001961/5.457, allocations: 300.9 kB / 3.713 GB, free: 39.53 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006877/5.458, allocations: 0.5116 MB / 3.713 GB, free: 39.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/5.458, allocations: 24.44 kB / 3.713 GB, free: 39.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.878e-05/5.458, allocations: 38.69 kB / 3.713 GB, free: 39.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007192/5.458, allocations: 499.5 kB / 3.714 GB, free: 39.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008232/5.459, allocations: 0.675 MB / 3.715 GB, free: 39.09 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/5.459, allocations: 7.172 kB / 3.715 GB, free: 39.09 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.678e-05/5.459, allocations: 3.844 kB / 3.715 GB, free: 39.09 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/5.459, allocations: 15.41 kB / 3.715 GB, free: 39.09 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1163/5.576, allocations: 73.97 MB / 3.787 GB, free: 23.24 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004441/5.576, allocations: 342.9 kB / 3.787 GB, free: 23.21 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/5.576, allocations: 219.6 kB / 3.787 GB, free: 23.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07907/5.656, allocations: 45.68 MB / 3.832 GB, free: 26.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005149/5.656, allocations: 358.1 kB / 3.832 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=50): time 2.044e-06/5.656, allocations: 0 / 3.832 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=58): time 0.006741/5.663, allocations: 2.114 MB / 3.834 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/5.663, allocations: 221.2 kB / 3.835 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00044/5.663, allocations: 376.1 kB / 3.835 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.379e-05/5.664, allocations: 37.02 kB / 3.835 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/5.664, allocations: 288.3 kB / 3.835 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/5.664, allocations: 182.5 kB / 3.835 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/5.664, allocations: 0 / 3.835 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001272/5.664, allocations: 368.5 kB / 3.836 GB, free: 24.82 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003188/5.664, allocations: 220.3 kB / 3.836 GB, free: 24.82 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003888/5.665, allocations: 406.7 kB / 3.836 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/5.666, allocations: 357.8 kB / 3.837 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/5.666, allocations: 3.812 kB / 3.837 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002721/5.669, allocations: 1.099 MB / 3.838 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005109/5.669, allocations: 1.745 MB / 3.839 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/5.669, allocations: 5.312 kB / 3.84 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00072/5.67, allocations: 154.2 kB / 3.84 GB, free: 22.69 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005261/5.67, allocations: 141.9 kB / 3.84 GB, free: 22.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001062/5.671, allocations: 0.7867 MB / 3.841 GB, free: 22.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005795/5.672, allocations: 59.25 kB / 3.841 GB, free: 22.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7e-05/5.672, allocations: 41.67 kB / 3.841 GB, free: 22.15 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.15e-06/5.672, allocations: 3.375 kB / 3.841 GB, free: 22.15 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001727/5.674, allocations: 0.7487 MB / 3.841 GB, free: 22.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/5.674, allocations: 7.938 kB / 3.841 GB, free: 22.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006344/5.675, allocations: 152.2 kB / 3.842 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000467/5.675, allocations: 131.3 kB / 3.842 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/5.676, allocations: 0.7843 MB / 3.842 GB, free: 21.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004729/5.677, allocations: 51.98 kB / 3.842 GB, free: 21.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.305e-05/5.677, allocations: 44.36 kB / 3.843 GB, free: 21.57 MB / 0.5105 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.0002012/5.677, allocations: 198.1 kB / 3.843 GB, free: 21.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007/5.678, allocations: 264.1 kB / 3.843 GB, free: 21.37 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003094/5.681, allocations: 2.427 MB / 3.845 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.866e-05/5.681, allocations: 24.94 kB / 3.845 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/5.681, allocations: 0 / 3.845 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/5.681, allocations: 6.078 kB / 3.845 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003141/5.684, allocations: 3.253 MB / 3.849 GB, free: 20.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/5.684, allocations: 0 / 3.849 GB, free: 20.76 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003733/5.684, allocations: 87.94 kB / 3.849 GB, free: 20.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008025/5.685, allocations: 242.6 kB / 3.849 GB, free: 20.75 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.105e-05/5.685, allocations: 22.2 kB / 3.849 GB, free: 20.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001155/5.686, allocations: 0.9168 MB / 3.85 GB, free: 20.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/5.686, allocations: 0 / 3.85 GB, free: 20.21 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003746/5.69, allocations: 2.698 MB / 3.852 GB, free: 19.96 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005976/5.696, allocations: 5.064 MB / 3.857 GB, free: 19.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/5.696, allocations: 157.4 kB / 3.857 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/5.696, allocations: 9.594 kB / 3.858 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004686/5.697, allocations: 47.73 kB / 3.858 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.25e-05/5.697, allocations: 51.78 kB / 3.858 GB, free: 19.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.07e-05/5.697, allocations: 26.53 kB / 3.858 GB, free: 19.15 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002767/5.697, allocations: 294.7 kB / 3.858 GB, free: 19.06 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006101/5.703, allocations: 1.649 MB / 3.86 GB, free: 18.89 MB / 0.5105 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.006401/5.71, allocations: 2.019 MB / 3.861 GB, free: 18.47 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002394/5.712, allocations: 1.741 MB / 3.863 GB, free: 18.31 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/5.712, allocations: 0 / 3.863 GB, free: 18.31 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001049/5.713, allocations: 1.137 MB / 3.864 GB, free: 18.24 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/5.714, allocations: 211 kB / 3.865 GB, free: 18.23 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/5.717, allocations: 1.753 MB / 3.866 GB, free: 17.84 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006449/5.717, allocations: 1.121 MB / 3.867 GB, free: 17.11 MB / 0.5105 GB Notification: Performance of SimCode: time 9.32e-07/5.717, allocations: 0 / 3.867 GB, free: 17.11 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler_fmu --startTime=0 --stopTime=5400 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler.fmu > Modelica_trunk_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe 2>&1)