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.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002052/0.002052, allocations: 181.6 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 2.046/2.046, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001058/0.001057, allocations: 89.98 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.869e-05/2.873e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09498/0.09503, allocations: 47.57 MB / 369.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9662/1.061, allocations: 328.1 MB / 0.6809 GB, free: 12.68 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003202/1.062, allocations: 90.62 kB / 0.6809 GB, free: 12.64 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8362/1.898, allocations: 166.4 MB / 0.8435 GB, free: 22.03 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.863e-06/1.898, allocations: 0 / 0.8435 GB, free: 22.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.926e-05/1.898, allocations: 27.92 kB / 0.8435 GB, free: 22 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003117/1.901, allocations: 1.106 MB / 0.8446 GB, free: 20.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/1.901, allocations: 8.031 kB / 0.8446 GB, free: 20.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005951/1.902, allocations: 94.97 kB / 0.8447 GB, free: 20.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001754/1.904, allocations: 0.6363 MB / 0.8453 GB, free: 20.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.68e-05/1.904, allocations: 41.31 kB / 0.8454 GB, free: 20.03 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000137/1.904, allocations: 55.98 kB / 0.8454 GB, free: 19.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00191/1.906, allocations: 0.8776 MB / 0.8463 GB, free: 19.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.786e-05/1.906, allocations: 0 / 0.8463 GB, free: 19.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/1.906, allocations: 24 kB / 0.8463 GB, free: 19.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-05/1.906, allocations: 45.3 kB / 0.8463 GB, free: 18.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/1.908, allocations: 0.778 MB / 0.8471 GB, free: 18.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007171/1.915, allocations: 3.783 MB / 0.8508 GB, free: 14.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/1.916, allocations: 0.5206 MB / 0.8513 GB, free: 13.66 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005659/1.917, allocations: 262 kB / 0.8515 GB, free: 13.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003093/1.92, allocations: 1.883 MB / 0.8534 GB, free: 11.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/1.92, allocations: 38.56 kB / 0.8534 GB, free: 11.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 2.755e-06/1.92, allocations: 0 / 0.8534 GB, free: 11.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.003939/1.924, allocations: 1.383 MB / 0.8548 GB, free: 9.809 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/1.924, allocations: 136.5 kB / 0.8549 GB, free: 9.645 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/1.925, allocations: 0.656 MB / 0.8555 GB, free: 8.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/1.925, allocations: 37.7 kB / 0.8556 GB, free: 8.938 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/1.926, allocations: 409.5 kB / 0.856 GB, free: 8.535 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001622/1.926, allocations: 165.7 kB / 0.8561 GB, free: 8.371 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.027e-05/1.926, allocations: 16 kB / 0.8561 GB, free: 8.355 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.956e-05/1.926, allocations: 338.8 kB / 0.8565 GB, free: 8.016 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006286/1.927, allocations: 253.5 kB / 0.8567 GB, free: 7.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007439/1.927, allocations: 494.2 kB / 0.8572 GB, free: 7.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000719/1.928, allocations: 314.3 kB / 0.8575 GB, free: 6.875 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/1.928, allocations: 11.88 kB / 0.8575 GB, free: 6.863 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002038/1.93, allocations: 0.8245 MB / 0.8583 GB, free: 6.023 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005069/1.931, allocations: 2.704 MB / 0.8609 GB, free: 3.109 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/1.931, allocations: 8 kB / 0.8609 GB, free: 3.102 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001547/1.932, allocations: 165.5 kB / 0.8611 GB, free: 2.934 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/1.934, allocations: 187.7 kB / 0.8613 GB, free: 2.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/1.936, allocations: 1.8 MB / 0.863 GB, free: 0.875 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/1.937, allocations: 60.03 kB / 0.8631 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/1.937, allocations: 39.98 kB / 0.8631 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/1.937, allocations: 4 kB / 0.8631 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00189/1.939, allocations: 0.7686 MB / 0.8639 GB, free: 0 / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.282/2.221, allocations: 6.172 kB / 0.8639 GB, free: 84.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001637/2.223, allocations: 161.1 kB / 0.864 GB, free: 84.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/2.224, allocations: 181 kB / 0.8642 GB, free: 84.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009526/2.225, allocations: 1.18 MB / 0.8654 GB, free: 83.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000896/2.226, allocations: 47.97 kB / 0.8654 GB, free: 83.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/2.226, allocations: 36.22 kB / 0.8654 GB, free: 83.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003046/2.226, allocations: 160.4 kB / 0.8656 GB, free: 82.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002568/2.227, allocations: 81.88 kB / 0.8657 GB, free: 82.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0025/2.229, allocations: 0.8166 MB / 0.8665 GB, free: 82.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/2.229, allocations: 6.875 kB / 0.8665 GB, free: 82.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/2.229, allocations: 0.9062 kB / 0.8665 GB, free: 82.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/2.229, allocations: 2.531 kB / 0.8665 GB, free: 82.86 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004079/2.233, allocations: 1.557 MB / 0.868 GB, free: 82.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/2.233, allocations: 1.094 kB / 0.868 GB, free: 82.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/2.235, allocations: 137.8 kB / 0.8681 GB, free: 82.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009404/2.236, allocations: 123.1 kB / 0.8683 GB, free: 82.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-05/2.236, allocations: 17.45 kB / 0.8683 GB, free: 82.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001094/2.237, allocations: 1.748 MB / 0.87 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/2.237, allocations: 7.312 kB / 0.87 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/2.239, allocations: 1.111 MB / 0.8711 GB, free: 80.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003692/2.24, allocations: 173 kB / 0.8712 GB, free: 80.51 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000196/2.24, allocations: 16.14 kB / 0.8713 GB, free: 80.51 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009535/2.241, allocations: 44.17 kB / 0.8713 GB, free: 80.51 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/2.241, allocations: 54.33 kB / 0.8713 GB, free: 80.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/2.241, allocations: 26.39 kB / 0.8714 GB, free: 80.51 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001057/2.242, allocations: 0.5138 MB / 0.8719 GB, free: 80.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/2.242, allocations: 3.172 kB / 0.8719 GB, free: 80.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002745/2.245, allocations: 0.6517 MB / 0.8725 GB, free: 80.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002288/2.247, allocations: 0.6679 MB / 0.8732 GB, free: 80.31 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004503/2.252, allocations: 1.124 MB / 0.8743 GB, free: 80.29 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.437e-06/2.252, allocations: 3.531 kB / 0.8743 GB, free: 80.29 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/2.253, allocations: 370.7 kB / 0.8746 GB, free: 80.29 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003088/2.257, allocations: 382.6 kB / 0.875 GB, free: 80.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003054/2.26, allocations: 1.184 MB / 0.8761 GB, free: 79.95 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005575/2.26, allocations: 1.002 MB / 0.8771 GB, free: 79.24 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004914/2.261, allocations: 83.88 kB / 0.8772 GB, free: 79.23 MB / 426.7 MB Notification: Performance of SimCode: time 1.152e-06/2.261, allocations: 0 / 0.8772 GB, free: 79.23 MB / 426.7 MB Notification: Performance of Templates: time 0.04805/2.309, allocations: 25.66 MB / 0.9023 GB, free: 78.52 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_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/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches