Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001328, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 225.6 MB / 234.8 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009532/0.0009532, allocations: 103.1 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.428e-05/2.425e-05, allocations: 4 kB / 343.7 MB, free: 8.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 51.48 MB / 395.2 MB, free: 4.805 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3606/0.4735, allocations: 82.81 MB / 478 MB, free: 10.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.4737, allocations: 71.69 kB / 478 MB, free: 10.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03315/0.5069, allocations: 13.8 MB / 491.8 MB, free: 15.26 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.5069, allocations: 0 / 491.8 MB, free: 15.26 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.221e-05/0.507, allocations: 12 kB / 491.9 MB, free: 15.25 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002018/0.509, allocations: 0.9009 MB / 492.8 MB, free: 14.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.5091, allocations: 8.031 kB / 492.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003744/0.5095, allocations: 95.06 kB / 492.9 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009215/0.5104, allocations: 455.3 kB / 493.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/0.5107, allocations: 80.7 kB / 493.4 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001427/0.5108, allocations: 31.61 kB / 493.4 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007856/0.5116, allocations: 361.2 kB / 493.8 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000877/0.5125, allocations: 0.5392 MB / 494.3 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/0.5125, allocations: 4 kB / 494.3 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.667e-05/0.5126, allocations: 0 / 494.3 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.5126, allocations: 13.88 kB / 494.3 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003359/0.516, allocations: 1.801 MB / 496.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001709/0.5177, allocations: 0.641 MB / 496.8 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003331/0.5181, allocations: 219.1 kB / 497 MB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.797e-05/0.5181, allocations: 12.55 kB / 497 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.76e-05/0.5182, allocations: 41.94 kB / 497 MB, free: 10.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 2.916e-06/0.5182, allocations: 0 / 497 MB, free: 10.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.001828/0.52, allocations: 0.66 MB / 497.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002715/0.5203, allocations: 0.5722 MB / 498.3 MB, free: 9.566 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005196/0.5208, allocations: 410.3 kB / 498.7 MB, free: 9.258 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.441e-05/0.5209, allocations: 25.7 kB / 498.7 MB, free: 9.227 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.5211, allocations: 288.2 kB / 499 MB, free: 9.039 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.5213, allocations: 184.8 kB / 499.1 MB, free: 8.875 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-05/0.5213, allocations: 4 kB / 499.2 MB, free: 8.871 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.5215, allocations: 374.3 kB / 499.5 MB, free: 8.523 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002784/0.5218, allocations: 142.2 kB / 499.7 MB, free: 8.441 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/0.5222, allocations: 358.2 kB / 0.4883 GB, free: 8.105 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.5225, allocations: 185.4 kB / 0.4885 GB, free: 7.992 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.5225, allocations: 0 / 0.4885 GB, free: 7.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00171/0.5242, allocations: 0.7058 MB / 0.4892 GB, free: 7.426 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.517e-05/0.5243, allocations: 35.42 kB / 0.4892 GB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.5243, allocations: 0 / 0.4892 GB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008488/0.5252, allocations: 205.1 kB / 0.4894 GB, free: 7.219 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007584/0.5259, allocations: 146.8 kB / 0.4895 GB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005924/0.5319, allocations: 4.866 MB / 0.4943 GB, free: 2.402 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007241/0.5326, allocations: 67.73 kB / 0.4943 GB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-05/0.5327, allocations: 15.81 kB / 0.4944 GB, free: 2.324 MB / 362.7 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.0003223/0.5331, allocations: 136 kB / 0.4945 GB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000203/0.5333, allocations: 63.25 kB / 0.4945 GB, free: 2.125 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001907/0.5352, allocations: 0.6866 MB / 0.4952 GB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.5352, allocations: 9.859 kB / 0.4952 GB, free: 1.586 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.5352, allocations: 7.953 kB / 0.4952 GB, free: 1.578 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001649/0.5369, allocations: 0.9519 MB / 0.4962 GB, free: 0.5391 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002935/0.5398, allocations: 1.35 MB / 0.4975 GB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.5399, allocations: 0 / 0.4975 GB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000792/0.5407, allocations: 139.8 kB / 0.4976 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006396/0.5413, allocations: 153.5 kB / 0.4978 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.036e-05/0.5414, allocations: 8.109 kB / 0.4978 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004299/0.5457, allocations: 3.295 MB / 0.501 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.5457, allocations: 0 / 0.501 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002062/0.5478, allocations: 0.9413 MB / 0.5019 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003659/0.5482, allocations: 200.2 kB / 0.5021 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/0.5483, allocations: 4 kB / 0.5021 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004597/0.5488, allocations: 39.86 kB / 0.5021 GB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.5489, allocations: 44.5 kB / 0.5022 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.748e-05/0.5489, allocations: 15.98 kB / 0.5022 GB, free: 10.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004879/0.5494, allocations: 326.9 kB / 0.5025 GB, free: 9.707 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5494, allocations: 0 / 0.5025 GB, free: 9.707 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008953/0.5503, allocations: 207.7 kB / 0.5027 GB, free: 9.504 MB / 378.7 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.0002337/0.5506, allocations: 123.2 kB / 0.5028 GB, free: 9.375 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.5522, allocations: 0.869 MB / 0.5037 GB, free: 8.469 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5522, allocations: 0 / 0.5037 GB, free: 8.469 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008029/0.5531, allocations: 484.4 kB / 0.5041 GB, free: 7.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007958/0.5539, allocations: 147.3 kB / 0.5043 GB, free: 7.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.5558, allocations: 0.8728 MB / 0.5051 GB, free: 6.945 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.5563, allocations: 0.8996 MB / 0.506 GB, free: 6.016 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003562/0.5567, allocations: 72.89 kB / 0.5061 GB, free: 5.945 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.5568, allocations: 47.42 kB / 0.5061 GB, free: 5.898 MB / 378.7 MB Notification: Performance of SimCode: time 1.001e-06/0.5569, allocations: 4 kB / 0.5061 GB, free: 5.895 MB / 378.7 MB Notification: Performance of Templates: time 0.02377/0.5806, allocations: 11.28 MB / 0.5171 GB, free: 10.85 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches