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.00109/0.00109, allocations: 180.5 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.259/1.259, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008678/0.000868, allocations: 88.38 kB / 291.5 MB, free: 10.75 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002454/0.0002454, allocations: 7.938 kB / 351.1 MB, free: 15.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2038, allocations: 50.41 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09318/0.297, allocations: 83.36 MB / 484.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.2973, allocations: 79.95 kB / 484.9 MB, free: 13.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04054/0.3378, allocations: 15.68 MB / 0.4889 GB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3379, allocations: 3.938 kB / 0.4889 GB, free: 13.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.477e-05/0.3379, allocations: 12 kB / 0.4889 GB, free: 13.25 MB / 378.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.001895/0.3398, allocations: 1.089 MB / 0.49 GB, free: 12.1 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.3399, allocations: 8.031 kB / 0.49 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/0.34, allocations: 94.97 kB / 0.4901 GB, free: 12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006621/0.3407, allocations: 474.6 kB / 0.4905 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/0.3409, allocations: 108.7 kB / 0.4906 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.125e-05/0.3409, allocations: 52 kB / 0.4907 GB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.3422, allocations: 0.8004 MB / 0.4915 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.3423, allocations: 0 / 0.4915 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.731e-05/0.3424, allocations: 31.95 kB / 0.4915 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.3424, allocations: 12 kB / 0.4915 GB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.3436, allocations: 0.5465 MB / 0.492 GB, free: 9.832 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003372/0.347, allocations: 2.044 MB / 0.494 GB, free: 7.699 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/0.3484, allocations: 0.6178 MB / 0.4946 GB, free: 7.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.738e-05/0.3485, allocations: 16.62 kB / 0.4946 GB, free: 7.055 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007724/0.3493, allocations: 358.9 kB / 0.495 GB, free: 6.691 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 3.076e-06/0.3493, allocations: 0 / 0.495 GB, free: 6.691 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.005374/0.3547, allocations: 1.67 MB / 0.4966 GB, free: 4.973 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003303/0.355, allocations: 0.8271 MB / 0.4974 GB, free: 3.949 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007037/0.3558, allocations: 0.5189 MB / 0.4979 GB, free: 3.422 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.21e-05/0.3558, allocations: 45.7 kB / 0.498 GB, free: 3.371 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002495/0.3561, allocations: 324.8 kB / 0.4983 GB, free: 3.051 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.3563, allocations: 201 kB / 0.4985 GB, free: 2.852 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.259e-05/0.3563, allocations: 12 kB / 0.4985 GB, free: 2.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.3565, allocations: 382.8 kB / 0.4989 GB, free: 2.457 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005758/0.3571, allocations: 233.2 kB / 0.4991 GB, free: 2.227 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007844/0.3579, allocations: 0.5412 MB / 0.4996 GB, free: 1.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006654/0.3585, allocations: 336.2 kB / 0.4999 GB, free: 1.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3585, allocations: 0 / 0.4999 GB, free: 1.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002303/0.3609, allocations: 0.9794 MB / 0.5009 GB, free: 236 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.006e-05/0.3609, allocations: 59.41 kB / 0.5009 GB, free: 164 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.3609, allocations: 8 kB / 0.5009 GB, free: 156 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1786/0.5396, allocations: 221.6 kB / 0.5012 GB, free: 95.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008536/0.5404, allocations: 126.2 kB / 0.5013 GB, free: 95.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006523/0.547, allocations: 4.34 MB / 0.5055 GB, free: 92.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007511/0.5478, allocations: 91.72 kB / 0.5056 GB, free: 92.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.491e-05/0.5478, allocations: 25.17 kB / 0.5056 GB, free: 92.92 MB / 378.7 MB 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 () * Number of clocked 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.0003849/0.5482, allocations: 211.6 kB / 0.5058 GB, free: 92.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.5483, allocations: 81.45 kB / 0.5059 GB, free: 92.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001538/0.5485, allocations: 85.23 kB / 0.506 GB, free: 92.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.5485, allocations: 6.25 kB / 0.506 GB, free: 92.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.5485, allocations: 0.5625 kB / 0.506 GB, free: 92.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002312/0.5508, allocations: 1.131 MB / 0.5071 GB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.5535, allocations: 1.619 MB / 0.5087 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.5536, allocations: 2.719 kB / 0.5087 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006487/0.5542, allocations: 121.9 kB / 0.5088 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005151/0.5547, allocations: 176.3 kB / 0.509 GB, free: 91.78 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/0.5548, allocations: 9.391 kB / 0.509 GB, free: 91.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003882/0.5587, allocations: 3.713 MB / 0.5126 GB, free: 89.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.5587, allocations: 3.562 kB / 0.5126 GB, free: 89.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002141/0.5608, allocations: 1.125 MB / 0.5137 GB, free: 88.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002773/0.5611, allocations: 214.4 kB / 0.5139 GB, free: 88.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.023e-05/0.5612, allocations: 18.94 kB / 0.5139 GB, free: 88.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004621/0.5617, allocations: 50.22 kB / 0.514 GB, free: 88.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.5619, allocations: 60.47 kB / 0.514 GB, free: 88.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.418e-05/0.5619, allocations: 17.92 kB / 0.514 GB, free: 88.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004346/0.5623, allocations: 415.9 kB / 0.5144 GB, free: 88.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5623, allocations: 0 / 0.5144 GB, free: 88.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007843/0.5631, allocations: 268.9 kB / 0.5147 GB, free: 88.35 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) * Number of clocked states: 0 () * 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.0002011/0.5633, allocations: 140.3 kB / 0.5148 GB, free: 88.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.5651, allocations: 1.07 MB / 0.5159 GB, free: 87.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.5651, allocations: 3.375 kB / 0.5159 GB, free: 87.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008114/0.566, allocations: 0.5673 MB / 0.5164 GB, free: 87.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007085/0.5667, allocations: 196.6 kB / 0.5166 GB, free: 87.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.5689, allocations: 1.576 MB / 0.5182 GB, free: 86.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.5692, allocations: 0.9386 MB / 0.5191 GB, free: 85.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003352/0.5695, allocations: 75.05 kB / 0.5191 GB, free: 85.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.5697, allocations: 51.45 kB / 0.5192 GB, free: 85.71 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.5697, allocations: 3.656 kB / 0.5192 GB, free: 85.71 MB / 378.7 MB Notification: Performance of Templates: time 0.01835/0.588, allocations: 14.49 MB / 0.5334 GB, free: 76.46 MB / 378.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