Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001607/0.001607, allocations: 179.5 kB / 8.153 MB, free: 2.207 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.651/1.651, allocations: 205.2 MB / 213.7 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001229/0.001229, allocations: 80.11 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.249e-05/1.275e-05, allocations: 4 kB / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2377, allocations: 47.55 MB / 361.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1278/0.3656, allocations: 83.39 MB / 445.2 MB, free: 2.668 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.3659, allocations: 67.97 kB / 445.3 MB, free: 2.602 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.07007/0.436, allocations: 15.49 MB / 460.8 MB, free: 3.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.984e-05/0.4361, allocations: 24 kB / 460.8 MB, free: 3.066 MB / 346.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.002882/0.439, allocations: 0.9865 MB / 461.8 MB, free: 2.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.4391, allocations: 12.03 kB / 461.8 MB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003024/0.4394, allocations: 98.88 kB / 461.9 MB, free: 1.914 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/0.4405, allocations: 486.6 kB / 462.4 MB, free: 1.398 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002296/0.4408, allocations: 84.7 kB / 462.5 MB, free: 1.301 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.4409, allocations: 29.41 kB / 462.5 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001396/0.4423, allocations: 414.5 kB / 462.9 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.4439, allocations: 0.6629 MB / 463.5 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.444, allocations: 3.984 kB / 463.6 MB, free: 100 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.64e-05/0.4441, allocations: 4 kB / 463.6 MB, free: 96 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/0.4441, allocations: 19.89 kB / 463.6 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006322/0.4504, allocations: 1.952 MB / 465.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001756/0.4522, allocations: 465.9 kB / 466 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006319/0.4529, allocations: 210.3 kB / 466.2 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.192e-05/0.453, allocations: 12.48 kB / 466.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006987/0.4537, allocations: 265.3 kB / 466.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 3.476e-06/0.4537, allocations: 5.031 kB / 466.5 MB, free: 13.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.003437/0.4572, allocations: 0.704 MB / 467.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004032/0.4576, allocations: 0.8193 MB / 468 MB, free: 11.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001024/0.4587, allocations: 462.5 kB / 468.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001706/0.4589, allocations: 25.7 kB / 468.5 MB, free: 10.85 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/0.4591, allocations: 263.2 kB / 468.7 MB, free: 10.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002762/0.4594, allocations: 193.1 kB / 468.9 MB, free: 10.4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.578e-05/0.4594, allocations: 0 / 468.9 MB, free: 10.4 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.4596, allocations: 334.7 kB / 469.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005481/0.4601, allocations: 165.3 kB / 469.4 MB, free: 9.906 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009051/0.4611, allocations: 469.2 kB / 469.9 MB, free: 9.324 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006355/0.4617, allocations: 210.2 kB / 470.1 MB, free: 9.121 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.4617, allocations: 4 kB / 470.1 MB, free: 9.117 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.003361/0.4651, allocations: 0.7276 MB / 470.8 MB, free: 8.379 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.4652, allocations: 4 kB / 470.8 MB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/0.4652, allocations: 4 kB / 470.8 MB, free: 8.371 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/0.4665, allocations: 201.6 kB / 471 MB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00149/0.468, allocations: 131.8 kB / 471.1 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008878/0.4769, allocations: 3.872 MB / 475 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.478, allocations: 67.56 kB / 475.1 MB, free: 3.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.143e-05/0.4781, allocations: 27.98 kB / 475.1 MB, free: 3.84 MB / 362.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.0002967/0.4784, allocations: 65.88 kB / 475.2 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002424/0.4786, allocations: 83.08 kB / 475.2 MB, free: 3.691 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002478/0.4789, allocations: 66.56 kB / 475.3 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.4789, allocations: 4 kB / 475.3 MB, free: 3.621 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-05/0.4789, allocations: 7.906 kB / 475.3 MB, free: 3.613 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002854/0.4818, allocations: 0.9661 MB / 476.3 MB, free: 2.535 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003806/0.4857, allocations: 1.379 MB / 477.7 MB, free: 1.094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.4857, allocations: 4 kB / 477.7 MB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/0.4872, allocations: 127.8 kB / 477.8 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008522/0.4881, allocations: 145.7 kB / 477.9 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.4883, allocations: 7.891 kB / 477.9 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006528/0.4948, allocations: 3.336 MB / 481.3 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.4949, allocations: 8.062 kB / 481.3 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002735/0.4976, allocations: 0.8801 MB / 482.2 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005653/0.4982, allocations: 224 kB / 482.4 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.4984, allocations: 0 / 482.4 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009417/0.4994, allocations: 48.02 kB / 482.4 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.4995, allocations: 44.42 kB / 482.5 MB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.33e-05/0.4996, allocations: 20 kB / 482.5 MB, free: 11.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007059/0.5003, allocations: 347.2 kB / 482.8 MB, free: 11.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001156/0.5015, allocations: 239.6 kB / 483.1 MB, free: 11.42 MB / 378.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.0002987/0.5018, allocations: 131.2 kB / 483.2 MB, free: 11.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00235/0.5042, allocations: 0.7776 MB / 484 MB, free: 10.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.5042, allocations: 4 kB / 484 MB, free: 10.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001179/0.5054, allocations: 465.3 kB / 484.4 MB, free: 10 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001412/0.5069, allocations: 170.9 kB / 484.6 MB, free: 9.836 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003346/0.5102, allocations: 0.8854 MB / 485.5 MB, free: 8.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009404/0.5112, allocations: 0.9936 MB / 486.5 MB, free: 7.891 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.5112, allocations: 0 / 486.5 MB, free: 7.891 MB / 378.7 MB Notification: Performance of Templates: time 0.03049/0.5417, allocations: 15.4 MB / 0.4901 GB, free: 8.504 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches