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.002242/0.002242, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.98/1.98, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001136/0.001136, allocations: 78.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.258e-05/3.27e-05, allocations: 7.984 kB / 321.5 MB, free: 17.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09293/0.09298, allocations: 47.57 MB / 369.1 MB, free: 2.191 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9863/1.079, allocations: 321.7 MB / 0.6746 GB, free: 3.152 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003158/1.08, allocations: 89.5 kB / 0.6747 GB, free: 3.105 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7529/1.833, allocations: 137.3 MB / 0.8087 GB, free: 57.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.793e-06/1.833, allocations: 3.938 kB / 0.8087 GB, free: 57.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.726e-05/1.833, allocations: 19.98 kB / 0.8087 GB, free: 57.71 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.00289/1.836, allocations: 1.029 MB / 0.8097 GB, free: 56.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/1.836, allocations: 11.97 kB / 0.8097 GB, free: 56.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005106/1.836, allocations: 87.02 kB / 0.8098 GB, free: 56.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001689/1.838, allocations: 0.5755 MB / 0.8104 GB, free: 55.92 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.252e-05/1.838, allocations: 37 kB / 0.8104 GB, free: 55.88 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/1.838, allocations: 47.98 kB / 0.8105 GB, free: 55.84 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/1.84, allocations: 0.7187 MB / 0.8112 GB, free: 55.08 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.636e-05/1.84, allocations: 3.906 kB / 0.8112 GB, free: 55.08 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/1.84, allocations: 27.98 kB / 0.8112 GB, free: 55.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.362e-05/1.84, allocations: 40.97 kB / 0.8112 GB, free: 55.01 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/1.842, allocations: 0.6754 MB / 0.8119 GB, free: 54.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005862/1.848, allocations: 2.849 MB / 0.8147 GB, free: 51.31 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/1.849, allocations: 476.5 kB / 0.8151 GB, free: 50.83 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005232/1.849, allocations: 250 kB / 0.8154 GB, free: 50.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002975/1.849, allocations: 345.3 kB / 0.8157 GB, free: 50.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/1.85, allocations: 39 kB / 0.8157 GB, free: 50.12 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 3.216e-06/1.85, allocations: 0 / 0.8157 GB, free: 50.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.00605/1.856, allocations: 1.827 MB / 0.8175 GB, free: 48.24 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.96e-05/1.856, allocations: 81.67 kB / 0.8176 GB, free: 48.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009003/1.857, allocations: 0.5462 MB / 0.8181 GB, free: 47.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.217e-05/1.857, allocations: 41.7 kB / 0.8182 GB, free: 47.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002206/1.857, allocations: 354.9 kB / 0.8185 GB, free: 47.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/1.857, allocations: 209 kB / 0.8187 GB, free: 46.99 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.794e-05/1.857, allocations: 12 kB / 0.8187 GB, free: 46.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.887e-05/1.857, allocations: 338.8 kB / 0.819 GB, free: 46.64 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006592/1.858, allocations: 277.5 kB / 0.8193 GB, free: 46.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007336/1.859, allocations: 435.1 kB / 0.8197 GB, free: 45.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007381/1.859, allocations: 337.9 kB / 0.8201 GB, free: 45.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/1.859, allocations: 4 kB / 0.8201 GB, free: 45.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002032/1.862, allocations: 0.8712 MB / 0.8209 GB, free: 44.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003279/1.862, allocations: 1.757 MB / 0.8226 GB, free: 42.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/1.862, allocations: 4 kB / 0.8226 GB, free: 42.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003183/1.865, allocations: 356.4 kB / 0.823 GB, free: 42.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/1.866, allocations: 151.7 kB / 0.8231 GB, free: 42.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/1.867, allocations: 0.806 MB / 0.8239 GB, free: 41.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009816/1.868, allocations: 59.92 kB / 0.824 GB, free: 41.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.05e-05/1.868, allocations: 27.98 kB / 0.824 GB, free: 41.35 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/1.868, allocations: 7.906 kB / 0.824 GB, free: 41.34 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001808/1.87, allocations: 0.7766 MB / 0.8247 GB, free: 40.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/1.87, allocations: 4 kB / 0.8248 GB, free: 40.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002332/1.873, allocations: 220.8 kB / 0.825 GB, free: 40.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/1.874, allocations: 159.7 kB / 0.8251 GB, free: 40.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007545/1.875, allocations: 0.6928 MB / 0.8258 GB, free: 39.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000714/1.875, allocations: 48.03 kB / 0.8258 GB, free: 39.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.284e-05/1.875, allocations: 24 kB / 0.8259 GB, free: 39.39 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.0002705/1.876, allocations: 160.7 kB / 0.826 GB, free: 39.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002119/1.876, allocations: 71.16 kB / 0.8261 GB, free: 39.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00212/1.878, allocations: 0.8269 MB / 0.8269 GB, free: 38.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/1.878, allocations: 4.094 kB / 0.8269 GB, free: 38.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/1.878, allocations: 3.938 kB / 0.8269 GB, free: 38.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/1.878, allocations: 3.984 kB / 0.8269 GB, free: 38.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003611/1.882, allocations: 1.653 MB / 0.8285 GB, free: 36.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/1.882, allocations: 4.062 kB / 0.8285 GB, free: 36.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009281/1.883, allocations: 107.9 kB / 0.8286 GB, free: 36.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002339/1.885, allocations: 328.5 kB / 0.8289 GB, free: 36.15 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/1.885, allocations: 19.94 kB / 0.829 GB, free: 36.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009554/1.886, allocations: 0.7983 MB / 0.8297 GB, free: 35.31 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.886, allocations: 0 / 0.8297 GB, free: 35.31 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/1.889, allocations: 1.24 MB / 0.8309 GB, free: 34.03 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002586/1.889, allocations: 152.2 kB / 0.8311 GB, free: 33.86 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001607/1.889, allocations: 20.06 kB / 0.8311 GB, free: 33.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008258/1.89, allocations: 43.97 kB / 0.8311 GB, free: 33.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/1.89, allocations: 56.44 kB / 0.8312 GB, free: 33.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.032e-05/1.89, allocations: 27.92 kB / 0.8312 GB, free: 33.72 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007038/1.891, allocations: 431.2 kB / 0.8316 GB, free: 33.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.891, allocations: 0 / 0.8316 GB, free: 33.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002161/1.893, allocations: 0.5893 MB / 0.8322 GB, free: 32.71 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.001573/1.895, allocations: 0.5865 MB / 0.8328 GB, free: 32.11 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002926/1.898, allocations: 1.101 MB / 0.8339 GB, free: 31.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.898, allocations: 4.125 kB / 0.8339 GB, free: 31.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009107/1.899, allocations: 371 kB / 0.8342 GB, free: 30.65 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002542/1.901, allocations: 338.7 kB / 0.8345 GB, free: 30.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/1.904, allocations: 1.231 MB / 0.8357 GB, free: 29.05 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/1.904, allocations: 0.9752 MB / 0.8367 GB, free: 28.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003816/1.905, allocations: 71.41 kB / 0.8368 GB, free: 27.98 MB / 426.7 MB Notification: Performance of SimCode: time 1.903e-06/1.905, allocations: 0 / 0.8368 GB, free: 27.98 MB / 426.7 MB Notification: Performance of Templates: time 0.03298/1.938, allocations: 17.86 MB / 0.8542 GB, free: 10.08 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