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: translateModel(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controller.x|evaporator.V_l|evaporator.p",fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001337/0.001337, allocations: 204 kB / 8.539 MB, free: 1.75 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 225.5 MB / 234.4 MB, free: 15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001383/0.001382, allocations: 101.5 kB / 286.4 MB, free: 12.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.197e-05/1.251e-05, allocations: 0 / 343.1 MB, free: 3.758 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4072/0.4072, allocations: 51.47 MB / 394.6 MB, free: 33.16 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.674/8.081, allocations: 2.838 GB / 3.223 GB, free: 133.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/8.082, allocations: 79.75 kB / 3.223 GB, free: 133.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.92/10, allocations: 499.3 MB / 3.711 GB, free: 40.57 MB / 458.7 MB Notification: Performance of Transformations before backend: time 5.01e-05/10, allocations: 22.95 kB / 3.711 GB, free: 40.57 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 0.007491/10.01, allocations: 1.869 MB / 3.712 GB, free: 39.84 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/10.01, allocations: 11.06 kB / 3.712 GB, free: 39.84 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002375/10.01, allocations: 295.2 kB / 3.713 GB, free: 39.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/10.01, allocations: 0.5106 MB / 3.713 GB, free: 39.58 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/10.01, allocations: 26.12 kB / 3.713 GB, free: 39.58 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.485e-05/10.01, allocations: 33.09 kB / 3.713 GB, free: 39.58 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008501/10.01, allocations: 0.494 MB / 3.714 GB, free: 39.57 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008951/10.01, allocations: 0.6814 MB / 3.714 GB, free: 39.37 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/10.01, allocations: 6.969 kB / 3.714 GB, free: 39.37 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.892e-05/10.01, allocations: 0 / 3.714 GB, free: 39.37 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/10.01, allocations: 17.31 kB / 3.715 GB, free: 39.37 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.141/10.16, allocations: 73.97 MB / 3.787 GB, free: 23.46 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005415/10.16, allocations: 340.2 kB / 3.787 GB, free: 23.44 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002905/10.16, allocations: 212.2 kB / 3.787 GB, free: 23.43 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09545/10.25, allocations: 45.69 MB / 3.832 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005796/10.25, allocations: 354.5 kB / 3.832 GB, free: 26.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=50): time 2.876e-06/10.25, allocations: 3.281 kB / 3.832 GB, free: 26.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=58): time 0.007081/10.26, allocations: 2.115 MB / 3.834 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/10.26, allocations: 219 kB / 3.834 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004906/10.26, allocations: 378 kB / 3.835 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.272e-05/10.26, allocations: 29.42 kB / 3.835 GB, free: 25.67 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/10.26, allocations: 289 kB / 3.835 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/10.26, allocations: 182.3 kB / 3.835 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.464e-05/10.26, allocations: 3.906 kB / 3.835 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000197/10.26, allocations: 368.7 kB / 3.836 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003398/10.26, allocations: 226.5 kB / 3.836 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004266/10.26, allocations: 407.9 kB / 3.836 GB, free: 24.85 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/10.26, allocations: 352.2 kB / 3.837 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/10.26, allocations: 4 kB / 3.837 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002788/10.27, allocations: 1.102 MB / 3.838 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007182/10.27, allocations: 1.743 MB / 3.839 GB, free: 22.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/10.27, allocations: 3.812 kB / 3.839 GB, free: 22.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007313/10.27, allocations: 155.6 kB / 3.84 GB, free: 22.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005605/10.27, allocations: 147.4 kB / 3.84 GB, free: 22.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001146/10.27, allocations: 0.7755 MB / 3.84 GB, free: 22.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006867/10.27, allocations: 70.47 kB / 3.841 GB, free: 22.37 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.769e-05/10.27, allocations: 40.94 kB / 3.841 GB, free: 22.37 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/10.27, allocations: 2.906 kB / 3.841 GB, free: 22.37 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001869/10.27, allocations: 0.7487 MB / 3.841 GB, free: 22.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/10.27, allocations: 6.938 kB / 3.841 GB, free: 22.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006633/10.27, allocations: 152.8 kB / 3.841 GB, free: 22.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000475/10.27, allocations: 132 kB / 3.842 GB, free: 22.33 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/10.27, allocations: 0.7896 MB / 3.842 GB, free: 21.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006338/10.27, allocations: 47.09 kB / 3.842 GB, free: 21.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.849e-05/10.27, allocations: 35.94 kB / 3.842 GB, free: 21.8 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.0002914/10.27, allocations: 193 kB / 3.843 GB, free: 21.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007883/10.28, allocations: 274.8 kB / 3.843 GB, free: 21.59 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00342/10.28, allocations: 2.425 MB / 3.845 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/10.28, allocations: 26.02 kB / 3.845 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/10.28, allocations: 0 / 3.845 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/10.28, allocations: 9.25 kB / 3.845 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003813/10.28, allocations: 3.256 MB / 3.848 GB, free: 20.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/10.28, allocations: 0 / 3.848 GB, free: 20.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000399/10.28, allocations: 88.14 kB / 3.849 GB, free: 20.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008582/10.28, allocations: 241.1 kB / 3.849 GB, free: 20.97 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.288e-05/10.28, allocations: 16.77 kB / 3.849 GB, free: 20.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001248/10.29, allocations: 0.9231 MB / 3.85 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/10.29, allocations: 0 / 3.85 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004358/10.29, allocations: 2.704 MB / 3.852 GB, free: 20.18 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000261/10.29, allocations: 160.4 kB / 3.852 GB, free: 20.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/10.29, allocations: 12.34 kB / 3.852 GB, free: 20.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004839/10.29, allocations: 43.95 kB / 3.853 GB, free: 20.04 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.724e-05/10.29, allocations: 43.16 kB / 3.853 GB, free: 20.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-05/10.29, allocations: 33.08 kB / 3.853 GB, free: 20.04 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003198/10.29, allocations: 291.5 kB / 3.853 GB, free: 19.95 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00618/10.3, allocations: 1.336 MB / 3.854 GB, free: 19.77 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.009035/10.31, allocations: 2.017 MB / 3.856 GB, free: 19.35 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00286/10.31, allocations: 1.741 MB / 3.858 GB, free: 19.18 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/10.31, allocations: 0 / 3.858 GB, free: 19.18 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001304/10.31, allocations: 1.135 MB / 3.859 GB, free: 19.11 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/10.31, allocations: 213 kB / 3.859 GB, free: 19.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002678/10.32, allocations: 1.735 MB / 3.861 GB, free: 18.71 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000707/10.32, allocations: 1.113 MB / 3.862 GB, free: 17.98 MB / 0.5105 GB Notification: Performance of SimCode: time 5.41e-07/10.32, allocations: 3.938 kB / 3.862 GB, free: 17.98 MB / 0.5105 GB Notification: Performance of Templates: time 0.3378/10.65, allocations: 44.07 MB / 3.905 GB, free: 131.8 MB / 0.5105 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.makefile (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 & ./Modelica_trunk_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/DrumBoiler/DrumBoiler/DrumBoiler.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches