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.001169/0.001168, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.833/1.833, allocations: 205.3 MB / 214.4 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009052/0.0009048, allocations: 86.7 kB / 262.4 MB, free: 1.605 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.608e-05/1.611e-05, allocations: 7.984 kB / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 47.57 MB / 363.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8372/0.94, allocations: 321.2 MB / 0.6683 GB, free: 8.867 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003146/0.9404, allocations: 90.52 kB / 0.6684 GB, free: 8.824 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5037/1.444, allocations: 136.5 MB / 0.8017 GB, free: 69.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.904e-06/1.444, allocations: 0 / 0.8017 GB, free: 69.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.443e-05/1.444, allocations: 35.69 kB / 0.8017 GB, free: 69.21 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.002104/1.446, allocations: 1.017 MB / 0.8027 GB, free: 68.16 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/1.446, allocations: 8.031 kB / 0.8027 GB, free: 68.15 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002787/1.447, allocations: 91.02 kB / 0.8028 GB, free: 68.06 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000934/1.448, allocations: 0.5882 MB / 0.8034 GB, free: 67.44 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/1.448, allocations: 16 kB / 0.8034 GB, free: 67.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.281e-05/1.448, allocations: 28 kB / 0.8034 GB, free: 67.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008113/1.449, allocations: 0.5999 MB / 0.804 GB, free: 66.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008459/1.449, allocations: 0.666 MB / 0.8047 GB, free: 66.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/1.449, allocations: 0 / 0.8047 GB, free: 66.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.943e-05/1.449, allocations: 4 kB / 0.8047 GB, free: 66.09 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.594e-05/1.45, allocations: 41.28 kB / 0.8047 GB, free: 66.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003304/1.453, allocations: 2.739 MB / 0.8074 GB, free: 63.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000495/1.453, allocations: 443.7 kB / 0.8078 GB, free: 62.72 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002555/1.454, allocations: 242.1 kB / 0.808 GB, free: 62.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002048/1.454, allocations: 347.8 kB / 0.8084 GB, free: 62.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/1.454, allocations: 43 kB / 0.8084 GB, free: 62.02 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 1.553e-06/1.454, allocations: 3.938 kB / 0.8084 GB, free: 62.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.004683/1.459, allocations: 1.818 MB / 0.8102 GB, free: 60.15 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/1.459, allocations: 85.62 kB / 0.8103 GB, free: 60.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004302/1.459, allocations: 450.1 kB / 0.8107 GB, free: 59.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.711e-05/1.459, allocations: 25.7 kB / 0.8107 GB, free: 59.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/1.459, allocations: 332.2 kB / 0.811 GB, free: 59.24 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/1.459, allocations: 201 kB / 0.8112 GB, free: 59.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.493e-05/1.459, allocations: 0 / 0.8112 GB, free: 59.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.257e-05/1.46, allocations: 370.8 kB / 0.8116 GB, free: 58.67 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000318/1.46, allocations: 269.5 kB / 0.8118 GB, free: 58.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003673/1.46, allocations: 429.4 kB / 0.8122 GB, free: 57.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003385/1.464, allocations: 0.8394 MB / 0.8131 GB, free: 57.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/1.464, allocations: 0 / 0.8131 GB, free: 57.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00407/1.468, allocations: 1.378 MB / 0.8144 GB, free: 55.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002943/1.468, allocations: 1.754 MB / 0.8161 GB, free: 53.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/1.468, allocations: 4 kB / 0.8161 GB, free: 53.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004628/1.469, allocations: 160.7 kB / 0.8163 GB, free: 53.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005511/1.469, allocations: 147.8 kB / 0.8164 GB, free: 53.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001347/1.47, allocations: 0.9541 MB / 0.8174 GB, free: 52.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005416/1.471, allocations: 31.97 kB / 0.8174 GB, free: 52.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.829e-05/1.471, allocations: 40.05 kB / 0.8174 GB, free: 52.45 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.205e-06/1.471, allocations: 4 kB / 0.8174 GB, free: 52.45 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004322/1.475, allocations: 1.206 MB / 0.8186 GB, free: 51.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/1.475, allocations: 4 kB / 0.8186 GB, free: 51.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003285/1.476, allocations: 104.8 kB / 0.8187 GB, free: 51.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005178/1.476, allocations: 151.8 kB / 0.8188 GB, free: 50.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009551/1.477, allocations: 0.8022 MB / 0.8196 GB, free: 50.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005021/1.478, allocations: 32.03 kB / 0.8197 GB, free: 50.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.283e-05/1.478, allocations: 31.98 kB / 0.8197 GB, free: 50.09 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 () * 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.0001822/1.478, allocations: 132.7 kB / 0.8198 GB, free: 49.95 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/1.478, allocations: 63.25 kB / 0.8199 GB, free: 49.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/1.48, allocations: 0.8264 MB / 0.8207 GB, free: 49.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/1.48, allocations: 4 kB / 0.8207 GB, free: 49.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/1.48, allocations: 8.062 kB / 0.8207 GB, free: 49.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/1.48, allocations: 3.984 kB / 0.8207 GB, free: 49.03 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/1.482, allocations: 1.563 MB / 0.8222 GB, free: 47.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/1.482, allocations: 0 / 0.8222 GB, free: 47.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004569/1.483, allocations: 111.8 kB / 0.8223 GB, free: 47.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004242/1.483, allocations: 160.8 kB / 0.8225 GB, free: 47.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/1.483, allocations: 11.98 kB / 0.8225 GB, free: 47.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009292/1.484, allocations: 0.8685 MB / 0.8233 GB, free: 46.25 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.484, allocations: 0 / 0.8233 GB, free: 46.25 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001823/1.486, allocations: 1.248 MB / 0.8246 GB, free: 44.96 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001456/1.486, allocations: 140.3 kB / 0.8247 GB, free: 44.81 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.648e-05/1.486, allocations: 4 kB / 0.8247 GB, free: 44.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004283/1.487, allocations: 35.88 kB / 0.8247 GB, free: 44.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.962e-05/1.487, allocations: 52.53 kB / 0.8248 GB, free: 44.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-05/1.487, allocations: 27.98 kB / 0.8248 GB, free: 44.69 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003134/1.487, allocations: 338.9 kB / 0.8251 GB, free: 44.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 2e-07/1.487, allocations: 0 / 0.8251 GB, free: 44.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001522/1.489, allocations: 0.5502 MB / 0.8257 GB, free: 43.81 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]) * 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.0009604/1.49, allocations: 0.5794 MB / 0.8262 GB, free: 43.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001468/1.491, allocations: 1.074 MB / 0.8273 GB, free: 42.17 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/1.491, allocations: 6 kB / 0.8273 GB, free: 42.17 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004766/1.492, allocations: 357.8 kB / 0.8276 GB, free: 41.82 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/1.493, allocations: 290 kB / 0.8279 GB, free: 41.54 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/1.495, allocations: 1.156 MB / 0.829 GB, free: 40.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/1.495, allocations: 0.9834 MB / 0.83 GB, free: 39.32 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008906/1.496, allocations: 289.5 kB / 0.8303 GB, free: 39.04 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/1.496, allocations: 59.42 kB / 0.8303 GB, free: 38.98 MB / 426.7 MB Notification: Performance of SimCode: time 3e-07/1.496, allocations: 0 / 0.8303 GB, free: 38.98 MB / 426.7 MB Notification: Performance of Templates: time 0.02339/1.519, allocations: 18.32 MB / 0.8482 GB, free: 20.63 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/jenkins/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