Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002337/0.002337, allocations: 195.7 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.642/2.642, allocations: 226.5 MB / 245.3 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001214/0.001213, allocations: 99.58 kB / 297.4 MB, free: 6.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004349/0.0004351, allocations: 11.98 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5096/0.5101, allocations: 51.29 MB / 408.7 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2377/0.7479, allocations: 84.12 MB / 492.8 MB, free: 7.426 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004123/0.7484, allocations: 79.95 kB / 492.9 MB, free: 7.348 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07772/0.8261, allocations: 15.74 MB / 0.4967 GB, free: 7.504 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.237e-06/0.8262, allocations: 0 / 0.4967 GB, free: 7.504 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.551e-05/0.8263, allocations: 19.94 kB / 0.4967 GB, free: 7.484 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.003285/0.8296, allocations: 1.081 MB / 0.4977 GB, free: 6.336 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.008e-05/0.8297, allocations: 8.031 kB / 0.4978 GB, free: 6.328 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003848/0.8301, allocations: 99.91 kB / 0.4978 GB, free: 6.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001277/0.8314, allocations: 0.4954 MB / 0.4983 GB, free: 5.695 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002669/0.8317, allocations: 101.2 kB / 0.4984 GB, free: 5.586 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.8319, allocations: 52.38 kB / 0.4985 GB, free: 5.535 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002472/0.8343, allocations: 0.8088 MB / 0.4993 GB, free: 4.621 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.124e-05/0.8344, allocations: 7.938 kB / 0.4993 GB, free: 4.613 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001107/0.8346, allocations: 24 kB / 0.4993 GB, free: 4.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.226e-05/0.8346, allocations: 16 kB / 0.4993 GB, free: 4.574 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00205/0.8367, allocations: 0.5465 MB / 0.4998 GB, free: 4.027 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01069/0.8474, allocations: 2.04 MB / 0.5018 GB, free: 1.895 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.8494, allocations: 0.576 MB / 0.5024 GB, free: 1.305 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009631/0.8505, allocations: 294.4 kB / 0.5027 GB, free: 1.016 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.644e-05/0.8506, allocations: 13.64 kB / 0.5027 GB, free: 1.004 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001287/0.8519, allocations: 351 kB / 0.503 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 6.743e-06/0.8519, allocations: 4 kB / 0.503 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.7253/1.577, allocations: 1.674 MB / 0.5047 GB, free: 90.83 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004932/1.578, allocations: 0.8256 MB / 0.5055 GB, free: 89.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002085/1.58, allocations: 0.5813 MB / 0.506 GB, free: 89.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002808/1.58, allocations: 43.52 kB / 0.5061 GB, free: 89.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006041/1.581, allocations: 329.9 kB / 0.5064 GB, free: 89.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004208/1.581, allocations: 195.8 kB / 0.5066 GB, free: 89.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.504e-05/1.581, allocations: 12.06 kB / 0.5066 GB, free: 89.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000304/1.582, allocations: 386 kB / 0.507 GB, free: 89.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/1.583, allocations: 237.6 kB / 0.5072 GB, free: 89.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001889/1.585, allocations: 0.541 MB / 0.5077 GB, free: 88.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00687/1.592, allocations: 0.6176 MB / 0.5083 GB, free: 88.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.045e-05/1.592, allocations: 0 / 0.5083 GB, free: 88.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00468/1.597, allocations: 0.9744 MB / 0.5093 GB, free: 88.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.938e-05/1.597, allocations: 60.34 kB / 0.5093 GB, free: 88.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/1.597, allocations: 2.219 kB / 0.5093 GB, free: 88.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/1.598, allocations: 237.7 kB / 0.5096 GB, free: 88.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/1.6, allocations: 125.6 kB / 0.5097 GB, free: 88.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/1.613, allocations: 4.257 MB / 0.5138 GB, free: 85.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/1.615, allocations: 97.25 kB / 0.5139 GB, free: 85.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/1.615, allocations: 28.06 kB / 0.514 GB, free: 85.81 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.000683/1.616, allocations: 207.2 kB / 0.5142 GB, free: 85.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000194/1.616, allocations: 78.06 kB / 0.5142 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/1.616, allocations: 81.59 kB / 0.5143 GB, free: 85.65 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/1.616, allocations: 8.844 kB / 0.5143 GB, free: 85.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/1.616, allocations: 0 / 0.5143 GB, free: 85.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002669/1.619, allocations: 1.126 MB / 0.5154 GB, free: 85.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003671/1.622, allocations: 1.622 MB / 0.517 GB, free: 84.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/1.622, allocations: 0 / 0.517 GB, free: 84.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008369/1.623, allocations: 117.5 kB / 0.5171 GB, free: 84.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007037/1.624, allocations: 177.9 kB / 0.5173 GB, free: 84.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.516e-05/1.624, allocations: 19.47 kB / 0.5173 GB, free: 84.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005836/1.63, allocations: 3.658 MB / 0.5209 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/1.63, allocations: 3.938 kB / 0.5209 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003182/1.633, allocations: 1.123 MB / 0.522 GB, free: 80.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004857/1.638, allocations: 212.8 kB / 0.5222 GB, free: 80.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000269/1.638, allocations: 23.77 kB / 0.5222 GB, free: 80.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007208/1.639, allocations: 56.16 kB / 0.5223 GB, free: 80.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002749/1.639, allocations: 51.25 kB / 0.5223 GB, free: 80.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.767e-05/1.639, allocations: 19.14 kB / 0.5223 GB, free: 80.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007487/1.64, allocations: 415.2 kB / 0.5227 GB, free: 80.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.64, allocations: 0 / 0.5227 GB, free: 80.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001402/1.642, allocations: 268.4 kB / 0.523 GB, free: 80.14 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.0003895/1.642, allocations: 134.3 kB / 0.5231 GB, free: 80.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003325/1.645, allocations: 1.069 MB / 0.5241 GB, free: 79.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.808e-05/1.646, allocations: 4.281 kB / 0.5241 GB, free: 79.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/1.647, allocations: 0.5709 MB / 0.5247 GB, free: 79.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0016/1.648, allocations: 202.4 kB / 0.5249 GB, free: 79.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003759/1.652, allocations: 1.603 MB / 0.5265 GB, free: 78.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005086/1.653, allocations: 0.9153 MB / 0.5274 GB, free: 77.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002651/1.653, allocations: 60.09 kB / 0.5274 GB, free: 77.39 MB / 378.7 MB Notification: Performance of SimCode: time 1.293e-06/1.653, allocations: 0 / 0.5274 GB, free: 77.39 MB / 378.7 MB Notification: Performance of Templates: time 0.03423/1.687, allocations: 16.02 MB / 0.5431 GB, free: 64.75 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches