Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009831/0.0009832, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.936/1.936, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009318/0.0009318, allocations: 94.58 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.981e-05/1.983e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1334, allocations: 47.59 MB / 363.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.217/7.351, allocations: 2.832 GB / 3.187 GB, free: 31.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/7.351, allocations: 86.11 kB / 3.187 GB, free: 31.82 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.867/9.218, allocations: 492.7 MB / 3.668 GB, free: 30.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.362e-06/9.218, allocations: 0 / 3.668 GB, free: 30.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.819e-05/9.218, allocations: 15.06 kB / 3.668 GB, free: 30.65 MB / 426.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.007643/9.226, allocations: 1.856 MB / 3.67 GB, free: 29.47 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/9.226, allocations: 7.969 kB / 3.67 GB, free: 29.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002316/9.228, allocations: 247.1 kB / 3.67 GB, free: 29.42 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/9.23, allocations: 0.5126 MB / 3.67 GB, free: 29.06 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.969e-05/9.23, allocations: 22.78 kB / 3.67 GB, free: 29.06 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001548/9.23, allocations: 32.12 kB / 3.67 GB, free: 29.06 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009517/9.231, allocations: 0.4992 MB / 3.671 GB, free: 28.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/9.232, allocations: 0.6688 MB / 3.672 GB, free: 28.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/9.232, allocations: 9.938 kB / 3.672 GB, free: 28.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.576e-05/9.232, allocations: 0 / 3.672 GB, free: 28.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/9.232, allocations: 16.72 kB / 3.672 GB, free: 28.52 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.432/9.664, allocations: 66.44 MB / 3.736 GB, free: 37.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006505/9.665, allocations: 354.9 kB / 3.737 GB, free: 37.93 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000278/9.665, allocations: 219.6 kB / 3.737 GB, free: 37.93 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04856/9.714, allocations: 23.79 MB / 3.76 GB, free: 25.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007365/9.714, allocations: 362.9 kB / 3.761 GB, free: 25.07 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005761/9.715, allocations: 74.89 kB / 3.761 GB, free: 25.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=50): time 3.887e-06/9.715, allocations: 0 / 3.761 GB, free: 25.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.009201/9.724, allocations: 2.368 MB / 3.763 GB, free: 24.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/9.724, allocations: 219.4 kB / 3.763 GB, free: 24.45 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005163/9.725, allocations: 379.5 kB / 3.764 GB, free: 24.33 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.969e-05/9.725, allocations: 27.77 kB / 3.764 GB, free: 24.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002889/9.725, allocations: 356.7 kB / 3.764 GB, free: 24.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/9.725, allocations: 185.2 kB / 3.764 GB, free: 24.05 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/9.725, allocations: 3.188 kB / 3.764 GB, free: 24.05 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.652e-05/9.726, allocations: 366.6 kB / 3.764 GB, free: 23.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/9.726, allocations: 241.3 kB / 3.765 GB, free: 23.74 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000426/9.726, allocations: 418.1 kB / 3.765 GB, free: 23.54 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/9.728, allocations: 373 kB / 3.765 GB, free: 23.53 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/9.728, allocations: 0 / 3.765 GB, free: 23.53 MB / 442.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002509/9.73, allocations: 0.9662 MB / 3.766 GB, free: 23.44 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004213/9.731, allocations: 1.81 MB / 3.768 GB, free: 21.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/9.731, allocations: 7.656 kB / 3.768 GB, free: 21.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008736/9.732, allocations: 248.5 kB / 3.768 GB, free: 21.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004798/9.732, allocations: 136.3 kB / 3.769 GB, free: 21.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/9.734, allocations: 0.8521 MB / 3.769 GB, free: 21.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007839/9.735, allocations: 65.06 kB / 3.769 GB, free: 21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.64e-05/9.735, allocations: 47.66 kB / 3.769 GB, free: 21 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/9.735, allocations: 3.562 kB / 3.769 GB, free: 21 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002417/9.737, allocations: 0.9174 MB / 3.77 GB, free: 20.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/9.737, allocations: 3.938 kB / 3.77 GB, free: 20.97 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007799/9.738, allocations: 249.3 kB / 3.771 GB, free: 20.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004412/9.738, allocations: 130.2 kB / 3.771 GB, free: 20.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/9.74, allocations: 0.8539 MB / 3.772 GB, free: 20.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007263/9.741, allocations: 51.17 kB / 3.772 GB, free: 20.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-05/9.741, allocations: 50.95 kB / 3.772 GB, free: 20.43 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 () * 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.0002945/9.741, allocations: 205 kB / 3.772 GB, free: 20.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002082/9.741, allocations: 63.41 kB / 3.772 GB, free: 20.22 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005046/9.746, allocations: 4.364 MB / 3.776 GB, free: 20.04 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.363e-05/9.746, allocations: 29.33 kB / 3.776 GB, free: 20.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/9.746, allocations: 3.953 kB / 3.776 GB, free: 20.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/9.746, allocations: 3.891 kB / 3.776 GB, free: 20.04 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006927/9.753, allocations: 6.107 MB / 3.782 GB, free: 19.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/9.753, allocations: 3.5 kB / 3.782 GB, free: 19.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003829/9.754, allocations: 87.3 kB / 3.782 GB, free: 19.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002099/9.756, allocations: 1.268 MB / 3.783 GB, free: 19.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.332e-05/9.756, allocations: 23.91 kB / 3.784 GB, free: 19.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00233/9.758, allocations: 2.855 MB / 3.786 GB, free: 18.87 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/9.758, allocations: 0 / 3.786 GB, free: 18.87 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007482/9.766, allocations: 5.523 MB / 3.792 GB, free: 18.62 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004018/9.766, allocations: 176.3 kB / 3.792 GB, free: 18.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002236/9.766, allocations: 3.844 kB / 3.792 GB, free: 18.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007628/9.767, allocations: 64.03 kB / 3.792 GB, free: 18.47 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/9.767, allocations: 46.17 kB / 3.792 GB, free: 18.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.577e-05/9.767, allocations: 26.94 kB / 3.792 GB, free: 18.47 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000417/9.768, allocations: 280.4 kB / 3.792 GB, free: 18.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.01e-07/9.768, allocations: 0 / 3.792 GB, free: 18.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007063/9.775, allocations: 1.295 MB / 3.794 GB, free: 18.38 MB / 442.7 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,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.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 (51): * Single equations (assignments): 41 * 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.01018/9.785, allocations: 1.902 MB / 3.795 GB, free: 18.15 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003254/9.788, allocations: 1.645 MB / 3.797 GB, free: 17.87 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/9.788, allocations: 0 / 3.797 GB, free: 17.87 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001186/9.79, allocations: 0.7775 MB / 3.798 GB, free: 17.74 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/9.791, allocations: 227.5 kB / 3.798 GB, free: 17.72 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/9.794, allocations: 1.486 MB / 3.799 GB, free: 17.31 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004856/9.794, allocations: 1.04 MB / 3.8 GB, free: 16.6 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001186/9.796, allocations: 0.6868 MB / 3.801 GB, free: 16.57 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/9.796, allocations: 51.69 kB / 3.801 GB, free: 16.56 MB / 442.7 MB Notification: Performance of SimCode: time 5.71e-07/9.796, allocations: 0 / 3.801 GB, free: 16.56 MB / 442.7 MB Notification: Performance of Templates: time 0.06026/9.856, allocations: 40.8 MB / 3.841 GB, free: 10.85 MB / 442.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler_res.mat","/var/lib/jenkins/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_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches