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.001458/0.001458, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008968/0.0008967, allocations: 98.34 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003603, allocations: 15.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.2233, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09501/0.3184, allocations: 82.73 MB / 484.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.3187, allocations: 71.97 kB / 484.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03633/0.355, allocations: 13.87 MB / 498.2 MB, free: 15.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.614e-06/0.355, allocations: 0 / 498.2 MB, free: 15.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.374e-05/0.3551, allocations: 16 kB / 498.2 MB, free: 15.73 MB / 378.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.001661/0.3568, allocations: 0.9966 MB / 499.2 MB, free: 14.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.3568, allocations: 8.031 kB / 499.2 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.3569, allocations: 87.06 kB / 499.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006442/0.3576, allocations: 459.7 kB / 499.7 MB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.3578, allocations: 100.4 kB / 499.8 MB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.27e-05/0.3578, allocations: 40 kB / 499.8 MB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.3589, allocations: 0.6639 MB / 0.4888 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.359, allocations: 0 / 0.4888 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.424e-05/0.359, allocations: 24 kB / 0.4888 GB, free: 13.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.359, allocations: 12 kB / 0.4888 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.3601, allocations: 487.6 kB / 0.4893 GB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003035/0.3631, allocations: 1.89 MB / 0.4911 GB, free: 10.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0021/0.3653, allocations: 0.748 MB / 0.4919 GB, free: 9.918 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.734e-05/0.3653, allocations: 16.53 kB / 0.4919 GB, free: 9.902 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.3654, allocations: 51.12 kB / 0.4919 GB, free: 9.844 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 2.254e-06/0.3654, allocations: 0.5625 kB / 0.4919 GB, free: 9.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.005034/0.3704, allocations: 1.614 MB / 0.4935 GB, free: 8.164 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002303/0.3707, allocations: 0.5684 MB / 0.4941 GB, free: 7.457 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005579/0.3712, allocations: 478.3 kB / 0.4945 GB, free: 6.984 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.307e-05/0.3713, allocations: 37.7 kB / 0.4945 GB, free: 6.941 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002062/0.3715, allocations: 292.6 kB / 0.4948 GB, free: 6.652 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.3717, allocations: 193.2 kB / 0.495 GB, free: 6.461 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/0.3717, allocations: 15.94 kB / 0.495 GB, free: 6.445 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3719, allocations: 366.8 kB / 0.4954 GB, free: 6.078 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005182/0.3724, allocations: 217 kB / 0.4956 GB, free: 5.867 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007128/0.3731, allocations: 432.5 kB / 0.496 GB, free: 5.363 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005747/0.3737, allocations: 278.7 kB / 0.4963 GB, free: 5.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.3737, allocations: 0 / 0.4963 GB, free: 5.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002264/0.376, allocations: 0.8693 MB / 0.4971 GB, free: 4.199 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/0.376, allocations: 29.7 kB / 0.4971 GB, free: 4.164 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.3761, allocations: 4 kB / 0.4971 GB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009791/0.377, allocations: 234.4 kB / 0.4974 GB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008031/0.3779, allocations: 139.8 kB / 0.4975 GB, free: 3.785 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1856/0.5635, allocations: 5.233 MB / 0.5026 GB, free: 94.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008039/0.5643, allocations: 88.94 kB / 0.5027 GB, free: 94.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.459e-05/0.5644, allocations: 19.61 kB / 0.5027 GB, free: 94.44 MB / 378.7 MB 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 () * Number of clocked 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.0003661/0.5648, allocations: 195.3 kB / 0.5029 GB, free: 94.33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.5649, allocations: 77.19 kB / 0.503 GB, free: 94.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00247/0.5674, allocations: 0.837 MB / 0.5038 GB, free: 94.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.5674, allocations: 5.5 kB / 0.5038 GB, free: 94.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.5674, allocations: 1.578 kB / 0.5038 GB, free: 94.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00221/0.5696, allocations: 1.098 MB / 0.5049 GB, free: 93.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003365/0.573, allocations: 1.582 MB / 0.5064 GB, free: 93.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.573, allocations: 0 / 0.5064 GB, free: 93.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000903/0.5739, allocations: 142.6 kB / 0.5065 GB, free: 93.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008753/0.5748, allocations: 188.2 kB / 0.5067 GB, free: 93.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.964e-05/0.5749, allocations: 13.34 kB / 0.5067 GB, free: 93.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004233/0.5791, allocations: 3.599 MB / 0.5103 GB, free: 90.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.5791, allocations: 0 / 0.5103 GB, free: 90.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002535/0.5817, allocations: 1.159 MB / 0.5114 GB, free: 90.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002896/0.582, allocations: 204.4 kB / 0.5116 GB, free: 90.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.973e-05/0.5821, allocations: 15.34 kB / 0.5116 GB, free: 90.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000414/0.5825, allocations: 39.94 kB / 0.5116 GB, free: 90.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.5826, allocations: 42.03 kB / 0.5117 GB, free: 90.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.5827, allocations: 18.75 kB / 0.5117 GB, free: 90.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003964/0.5831, allocations: 386.2 kB / 0.5121 GB, free: 90.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.91e-07/0.5831, allocations: 0 / 0.5121 GB, free: 90.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000732/0.5838, allocations: 228.1 kB / 0.5123 GB, free: 90.29 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 () * Number of clocked 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.0001893/0.584, allocations: 132 kB / 0.5124 GB, free: 90.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00181/0.5858, allocations: 1.033 MB / 0.5134 GB, free: 89.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.5858, allocations: 2.219 kB / 0.5134 GB, free: 89.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009095/0.5868, allocations: 0.5568 MB / 0.514 GB, free: 89.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006753/0.5874, allocations: 170.5 kB / 0.5141 GB, free: 89.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001927/0.5894, allocations: 1.549 MB / 0.5156 GB, free: 88.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.5897, allocations: 0.9104 MB / 0.5165 GB, free: 87.69 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003363/0.59, allocations: 76.3 kB / 0.5166 GB, free: 87.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.5901, allocations: 52.5 kB / 0.5166 GB, free: 87.67 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5902, allocations: 0 / 0.5166 GB, free: 87.67 MB / 378.7 MB Notification: Performance of Templates: time 0.01688/0.607, allocations: 12.54 MB / 0.5289 GB, free: 80.33 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