Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 183.8 kB / 8.133 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.192/1.192, allocations: 221.4 MB / 229.9 MB, free: 3.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009526/0.0009525, allocations: 97.48 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.813e-06/6.843e-06, allocations: 0 / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1955, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08191/0.2774, allocations: 81.92 MB / 468.8 MB, free: 4.883 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001825/0.2777, allocations: 85.42 kB / 468.9 MB, free: 4.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03552/0.3132, allocations: 13.5 MB / 482.4 MB, free: 7.27 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.146e-05/0.3132, allocations: 12 kB / 482.4 MB, free: 7.258 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.001427/0.3147, allocations: 0.911 MB / 483.3 MB, free: 6.289 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.3147, allocations: 12.03 kB / 483.3 MB, free: 6.277 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.3149, allocations: 87 kB / 483.4 MB, free: 6.191 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006532/0.3155, allocations: 459.8 kB / 483.9 MB, free: 5.703 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.3157, allocations: 88.33 kB / 484 MB, free: 5.602 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.106e-05/0.3158, allocations: 36 kB / 484 MB, free: 5.566 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006799/0.3164, allocations: 361.8 kB / 484.3 MB, free: 5.215 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007651/0.3172, allocations: 0.5293 MB / 484.9 MB, free: 4.609 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.3172, allocations: 7.984 kB / 484.9 MB, free: 4.602 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.623e-05/0.3173, allocations: 7.938 kB / 484.9 MB, free: 4.594 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.3173, allocations: 8 kB / 484.9 MB, free: 4.586 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003024/0.3203, allocations: 1.799 MB / 486.7 MB, free: 2.699 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.3222, allocations: 0.6407 MB / 487.3 MB, free: 2.031 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003502/0.3225, allocations: 214.3 kB / 487.5 MB, free: 1.816 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.783e-05/0.3226, allocations: 12.48 kB / 487.6 MB, free: 1.801 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.3226, allocations: 47.06 kB / 487.6 MB, free: 1.746 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 2.405e-06/0.3226, allocations: 0 / 487.6 MB, free: 1.746 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.002004/0.3246, allocations: 0.6621 MB / 488.3 MB, free: 1.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002327/0.3249, allocations: 0.5644 MB / 488.8 MB, free: 380 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005741/0.3255, allocations: 422.1 kB / 489.2 MB, free: 15.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.327e-05/0.3256, allocations: 29.7 kB / 489.3 MB, free: 15.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.3257, allocations: 205.2 kB / 489.5 MB, free: 15.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.3259, allocations: 193.1 kB / 489.7 MB, free: 15.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-05/0.3259, allocations: 0 / 489.7 MB, free: 15.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3261, allocations: 366.8 kB / 490 MB, free: 15.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002832/0.3263, allocations: 149.3 kB / 490.2 MB, free: 15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/0.3268, allocations: 352.2 kB / 490.5 MB, free: 14.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003285/0.3271, allocations: 189.5 kB / 490.7 MB, free: 14.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3271, allocations: 0 / 490.7 MB, free: 14.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002002/0.3291, allocations: 0.705 MB / 491.4 MB, free: 13.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.3292, allocations: 4 kB / 491.4 MB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3292, allocations: 4 kB / 491.4 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009321/0.3301, allocations: 210.4 kB / 491.6 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008631/0.331, allocations: 135.8 kB / 491.7 MB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005908/0.3369, allocations: 4.82 MB / 496.6 MB, free: 8.148 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000626/0.3376, allocations: 75.67 kB / 496.6 MB, free: 8.074 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.641e-05/0.3376, allocations: 20 kB / 496.7 MB, free: 8.055 MB / 378.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.0002008/0.3378, allocations: 128 kB / 496.8 MB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.338, allocations: 63.25 kB / 496.8 MB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/0.3399, allocations: 0.704 MB / 497.6 MB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3399, allocations: 4 kB / 497.6 MB, free: 7.145 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3399, allocations: 7.906 kB / 497.6 MB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001702/0.3416, allocations: 0.9543 MB / 498.5 MB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002673/0.3443, allocations: 1.364 MB / 499.9 MB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3443, allocations: 0 / 499.9 MB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008604/0.3452, allocations: 139.8 kB / 0.4883 GB, free: 4.516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006819/0.3459, allocations: 153.5 kB / 0.4884 GB, free: 4.359 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.065e-05/0.346, allocations: 11.89 kB / 0.4885 GB, free: 4.348 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004364/0.3503, allocations: 3.262 MB / 0.4916 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3504, allocations: 0 / 0.4916 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1045/0.4549, allocations: 0.9545 MB / 0.4926 GB, free: 134.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000467/0.4554, allocations: 201.7 kB / 0.4928 GB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/0.4556, allocations: 7.375 kB / 0.4928 GB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005141/0.4561, allocations: 33.41 kB / 0.4928 GB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.017e-05/0.4562, allocations: 39.16 kB / 0.4928 GB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.681e-05/0.4562, allocations: 15.19 kB / 0.4929 GB, free: 134.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003418/0.4566, allocations: 326 kB / 0.4932 GB, free: 134 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006964/0.4573, allocations: 200.3 kB / 0.4934 GB, free: 134 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.0001745/0.4575, allocations: 119.2 kB / 0.4935 GB, free: 133.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.4588, allocations: 0.8011 MB / 0.4943 GB, free: 133.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4588, allocations: 0 / 0.4943 GB, free: 133.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007587/0.4596, allocations: 460.3 kB / 0.4947 GB, free: 133.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006467/0.4602, allocations: 148 kB / 0.4948 GB, free: 133.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.462, allocations: 0.9041 MB / 0.4957 GB, free: 133.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004151/0.4624, allocations: 0.9563 MB / 0.4967 GB, free: 132.4 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4624, allocations: 2.062 kB / 0.4967 GB, free: 132.4 MB / 378.7 MB Notification: Performance of Templates: time 0.01787/0.4803, allocations: 11.7 MB / 0.5081 GB, free: 132.2 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches