Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001047/0.001047, allocations: 207.8 kB / 8.546 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 225.5 MB / 234.4 MB, free: 3.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009909/0.000991, allocations: 95.53 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.546e-06/8.987e-06, allocations: 0 / 343.1 MB, free: 8.746 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1526, allocations: 51.48 MB / 394.6 MB, free: 5.219 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3043/0.4569, allocations: 82.74 MB / 477.3 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.4572, allocations: 73 kB / 477.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03353/0.4907, allocations: 13.61 MB / 491 MB, free: 15.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.305e-05/0.4908, allocations: 19.94 kB / 491 MB, free: 15.43 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.001962/0.4928, allocations: 0.9051 MB / 492 MB, free: 14.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.4928, allocations: 8.031 kB / 492 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004169/0.4932, allocations: 95.05 kB / 492.1 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009576/0.4942, allocations: 462.1 kB / 492.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001736/0.4944, allocations: 80.34 kB / 492.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.4945, allocations: 35.89 kB / 492.6 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007656/0.4953, allocations: 355 kB / 493 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000823/0.4962, allocations: 0.535 MB / 493.5 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.4962, allocations: 7.984 kB / 493.5 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.971e-05/0.4963, allocations: 2.719 kB / 493.5 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.4963, allocations: 12 kB / 493.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003417/0.4997, allocations: 1.812 MB / 495.3 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001844/0.5016, allocations: 0.6286 MB / 496 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003478/0.5019, allocations: 215 kB / 496.2 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.481e-05/0.502, allocations: 16.47 kB / 496.2 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/0.5021, allocations: 49.78 kB / 496.2 MB, free: 10.94 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 3.707e-06/0.5021, allocations: 0 / 496.2 MB, free: 10.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.00215/0.5042, allocations: 0.6552 MB / 496.9 MB, free: 10.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002653/0.5045, allocations: 0.5716 MB / 497.5 MB, free: 9.711 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006303/0.5052, allocations: 418.4 kB / 497.9 MB, free: 9.391 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.56e-05/0.5052, allocations: 25.7 kB / 497.9 MB, free: 9.359 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.5054, allocations: 204.4 kB / 498.1 MB, free: 9.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002019/0.5056, allocations: 187.4 kB / 498.3 MB, free: 9.016 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.862e-05/0.5057, allocations: 0 / 498.3 MB, free: 9.016 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.5059, allocations: 369.8 kB / 498.6 MB, free: 8.672 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002797/0.5062, allocations: 148.4 kB / 498.8 MB, free: 8.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005343/0.5067, allocations: 359.9 kB / 499.1 MB, free: 8.246 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003642/0.5071, allocations: 180.5 kB / 499.3 MB, free: 8.137 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.5071, allocations: 0 / 499.3 MB, free: 8.137 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001972/0.5091, allocations: 0.7134 MB / 0.4883 GB, free: 7.562 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.5091, allocations: 8 kB / 0.4883 GB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.5091, allocations: 0 / 0.4883 GB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009372/0.51, allocations: 210.3 kB / 0.4885 GB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008379/0.5109, allocations: 141.5 kB / 0.4887 GB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006483/0.5174, allocations: 4.807 MB / 0.4933 GB, free: 2.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007242/0.5182, allocations: 75.67 kB / 0.4934 GB, free: 2.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-05/0.5183, allocations: 23.36 kB / 0.4934 GB, free: 2.477 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.0002747/0.5186, allocations: 128.1 kB / 0.4936 GB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.5188, allocations: 71.16 kB / 0.4936 GB, free: 2.277 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/0.5208, allocations: 0.6932 MB / 0.4943 GB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.5209, allocations: 13.5 kB / 0.4943 GB, free: 1.738 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.5209, allocations: 0 / 0.4943 GB, free: 1.738 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001761/0.5226, allocations: 0.9577 MB / 0.4953 GB, free: 0.7969 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002994/0.5256, allocations: 1.362 MB / 0.4966 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.5257, allocations: 0 / 0.4966 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008747/0.5265, allocations: 143.9 kB / 0.4967 GB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007392/0.5273, allocations: 149.8 kB / 0.4969 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-05/0.5274, allocations: 6.938 kB / 0.4969 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004405/0.5318, allocations: 3.269 MB / 0.5001 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.5318, allocations: 0 / 0.5001 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002194/0.534, allocations: 0.9502 MB / 0.501 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003846/0.5344, allocations: 200.2 kB / 0.5012 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.5346, allocations: 4 kB / 0.5012 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004936/0.5351, allocations: 39.58 kB / 0.5012 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.58e-05/0.5352, allocations: 33 kB / 0.5013 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.805e-05/0.5352, allocations: 20 kB / 0.5013 GB, free: 10.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004463/0.5357, allocations: 326.9 kB / 0.5016 GB, free: 10.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008146/0.5365, allocations: 203.7 kB / 0.5018 GB, free: 10.22 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.0002008/0.5367, allocations: 111.1 kB / 0.5019 GB, free: 10.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.5383, allocations: 0.8008 MB / 0.5027 GB, free: 9.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.5383, allocations: 5.5 kB / 0.5027 GB, free: 9.266 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008466/0.5392, allocations: 468.1 kB / 0.5031 GB, free: 8.793 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007521/0.54, allocations: 148.4 kB / 0.5033 GB, free: 8.656 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.5422, allocations: 0.913 MB / 0.5042 GB, free: 7.719 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007493/0.543, allocations: 0.9499 MB / 0.5051 GB, free: 6.746 MB / 378.7 MB Notification: Performance of SimCode: time 4.2e-07/0.543, allocations: 0 / 0.5051 GB, free: 6.746 MB / 378.7 MB Notification: Performance of Templates: time 0.02121/0.5642, allocations: 11.71 MB / 0.5165 GB, free: 11.29 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches