Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001463/0.001463, allocations: 173.8 kB / 8.475 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.315/1.315, allocations: 205.2 MB / 214.1 MB, free: 5.18 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008582/0.0008581, allocations: 98.23 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.48e-06/5.51e-06, allocations: 0 / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07625/0.07627, allocations: 47.57 MB / 362.5 MB, free: 9.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.242/0.3183, allocations: 82.63 MB / 445.2 MB, free: 10.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/0.3186, allocations: 70.73 kB / 445.2 MB, free: 10.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03334/0.3519, allocations: 13.66 MB / 458.9 MB, free: 5.973 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.842e-05/0.352, allocations: 12.88 kB / 458.9 MB, free: 5.973 MB / 314.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.001824/0.3538, allocations: 0.9199 MB / 459.8 MB, free: 5.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.3539, allocations: 7.969 kB / 459.8 MB, free: 5.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002966/0.3542, allocations: 85.53 kB / 459.9 MB, free: 5.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008875/0.3551, allocations: 456.4 kB / 460.4 MB, free: 4.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001405/0.3552, allocations: 82.97 kB / 460.4 MB, free: 4.859 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.3554, allocations: 34.83 kB / 460.5 MB, free: 4.852 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007563/0.3561, allocations: 358 kB / 460.8 MB, free: 4.828 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008025/0.3569, allocations: 0.5311 MB / 461.4 MB, free: 4.539 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.357, allocations: 9.922 kB / 461.4 MB, free: 4.531 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.117e-05/0.357, allocations: 1.75 kB / 461.4 MB, free: 4.531 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.357, allocations: 9.75 kB / 461.4 MB, free: 4.531 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003648/0.3607, allocations: 1.823 MB / 463.2 MB, free: 3.543 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/0.3624, allocations: 0.6278 MB / 463.8 MB, free: 3.355 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003391/0.3628, allocations: 220 kB / 464.1 MB, free: 3.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.598e-05/0.3629, allocations: 20.39 kB / 464.1 MB, free: 3.332 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.3629, allocations: 42.31 kB / 464.1 MB, free: 3.293 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 2.405e-06/0.3629, allocations: 5.938 kB / 464.1 MB, free: 3.289 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.001941/0.3648, allocations: 0.6566 MB / 464.8 MB, free: 3.098 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.365, allocations: 0.5633 MB / 465.3 MB, free: 2.406 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005033/0.3655, allocations: 418.3 kB / 465.7 MB, free: 2.262 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.734e-05/0.3655, allocations: 28.45 kB / 465.8 MB, free: 2.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.3657, allocations: 212.5 kB / 466 MB, free: 2.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.3658, allocations: 182.1 kB / 466.2 MB, free: 1.934 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.782e-05/0.3658, allocations: 1.125 kB / 466.2 MB, free: 1.934 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.281e-05/0.3659, allocations: 369.6 kB / 466.5 MB, free: 1.602 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/0.3662, allocations: 150.3 kB / 466.7 MB, free: 1.598 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003836/0.3666, allocations: 358.5 kB / 467 MB, free: 1.367 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003249/0.3669, allocations: 185.2 kB / 467.2 MB, free: 1.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3669, allocations: 0 / 467.2 MB, free: 1.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001879/0.3688, allocations: 0.7143 MB / 467.9 MB, free: 1.133 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.3688, allocations: 4.906 kB / 467.9 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.3689, allocations: 1.406 kB / 467.9 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009166/0.3698, allocations: 208.2 kB / 468.1 MB, free: 1.066 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008004/0.3706, allocations: 140.2 kB / 468.3 MB, free: 1.031 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005703/0.3763, allocations: 4.808 MB / 473.1 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007032/0.377, allocations: 71.44 kB / 473.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.28e-05/0.3771, allocations: 20.8 kB / 473.2 MB, free: 13.01 MB / 330.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.0002667/0.3774, allocations: 132.6 kB / 473.3 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.3776, allocations: 69.66 kB / 473.4 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002049/0.3797, allocations: 0.7002 MB / 474.1 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.3797, allocations: 10.22 kB / 474.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.3797, allocations: 0 / 474.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001738/0.3814, allocations: 0.9602 MB / 475 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003102/0.3845, allocations: 1.354 MB / 476.4 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.3846, allocations: 0 / 476.4 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008964/0.3855, allocations: 147.3 kB / 476.5 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007415/0.3862, allocations: 154.1 kB / 476.7 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-05/0.3863, allocations: 10.7 kB / 476.7 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004273/0.3906, allocations: 3.257 MB / 479.9 MB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3906, allocations: 0 / 479.9 MB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002067/0.3927, allocations: 0.9596 MB / 480.9 MB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003712/0.3931, allocations: 197.2 kB / 481.1 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.3932, allocations: 4 kB / 481.1 MB, free: 8.066 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005024/0.3937, allocations: 35.97 kB / 481.1 MB, free: 8.031 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.057e-05/0.3938, allocations: 34.75 kB / 481.2 MB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-05/0.3939, allocations: 15.98 kB / 481.2 MB, free: 7.992 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.000389/0.3943, allocations: 322.4 kB / 481.5 MB, free: 7.762 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008269/0.3951, allocations: 211.6 kB / 481.7 MB, free: 7.555 MB / 330.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.000192/0.3953, allocations: 111.1 kB / 481.8 MB, free: 7.438 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.3968, allocations: 0.8041 MB / 482.6 MB, free: 6.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3968, allocations: 0 / 482.6 MB, free: 6.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007654/0.3976, allocations: 459.8 kB / 483.1 MB, free: 6.359 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007354/0.3984, allocations: 145.6 kB / 483.2 MB, free: 6.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.4006, allocations: 0.9103 MB / 484.1 MB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006238/0.4012, allocations: 0.9601 MB / 485.1 MB, free: 4.438 MB / 330.7 MB Notification: Performance of SimCode: time 6.72e-07/0.4012, allocations: 0 / 485.1 MB, free: 4.438 MB / 330.7 MB Notification: Performance of Templates: time 0.01999/0.4212, allocations: 11.7 MB / 496.8 MB, free: 8.77 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins/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_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches