Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.678/1.678, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008907/0.0008905, allocations: 94.03 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.038e-05/2.041e-05, allocations: 0 / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1055, allocations: 50.42 MB / 387.5 MB, free: 7.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3206/0.4262, allocations: 82.62 MB / 470.1 MB, free: 12.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002997/0.4266, allocations: 79.95 kB / 470.2 MB, free: 12.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04112/0.4677, allocations: 15.47 MB / 485.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.4677, allocations: 0 / 485.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.476e-05/0.4678, allocations: 16 kB / 485.6 MB, free: 12.57 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.002231/0.4701, allocations: 0.9652 MB / 486.6 MB, free: 11.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.4701, allocations: 12.03 kB / 486.6 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003713/0.4705, allocations: 114.8 kB / 486.7 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009821/0.4715, allocations: 470.7 kB / 487.2 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.4717, allocations: 84.7 kB / 487.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.4718, allocations: 28 kB / 487.3 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008186/0.4726, allocations: 414.5 kB / 487.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009648/0.4736, allocations: 0.6619 MB / 488.4 MB, free: 9.621 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.4737, allocations: 3.953 kB / 488.4 MB, free: 9.617 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.121e-05/0.4737, allocations: 8 kB / 488.4 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.4737, allocations: 12 kB / 488.4 MB, free: 9.598 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003752/0.4775, allocations: 1.946 MB / 490.3 MB, free: 7.574 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009503/0.4785, allocations: 468.9 kB / 490.8 MB, free: 7.102 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003477/0.4788, allocations: 214.5 kB / 491 MB, free: 6.891 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.024e-05/0.4789, allocations: 17.64 kB / 491 MB, free: 6.875 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005275/0.4794, allocations: 274 kB / 491.3 MB, free: 6.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 3.988e-06/0.4795, allocations: 3.938 kB / 491.3 MB, free: 6.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.001761/0.4812, allocations: 0.7065 MB / 492 MB, free: 5.867 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004013/0.4816, allocations: 0.8272 MB / 492.8 MB, free: 4.844 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007071/0.4824, allocations: 450.6 kB / 493.3 MB, free: 4.395 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.899e-05/0.4825, allocations: 29.7 kB / 493.3 MB, free: 4.359 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003154/0.4828, allocations: 340.5 kB / 493.6 MB, free: 4.023 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.483, allocations: 185.2 kB / 493.8 MB, free: 3.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.218e-05/0.483, allocations: 4 kB / 493.8 MB, free: 3.836 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002066/0.4832, allocations: 374.8 kB / 494.2 MB, free: 3.461 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000282/0.4835, allocations: 161.6 kB / 494.3 MB, free: 3.301 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005143/0.484, allocations: 462.1 kB / 494.8 MB, free: 2.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.4844, allocations: 218.5 kB / 495 MB, free: 2.516 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.4844, allocations: 0 / 495 MB, free: 2.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001741/0.4862, allocations: 0.773 MB / 495.8 MB, free: 1.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.878e-05/0.4862, allocations: 64.91 kB / 495.8 MB, free: 1.656 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.4863, allocations: 4 kB / 495.8 MB, free: 1.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006987/0.487, allocations: 207.1 kB / 496 MB, free: 1.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006571/0.4876, allocations: 127.8 kB / 496.2 MB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004937/0.4926, allocations: 3.977 MB / 0.4884 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006853/0.4933, allocations: 67.5 kB / 0.4885 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.698e-05/0.4934, allocations: 23.98 kB / 0.4885 GB, free: 13.02 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.0002819/0.4937, allocations: 132.1 kB / 0.4886 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.4939, allocations: 79.14 kB / 0.4887 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001897/0.4941, allocations: 74.83 kB / 0.4888 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.4941, allocations: 4 kB / 0.4888 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.4941, allocations: 0 / 0.4888 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001513/0.4956, allocations: 0.9724 MB / 0.4897 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002255/0.4979, allocations: 1.378 MB / 0.4911 GB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.4979, allocations: 0 / 0.4911 GB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006465/0.4986, allocations: 119.8 kB / 0.4912 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004298/0.499, allocations: 153.5 kB / 0.4913 GB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.238e-05/0.499, allocations: 7.984 kB / 0.4914 GB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003702/0.5028, allocations: 3.384 MB / 0.4947 GB, free: 6.309 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.5028, allocations: 0 / 0.4947 GB, free: 6.309 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.5043, allocations: 0.8904 MB / 0.4955 GB, free: 5.395 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003827/0.5047, allocations: 208.1 kB / 0.4957 GB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001537/0.5049, allocations: 8.094 kB / 0.4957 GB, free: 5.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005123/0.5054, allocations: 43.92 kB / 0.4958 GB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.5055, allocations: 60.47 kB / 0.4958 GB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.598e-05/0.5056, allocations: 12.19 kB / 0.4958 GB, free: 5.047 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004824/0.5061, allocations: 350.9 kB / 0.4962 GB, free: 4.707 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5061, allocations: 0 / 0.4962 GB, free: 4.707 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009077/0.507, allocations: 227.7 kB / 0.4964 GB, free: 4.484 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.0002653/0.5073, allocations: 135.2 kB / 0.4965 GB, free: 4.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.5088, allocations: 0.8978 MB / 0.4974 GB, free: 3.395 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5088, allocations: 4 kB / 0.4974 GB, free: 3.391 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006569/0.5095, allocations: 489.4 kB / 0.4979 GB, free: 2.895 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008219/0.5103, allocations: 172.3 kB / 0.498 GB, free: 2.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.5121, allocations: 0.8064 MB / 0.4988 GB, free: 1.898 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000502/0.5126, allocations: 0.9319 MB / 0.4997 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003794/0.513, allocations: 73.03 kB / 0.4998 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/0.5131, allocations: 55.42 kB / 0.4999 GB, free: 0.8125 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5131, allocations: 0 / 0.4999 GB, free: 0.8125 MB / 378.7 MB Notification: Performance of Templates: time 0.02293/0.5361, allocations: 13.04 MB / 0.5126 GB, free: 3.984 MB / 394.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches