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.001489/0.001489, allocations: 186.6 kB / 16.41 MB, free: 5.727 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.953/1.953, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001145/0.001145, allocations: 96.36 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.00044, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3423, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9986/1.341, allocations: 321.8 MB / 0.68 GB, free: 107.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/1.341, allocations: 88.58 kB / 0.6801 GB, free: 107.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7676/2.109, allocations: 137.7 MB / 0.8146 GB, free: 97.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.803e-06/2.109, allocations: 2.969 kB / 0.8146 GB, free: 97.94 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.289e-05/2.109, allocations: 20.38 kB / 0.8146 GB, free: 97.94 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.003354/2.112, allocations: 1.112 MB / 0.8157 GB, free: 97.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/2.112, allocations: 9.938 kB / 0.8157 GB, free: 97.43 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005064/2.113, allocations: 81.62 kB / 0.8158 GB, free: 97.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001766/2.115, allocations: 0.5941 MB / 0.8163 GB, free: 97.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.773e-05/2.115, allocations: 43.78 kB / 0.8164 GB, free: 97.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/2.115, allocations: 47.53 kB / 0.8164 GB, free: 97.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001872/2.117, allocations: 0.7306 MB / 0.8171 GB, free: 97.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.136e-05/2.117, allocations: 1.969 kB / 0.8171 GB, free: 97.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/2.117, allocations: 20.86 kB / 0.8172 GB, free: 97.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001047/2.117, allocations: 47.58 kB / 0.8172 GB, free: 97.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/2.119, allocations: 0.6817 MB / 0.8179 GB, free: 97.04 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00669/2.126, allocations: 2.854 MB / 0.8207 GB, free: 95.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/2.127, allocations: 472.6 kB / 0.8211 GB, free: 95.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003381/2.127, allocations: 343.7 kB / 0.8214 GB, free: 95.27 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/2.127, allocations: 42.03 kB / 0.8215 GB, free: 95.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 3.757e-06/2.127, allocations: 2.406 kB / 0.8215 GB, free: 95.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.009261/2.137, allocations: 2.284 MB / 0.8237 GB, free: 94.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/2.137, allocations: 86.75 kB / 0.8238 GB, free: 94.65 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/2.138, allocations: 0.5435 MB / 0.8243 GB, free: 94.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001579/2.138, allocations: 40.48 kB / 0.8244 GB, free: 94.49 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/2.138, allocations: 354.1 kB / 0.8247 GB, free: 94.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002414/2.139, allocations: 210.9 kB / 0.8249 GB, free: 94.18 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.352e-05/2.139, allocations: 15.56 kB / 0.8249 GB, free: 94.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.952e-05/2.139, allocations: 342.1 kB / 0.8252 GB, free: 93.87 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007977/2.14, allocations: 283.8 kB / 0.8255 GB, free: 93.87 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008887/2.141, allocations: 452.9 kB / 0.8259 GB, free: 93.69 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008138/2.141, allocations: 339.8 kB / 0.8263 GB, free: 93.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/2.141, allocations: 0 / 0.8263 GB, free: 93.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002224/2.144, allocations: 0.8779 MB / 0.8271 GB, free: 93.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003579/2.144, allocations: 1.743 MB / 0.8288 GB, free: 91.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/2.144, allocations: 11.34 kB / 0.8288 GB, free: 91.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00328/2.147, allocations: 358.9 kB / 0.8292 GB, free: 91.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/2.149, allocations: 147.9 kB / 0.8293 GB, free: 91.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/2.15, allocations: 0.8149 MB / 0.8301 GB, free: 91.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/2.151, allocations: 47.97 kB / 0.8302 GB, free: 91.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.609e-05/2.151, allocations: 39.38 kB / 0.8302 GB, free: 91.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/2.151, allocations: 7.594 kB / 0.8302 GB, free: 91.27 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001994/2.153, allocations: 0.7834 MB / 0.831 GB, free: 91.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/2.153, allocations: 6.875 kB / 0.831 GB, free: 91.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002382/2.156, allocations: 217.1 kB / 0.8312 GB, free: 91.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/2.157, allocations: 159.5 kB / 0.8313 GB, free: 91.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007843/2.157, allocations: 0.6889 MB / 0.832 GB, free: 90.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00075/2.158, allocations: 53.67 kB / 0.8321 GB, free: 90.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.04e-05/2.158, allocations: 26.47 kB / 0.8321 GB, free: 90.72 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.0005934/2.159, allocations: 320.4 kB / 0.8324 GB, free: 90.53 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002334/2.159, allocations: 76.41 kB / 0.8325 GB, free: 90.49 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002212/2.161, allocations: 0.8347 MB / 0.8333 GB, free: 90.42 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/2.161, allocations: 6.5 kB / 0.8333 GB, free: 90.42 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/2.161, allocations: 3.375 kB / 0.8333 GB, free: 90.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/2.161, allocations: 3.797 kB / 0.8333 GB, free: 90.42 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00393/2.165, allocations: 1.659 MB / 0.8349 GB, free: 90.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/2.165, allocations: 3.719 kB / 0.8349 GB, free: 90.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009228/2.166, allocations: 115 kB / 0.835 GB, free: 90.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002393/2.169, allocations: 331.1 kB / 0.8353 GB, free: 90.08 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001292/2.169, allocations: 27.77 kB / 0.8354 GB, free: 90.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/2.17, allocations: 0.8016 MB / 0.8362 GB, free: 89.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/2.17, allocations: 3.312 kB / 0.8362 GB, free: 89.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002843/2.173, allocations: 1.259 MB / 0.8374 GB, free: 89.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003539/2.173, allocations: 154.6 kB / 0.8375 GB, free: 89.17 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001712/2.173, allocations: 14 kB / 0.8375 GB, free: 89.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008551/2.174, allocations: 43.23 kB / 0.8376 GB, free: 89.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/2.175, allocations: 61.2 kB / 0.8376 GB, free: 89.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.29e-05/2.175, allocations: 23.91 kB / 0.8377 GB, free: 89.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007343/2.175, allocations: 438.2 kB / 0.8381 GB, free: 89.07 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.21e-07/2.175, allocations: 0 / 0.8381 GB, free: 89.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002343/2.178, allocations: 0.5938 MB / 0.8387 GB, free: 88.98 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.001721/2.179, allocations: 0.5904 MB / 0.8392 GB, free: 88.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003263/2.183, allocations: 1.122 MB / 0.8403 GB, free: 88.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/2.183, allocations: 2.406 kB / 0.8403 GB, free: 88.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/2.184, allocations: 375.8 kB / 0.8407 GB, free: 88.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002651/2.187, allocations: 338.4 kB / 0.841 GB, free: 88.76 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003501/2.19, allocations: 1.874 MB / 0.8429 GB, free: 88.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004736/2.191, allocations: 0.976 MB / 0.8438 GB, free: 87.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004167/2.191, allocations: 78.89 kB / 0.8439 GB, free: 87.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.022e-06/2.191, allocations: 0 / 0.8439 GB, free: 87.32 MB / 426.7 MB Notification: Performance of Templates: time 0.03338/2.224, allocations: 17.9 MB / 0.8614 GB, free: 86.27 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