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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 175.4 kB / 8.349 MB, free: 0.7266 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.438/1.438, allocations: 221.5 MB / 230.3 MB, free: 7.523 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.00103/0.00103, allocations: 95.59 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.706e-05/1.71e-05, allocations: 0 / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1131, allocations: 50.42 MB / 387.5 MB, free: 7.586 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.335/0.4481, allocations: 82 MB / 469.5 MB, free: 12.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.4484, allocations: 71.97 kB / 469.5 MB, free: 12.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03611/0.4845, allocations: 13.69 MB / 483.2 MB, free: 15.04 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4846, allocations: 0 / 483.2 MB, free: 15.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.649e-05/0.4846, allocations: 16 kB / 483.2 MB, free: 15.02 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.001437/0.4861, allocations: 0.8963 MB / 484.1 MB, free: 14.06 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.4861, allocations: 8.031 kB / 484.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/0.4863, allocations: 87.06 kB / 484.2 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006412/0.4869, allocations: 452.1 kB / 484.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001444/0.4871, allocations: 84.7 kB / 484.7 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.606e-05/0.4872, allocations: 28 kB / 484.8 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006446/0.4878, allocations: 358.5 kB / 485.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008016/0.4886, allocations: 0.5449 MB / 485.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.4886, allocations: 3.938 kB / 485.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.345e-05/0.4887, allocations: 0 / 485.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.4887, allocations: 12 kB / 485.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00302/0.4917, allocations: 1.785 MB / 487.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.4934, allocations: 0.6509 MB / 488.1 MB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000315/0.4937, allocations: 218.4 kB / 488.3 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.575e-05/0.4938, allocations: 20.47 kB / 488.3 MB, free: 9.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.4938, allocations: 43.12 kB / 488.4 MB, free: 9.539 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 1.894e-06/0.4939, allocations: 0 / 488.4 MB, free: 9.539 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.001727/0.4956, allocations: 0.6569 MB / 489 MB, free: 8.863 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002407/0.4958, allocations: 0.5644 MB / 489.6 MB, free: 8.164 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004702/0.4963, allocations: 422.1 kB / 490 MB, free: 7.746 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.632e-05/0.4964, allocations: 29.7 kB / 490.1 MB, free: 7.711 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001934/0.4966, allocations: 281.2 kB / 490.3 MB, free: 7.434 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.4967, allocations: 185.2 kB / 490.5 MB, free: 7.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/0.4968, allocations: 4 kB / 490.5 MB, free: 7.246 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.4969, allocations: 374.7 kB / 490.9 MB, free: 6.871 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.4972, allocations: 149.1 kB / 491 MB, free: 6.727 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004126/0.4976, allocations: 351.5 kB / 491.4 MB, free: 6.301 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.4979, allocations: 182.2 kB / 491.5 MB, free: 6.125 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.4979, allocations: 3.938 kB / 491.5 MB, free: 6.121 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001686/0.4996, allocations: 0.7075 MB / 492.3 MB, free: 5.398 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.875e-05/0.4997, allocations: 31.27 kB / 492.3 MB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.4997, allocations: 0 / 492.3 MB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008143/0.5005, allocations: 214.4 kB / 492.5 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007293/0.5012, allocations: 135.8 kB / 492.6 MB, free: 5.012 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005324/0.5066, allocations: 4.862 MB / 497.5 MB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/0.5071, allocations: 71.67 kB / 497.6 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/0.5072, allocations: 20.06 kB / 497.6 MB, free: 15.71 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.000223/0.5074, allocations: 141.1 kB / 497.7 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.5075, allocations: 67.25 kB / 497.8 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001696/0.5092, allocations: 0.6869 MB / 498.5 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.5092, allocations: 8 kB / 498.5 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.5093, allocations: 128 / 498.5 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001526/0.5108, allocations: 0.9528 MB / 499.4 MB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/0.5132, allocations: 1.355 MB / 0.489 GB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.5132, allocations: 3.984 kB / 0.4891 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007713/0.514, allocations: 139.8 kB / 0.4892 GB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005945/0.5146, allocations: 157.5 kB / 0.4893 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.746e-05/0.5146, allocations: 11.95 kB / 0.4893 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00374/0.5184, allocations: 3.286 MB / 0.4926 GB, free: 8.477 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.5184, allocations: 3.984 kB / 0.4926 GB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001814/0.5202, allocations: 0.9375 MB / 0.4935 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002539/0.5205, allocations: 200.3 kB / 0.4937 GB, free: 7.293 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.031e-05/0.5206, allocations: 8 kB / 0.4937 GB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.521, allocations: 35.95 kB / 0.4937 GB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.643e-05/0.5211, allocations: 44.44 kB / 0.4938 GB, free: 7.207 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-05/0.5211, allocations: 19.98 kB / 0.4938 GB, free: 7.188 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003592/0.5215, allocations: 323.1 kB / 0.4941 GB, free: 6.875 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5215, allocations: 0 / 0.4941 GB, free: 6.875 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007465/0.5223, allocations: 207.6 kB / 0.4943 GB, free: 6.672 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.0002143/0.5225, allocations: 123.1 kB / 0.4944 GB, free: 6.543 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.5238, allocations: 0.8651 MB / 0.4952 GB, free: 5.633 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5238, allocations: 4 kB / 0.4952 GB, free: 5.629 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007095/0.5246, allocations: 477.5 kB / 0.4957 GB, free: 5.145 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006421/0.5252, allocations: 149.5 kB / 0.4958 GB, free: 5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.5267, allocations: 0.8645 MB / 0.4967 GB, free: 4.113 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.5272, allocations: 0.9035 MB / 0.4976 GB, free: 3.176 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000288/0.5275, allocations: 68.89 kB / 0.4976 GB, free: 3.109 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.5276, allocations: 55.42 kB / 0.4977 GB, free: 3.059 MB / 378.7 MB Notification: Performance of SimCode: time 3.7e-07/0.5276, allocations: 4 kB / 0.4977 GB, free: 3.055 MB / 378.7 MB Notification: Performance of Templates: time 0.01827/0.5459, allocations: 11.28 MB / 0.5087 GB, free: 7.941 MB / 394.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