Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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: translateModel(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controller.x|evaporator.V_l|evaporator.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler") translateModel(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controller.x|evaporator.V_l|evaporator.p",fileNamePrefix="Modelica_3.2.3_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.00782/0.007827, allocations: 186 kB / 8.149 MB, free: 0.8555 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.314/2.314, allocations: 205.2 MB / 213.7 MB, free: 8.582 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001373/0.001372, allocations: 85.7 kB / 261.7 MB, free: 5.164 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 1.059e-05/1.069e-05, allocations: 4 kB / 314.3 MB, free: 2.418 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 47.56 MB / 361.8 MB, free: 2.742 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.197/6.304, allocations: 2.832 GB / 3.185 GB, free: 4.562 MB / 418.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/6.304, allocations: 83.19 kB / 3.185 GB, free: 4.527 MB / 418.8 MB Notification: Performance of FrontEnd: time 2.218/8.522, allocations: 494 MB / 3.667 GB, free: 5.914 MB / 434.8 MB Notification: Performance of Transformations before backend: time 6.02e-05/8.522, allocations: 19.94 kB / 3.668 GB, free: 5.895 MB / 434.8 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 0.00877/8.531, allocations: 1.86 MB / 3.669 GB, free: 3.984 MB / 434.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/8.531, allocations: 8.031 kB / 3.669 GB, free: 3.977 MB / 434.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003758/8.535, allocations: 299.7 kB / 3.67 GB, free: 3.688 MB / 434.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/8.537, allocations: 0.5191 MB / 3.67 GB, free: 3.141 MB / 434.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.258e-05/8.537, allocations: 20 kB / 3.67 GB, free: 3.121 MB / 434.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/8.537, allocations: 35.94 kB / 3.67 GB, free: 3.086 MB / 434.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001639/8.539, allocations: 0.4907 MB / 3.671 GB, free: 2.594 MB / 434.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/8.54, allocations: 0.6806 MB / 3.671 GB, free: 1.852 MB / 434.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/8.54, allocations: 3.984 kB / 3.671 GB, free: 1.848 MB / 434.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.83e-05/8.541, allocations: 7.984 kB / 3.671 GB, free: 1.84 MB / 434.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.812e-05/8.541, allocations: 15.91 kB / 3.671 GB, free: 1.824 MB / 434.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4271/8.968, allocations: 66.33 MB / 3.736 GB, free: 31.45 MB / 434.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008385/8.969, allocations: 341.5 kB / 3.736 GB, free: 31.42 MB / 434.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000477/8.969, allocations: 216.9 kB / 3.737 GB, free: 31.41 MB / 434.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1629/9.132, allocations: 39.72 MB / 3.775 GB, free: 39.54 MB / 466.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007976/9.133, allocations: 361 kB / 3.776 GB, free: 39.41 MB / 466.8 MB Notification: Performance of pre-optimization done (n=50): time 2.725e-06/9.133, allocations: 0 / 3.776 GB, free: 39.41 MB / 466.8 MB Notification: Performance of matching and sorting (n=58): time 0.01131/9.144, allocations: 2.106 MB / 3.778 GB, free: 39.04 MB / 466.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/9.144, allocations: 223 kB / 3.778 GB, free: 38.79 MB / 466.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006715/9.145, allocations: 384.8 kB / 3.778 GB, free: 38.67 MB / 466.8 MB Notification: Performance of collectPreVariables (initialization): time 9.766e-05/9.145, allocations: 29.52 kB / 3.778 GB, free: 38.64 MB / 466.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002397/9.145, allocations: 324.9 kB / 3.779 GB, free: 38.41 MB / 466.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002093/9.146, allocations: 184.4 kB / 3.779 GB, free: 38.32 MB / 466.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-05/9.146, allocations: 0 / 3.779 GB, free: 38.32 MB / 466.8 MB Notification: Performance of setup shared object (initialization): time 0.0001557/9.146, allocations: 341.2 kB / 3.779 GB, free: 38 MB / 466.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005912/9.147, allocations: 223.4 kB / 3.779 GB, free: 38 MB / 466.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007027/9.147, allocations: 408.3 kB / 3.78 GB, free: 37.8 MB / 466.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001973/9.149, allocations: 360.9 kB / 3.78 GB, free: 37.79 MB / 466.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/9.149, allocations: 3.828 kB / 3.78 GB, free: 37.79 MB / 466.8 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.004558/9.154, allocations: 1.062 MB / 3.781 GB, free: 37.73 MB / 466.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008509/9.155, allocations: 1.749 MB / 3.783 GB, free: 35.89 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/9.155, allocations: 2.656 kB / 3.783 GB, free: 35.89 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/9.156, allocations: 155.9 kB / 3.783 GB, free: 35.88 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/9.157, allocations: 139.5 kB / 3.783 GB, free: 35.88 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/9.159, allocations: 0.7846 MB / 3.784 GB, free: 35.35 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/9.16, allocations: 59 kB / 3.784 GB, free: 35.34 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/9.161, allocations: 43.91 kB / 3.784 GB, free: 35.34 MB / 466.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/9.161, allocations: 3.812 kB / 3.784 GB, free: 35.34 MB / 466.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003213/9.164, allocations: 0.7486 MB / 3.785 GB, free: 35.32 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/9.164, allocations: 3.875 kB / 3.785 GB, free: 35.32 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/9.165, allocations: 152.9 kB / 3.785 GB, free: 35.31 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009934/9.166, allocations: 128 kB / 3.785 GB, free: 35.31 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001924/9.168, allocations: 0.7895 MB / 3.786 GB, free: 34.78 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009426/9.169, allocations: 54.53 kB / 3.786 GB, free: 34.77 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/9.169, allocations: 39.81 kB / 3.786 GB, free: 34.77 MB / 466.8 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.0003927/9.17, allocations: 112.9 kB / 3.786 GB, free: 34.68 MB / 466.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001188/9.171, allocations: 272.2 kB / 3.786 GB, free: 34.64 MB / 466.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005936/9.177, allocations: 2.425 MB / 3.789 GB, free: 34.46 MB / 466.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.94e-05/9.177, allocations: 28.61 kB / 3.789 GB, free: 34.46 MB / 466.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/9.177, allocations: 0 / 3.789 GB, free: 34.46 MB / 466.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/9.177, allocations: 3.75 kB / 3.789 GB, free: 34.46 MB / 466.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006315/9.183, allocations: 3.249 MB / 3.792 GB, free: 34.05 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/9.183, allocations: 0.6562 kB / 3.792 GB, free: 34.05 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008167/9.184, allocations: 90.19 kB / 3.792 GB, free: 34.05 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001618/9.186, allocations: 246 kB / 3.792 GB, free: 34.04 MB / 466.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001517/9.186, allocations: 18.86 kB / 3.792 GB, free: 34.04 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002304/9.188, allocations: 0.9193 MB / 3.793 GB, free: 33.5 MB / 466.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/9.188, allocations: 0 / 3.793 GB, free: 33.5 MB / 466.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007788/9.196, allocations: 2.702 MB / 3.796 GB, free: 33.24 MB / 466.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000414/9.197, allocations: 159.2 kB / 3.796 GB, free: 33.1 MB / 466.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002561/9.197, allocations: 9.469 kB / 3.796 GB, free: 33.1 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009503/9.198, allocations: 53.42 kB / 3.796 GB, free: 33.09 MB / 466.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/9.198, allocations: 42.31 kB / 3.796 GB, free: 33.09 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/9.198, allocations: 30.12 kB / 3.796 GB, free: 33.09 MB / 466.8 MB Notification: Performance of sort global known variables: time 0.0005835/9.199, allocations: 286.8 kB / 3.796 GB, free: 33 MB / 466.8 MB Notification: Performance of remove unused functions: time 0.008551/9.207, allocations: 1.333 MB / 3.798 GB, free: 33 MB / 466.8 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.0125/9.22, allocations: 2.009 MB / 3.8 GB, free: 32.76 MB / 466.8 MB Notification: Performance of simCode: created initialization part: time 0.004297/9.224, allocations: 1.734 MB / 3.801 GB, free: 32.6 MB / 466.8 MB Notification: Performance of simCode: created event and clocks part: time 6.351e-06/9.224, allocations: 0.6562 kB / 3.801 GB, free: 32.6 MB / 466.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002064/9.226, allocations: 1.131 MB / 3.802 GB, free: 32.53 MB / 466.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002167/9.228, allocations: 209.1 kB / 3.803 GB, free: 32.52 MB / 466.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004122/9.233, allocations: 1.758 MB / 3.804 GB, free: 32.1 MB / 466.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001054/9.234, allocations: 1.111 MB / 3.805 GB, free: 31.38 MB / 466.8 MB Notification: Performance of SimCode: time 1.123e-06/9.234, allocations: 4 kB / 3.805 GB, free: 31.38 MB / 466.8 MB Notification: Performance of Templates: time 0.07388/9.308, allocations: 36.35 MB / 3.841 GB, free: 22.52 MB / 466.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/DrumBoiler/DrumBoiler/DrumBoiler.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches