Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") [: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.0009304/0.0009304, allocations: 180.6 kB / 8.476 MB, free: 1.875 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.08/1.08, allocations: 205.2 MB / 214.1 MB, free: 5.102 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.0009998/0.0009999, allocations: 82.83 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.515e-06/8.676e-06, allocations: 4 kB / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1028, allocations: 47.58 MB / 362.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3126/0.4155, allocations: 83.39 MB / 445.9 MB, free: 10.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.4158, allocations: 71.88 kB / 446 MB, free: 10.76 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03766/0.4534, allocations: 15.48 MB / 461.5 MB, free: 5.348 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.174e-05/0.4535, allocations: 19.03 kB / 461.5 MB, free: 5.344 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001669/0.4552, allocations: 0.9803 MB / 462.5 MB, free: 4.621 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.4553, allocations: 9.531 kB / 462.5 MB, free: 4.621 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.4554, allocations: 99.12 kB / 462.6 MB, free: 4.574 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006854/0.4561, allocations: 488.7 kB / 463.1 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.4563, allocations: 86.27 kB / 463.1 MB, free: 4.184 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-05/0.4564, allocations: 29.44 kB / 463.2 MB, free: 4.184 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008164/0.4572, allocations: 412.4 kB / 463.6 MB, free: 4.156 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000929/0.4582, allocations: 0.6688 MB / 464.2 MB, free: 3.758 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.4582, allocations: 0 / 464.2 MB, free: 3.758 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.18e-05/0.4582, allocations: 2.75 kB / 464.3 MB, free: 3.758 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.4583, allocations: 16.28 kB / 464.3 MB, free: 3.754 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003282/0.4616, allocations: 1.96 MB / 466.2 MB, free: 2.734 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009566/0.4625, allocations: 460.7 kB / 466.7 MB, free: 2.668 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003599/0.4629, allocations: 214.4 kB / 466.9 MB, free: 2.656 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.832e-05/0.463, allocations: 19.38 kB / 466.9 MB, free: 2.648 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004003/0.4634, allocations: 263.2 kB / 467.2 MB, free: 2.562 MB / 314.7 MB Notification: Performance of pre-optimization done (n=59): time 2.104e-06/0.4634, allocations: 0 / 467.2 MB, free: 2.562 MB / 314.7 MB Notification: Performance of matching and sorting (n=59): time 0.001858/0.4653, allocations: 0.7012 MB / 467.9 MB, free: 2.371 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001774/0.4654, allocations: 0.822 MB / 468.7 MB, free: 1.363 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005643/0.466, allocations: 460.1 kB / 469.1 MB, free: 1.211 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.074e-05/0.4661, allocations: 28.42 kB / 469.2 MB, free: 1.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.4662, allocations: 236.5 kB / 469.4 MB, free: 1.008 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/0.4664, allocations: 196.5 kB / 469.6 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/0.4664, allocations: 0 / 469.6 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.762e-05/0.4665, allocations: 377.4 kB / 470 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003071/0.4668, allocations: 168.1 kB / 470.1 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004525/0.4673, allocations: 475.2 kB / 470.6 MB, free: 172 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003357/0.4676, allocations: 208.9 kB / 470.8 MB, free: 128 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.4676, allocations: 0 / 470.8 MB, free: 128 kB / 314.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001839/0.4695, allocations: 0.7673 MB / 471.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.4695, allocations: 4.344 kB / 471.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.4695, allocations: 7.438 kB / 471.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007417/0.4703, allocations: 201.1 kB / 471.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007877/0.4711, allocations: 137.1 kB / 471.9 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005226/0.4763, allocations: 3.905 MB / 475.8 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006466/0.477, allocations: 73.53 kB / 475.9 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.088e-05/0.477, allocations: 27.52 kB / 475.9 MB, free: 12.98 MB / 330.7 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.0002335/0.4773, allocations: 123.4 kB / 476 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.4774, allocations: 75.59 kB / 476.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001398/0.4776, allocations: 82.05 kB / 476.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.4776, allocations: 6.344 kB / 476.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4776, allocations: 0 / 476.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001585/0.4792, allocations: 0.9644 MB / 477.1 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00205/0.4812, allocations: 1.375 MB / 478.5 MB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.4813, allocations: 3.984 kB / 478.5 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006832/0.4819, allocations: 119.3 kB / 478.6 MB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004185/0.4824, allocations: 146.4 kB / 478.8 MB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.915e-05/0.4824, allocations: 11.98 kB / 478.8 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003685/0.4861, allocations: 3.342 MB / 482.1 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.4861, allocations: 0 / 482.1 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001473/0.4876, allocations: 0.884 MB / 483 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003006/0.4879, allocations: 215.4 kB / 483.2 MB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/0.488, allocations: 8 kB / 483.2 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004971/0.4886, allocations: 43.95 kB / 483.3 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.4887, allocations: 42.88 kB / 483.3 MB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.876e-05/0.4887, allocations: 19.33 kB / 483.3 MB, free: 6.766 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0004163/0.4891, allocations: 357.1 kB / 483.7 MB, free: 6.512 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007725/0.4899, allocations: 234.8 kB / 483.9 MB, free: 6.285 MB / 330.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) * 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.0002753/0.4902, allocations: 130.8 kB / 484 MB, free: 6.148 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.4916, allocations: 0.7814 MB / 484.8 MB, free: 5.5 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.4917, allocations: 4 kB / 484.8 MB, free: 5.496 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006012/0.4923, allocations: 461.2 kB / 485.3 MB, free: 5.109 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007393/0.493, allocations: 177.3 kB / 485.5 MB, free: 4.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/0.4949, allocations: 0.8524 MB / 486.3 MB, free: 4.191 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007176/0.4957, allocations: 0.9926 MB / 487.3 MB, free: 3.172 MB / 330.7 MB Notification: Performance of SimCode: time 2.124e-06/0.4957, allocations: 0 / 487.3 MB, free: 3.172 MB / 330.7 MB Notification: Performance of Templates: time 0.02122/0.5169, allocations: 13.48 MB / 0.489 GB, free: 5.727 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins/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_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches