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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001165, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 227.2 MB / 245 MB, free: 5.777 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000868/0.0008679, allocations: 107.3 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002034/0.0002035, allocations: 4 kB / 357.9 MB, free: 9.332 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2037, allocations: 51.49 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09547/0.2992, allocations: 83.54 MB / 492.9 MB, free: 7.074 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.2995, allocations: 75.95 kB / 493 MB, free: 7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03666/0.3362, allocations: 13.96 MB / 0.4951 GB, free: 8.957 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3362, allocations: 3.938 kB / 0.4951 GB, free: 8.953 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.773e-05/0.3363, allocations: 20 kB / 0.4951 GB, free: 8.934 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.001913/0.3382, allocations: 1.008 MB / 0.4961 GB, free: 7.863 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3382, allocations: 8.031 kB / 0.4961 GB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002986/0.3385, allocations: 87.06 kB / 0.4962 GB, free: 7.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007553/0.3393, allocations: 451.8 kB / 0.4966 GB, free: 7.285 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.3395, allocations: 104.4 kB / 0.4967 GB, free: 7.172 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.467e-05/0.3396, allocations: 51.88 kB / 0.4968 GB, free: 7.121 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.3407, allocations: 0.6522 MB / 0.4974 GB, free: 6.387 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.3408, allocations: 4 kB / 0.4974 GB, free: 6.383 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.882e-05/0.3408, allocations: 23.94 kB / 0.4974 GB, free: 6.359 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.3409, allocations: 12 kB / 0.4974 GB, free: 6.348 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.3419, allocations: 495.7 kB / 0.4979 GB, free: 5.867 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003108/0.3451, allocations: 1.895 MB / 0.4998 GB, free: 3.871 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002081/0.3472, allocations: 0.7635 MB / 0.5005 GB, free: 3.082 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.137e-05/0.3472, allocations: 12.55 kB / 0.5005 GB, free: 3.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.3473, allocations: 43.12 kB / 0.5006 GB, free: 3.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 2.575e-06/0.3473, allocations: 0 / 0.5006 GB, free: 3.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.005059/0.3523, allocations: 1.622 MB / 0.5021 GB, free: 1.324 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002019/0.3525, allocations: 0.5645 MB / 0.5027 GB, free: 0.625 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005626/0.3531, allocations: 482.3 kB / 0.5032 GB, free: 152 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.496e-05/0.3532, allocations: 37.7 kB / 0.5032 GB, free: 108 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1687/0.5219, allocations: 276.7 kB / 0.5035 GB, free: 91.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/0.5222, allocations: 197.8 kB / 0.5036 GB, free: 91.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.582e-05/0.5222, allocations: 9.781 kB / 0.5037 GB, free: 91.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.5224, allocations: 373.4 kB / 0.504 GB, free: 91.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006593/0.523, allocations: 212.6 kB / 0.5042 GB, free: 91.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007146/0.5238, allocations: 434.5 kB / 0.5046 GB, free: 91.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006226/0.5244, allocations: 285.5 kB / 0.5049 GB, free: 91.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.5244, allocations: 0.5625 kB / 0.5049 GB, free: 91.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002514/0.5269, allocations: 0.8619 MB / 0.5057 GB, free: 91.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.527, allocations: 35.27 kB / 0.5058 GB, free: 90.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.527, allocations: 2 kB / 0.5058 GB, free: 90.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009437/0.528, allocations: 231 kB / 0.506 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000774/0.5287, allocations: 136.5 kB / 0.5061 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005817/0.5346, allocations: 5.238 MB / 0.5112 GB, free: 87.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006126/0.5352, allocations: 86.17 kB / 0.5113 GB, free: 87.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.365e-05/0.5353, allocations: 21.03 kB / 0.5113 GB, free: 87.11 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.0002766/0.5355, allocations: 190.8 kB / 0.5115 GB, free: 86.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.5357, allocations: 75.33 kB / 0.5116 GB, free: 86.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002244/0.5379, allocations: 0.8385 MB / 0.5124 GB, free: 86.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.5379, allocations: 6.438 kB / 0.5124 GB, free: 86.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.5379, allocations: 5.266 kB / 0.5124 GB, free: 86.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001879/0.5398, allocations: 1.102 MB / 0.5135 GB, free: 86.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002651/0.5425, allocations: 1.574 MB / 0.515 GB, free: 85.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.5425, allocations: 5.781 kB / 0.5151 GB, free: 85.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007255/0.5432, allocations: 135.1 kB / 0.5152 GB, free: 85.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006731/0.5439, allocations: 183.9 kB / 0.5154 GB, free: 85.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.679e-05/0.544, allocations: 22.09 kB / 0.5154 GB, free: 85.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003852/0.5478, allocations: 3.594 MB / 0.5189 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.5479, allocations: 6.047 kB / 0.5189 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002302/0.5502, allocations: 1.166 MB / 0.52 GB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002107/0.5504, allocations: 194.9 kB / 0.5202 GB, free: 81.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.629e-05/0.5505, allocations: 15.97 kB / 0.5202 GB, free: 81.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004088/0.5509, allocations: 45.83 kB / 0.5203 GB, free: 81.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.563e-05/0.551, allocations: 41.19 kB / 0.5203 GB, free: 81.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/0.551, allocations: 14.91 kB / 0.5203 GB, free: 81.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003309/0.5514, allocations: 382.8 kB / 0.5207 GB, free: 81.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5514, allocations: 0 / 0.5207 GB, free: 81.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006611/0.552, allocations: 229.5 kB / 0.5209 GB, free: 81.69 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.0001578/0.5522, allocations: 145.3 kB / 0.5211 GB, free: 81.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.5538, allocations: 1.021 MB / 0.522 GB, free: 80.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5538, allocations: 0 / 0.522 GB, free: 80.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008619/0.5547, allocations: 0.5591 MB / 0.5226 GB, free: 80.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005877/0.5553, allocations: 170.2 kB / 0.5228 GB, free: 80.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.557, allocations: 1.546 MB / 0.5243 GB, free: 79.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.5572, allocations: 0.9083 MB / 0.5252 GB, free: 78.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002708/0.5575, allocations: 76.08 kB / 0.5252 GB, free: 78.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.5576, allocations: 52.69 kB / 0.5253 GB, free: 78.96 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5576, allocations: 4.875 kB / 0.5253 GB, free: 78.96 MB / 378.7 MB Notification: Performance of Templates: time 0.0149/0.5725, allocations: 12.54 MB / 0.5375 GB, free: 70 MB / 378.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