Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 181.2 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 96.41 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003667, allocations: 15.94 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2734, allocations: 50.4 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8085/1.082, allocations: 328.8 MB / 0.7131 GB, free: 119.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/1.082, allocations: 96.86 kB / 0.7132 GB, free: 119.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5913/1.674, allocations: 170.5 MB / 0.8798 GB, free: 109.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.054e-06/1.674, allocations: 0 / 0.8798 GB, free: 109.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.846e-05/1.674, allocations: 19.91 kB / 0.8798 GB, free: 109.4 MB / 458.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.002809/1.677, allocations: 1.207 MB / 0.881 GB, free: 108.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/1.677, allocations: 7.5 kB / 0.881 GB, free: 108.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003417/1.677, allocations: 100 kB / 0.8811 GB, free: 108.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/1.678, allocations: 0.6297 MB / 0.8817 GB, free: 108.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.19e-05/1.678, allocations: 50.66 kB / 0.8817 GB, free: 108.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/1.678, allocations: 58.47 kB / 0.8818 GB, free: 108.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001333/1.68, allocations: 0.8875 MB / 0.8827 GB, free: 108.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.374e-05/1.68, allocations: 7.328 kB / 0.8827 GB, free: 108.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.863e-05/1.68, allocations: 23.58 kB / 0.8827 GB, free: 108.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.985e-05/1.68, allocations: 42.19 kB / 0.8827 GB, free: 108.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/1.681, allocations: 0.7955 MB / 0.8835 GB, free: 108.3 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004534/1.686, allocations: 3.77 MB / 0.8872 GB, free: 106.3 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007462/1.686, allocations: 0.5335 MB / 0.8877 GB, free: 106.3 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001876/1.688, allocations: 1.849 MB / 0.8895 GB, free: 105 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/1.688, allocations: 38.28 kB / 0.8896 GB, free: 105 MB / 458.7 MB Notification: Performance of pre-optimization done (n=41): time 1.854e-06/1.688, allocations: 0 / 0.8896 GB, free: 105 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.003033/1.691, allocations: 1.758 MB / 0.8913 GB, free: 104.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.581e-05/1.691, allocations: 134.6 kB / 0.8914 GB, free: 104.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006992/1.692, allocations: 0.6567 MB / 0.892 GB, free: 104.1 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.204e-05/1.692, allocations: 36.67 kB / 0.8921 GB, free: 104.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002145/1.692, allocations: 408.9 kB / 0.8925 GB, free: 103.9 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/1.692, allocations: 162 kB / 0.8926 GB, free: 103.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.625e-05/1.692, allocations: 12.91 kB / 0.8926 GB, free: 103.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/1.693, allocations: 395 kB / 0.893 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003688/1.693, allocations: 253 kB / 0.8932 GB, free: 103.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004622/1.693, allocations: 0.4944 MB / 0.8937 GB, free: 103.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004285/1.694, allocations: 321.9 kB / 0.894 GB, free: 103.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/1.694, allocations: 3.938 kB / 0.894 GB, free: 103.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001257/1.695, allocations: 0.8901 MB / 0.8949 GB, free: 103.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004567/1.696, allocations: 2.7 MB / 0.8975 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/1.696, allocations: 7.375 kB / 0.8976 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009398/1.697, allocations: 164.8 kB / 0.8977 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009536/1.698, allocations: 189.6 kB / 0.8979 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008779/1.698, allocations: 1.811 MB / 0.8997 GB, free: 98.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006504/1.699, allocations: 60.97 kB / 0.8997 GB, free: 98.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.415e-05/1.699, allocations: 35.02 kB / 0.8998 GB, free: 98.62 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.464e-06/1.699, allocations: 3.781 kB / 0.8998 GB, free: 98.62 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0011/1.7, allocations: 0.7843 MB / 0.9005 GB, free: 98.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/1.7, allocations: 7 kB / 0.9005 GB, free: 98.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008228/1.701, allocations: 170.4 kB / 0.9007 GB, free: 98.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006193/1.702, allocations: 182.6 kB / 0.9009 GB, free: 98.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000502/1.702, allocations: 1.188 MB / 0.902 GB, free: 97.53 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005738/1.703, allocations: 48.75 kB / 0.9021 GB, free: 97.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.808e-05/1.703, allocations: 42.03 kB / 0.9021 GB, free: 97.53 MB / 458.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.000403/1.703, allocations: 325.5 kB / 0.9024 GB, free: 97.34 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/1.703, allocations: 80.72 kB / 0.9025 GB, free: 97.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/1.705, allocations: 0.8297 MB / 0.9033 GB, free: 97.19 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/1.705, allocations: 7.312 kB / 0.9033 GB, free: 97.19 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/1.705, allocations: 0 / 0.9033 GB, free: 97.19 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/1.705, allocations: 3.703 kB / 0.9033 GB, free: 97.19 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002123/1.707, allocations: 1.567 MB / 0.9049 GB, free: 96.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/1.707, allocations: 3.75 kB / 0.9049 GB, free: 96.83 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006162/1.708, allocations: 132.4 kB / 0.905 GB, free: 96.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005403/1.708, allocations: 130.9 kB / 0.9051 GB, free: 96.81 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/1.708, allocations: 14.97 kB / 0.9051 GB, free: 96.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006624/1.709, allocations: 1.748 MB / 0.9068 GB, free: 95.19 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/1.709, allocations: 3.312 kB / 0.9068 GB, free: 95.19 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/1.71, allocations: 1.128 MB / 0.9079 GB, free: 94.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001962/1.71, allocations: 174.6 kB / 0.9081 GB, free: 94.77 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/1.71, allocations: 14.38 kB / 0.9081 GB, free: 94.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005132/1.711, allocations: 43.83 kB / 0.9082 GB, free: 94.76 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/1.711, allocations: 56.75 kB / 0.9082 GB, free: 94.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-05/1.711, allocations: 29.78 kB / 0.9082 GB, free: 94.76 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005306/1.712, allocations: 0.5163 MB / 0.9087 GB, free: 94.66 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.712, allocations: 0 / 0.9087 GB, free: 94.66 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001868/1.714, allocations: 0.6535 MB / 0.9094 GB, free: 94.57 MB / 458.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.001549/1.715, allocations: 0.6811 MB / 0.91 GB, free: 94.35 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002416/1.718, allocations: 1.162 MB / 0.9112 GB, free: 94.34 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/1.718, allocations: 0 / 0.9112 GB, free: 94.34 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007408/1.718, allocations: 386.2 kB / 0.9115 GB, free: 94.34 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/1.72, allocations: 364.6 kB / 0.9119 GB, free: 94.34 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002131/1.722, allocations: 1.864 MB / 0.9137 GB, free: 93.57 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003643/1.722, allocations: 1.004 MB / 0.9147 GB, free: 92.86 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001014/1.723, allocations: 316 kB / 0.915 GB, free: 92.84 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/1.724, allocations: 79.19 kB / 0.9151 GB, free: 92.83 MB / 458.7 MB Notification: Performance of SimCode: time 6.81e-07/1.724, allocations: 0 / 0.9151 GB, free: 92.83 MB / 458.7 MB Notification: Performance of Templates: time 0.0297/1.753, allocations: 21.02 MB / 0.9356 GB, free: 91.77 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches