Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00163/0.001635, allocations: 175.8 kB / 8.152 MB, free: 2.195 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.982/1.982, allocations: 205.2 MB / 213.8 MB, free: 13.86 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.001244/0.001244, allocations: 86.02 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.428e-06/9.558e-06, allocations: 4 kB / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2375, allocations: 47.55 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1321/0.3696, allocations: 82.64 MB / 444.5 MB, free: 3.406 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.3699, allocations: 68.47 kB / 444.5 MB, free: 3.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.06119/0.4311, allocations: 13.68 MB / 458.2 MB, free: 5.652 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.598e-05/0.4312, allocations: 12 kB / 458.2 MB, free: 5.641 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002564/0.4338, allocations: 0.9148 MB / 459.1 MB, free: 4.668 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.4339, allocations: 8.031 kB / 459.2 MB, free: 4.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000248/0.4341, allocations: 91.06 kB / 459.2 MB, free: 4.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/0.4353, allocations: 455.8 kB / 459.7 MB, free: 4.086 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002007/0.4355, allocations: 84.39 kB / 459.8 MB, free: 3.988 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.4356, allocations: 31.91 kB / 459.8 MB, free: 3.957 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001208/0.4368, allocations: 353.9 kB / 460.1 MB, free: 3.613 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.4382, allocations: 0.5421 MB / 460.7 MB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.4382, allocations: 0 / 460.7 MB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.375e-05/0.4383, allocations: 0 / 460.7 MB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.4384, allocations: 12 kB / 460.7 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005716/0.4441, allocations: 1.811 MB / 462.5 MB, free: 1.086 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003282/0.4474, allocations: 0.6306 MB / 463.1 MB, free: 436 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006781/0.4482, allocations: 220.4 kB / 463.4 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.914e-05/0.4483, allocations: 20.38 kB / 463.4 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.073e-05/0.4483, allocations: 47 kB / 463.4 MB, free: 140 kB / 346.7 MB Notification: Performance of pre-optimization done (n=56): time 3.447e-06/0.4483, allocations: 0 / 463.4 MB, free: 140 kB / 346.7 MB Notification: Performance of matching and sorting (n=56): time 0.003505/0.4518, allocations: 0.6544 MB / 464.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003087/0.4522, allocations: 0.5683 MB / 464.6 MB, free: 14.76 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009376/0.4532, allocations: 418.1 kB / 465.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001436/0.4533, allocations: 25.7 kB / 465.1 MB, free: 14.31 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.4535, allocations: 239.6 kB / 465.3 MB, free: 14.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002771/0.4538, allocations: 181.2 kB / 465.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.396e-05/0.4538, allocations: 0 / 465.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.454, allocations: 338.8 kB / 465.8 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005031/0.4545, allocations: 150.7 kB / 466 MB, free: 13.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00079/0.4553, allocations: 360.2 kB / 466.3 MB, free: 12.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000578/0.4559, allocations: 183.1 kB / 466.5 MB, free: 12.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.4559, allocations: 0 / 466.5 MB, free: 12.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003397/0.4593, allocations: 0.6743 MB / 467.2 MB, free: 12.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.4594, allocations: 4 kB / 467.2 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.4594, allocations: 8.031 kB / 467.2 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001582/0.461, allocations: 206.4 kB / 467.4 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001618/0.4626, allocations: 143.8 kB / 467.5 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009804/0.4725, allocations: 4.781 MB / 472.3 MB, free: 6.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.4736, allocations: 73.33 kB / 472.4 MB, free: 6.555 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-05/0.4737, allocations: 19.83 kB / 472.4 MB, free: 6.539 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.0003187/0.4741, allocations: 61.59 kB / 472.5 MB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005452/0.4746, allocations: 67.25 kB / 472.5 MB, free: 6.406 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006628/0.4813, allocations: 0.6962 MB / 473.2 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-05/0.4814, allocations: 8 kB / 473.2 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.4814, allocations: 0 / 473.2 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005989/0.4874, allocations: 0.9621 MB / 474.2 MB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/0.4979, allocations: 1.357 MB / 475.6 MB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-05/0.498, allocations: 0 / 475.6 MB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002069/0.5001, allocations: 143.8 kB / 475.7 MB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001278/0.5014, allocations: 157.5 kB / 475.8 MB, free: 2.895 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.5016, allocations: 4 kB / 475.8 MB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00741/0.509, allocations: 3.263 MB / 479.1 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.5091, allocations: 3.938 kB / 479.1 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00406/0.5131, allocations: 0.9464 MB / 480.1 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005865/0.5138, allocations: 212.1 kB / 480.3 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000158/0.5139, allocations: 4 kB / 480.3 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008577/0.5148, allocations: 35.88 kB / 480.3 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.515, allocations: 36.44 kB / 480.3 MB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.14e-05/0.5151, allocations: 16 kB / 480.4 MB, free: 14.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006786/0.5158, allocations: 323 kB / 480.7 MB, free: 13.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001175/0.517, allocations: 199.7 kB / 480.9 MB, free: 13.6 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.000302/0.5173, allocations: 111.2 kB / 481 MB, free: 13.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002775/0.5201, allocations: 0.8005 MB / 481.8 MB, free: 12.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/0.5201, allocations: 4 kB / 481.8 MB, free: 12.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00153/0.5217, allocations: 461.5 kB / 482.2 MB, free: 12.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001486/0.5232, allocations: 144.8 kB / 482.4 MB, free: 12.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003723/0.527, allocations: 0.9404 MB / 483.3 MB, free: 11.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009872/0.528, allocations: 0.9727 MB / 484.3 MB, free: 10.06 MB / 378.7 MB Notification: Performance of SimCode: time 1.583e-06/0.528, allocations: 0 / 484.3 MB, free: 10.06 MB / 378.7 MB Notification: Performance of Templates: time 0.03588/0.5639, allocations: 14.63 MB / 498.9 MB, free: 11.46 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches