Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001498/0.001498, allocations: 183.8 kB / 18.04 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.515/1.515, allocations: 205.4 MB / 224.2 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007816/0.0007816, allocations: 92.47 kB / 272.5 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004569/0.000457, allocations: 12 kB / 329.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2634, allocations: 47.57 MB / 377 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6801/0.9435, allocations: 321.9 MB / 0.6826 GB, free: 143 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.9438, allocations: 86.97 kB / 0.6826 GB, free: 143 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.279/1.223, allocations: 136.9 MB / 0.8163 GB, free: 5.234 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.363e-06/1.223, allocations: 0 / 0.8163 GB, free: 5.234 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.144e-05/1.223, allocations: 24 kB / 0.8163 GB, free: 5.211 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002645/1.226, allocations: 1.102 MB / 0.8174 GB, free: 4.059 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/1.226, allocations: 15.97 kB / 0.8174 GB, free: 4.043 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004297/1.226, allocations: 84 kB / 0.8175 GB, free: 3.961 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/1.227, allocations: 0.5997 MB / 0.8181 GB, free: 3.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.89e-05/1.227, allocations: 45.36 kB / 0.8181 GB, free: 3.277 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/1.227, allocations: 44.36 kB / 0.8182 GB, free: 3.234 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/1.229, allocations: 0.7347 MB / 0.8189 GB, free: 2.469 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/1.229, allocations: 7.938 kB / 0.8189 GB, free: 2.461 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.735e-05/1.229, allocations: 23.98 kB / 0.8189 GB, free: 2.438 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.702e-05/1.229, allocations: 44.97 kB / 0.819 GB, free: 2.395 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009974/1.23, allocations: 0.687 MB / 0.8196 GB, free: 1.707 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2103/1.44, allocations: 2.844 MB / 0.8224 GB, free: 90.28 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000745/1.441, allocations: 471.8 kB / 0.8229 GB, free: 90.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003948/1.441, allocations: 256 kB / 0.8231 GB, free: 90.24 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002228/1.441, allocations: 338.3 kB / 0.8234 GB, free: 89.87 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/1.442, allocations: 42.69 kB / 0.8235 GB, free: 89.83 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.835e-06/1.442, allocations: 0 / 0.8235 GB, free: 89.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.005219/1.447, allocations: 2.278 MB / 0.8257 GB, free: 89.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/1.447, allocations: 85.36 kB / 0.8258 GB, free: 89.31 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008881/1.448, allocations: 0.6184 MB / 0.8264 GB, free: 89.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.006e-05/1.448, allocations: 43.61 kB / 0.8264 GB, free: 89.15 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002164/1.448, allocations: 323.8 kB / 0.8267 GB, free: 89.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/1.448, allocations: 200.9 kB / 0.8269 GB, free: 88.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-05/1.448, allocations: 14.97 kB / 0.8269 GB, free: 88.91 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/1.448, allocations: 387 kB / 0.8273 GB, free: 88.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004298/1.449, allocations: 288.8 kB / 0.8276 GB, free: 88.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004843/1.449, allocations: 445.7 kB / 0.828 GB, free: 88.44 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008744/1.45, allocations: 0.7114 MB / 0.8287 GB, free: 88.26 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/1.45, allocations: 3.906 kB / 0.8287 GB, free: 88.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001474/1.452, allocations: 0.9258 MB / 0.8296 GB, free: 88.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001076/1.452, allocations: 218.8 kB / 0.8298 GB, free: 87.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/1.452, allocations: 3.719 kB / 0.8298 GB, free: 87.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001911/1.454, allocations: 363 kB / 0.8302 GB, free: 87.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005762/1.454, allocations: 149 kB / 0.8303 GB, free: 87.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007593/1.455, allocations: 0.8223 MB / 0.8311 GB, free: 87.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006567/1.456, allocations: 54.2 kB / 0.8312 GB, free: 87.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.3e-05/1.456, allocations: 29.31 kB / 0.8312 GB, free: 87.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.895e-06/1.456, allocations: 3.875 kB / 0.8312 GB, free: 87.4 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001261/1.457, allocations: 0.7817 MB / 0.832 GB, free: 87.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/1.457, allocations: 3.812 kB / 0.832 GB, free: 87.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/1.458, allocations: 224.2 kB / 0.8322 GB, free: 87.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005491/1.459, allocations: 156 kB / 0.8323 GB, free: 87.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005179/1.46, allocations: 0.7064 MB / 0.833 GB, free: 86.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005971/1.46, allocations: 48.59 kB / 0.8331 GB, free: 86.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.284e-05/1.46, allocations: 29.91 kB / 0.8331 GB, free: 86.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004625/1.461, allocations: 318.5 kB / 0.8334 GB, free: 86.65 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001841/1.461, allocations: 74.34 kB / 0.8335 GB, free: 86.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001673/1.463, allocations: 0.8424 MB / 0.8343 GB, free: 86.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/1.463, allocations: 7.031 kB / 0.8343 GB, free: 86.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/1.463, allocations: 0 / 0.8343 GB, free: 86.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/1.463, allocations: 6.406 kB / 0.8343 GB, free: 86.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002607/1.465, allocations: 1.657 MB / 0.8359 GB, free: 86.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/1.465, allocations: 0 / 0.8359 GB, free: 86.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004778/1.466, allocations: 113.5 kB / 0.836 GB, free: 86.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001676/1.467, allocations: 335.2 kB / 0.8364 GB, free: 86.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.395e-05/1.468, allocations: 20.25 kB / 0.8364 GB, free: 86.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000784/1.468, allocations: 0.8031 MB / 0.8372 GB, free: 85.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.468, allocations: 3.094 kB / 0.8372 GB, free: 85.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/1.47, allocations: 1.233 MB / 0.8384 GB, free: 85.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002796/1.47, allocations: 154.3 kB / 0.8385 GB, free: 85.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/1.471, allocations: 17.5 kB / 0.8385 GB, free: 85.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005825/1.471, allocations: 42.64 kB / 0.8386 GB, free: 85.33 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/1.471, allocations: 57.53 kB / 0.8386 GB, free: 85.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.627e-05/1.471, allocations: 21.27 kB / 0.8386 GB, free: 85.33 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005736/1.472, allocations: 446.5 kB / 0.8391 GB, free: 85.23 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.472, allocations: 0 / 0.8391 GB, free: 85.23 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002346/1.474, allocations: 0.5882 MB / 0.8396 GB, free: 85.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001924/1.476, allocations: 0.588 MB / 0.8402 GB, free: 85.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002485/1.479, allocations: 1.123 MB / 0.8413 GB, free: 85.12 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/1.479, allocations: 3.484 kB / 0.8413 GB, free: 85.12 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007307/1.479, allocations: 381.8 kB / 0.8417 GB, free: 85.12 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/1.481, allocations: 335.6 kB / 0.842 GB, free: 85.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002926/1.484, allocations: 1.851 MB / 0.8438 GB, free: 84.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005404/1.485, allocations: 0.9675 MB / 0.8448 GB, free: 83.71 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001193/1.486, allocations: 272.5 kB / 0.845 GB, free: 83.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/1.486, allocations: 63.56 kB / 0.8451 GB, free: 83.69 MB / 426.7 MB Notification: Performance of SimCode: time 6.91e-07/1.486, allocations: 2.469 kB / 0.8451 GB, free: 83.69 MB / 426.7 MB Notification: Performance of Templates: time 0.0315/1.518, allocations: 19.99 MB / 0.8646 GB, free: 82.79 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches