Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002205/0.002205, allocations: 195.8 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 225.6 MB / 234.8 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009289/0.000929, allocations: 92.28 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.916e-05/1.935e-05, allocations: 4 kB / 343.7 MB, free: 8.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1044, allocations: 51.48 MB / 395.2 MB, free: 4.797 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4035/0.5079, allocations: 83.41 MB / 478.6 MB, free: 9.688 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.5082, allocations: 73.56 kB / 478.6 MB, free: 9.664 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03657/0.5448, allocations: 15.52 MB / 494.2 MB, free: 13.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5449, allocations: 0 / 494.2 MB, free: 13.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.52e-05/0.5449, allocations: 16 kB / 494.2 MB, free: 13.21 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001634/0.5465, allocations: 0.9748 MB / 495.2 MB, free: 12.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.5466, allocations: 15.97 kB / 495.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.5468, allocations: 98.88 kB / 495.3 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006607/0.5475, allocations: 474.4 kB / 495.7 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.5476, allocations: 88.7 kB / 495.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.987e-05/0.5477, allocations: 31.61 kB / 495.9 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006895/0.5484, allocations: 410.9 kB / 496.3 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008945/0.5493, allocations: 0.6612 MB / 496.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.5493, allocations: 0 / 496.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.172e-05/0.5494, allocations: 4 kB / 496.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.5494, allocations: 16 kB / 496.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00308/0.5525, allocations: 1.944 MB / 498.9 MB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008144/0.5533, allocations: 472.8 kB / 499.3 MB, free: 8.805 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002806/0.5536, allocations: 214.5 kB / 499.5 MB, free: 8.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.583e-05/0.5537, allocations: 16.72 kB / 499.6 MB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004448/0.5542, allocations: 274.8 kB / 499.8 MB, free: 8.457 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.615e-06/0.5542, allocations: 0 / 499.8 MB, free: 8.457 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.001644/0.5558, allocations: 0.6996 MB / 0.4888 GB, free: 7.906 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003214/0.5561, allocations: 0.8271 MB / 0.4896 GB, free: 6.887 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005405/0.5567, allocations: 453.4 kB / 0.49 GB, free: 6.547 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.803e-05/0.5568, allocations: 29.7 kB / 0.4901 GB, free: 6.512 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002241/0.557, allocations: 331.5 kB / 0.4904 GB, free: 6.297 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.5572, allocations: 200.6 kB / 0.4906 GB, free: 6.121 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.012e-05/0.5572, allocations: 0 / 0.4906 GB, free: 6.121 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.5573, allocations: 375.9 kB / 0.4909 GB, free: 5.773 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.5576, allocations: 166.7 kB / 0.4911 GB, free: 5.676 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004688/0.5581, allocations: 463 kB / 0.4915 GB, free: 5.207 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003227/0.5584, allocations: 211.9 kB / 0.4917 GB, free: 5.074 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.5584, allocations: 0 / 0.4917 GB, free: 5.074 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001725/0.5602, allocations: 0.7726 MB / 0.4925 GB, free: 4.465 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.255e-05/0.5602, allocations: 63.36 kB / 0.4926 GB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.5603, allocations: 7.969 kB / 0.4926 GB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006601/0.5609, allocations: 204.1 kB / 0.4928 GB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006522/0.5616, allocations: 131.5 kB / 0.4929 GB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00493/0.5665, allocations: 3.955 MB / 0.4967 GB, free: 36 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008276/0.5674, allocations: 81.89 kB / 0.4968 GB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.443e-05/0.5675, allocations: 20 kB / 0.4968 GB, free: 15.94 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real idealPump.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real oneWayValve.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real oneWayValve.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002802/0.5678, allocations: 145.5 kB / 0.497 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.5679, allocations: 75.16 kB / 0.4971 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001873/0.5681, allocations: 70.88 kB / 0.4971 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.5681, allocations: 4 kB / 0.4971 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.5681, allocations: 0 / 0.4971 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001451/0.5696, allocations: 0.9762 MB / 0.4981 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.5717, allocations: 1.382 MB / 0.4994 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.5717, allocations: 0 / 0.4994 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006401/0.5724, allocations: 115.9 kB / 0.4995 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004369/0.5728, allocations: 153.5 kB / 0.4997 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.89e-05/0.5729, allocations: 7.984 kB / 0.4997 GB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003741/0.5766, allocations: 3.373 MB / 0.503 GB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.5767, allocations: 7.938 kB / 0.503 GB, free: 9.223 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.5782, allocations: 0.8906 MB / 0.5039 GB, free: 8.309 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003297/0.5785, allocations: 212.2 kB / 0.5041 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.441e-05/0.5786, allocations: 15.92 kB / 0.5041 GB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004396/0.5791, allocations: 36.03 kB / 0.5041 GB, free: 8.031 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.5792, allocations: 52.48 kB / 0.5042 GB, free: 7.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.509e-05/0.5793, allocations: 15.98 kB / 0.5042 GB, free: 7.965 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004779/0.5798, allocations: 354.9 kB / 0.5045 GB, free: 7.621 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5798, allocations: 0 / 0.5045 GB, free: 7.621 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008943/0.5807, allocations: 235.6 kB / 0.5047 GB, free: 7.391 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002508/0.5809, allocations: 132.2 kB / 0.5049 GB, free: 7.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001439/0.5824, allocations: 0.8879 MB / 0.5057 GB, free: 6.316 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.5824, allocations: 4 kB / 0.5057 GB, free: 6.312 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006372/0.583, allocations: 485.4 kB / 0.5062 GB, free: 5.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000767/0.5838, allocations: 165.3 kB / 0.5064 GB, free: 5.668 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.5856, allocations: 0.818 MB / 0.5072 GB, free: 4.824 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005329/0.5861, allocations: 0.9319 MB / 0.5081 GB, free: 3.867 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003712/0.5865, allocations: 74.73 kB / 0.5081 GB, free: 3.793 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.5866, allocations: 47.42 kB / 0.5082 GB, free: 3.746 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5866, allocations: 4 kB / 0.5082 GB, free: 3.742 MB / 378.7 MB Notification: Performance of Templates: time 0.02121/0.6078, allocations: 13.03 MB / 0.5209 GB, free: 6.992 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches