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.001079/0.001079, allocations: 173.5 kB / 17.01 MB, free: 5.094 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.791/1.791, allocations: 205.4 MB / 223.1 MB, free: 9.105 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.001035/0.001035, allocations: 96.03 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003052/0.0003052, allocations: 4 kB / 328.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3696, allocations: 47.57 MB / 375.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.913/1.283, allocations: 321.8 MB / 0.6812 GB, free: 107.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/1.283, allocations: 101.8 kB / 0.6813 GB, free: 107.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5864/1.869, allocations: 137.7 MB / 0.8158 GB, free: 98.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.843e-06/1.869, allocations: 0.5312 kB / 0.8158 GB, free: 98.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.655e-05/1.87, allocations: 24.09 kB / 0.8158 GB, free: 98.13 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.002726/1.872, allocations: 1.111 MB / 0.8169 GB, free: 97.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/1.872, allocations: 14.03 kB / 0.8169 GB, free: 97.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003026/1.873, allocations: 87.88 kB / 0.817 GB, free: 97.58 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/1.874, allocations: 0.59 MB / 0.8176 GB, free: 97.34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.334e-05/1.874, allocations: 39.12 kB / 0.8176 GB, free: 97.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/1.874, allocations: 44.42 kB / 0.8177 GB, free: 97.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/1.875, allocations: 0.7398 MB / 0.8184 GB, free: 97.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/1.875, allocations: 4.594 kB / 0.8184 GB, free: 97.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.782e-05/1.875, allocations: 16.91 kB / 0.8184 GB, free: 97.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.83e-05/1.876, allocations: 47.92 kB / 0.8184 GB, free: 97.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/1.877, allocations: 0.6788 MB / 0.8191 GB, free: 97.22 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004137/1.881, allocations: 2.858 MB / 0.8219 GB, free: 95.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000765/1.882, allocations: 471.3 kB / 0.8224 GB, free: 95.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002568/1.882, allocations: 346.2 kB / 0.8227 GB, free: 95.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/1.882, allocations: 44.58 kB / 0.8227 GB, free: 95.42 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.053e-06/1.882, allocations: 0 / 0.8227 GB, free: 95.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.005588/1.888, allocations: 2.283 MB / 0.825 GB, free: 94.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/1.888, allocations: 83.86 kB / 0.825 GB, free: 94.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007441/1.888, allocations: 0.5452 MB / 0.8256 GB, free: 94.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.976e-05/1.888, allocations: 38.05 kB / 0.8256 GB, free: 94.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/1.889, allocations: 332.2 kB / 0.8259 GB, free: 94.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/1.889, allocations: 206.1 kB / 0.8261 GB, free: 94.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.802e-05/1.889, allocations: 16.72 kB / 0.8261 GB, free: 94.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/1.889, allocations: 386.4 kB / 0.8265 GB, free: 94.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003999/1.889, allocations: 284.1 kB / 0.8268 GB, free: 94.12 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004804/1.89, allocations: 450.3 kB / 0.8272 GB, free: 93.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004696/1.89, allocations: 339.2 kB / 0.8275 GB, free: 93.94 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/1.89, allocations: 0 / 0.8275 GB, free: 93.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001289/1.892, allocations: 0.922 MB / 0.8284 GB, free: 93.85 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003793/1.892, allocations: 1.745 MB / 0.8301 GB, free: 92.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/1.892, allocations: 6.172 kB / 0.8301 GB, free: 92.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001877/1.894, allocations: 360.3 kB / 0.8305 GB, free: 92.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005555/1.895, allocations: 155.3 kB / 0.8306 GB, free: 92.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007188/1.895, allocations: 0.8126 MB / 0.8314 GB, free: 91.51 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005545/1.896, allocations: 50.44 kB / 0.8315 GB, free: 91.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.705e-05/1.896, allocations: 34.02 kB / 0.8315 GB, free: 91.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/1.896, allocations: 3.625 kB / 0.8315 GB, free: 91.5 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001158/1.897, allocations: 0.7856 MB / 0.8323 GB, free: 91.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/1.897, allocations: 3.938 kB / 0.8323 GB, free: 91.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/1.898, allocations: 225.9 kB / 0.8325 GB, free: 91.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000541/1.899, allocations: 158 kB / 0.8326 GB, free: 91.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005268/1.9, allocations: 0.6966 MB / 0.8333 GB, free: 90.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005258/1.9, allocations: 49.84 kB / 0.8334 GB, free: 90.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.954e-05/1.9, allocations: 34.86 kB / 0.8334 GB, free: 90.95 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.0004276/1.901, allocations: 319.9 kB / 0.8337 GB, free: 90.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/1.901, allocations: 73.42 kB / 0.8338 GB, free: 90.72 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001435/1.902, allocations: 0.8357 MB / 0.8346 GB, free: 90.65 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/1.902, allocations: 10.28 kB / 0.8346 GB, free: 90.65 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/1.902, allocations: 3.938 kB / 0.8346 GB, free: 90.65 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/1.902, allocations: 3.562 kB / 0.8346 GB, free: 90.65 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002577/1.905, allocations: 1.664 MB / 0.8362 GB, free: 90.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/1.905, allocations: 3.75 kB / 0.8362 GB, free: 90.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000469/1.905, allocations: 111.5 kB / 0.8363 GB, free: 90.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001373/1.907, allocations: 337.2 kB / 0.8367 GB, free: 90.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.836e-05/1.907, allocations: 18.64 kB / 0.8367 GB, free: 90.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000654/1.907, allocations: 0.8035 MB / 0.8375 GB, free: 89.78 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/1.907, allocations: 0 / 0.8375 GB, free: 89.78 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/1.909, allocations: 1.258 MB / 0.8387 GB, free: 89.53 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002103/1.909, allocations: 152.2 kB / 0.8388 GB, free: 89.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/1.909, allocations: 14.38 kB / 0.8389 GB, free: 89.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004835/1.91, allocations: 44.3 kB / 0.8389 GB, free: 89.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/1.91, allocations: 57.19 kB / 0.839 GB, free: 89.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.624e-05/1.91, allocations: 23.41 kB / 0.839 GB, free: 89.39 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004683/1.911, allocations: 443.9 kB / 0.8394 GB, free: 89.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.911, allocations: 0 / 0.8394 GB, free: 89.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002032/1.913, allocations: 0.5911 MB / 0.84 GB, free: 89.21 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.002045/1.915, allocations: 0.5839 MB / 0.8405 GB, free: 89.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002246/1.917, allocations: 1.129 MB / 0.8417 GB, free: 89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/1.917, allocations: 3.969 kB / 0.8417 GB, free: 89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006328/1.918, allocations: 377.3 kB / 0.842 GB, free: 89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/1.919, allocations: 336.4 kB / 0.8423 GB, free: 88.99 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002663/1.922, allocations: 1.835 MB / 0.8441 GB, free: 88.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/1.922, allocations: 0.9863 MB / 0.8451 GB, free: 87.59 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009489/1.923, allocations: 280.8 kB / 0.8454 GB, free: 87.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/1.923, allocations: 61.25 kB / 0.8454 GB, free: 87.56 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/1.923, allocations: 6.812 kB / 0.8454 GB, free: 87.56 MB / 426.7 MB Notification: Performance of Templates: time 0.03076/1.954, allocations: 19.46 MB / 0.8644 GB, free: 86.47 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