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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009794/0.0009793, allocations: 177.6 kB / 17.41 MB, free: 4.281 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.57/1.57, allocations: 205.4 MB / 223.6 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008654/0.0008656, allocations: 94.36 kB / 271.9 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003431/0.0003433, allocations: 8 kB / 328.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2915, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.861/6.152, allocations: 2.833 GB / 3.2 GB, free: 48.37 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/6.153, allocations: 87.95 kB / 3.2 GB, free: 48.29 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.517/7.67, allocations: 475.1 MB / 3.664 GB, free: 46.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.924e-06/7.67, allocations: 0 / 3.664 GB, free: 46.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.862e-05/7.67, allocations: 19.86 kB / 3.664 GB, free: 46.32 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 0.006476/7.677, allocations: 1.912 MB / 3.666 GB, free: 45.16 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/7.677, allocations: 10.94 kB / 3.666 GB, free: 45.16 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002229/7.679, allocations: 254.5 kB / 3.666 GB, free: 45.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/7.68, allocations: 0.5258 MB / 3.666 GB, free: 44.85 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.357e-05/7.68, allocations: 46.94 kB / 3.666 GB, free: 44.85 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/7.68, allocations: 58.38 kB / 3.667 GB, free: 44.85 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002028/7.682, allocations: 0.9386 MB / 3.667 GB, free: 44.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/7.682, allocations: 9.375 kB / 3.667 GB, free: 44.63 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.491e-05/7.682, allocations: 25.78 kB / 3.667 GB, free: 44.63 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/7.682, allocations: 14.62 kB / 3.667 GB, free: 44.63 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/7.684, allocations: 0.7465 MB / 3.668 GB, free: 44.62 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004234/7.688, allocations: 4.184 MB / 3.672 GB, free: 41.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/7.69, allocations: 0.6712 MB / 3.673 GB, free: 41.24 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004799/7.69, allocations: 297.7 kB / 3.673 GB, free: 41.12 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06672/7.757, allocations: 38.87 MB / 3.711 GB, free: 18.01 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001503/7.759, allocations: 0.5825 MB / 3.712 GB, free: 17.75 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004736/7.759, allocations: 90.69 kB / 3.712 GB, free: 17.71 MB / 442.7 MB Notification: Performance of pre-optimization done (n=57): time 2.685e-06/7.759, allocations: 0 / 3.712 GB, free: 17.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=65): time 0.009783/7.769, allocations: 3.315 MB / 3.715 GB, free: 16.26 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.296e-05/7.769, allocations: 268.8 kB / 3.715 GB, free: 15.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004849/7.77, allocations: 482.9 kB / 3.716 GB, free: 15.72 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.169e-05/7.77, allocations: 39.61 kB / 3.716 GB, free: 15.68 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/7.77, allocations: 326.5 kB / 3.716 GB, free: 15.42 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/7.77, allocations: 215.5 kB / 3.716 GB, free: 15.26 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/7.77, allocations: 11.75 kB / 3.716 GB, free: 15.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.713e-05/7.77, allocations: 375.7 kB / 3.717 GB, free: 14.91 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005267/7.771, allocations: 290.6 kB / 3.717 GB, free: 14.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005671/7.771, allocations: 474.8 kB / 3.717 GB, free: 14.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/7.772, allocations: 0.8603 MB / 3.718 GB, free: 13.92 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/7.772, allocations: 3.594 kB / 3.718 GB, free: 13.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001785/7.774, allocations: 1.067 MB / 3.719 GB, free: 13.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001318/7.774, allocations: 286 kB / 3.72 GB, free: 13.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/7.774, allocations: 3.906 kB / 3.72 GB, free: 13.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003516/7.778, allocations: 353.6 kB / 3.72 GB, free: 13.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005521/7.779, allocations: 141.2 kB / 3.72 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009553/7.779, allocations: 0.8051 MB / 3.721 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007876/7.78, allocations: 74.12 kB / 3.721 GB, free: 12.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.736e-05/7.78, allocations: 42.97 kB / 3.721 GB, free: 12.35 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/7.78, allocations: 7.594 kB / 3.721 GB, free: 12.35 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001761/7.782, allocations: 1.012 MB / 3.722 GB, free: 11.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/7.782, allocations: 3.938 kB / 3.722 GB, free: 11.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003561/7.786, allocations: 359.5 kB / 3.722 GB, free: 11.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000483/7.786, allocations: 130.5 kB / 3.722 GB, free: 11.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009449/7.787, allocations: 0.8019 MB / 3.723 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008174/7.788, allocations: 63.55 kB / 3.723 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.163e-05/7.788, allocations: 50.59 kB / 3.723 GB, free: 10.75 MB / 442.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 () * Number of clocked 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.0004922/7.789, allocations: 360.9 kB / 3.724 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/7.789, allocations: 71.25 kB / 3.724 GB, free: 10.31 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00508/7.794, allocations: 4.81 MB / 3.728 GB, free: 6.066 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-05/7.794, allocations: 26.3 kB / 3.728 GB, free: 6.051 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/7.794, allocations: 4 kB / 3.728 GB, free: 6.047 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/7.794, allocations: 3.656 kB / 3.728 GB, free: 6.047 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006754/7.801, allocations: 6.568 MB / 3.735 GB, free: 16.24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/7.801, allocations: 7.625 kB / 3.735 GB, free: 16.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003944/7.801, allocations: 107.2 kB / 3.735 GB, free: 16.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002164/7.803, allocations: 1.079 MB / 3.736 GB, free: 15.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/7.803, allocations: 23.42 kB / 3.736 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002152/7.806, allocations: 2.347 MB / 3.738 GB, free: 13.16 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/7.806, allocations: 3.938 kB / 3.738 GB, free: 13.16 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006834/7.813, allocations: 5.553 MB / 3.744 GB, free: 8.215 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004189/7.813, allocations: 239 kB / 3.744 GB, free: 7.984 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/7.813, allocations: 24 kB / 3.744 GB, free: 7.961 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006692/7.814, allocations: 72.09 kB / 3.744 GB, free: 7.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/7.814, allocations: 50.64 kB / 3.744 GB, free: 7.883 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.944e-05/7.814, allocations: 31.33 kB / 3.744 GB, free: 7.855 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006504/7.815, allocations: 487.3 kB / 3.745 GB, free: 7.438 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.864e-06/7.815, allocations: 0 / 3.745 GB, free: 7.438 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005866/7.821, allocations: 1.372 MB / 3.746 GB, free: 6.094 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (evaporator.p,evaporator.V_l,controller.x) * Number of discrete variables: 27 ($cse1.region3boundary,$cse2.region3boundary,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 8 * 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.008205/7.829, allocations: 1.778 MB / 3.748 GB, free: 4.715 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003456/7.832, allocations: 1.84 MB / 3.75 GB, free: 3.016 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/7.832, allocations: 0 / 3.75 GB, free: 3.016 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001311/7.834, allocations: 0.8996 MB / 3.75 GB, free: 2.164 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001847/7.836, allocations: 319 kB / 3.751 GB, free: 1.938 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2224/8.058, allocations: 2.771 MB / 3.753 GB, free: 60.16 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000469/8.058, allocations: 1.073 MB / 3.754 GB, free: 59.46 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000252/8.059, allocations: 65.47 kB / 3.755 GB, free: 59.45 MB / 458.7 MB Notification: Performance of SimCode: time 5.71e-07/8.059, allocations: 0 / 3.755 GB, free: 59.45 MB / 458.7 MB Notification: Performance of Templates: time 0.04938/8.108, allocations: 35.25 MB / 3.789 GB, free: 58.27 MB / 458.7 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