Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001698/0.001699, allocations: 181.4 kB / 17.01 MB, free: 5.125 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.86/1.86, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.001009/0.001008, allocations: 84.23 kB / 271.5 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002976/0.0002974, allocations: 4 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3212, allocations: 47.57 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7959/1.117, allocations: 324.2 MB / 0.6836 GB, free: 106.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002863/1.118, allocations: 94.91 kB / 0.6837 GB, free: 106.4 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8219/1.939, allocations: 283.1 MB / 0.9602 GB, free: 15.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.934e-06/1.939, allocations: 0 / 0.9602 GB, free: 15.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000136/1.94, allocations: 36 kB / 0.9602 GB, free: 15.08 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.005415/1.945, allocations: 1.962 MB / 0.9621 GB, free: 13.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/1.945, allocations: 8.031 kB / 0.9621 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007068/1.946, allocations: 174.2 kB / 0.9623 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002047/1.948, allocations: 1.038 MB / 0.9633 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.95e-05/1.948, allocations: 81.97 kB / 0.9634 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/1.948, allocations: 99.92 kB / 0.9635 GB, free: 11.63 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002223/1.95, allocations: 1.619 MB / 0.9651 GB, free: 9.918 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.853e-05/1.95, allocations: 11.91 kB / 0.9651 GB, free: 9.906 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001478/1.951, allocations: 43.97 kB / 0.9651 GB, free: 9.863 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001191/1.951, allocations: 101.9 kB / 0.9652 GB, free: 9.762 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002268/1.953, allocations: 1.62 MB / 0.9668 GB, free: 8.141 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008668/1.962, allocations: 6.525 MB / 0.9732 GB, free: 1.254 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/1.963, allocations: 0.9238 MB / 0.9741 GB, free: 336 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2291/2.192, allocations: 2.818 MB / 0.9768 GB, free: 56.16 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/2.192, allocations: 42.09 kB / 0.9769 GB, free: 56.12 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 2.695e-06/2.192, allocations: 0 / 0.9769 GB, free: 56.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.007929/2.2, allocations: 3.718 MB / 0.9805 GB, free: 55.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.871e-05/2.2, allocations: 195.1 kB / 0.9807 GB, free: 55.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/2.202, allocations: 1.149 MB / 0.9818 GB, free: 54.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/2.202, allocations: 50.3 kB / 0.9818 GB, free: 54.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004448/2.202, allocations: 0.6446 MB / 0.9825 GB, free: 54.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002874/2.203, allocations: 323 kB / 0.9828 GB, free: 54.58 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.235e-05/2.203, allocations: 27.31 kB / 0.9828 GB, free: 54.58 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001036/2.203, allocations: 365.8 kB / 0.9832 GB, free: 54.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007715/2.204, allocations: 0.5504 MB / 0.9837 GB, free: 54.27 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/2.205, allocations: 0.9606 MB / 0.9846 GB, free: 53.83 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009014/2.206, allocations: 0.6688 MB / 0.9853 GB, free: 53.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/2.206, allocations: 3.938 kB / 0.9853 GB, free: 53.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002751/2.208, allocations: 1.838 MB / 0.9871 GB, free: 53.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009199/2.209, allocations: 4.383 MB / 0.9914 GB, free: 49.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/2.209, allocations: 14.78 kB / 0.9914 GB, free: 49.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003784/2.213, allocations: 0.6661 MB / 0.992 GB, free: 49.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/2.214, allocations: 283.2 kB / 0.9923 GB, free: 49.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001688/2.216, allocations: 2.163 MB / 0.9944 GB, free: 47.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001506/2.218, allocations: 108.5 kB / 0.9945 GB, free: 47.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/2.218, allocations: 62.83 kB / 0.9946 GB, free: 47.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/2.218, allocations: 3.812 kB / 0.9946 GB, free: 47.54 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002536/2.22, allocations: 1.623 MB / 0.9962 GB, free: 47.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/2.22, allocations: 12.12 kB / 0.9962 GB, free: 47.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003039/2.223, allocations: 0.4989 MB / 0.9967 GB, free: 47.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/2.225, allocations: 295 kB / 0.9969 GB, free: 47.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001643/2.226, allocations: 2.012 MB / 0.9989 GB, free: 45.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001545/2.228, allocations: 100.8 kB / 0.999 GB, free: 45.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/2.228, allocations: 64.94 kB / 0.9991 GB, free: 45.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000881/2.229, allocations: 471.4 kB / 0.9995 GB, free: 45.72 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002262/2.229, allocations: 143.3 kB / 0.9996 GB, free: 45.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002673/2.232, allocations: 1.527 MB / 1.001 GB, free: 45.53 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/2.232, allocations: 10.78 kB / 1.001 GB, free: 45.53 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/2.232, allocations: 0 / 1.001 GB, free: 45.53 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/2.232, allocations: 6.047 kB / 1.001 GB, free: 45.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004453/2.236, allocations: 2.817 MB / 1.004 GB, free: 45.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/2.236, allocations: 1.156 kB / 1.004 GB, free: 45.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007442/2.237, allocations: 154.8 kB / 1.004 GB, free: 45.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002974/2.24, allocations: 0.6164 MB / 1.005 GB, free: 45.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/2.24, allocations: 30.48 kB / 1.005 GB, free: 45.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001795/2.242, allocations: 2.127 MB / 1.007 GB, free: 43.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/2.242, allocations: 1.188 kB / 1.007 GB, free: 43.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003749/2.246, allocations: 2.135 MB / 1.009 GB, free: 43.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007647/2.247, allocations: 251.6 kB / 1.009 GB, free: 42.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002135/2.247, allocations: 29.55 kB / 1.009 GB, free: 42.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009556/2.248, allocations: 78.58 kB / 1.009 GB, free: 42.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/2.248, allocations: 99.78 kB / 1.009 GB, free: 42.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/2.248, allocations: 45.48 kB / 1.009 GB, free: 42.98 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001344/2.249, allocations: 0.894 MB / 1.01 GB, free: 42.87 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/2.249, allocations: 0 / 1.01 GB, free: 42.87 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004251/2.254, allocations: 1.215 MB / 1.011 GB, free: 42.87 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003198/2.257, allocations: 1.107 MB / 1.012 GB, free: 42.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003746/2.261, allocations: 2.194 MB / 1.015 GB, free: 42.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/2.261, allocations: 0 / 1.015 GB, free: 42.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001214/2.262, allocations: 0.6981 MB / 1.015 GB, free: 42.72 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/2.264, allocations: 0.5814 MB / 1.016 GB, free: 42.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00396/2.268, allocations: 3.141 MB / 1.019 GB, free: 41.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005806/2.269, allocations: 1.286 MB / 1.02 GB, free: 40.79 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001845/2.271, allocations: 0.5646 MB / 1.021 GB, free: 40.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003113/2.271, allocations: 115.2 kB / 1.021 GB, free: 40.76 MB / 426.7 MB Notification: Performance of SimCode: time 9.21e-07/2.271, allocations: 0 / 1.021 GB, free: 40.76 MB / 426.7 MB Notification: Performance of Templates: time 0.05504/2.326, allocations: 38.21 MB / 1.058 GB, free: 38.57 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_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/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches