Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_3.2.3_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_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002245/0.002244, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001592/0.001591, allocations: 96.62 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.306e-05/2.313e-05, allocations: 3.984 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3225, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1325/0.455, allocations: 83.47 MB / 445.8 MB, free: 2.824 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002863/0.4554, allocations: 71.97 kB / 445.9 MB, free: 2.754 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06896/0.5244, allocations: 15.64 MB / 461.5 MB, free: 3.09 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5244, allocations: 0 / 461.5 MB, free: 3.09 MB / 347.1 MB Notification: Performance of Transformations before backend: time 6.467e-05/0.5245, allocations: 20 kB / 461.5 MB, free: 3.07 MB / 347.1 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.002717/0.5272, allocations: 0.9674 MB / 462.5 MB, free: 2.047 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.5273, allocations: 8.031 kB / 462.5 MB, free: 2.039 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003056/0.5276, allocations: 98.88 kB / 462.6 MB, free: 1.941 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.5287, allocations: 474.7 kB / 463.1 MB, free: 1.434 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002317/0.529, allocations: 84.7 kB / 463.1 MB, free: 1.34 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.5291, allocations: 35.95 kB / 463.2 MB, free: 1.305 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001258/0.5304, allocations: 410.5 kB / 463.6 MB, free: 0.9023 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.5319, allocations: 0.6674 MB / 464.2 MB, free: 136 kB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.532, allocations: 0 / 464.2 MB, free: 136 kB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.298e-05/0.5321, allocations: 0 / 464.2 MB, free: 136 kB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.898e-05/0.5321, allocations: 12 kB / 464.3 MB, free: 124 kB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005744/0.5379, allocations: 1.949 MB / 466.2 MB, free: 14.09 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.5395, allocations: 477.6 kB / 466.7 MB, free: 13.61 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005445/0.54, allocations: 210.5 kB / 466.9 MB, free: 13.41 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.321e-05/0.5401, allocations: 15 kB / 466.9 MB, free: 13.39 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007461/0.5409, allocations: 281.9 kB / 467.2 MB, free: 13.1 MB / 363.1 MB Notification: Performance of pre-optimization done (n=59): time 3.547e-06/0.5409, allocations: 0 / 467.2 MB, free: 13.1 MB / 363.1 MB Notification: Performance of matching and sorting (n=59): time 0.00298/0.5439, allocations: 0.7026 MB / 467.9 MB, free: 12.39 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003911/0.5443, allocations: 0.8272 MB / 468.7 MB, free: 11.36 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009503/0.5453, allocations: 454.5 kB / 469.1 MB, free: 10.91 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001668/0.5455, allocations: 29.7 kB / 469.2 MB, free: 10.88 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003391/0.5458, allocations: 356.8 kB / 469.5 MB, free: 10.53 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002734/0.5461, allocations: 189.2 kB / 469.7 MB, free: 10.34 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.603e-05/0.5462, allocations: 4 kB / 469.7 MB, free: 10.34 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.5463, allocations: 334.8 kB / 470 MB, free: 10 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004778/0.5468, allocations: 157.6 kB / 470.2 MB, free: 9.848 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008018/0.5476, allocations: 470.1 kB / 470.7 MB, free: 9.27 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005714/0.5482, allocations: 212.3 kB / 470.9 MB, free: 9.062 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.5483, allocations: 0 / 470.9 MB, free: 9.062 MB / 363.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002964/0.5512, allocations: 0.7345 MB / 471.6 MB, free: 8.316 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.285e-05/0.5513, allocations: 59.41 kB / 471.7 MB, free: 8.246 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.5514, allocations: 3.953 kB / 471.7 MB, free: 8.242 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.5526, allocations: 209.5 kB / 471.9 MB, free: 8.031 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.5539, allocations: 131.8 kB / 472 MB, free: 7.902 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009337/0.5633, allocations: 3.955 MB / 475.9 MB, free: 3.711 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.5645, allocations: 71.5 kB / 476 MB, free: 3.641 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.09e-05/0.5646, allocations: 27.98 kB / 476 MB, free: 3.613 MB / 363.1 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.0003427/0.565, allocations: 133.4 kB / 476.2 MB, free: 3.48 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001924/0.5652, allocations: 83.14 kB / 476.3 MB, free: 3.398 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002281/0.5654, allocations: 66.98 kB / 476.3 MB, free: 3.336 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.5654, allocations: 11.94 kB / 476.3 MB, free: 3.324 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.5654, allocations: 0 / 476.3 MB, free: 3.324 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002498/0.5679, allocations: 0.9755 MB / 477.3 MB, free: 2.242 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003487/0.5715, allocations: 1.37 MB / 478.7 MB, free: 0.8086 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.5715, allocations: 3.938 kB / 478.7 MB, free: 0.8047 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.5728, allocations: 123.8 kB / 478.8 MB, free: 0.6836 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007282/0.5736, allocations: 141.6 kB / 478.9 MB, free: 0.5391 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.542e-05/0.5737, allocations: 15.94 kB / 479 MB, free: 0.5234 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006051/0.5797, allocations: 3.377 MB / 482.3 MB, free: 12.91 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.5798, allocations: 0 / 482.3 MB, free: 12.91 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002662/0.5824, allocations: 0.8909 MB / 483.2 MB, free: 12 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005322/0.583, allocations: 208.2 kB / 483.4 MB, free: 11.78 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.5832, allocations: 12.11 kB / 483.4 MB, free: 11.77 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008719/0.5841, allocations: 39.97 kB / 483.5 MB, free: 11.73 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000241/0.5843, allocations: 56.47 kB / 483.5 MB, free: 11.67 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.674e-05/0.5844, allocations: 12 kB / 483.5 MB, free: 11.66 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0007197/0.5851, allocations: 354.9 kB / 483.9 MB, free: 11.32 MB / 379.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5852, allocations: 4 kB / 483.9 MB, free: 11.31 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001436/0.5866, allocations: 239.5 kB / 484.1 MB, free: 11.08 MB / 379.1 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.0003482/0.587, allocations: 131.1 kB / 484.3 MB, free: 10.94 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.002483/0.5895, allocations: 0.8906 MB / 485.1 MB, free: 10 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.5896, allocations: 0 / 485.1 MB, free: 10 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.5908, allocations: 493.9 kB / 485.6 MB, free: 9.504 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001448/0.5923, allocations: 172.5 kB / 485.8 MB, free: 9.344 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002823/0.5951, allocations: 0.8325 MB / 486.6 MB, free: 8.48 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007112/0.5959, allocations: 0.9358 MB / 487.6 MB, free: 7.516 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003397/0.5963, allocations: 63.41 kB / 487.6 MB, free: 7.457 MB / 379.1 MB Notification: Performance of SimCode: time 3.557e-06/0.5963, allocations: 0 / 487.6 MB, free: 7.457 MB / 379.1 MB Notification: Performance of Templates: time 0.03199/0.6283, allocations: 15.12 MB / 0.491 GB, free: 8.352 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches