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.001496/0.001496, allocations: 186.4 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.909/1.909, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001119/0.001119, allocations: 84.48 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004022/0.0004024, allocations: 12 kB / 327 MB, free: 228 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3269, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9897/1.317, allocations: 328.2 MB / 0.6863 GB, free: 104.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/1.317, allocations: 95.09 kB / 0.6864 GB, free: 104.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8367/2.154, allocations: 167 MB / 0.8494 GB, free: 99.08 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.584e-06/2.154, allocations: 3.125 kB / 0.8494 GB, free: 99.08 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.55e-05/2.154, allocations: 32.64 kB / 0.8495 GB, free: 99.07 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.003351/2.157, allocations: 1.197 MB / 0.8506 GB, free: 98.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/2.157, allocations: 11.16 kB / 0.8506 GB, free: 98.43 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005187/2.158, allocations: 98.06 kB / 0.8507 GB, free: 98.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001678/2.16, allocations: 0.6322 MB / 0.8514 GB, free: 98.11 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.602e-05/2.16, allocations: 46.61 kB / 0.8514 GB, free: 98.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/2.16, allocations: 57.19 kB / 0.8515 GB, free: 98.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001915/2.162, allocations: 0.8879 MB / 0.8523 GB, free: 97.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.25e-05/2.162, allocations: 2.156 kB / 0.8523 GB, free: 97.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/2.162, allocations: 27 kB / 0.8524 GB, free: 97.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-05/2.162, allocations: 51.98 kB / 0.8524 GB, free: 97.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001879/2.164, allocations: 0.7922 MB / 0.8532 GB, free: 97.92 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007132/2.171, allocations: 3.796 MB / 0.8569 GB, free: 95.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/2.172, allocations: 0.5157 MB / 0.8574 GB, free: 95.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002963/2.175, allocations: 1.847 MB / 0.8592 GB, free: 94.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/2.175, allocations: 41.16 kB / 0.8592 GB, free: 94.58 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 2.735e-06/2.175, allocations: 0 / 0.8592 GB, free: 94.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.005193/2.181, allocations: 1.753 MB / 0.8609 GB, free: 93.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/2.181, allocations: 132.2 kB / 0.8611 GB, free: 93.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001157/2.182, allocations: 0.6692 MB / 0.8617 GB, free: 93.67 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.452e-05/2.182, allocations: 41.14 kB / 0.8618 GB, free: 93.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002612/2.182, allocations: 411.6 kB / 0.8622 GB, free: 93.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/2.182, allocations: 160.6 kB / 0.8623 GB, free: 93.29 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.137e-05/2.183, allocations: 17.31 kB / 0.8623 GB, free: 93.29 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.14e-05/2.183, allocations: 340.8 kB / 0.8626 GB, free: 92.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006701/2.183, allocations: 258.2 kB / 0.8629 GB, free: 92.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008024/2.184, allocations: 0.491 MB / 0.8634 GB, free: 92.69 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007769/2.185, allocations: 328.8 kB / 0.8637 GB, free: 92.61 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/2.185, allocations: 0 / 0.8637 GB, free: 92.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002091/2.187, allocations: 0.8414 MB / 0.8645 GB, free: 92.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005493/2.188, allocations: 2.699 MB / 0.8671 GB, free: 89.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/2.188, allocations: 7.891 kB / 0.8672 GB, free: 89.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001567/2.189, allocations: 164.6 kB / 0.8673 GB, free: 89.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/2.191, allocations: 196.3 kB / 0.8675 GB, free: 89.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001356/2.192, allocations: 1.8 MB / 0.8693 GB, free: 87.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/2.194, allocations: 56.25 kB / 0.8693 GB, free: 87.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.97e-05/2.194, allocations: 43.16 kB / 0.8694 GB, free: 87.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/2.194, allocations: 7.219 kB / 0.8694 GB, free: 87.67 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001954/2.196, allocations: 0.7805 MB / 0.8701 GB, free: 87.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/2.196, allocations: 7.781 kB / 0.8701 GB, free: 87.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001393/2.197, allocations: 160.1 kB / 0.8703 GB, free: 87.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/2.198, allocations: 175.6 kB / 0.8704 GB, free: 87.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008333/2.199, allocations: 1.186 MB / 0.8716 GB, free: 86.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007768/2.2, allocations: 48.14 kB / 0.8717 GB, free: 86.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.266e-05/2.2, allocations: 39.88 kB / 0.8717 GB, free: 86.2 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 () * Number of clocked 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.0006203/2.201, allocations: 332.4 kB / 0.872 GB, free: 85.94 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002385/2.201, allocations: 86.23 kB / 0.8721 GB, free: 85.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002233/2.203, allocations: 0.8205 MB / 0.8729 GB, free: 85.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/2.203, allocations: 3.906 kB / 0.8729 GB, free: 85.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/2.203, allocations: 3.875 kB / 0.8729 GB, free: 85.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/2.203, allocations: 3.188 kB / 0.8729 GB, free: 85.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003581/2.207, allocations: 1.571 MB / 0.8744 GB, free: 84.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/2.207, allocations: 3.625 kB / 0.8744 GB, free: 84.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/2.208, allocations: 140.1 kB / 0.8746 GB, free: 84.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009131/2.209, allocations: 122.3 kB / 0.8747 GB, free: 84.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.952e-05/2.209, allocations: 19.33 kB / 0.8747 GB, free: 84.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001008/2.21, allocations: 1.749 MB / 0.8764 GB, free: 83.03 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/2.21, allocations: 0 / 0.8764 GB, free: 83.03 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002431/2.213, allocations: 1.129 MB / 0.8775 GB, free: 82.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003125/2.213, allocations: 180.9 kB / 0.8777 GB, free: 82.27 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001871/2.213, allocations: 11.88 kB / 0.8777 GB, free: 82.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008888/2.214, allocations: 37.81 kB / 0.8777 GB, free: 82.26 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/2.214, allocations: 53.58 kB / 0.8778 GB, free: 82.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.322e-05/2.214, allocations: 27.39 kB / 0.8778 GB, free: 82.25 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009181/2.215, allocations: 0.52 MB / 0.8783 GB, free: 82.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.61e-07/2.215, allocations: 0 / 0.8783 GB, free: 82.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002605/2.218, allocations: 0.6553 MB / 0.879 GB, free: 81.87 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]) * Number of clocked states: 0 () * 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.002185/2.22, allocations: 0.6725 MB / 0.8796 GB, free: 81.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004316/2.224, allocations: 1.145 MB / 0.8807 GB, free: 81.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/2.225, allocations: 0 / 0.8807 GB, free: 81.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/2.226, allocations: 388.5 kB / 0.8811 GB, free: 81.19 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003009/2.229, allocations: 372.2 kB / 0.8815 GB, free: 81.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003888/2.233, allocations: 1.912 MB / 0.8833 GB, free: 80.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005599/2.233, allocations: 1.005 MB / 0.8843 GB, free: 79.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005082/2.234, allocations: 81.25 kB / 0.8844 GB, free: 79.39 MB / 426.7 MB Notification: Performance of SimCode: time 1.332e-06/2.234, allocations: 0 / 0.8844 GB, free: 79.39 MB / 426.7 MB Notification: Performance of Templates: time 0.04343/2.277, allocations: 25.71 MB / 0.9095 GB, free: 61.35 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