Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_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_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002027/0.002027, allocations: 195.7 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.603/2.603, allocations: 226.5 MB / 245.3 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001243/0.001243, allocations: 92.48 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003635, allocations: 8 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4456/0.446, allocations: 51.3 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1743/0.6204, allocations: 83.49 MB / 492.1 MB, free: 8.082 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003305/0.6208, allocations: 73.91 kB / 492.2 MB, free: 8.012 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0584/0.6792, allocations: 13.96 MB / 0.4943 GB, free: 9.965 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.037e-06/0.6793, allocations: 4 kB / 0.4943 GB, free: 9.961 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.442e-05/0.6794, allocations: 12 kB / 0.4943 GB, free: 9.949 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.002795/0.6822, allocations: 1.001 MB / 0.4953 GB, free: 8.883 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.173e-05/0.6823, allocations: 12.03 kB / 0.4953 GB, free: 8.871 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004468/0.6827, allocations: 88 kB / 0.4954 GB, free: 8.785 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.6841, allocations: 480.6 kB / 0.4959 GB, free: 8.277 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002898/0.6844, allocations: 92.97 kB / 0.496 GB, free: 8.176 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.6846, allocations: 44.38 kB / 0.496 GB, free: 8.133 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002229/0.6868, allocations: 0.6676 MB / 0.4967 GB, free: 7.391 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.653e-05/0.6869, allocations: 3.938 kB / 0.4967 GB, free: 7.387 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.672e-05/0.687, allocations: 24 kB / 0.4967 GB, free: 7.363 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.101e-05/0.687, allocations: 8 kB / 0.4967 GB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.6886, allocations: 491.6 kB / 0.4972 GB, free: 6.879 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00604/0.6947, allocations: 1.887 MB / 0.499 GB, free: 4.891 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002784/0.6976, allocations: 0.7157 MB / 0.4997 GB, free: 4.148 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.6987, allocations: 290.4 kB / 0.5 GB, free: 3.859 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.114e-05/0.6988, allocations: 12.48 kB / 0.5 GB, free: 3.848 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.989e-05/0.6989, allocations: 51.06 kB / 0.5 GB, free: 3.789 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 6.772e-06/0.6989, allocations: 0 / 0.5 GB, free: 3.789 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.008133/0.7071, allocations: 1.62 MB / 0.5016 GB, free: 2.098 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004411/0.7076, allocations: 0.5645 MB / 0.5022 GB, free: 1.398 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001288/0.7089, allocations: 0.5265 MB / 0.5027 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001614/0.7091, allocations: 45.7 kB / 0.5027 GB, free: 0.8086 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003947/0.7095, allocations: 276.6 kB / 0.503 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003019/0.7098, allocations: 201 kB / 0.5032 GB, free: 340 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.421e-05/0.7099, allocations: 8 kB / 0.5032 GB, free: 332 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.452/1.162, allocations: 375.3 kB / 0.5035 GB, free: 92.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/1.163, allocations: 209.9 kB / 0.5037 GB, free: 92.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001341/1.165, allocations: 435.3 kB / 0.5042 GB, free: 92.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006381/1.171, allocations: 0.5231 MB / 0.5047 GB, free: 92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.389e-05/1.171, allocations: 4.938 kB / 0.5047 GB, free: 92 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004367/1.176, allocations: 0.8596 MB / 0.5055 GB, free: 91.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.911e-05/1.176, allocations: 32.27 kB / 0.5055 GB, free: 91.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/1.176, allocations: 4.531 kB / 0.5056 GB, free: 91.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001576/1.177, allocations: 240.9 kB / 0.5058 GB, free: 91.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00558/1.183, allocations: 137.7 kB / 0.5059 GB, free: 91.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01069/1.194, allocations: 5.158 MB / 0.5109 GB, free: 88.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/1.195, allocations: 88.17 kB / 0.511 GB, free: 88.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.208e-05/1.195, allocations: 19.81 kB / 0.5111 GB, free: 88.04 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.0005689/1.196, allocations: 201.1 kB / 0.5112 GB, free: 87.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002677/1.196, allocations: 68.48 kB / 0.5113 GB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008201/1.204, allocations: 0.8433 MB / 0.5121 GB, free: 87.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.705e-05/1.204, allocations: 10 kB / 0.5121 GB, free: 87.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.204, allocations: 0 / 0.5121 GB, free: 87.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003357/1.208, allocations: 1.099 MB / 0.5132 GB, free: 87.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00866/1.216, allocations: 1.578 MB / 0.5148 GB, free: 86.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/1.216, allocations: 3.328 kB / 0.5148 GB, free: 86.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/1.218, allocations: 141.1 kB / 0.5149 GB, free: 86.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001224/1.219, allocations: 185.3 kB / 0.5151 GB, free: 86.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.14e-05/1.219, allocations: 15.39 kB / 0.5151 GB, free: 86.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009645/1.229, allocations: 3.537 MB / 0.5185 GB, free: 83.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/1.229, allocations: 6.625 kB / 0.5185 GB, free: 83.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004694/1.234, allocations: 1.156 MB / 0.5197 GB, free: 83.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005988/1.234, allocations: 205.9 kB / 0.5199 GB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/1.234, allocations: 18.16 kB / 0.5199 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007305/1.235, allocations: 42.34 kB / 0.5199 GB, free: 82.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002045/1.235, allocations: 46.16 kB / 0.52 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.87e-05/1.235, allocations: 18.83 kB / 0.52 GB, free: 82.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007333/1.236, allocations: 384.7 kB / 0.5204 GB, free: 82.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.1e-07/1.236, allocations: 0 / 0.5204 GB, free: 82.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001403/1.238, allocations: 225.2 kB / 0.5206 GB, free: 82.74 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.004424/1.242, allocations: 134.3 kB / 0.5207 GB, free: 82.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003331/1.245, allocations: 1.031 MB / 0.5217 GB, free: 82.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/1.246, allocations: 0 / 0.5217 GB, free: 82.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001599/1.247, allocations: 0.5577 MB / 0.5223 GB, free: 81.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001782/1.249, allocations: 172.3 kB / 0.5224 GB, free: 81.63 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/1.253, allocations: 1.582 MB / 0.524 GB, free: 80.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/1.253, allocations: 0.8909 MB / 0.5248 GB, free: 80.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003056/1.253, allocations: 57.3 kB / 0.5249 GB, free: 80 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/1.253, allocations: 0 / 0.5249 GB, free: 80 MB / 378.7 MB Notification: Performance of Templates: time 0.03684/1.29, allocations: 15.27 MB / 0.5398 GB, free: 68.08 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches