Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001773/0.001773, allocations: 181.3 kB / 17.41 MB, free: 4.289 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.708/1.708, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.0009503/0.0009501, allocations: 85.44 kB / 271.9 MB, free: 8.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003116/0.0003116, allocations: 11.98 kB / 328.2 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2634, allocations: 47.57 MB / 375.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7314/0.9949, allocations: 321.9 MB / 0.6813 GB, free: 143.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/0.9952, allocations: 94.28 kB / 0.6814 GB, free: 143.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2819/1.277, allocations: 136.9 MB / 0.815 GB, free: 5.336 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.265e-06/1.277, allocations: 0 / 0.815 GB, free: 5.336 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.436e-05/1.277, allocations: 27.98 kB / 0.8151 GB, free: 5.309 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.00362/1.281, allocations: 1.102 MB / 0.8161 GB, free: 4.156 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/1.281, allocations: 19.95 kB / 0.8162 GB, free: 4.137 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005696/1.282, allocations: 84 kB / 0.8162 GB, free: 4.055 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001547/1.283, allocations: 0.5958 MB / 0.8168 GB, free: 3.418 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.831e-05/1.283, allocations: 49.34 kB / 0.8169 GB, free: 3.371 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/1.283, allocations: 44.36 kB / 0.8169 GB, free: 3.328 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/1.285, allocations: 0.7347 MB / 0.8176 GB, free: 2.562 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/1.285, allocations: 3.938 kB / 0.8176 GB, free: 2.559 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.991e-05/1.285, allocations: 23.98 kB / 0.8177 GB, free: 2.535 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.779e-05/1.285, allocations: 44.97 kB / 0.8177 GB, free: 2.492 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/1.286, allocations: 0.687 MB / 0.8184 GB, free: 1.805 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2206/1.506, allocations: 2.85 MB / 0.8211 GB, free: 90 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006659/1.507, allocations: 469 kB / 0.8216 GB, free: 89.97 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003407/1.508, allocations: 251.8 kB / 0.8218 GB, free: 89.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002257/1.508, allocations: 346 kB / 0.8222 GB, free: 89.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/1.508, allocations: 40.06 kB / 0.8222 GB, free: 89.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 3.436e-06/1.508, allocations: 0 / 0.8222 GB, free: 89.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.004898/1.513, allocations: 2.275 MB / 0.8244 GB, free: 89.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/1.513, allocations: 88.23 kB / 0.8245 GB, free: 89.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006208/1.513, allocations: 0.6225 MB / 0.8251 GB, free: 88.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.436e-05/1.514, allocations: 36.64 kB / 0.8252 GB, free: 88.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/1.514, allocations: 329.3 kB / 0.8255 GB, free: 88.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/1.514, allocations: 204.8 kB / 0.8257 GB, free: 88.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-05/1.514, allocations: 14.66 kB / 0.8257 GB, free: 88.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.317e-05/1.514, allocations: 382.7 kB / 0.826 GB, free: 88.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004154/1.514, allocations: 280.7 kB / 0.8263 GB, free: 88.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004423/1.515, allocations: 455.2 kB / 0.8267 GB, free: 88.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000841/1.516, allocations: 0.7095 MB / 0.8274 GB, free: 87.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/1.516, allocations: 3.828 kB / 0.8274 GB, free: 87.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001262/1.517, allocations: 0.9252 MB / 0.8283 GB, free: 87.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.354e-05/1.517, allocations: 226.4 kB / 0.8286 GB, free: 87.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/1.517, allocations: 5.969 kB / 0.8286 GB, free: 87.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001791/1.519, allocations: 356.5 kB / 0.8289 GB, free: 87.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005331/1.519, allocations: 146 kB / 0.829 GB, free: 87.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006953/1.52, allocations: 0.8159 MB / 0.8298 GB, free: 87.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005286/1.521, allocations: 47.62 kB / 0.8299 GB, free: 87.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.885e-05/1.521, allocations: 32.89 kB / 0.8299 GB, free: 87.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.446e-06/1.521, allocations: 3.719 kB / 0.8299 GB, free: 87.12 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001092/1.522, allocations: 0.7865 MB / 0.8307 GB, free: 87.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/1.522, allocations: 3.25 kB / 0.8307 GB, free: 87.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/1.523, allocations: 226 kB / 0.8309 GB, free: 87.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00052/1.524, allocations: 153.7 kB / 0.8311 GB, free: 87.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004658/1.524, allocations: 0.7054 MB / 0.8317 GB, free: 86.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000471/1.525, allocations: 50.98 kB / 0.8318 GB, free: 86.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.075e-05/1.525, allocations: 29.75 kB / 0.8318 GB, free: 86.56 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.0003771/1.525, allocations: 318.1 kB / 0.8321 GB, free: 86.38 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/1.525, allocations: 74.52 kB / 0.8322 GB, free: 86.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/1.526, allocations: 0.8387 MB / 0.833 GB, free: 86.27 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/1.526, allocations: 7.219 kB / 0.833 GB, free: 86.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/1.526, allocations: 0 / 0.833 GB, free: 86.27 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/1.526, allocations: 3.609 kB / 0.833 GB, free: 86.27 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002411/1.529, allocations: 1.66 MB / 0.8346 GB, free: 85.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/1.529, allocations: 0 / 0.8346 GB, free: 85.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004529/1.529, allocations: 112.9 kB / 0.8348 GB, free: 85.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001315/1.531, allocations: 338.1 kB / 0.8351 GB, free: 85.93 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-05/1.531, allocations: 21.22 kB / 0.8351 GB, free: 85.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006218/1.531, allocations: 0.8046 MB / 0.8359 GB, free: 85.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/1.531, allocations: 2.5 kB / 0.8359 GB, free: 85.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/1.533, allocations: 1.234 MB / 0.8371 GB, free: 85.19 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/1.533, allocations: 148.8 kB / 0.8372 GB, free: 85.06 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.612e-05/1.533, allocations: 18.91 kB / 0.8372 GB, free: 85.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004357/1.534, allocations: 49.33 kB / 0.8373 GB, free: 85.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/1.534, allocations: 53.48 kB / 0.8373 GB, free: 85.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.238e-05/1.534, allocations: 26.77 kB / 0.8374 GB, free: 85.05 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004704/1.534, allocations: 442.1 kB / 0.8378 GB, free: 84.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.534, allocations: 5.125 kB / 0.8378 GB, free: 84.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002051/1.536, allocations: 0.5841 MB / 0.8384 GB, free: 84.96 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.001145/1.537, allocations: 0.5916 MB / 0.8389 GB, free: 84.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001916/1.539, allocations: 1.121 MB / 0.84 GB, free: 84.85 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.539, allocations: 5.297 kB / 0.84 GB, free: 84.85 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006432/1.54, allocations: 374.1 kB / 0.8404 GB, free: 84.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/1.542, allocations: 342.7 kB / 0.8407 GB, free: 84.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002572/1.544, allocations: 1.891 MB / 0.8426 GB, free: 84.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004535/1.545, allocations: 0.9624 MB / 0.8435 GB, free: 83.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002499/1.545, allocations: 72.17 kB / 0.8436 GB, free: 83.39 MB / 426.7 MB Notification: Performance of SimCode: time 4e-07/1.545, allocations: 3.844 kB / 0.8436 GB, free: 83.39 MB / 426.7 MB Notification: Performance of Templates: time 0.02519/1.57, allocations: 17.86 MB / 0.861 GB, free: 82.46 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches