Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002293/0.002293, allocations: 178.3 kB / 8.362 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.055/2.055, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001081/0.001081, allocations: 87.86 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.653e-05/1.663e-05, allocations: 0 / 314.8 MB, free: 9.164 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3375, allocations: 47.56 MB / 362.3 MB, free: 45.8 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1334/0.471, allocations: 82.71 MB / 445 MB, free: 3.59 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.4713, allocations: 75.86 kB / 445.1 MB, free: 3.52 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06184/0.5331, allocations: 13.85 MB / 459 MB, free: 5.652 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5332, allocations: 0 / 459 MB, free: 5.652 MB / 347.1 MB Notification: Performance of Transformations before backend: time 7.628e-05/0.5333, allocations: 16 kB / 459 MB, free: 5.637 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002562/0.5359, allocations: 0.9062 MB / 459.9 MB, free: 4.676 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.5359, allocations: 11.03 kB / 459.9 MB, free: 4.668 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003331/0.5363, allocations: 91 kB / 460 MB, free: 4.578 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.5375, allocations: 452.1 kB / 460.4 MB, free: 4.094 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.5377, allocations: 84.67 kB / 460.5 MB, free: 3.996 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.5378, allocations: 28 kB / 460.5 MB, free: 3.969 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001124/0.539, allocations: 358.5 kB / 460.9 MB, free: 3.621 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.5402, allocations: 0.5382 MB / 461.4 MB, free: 3.008 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.596e-05/0.5403, allocations: 4 kB / 461.4 MB, free: 3.004 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.821e-05/0.5404, allocations: 0 / 461.4 MB, free: 3.004 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.141e-05/0.5404, allocations: 12 kB / 461.4 MB, free: 2.992 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005261/0.5457, allocations: 1.805 MB / 463.2 MB, free: 1.102 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002996/0.5487, allocations: 0.6502 MB / 463.9 MB, free: 432 kB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006551/0.5494, allocations: 211.4 kB / 464.1 MB, free: 220 kB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.78e-05/0.5495, allocations: 12.56 kB / 464.1 MB, free: 208 kB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.683e-05/0.5496, allocations: 43.06 kB / 464.2 MB, free: 156 kB / 347.1 MB Notification: Performance of pre-optimization done (n=56): time 3.256e-06/0.5496, allocations: 4 kB / 464.2 MB, free: 152 kB / 347.1 MB Notification: Performance of matching and sorting (n=56): time 0.003115/0.5527, allocations: 0.6567 MB / 464.8 MB, free: 15.47 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002766/0.553, allocations: 0.5761 MB / 465.4 MB, free: 14.76 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008323/0.5539, allocations: 414.2 kB / 465.8 MB, free: 14.35 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001239/0.554, allocations: 25.7 kB / 465.8 MB, free: 14.32 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002646/0.5543, allocations: 315.7 kB / 466.1 MB, free: 14.01 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002415/0.5545, allocations: 181.2 kB / 466.3 MB, free: 13.83 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.103e-05/0.5546, allocations: 4 kB / 466.3 MB, free: 13.82 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.5548, allocations: 330.8 kB / 466.6 MB, free: 13.49 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004436/0.5552, allocations: 149.1 kB / 466.8 MB, free: 13.35 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006639/0.5559, allocations: 355.5 kB / 467.1 MB, free: 12.92 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000529/0.5564, allocations: 192.5 kB / 467.3 MB, free: 12.73 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-06/0.5565, allocations: 4 kB / 467.3 MB, free: 12.73 MB / 363.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00303/0.5595, allocations: 0.6572 MB / 468 MB, free: 12.06 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.675e-05/0.5596, allocations: 36.23 kB / 468 MB, free: 12.02 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.5596, allocations: 4.031 kB / 468 MB, free: 12.02 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001457/0.5611, allocations: 208.1 kB / 468.2 MB, free: 11.8 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001534/0.5626, allocations: 135.8 kB / 468.4 MB, free: 11.67 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009052/0.5717, allocations: 4.865 MB / 473.2 MB, free: 6.461 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.5728, allocations: 63.73 kB / 473.3 MB, free: 6.398 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.776e-05/0.5729, allocations: 24.05 kB / 473.3 MB, free: 6.375 MB / 363.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_b.m_flow:VARIABLE(flow=true unit = "kg/s" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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 pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003299/0.5733, allocations: 126.5 kB / 473.4 MB, free: 6.246 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.5735, allocations: 67.25 kB / 473.5 MB, free: 6.18 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003144/0.5766, allocations: 0.6947 MB / 474.2 MB, free: 5.469 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/0.5767, allocations: 8 kB / 474.2 MB, free: 5.461 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.5767, allocations: 3.953 kB / 474.2 MB, free: 5.457 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00276/0.5795, allocations: 0.9567 MB / 475.2 MB, free: 4.387 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004458/0.584, allocations: 1.35 MB / 476.5 MB, free: 2.984 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.044e-06/0.584, allocations: 0 / 476.5 MB, free: 2.984 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/0.5856, allocations: 135.8 kB / 476.6 MB, free: 2.852 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.5868, allocations: 160.4 kB / 476.8 MB, free: 2.691 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-05/0.5868, allocations: 4 kB / 476.8 MB, free: 2.688 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006579/0.5934, allocations: 3.29 MB / 480.1 MB, free: 15.16 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.5935, allocations: 0 / 480.1 MB, free: 15.16 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00344/0.5969, allocations: 0.9374 MB / 481 MB, free: 14.2 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004953/0.5975, allocations: 204.3 kB / 481.2 MB, free: 13.98 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.5976, allocations: 7.984 kB / 481.2 MB, free: 13.97 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007559/0.5984, allocations: 31.92 kB / 481.3 MB, free: 13.94 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001837/0.5986, allocations: 44.5 kB / 481.3 MB, free: 13.89 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.592e-05/0.5987, allocations: 19.98 kB / 481.3 MB, free: 13.88 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0006017/0.5993, allocations: 323 kB / 481.6 MB, free: 13.56 MB / 379.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.5993, allocations: 0 / 481.6 MB, free: 13.56 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.00113/0.6004, allocations: 207.7 kB / 481.8 MB, free: 13.36 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * 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 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002635/0.6007, allocations: 119.8 kB / 482 MB, free: 13.23 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.00243/0.6032, allocations: 0.8575 MB / 482.8 MB, free: 12.33 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.6032, allocations: 0 / 482.8 MB, free: 12.33 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.6046, allocations: 493.5 kB / 483.3 MB, free: 11.83 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.6059, allocations: 145.9 kB / 483.4 MB, free: 11.7 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002722/0.6086, allocations: 0.9014 MB / 484.3 MB, free: 10.77 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006205/0.6093, allocations: 0.9034 MB / 485.2 MB, free: 9.836 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003102/0.6096, allocations: 51.42 kB / 485.3 MB, free: 9.789 MB / 379.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6096, allocations: 0 / 485.3 MB, free: 9.789 MB / 379.1 MB Notification: Performance of Templates: time 0.02988/0.6395, allocations: 14.36 MB / 499.7 MB, free: 11.46 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches