Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001733/0.001733, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 225.6 MB / 234.8 MB, free: 3.191 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009374/0.0009376, allocations: 94.39 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.969e-05/1.963e-05, allocations: 4 kB / 343.7 MB, free: 8.238 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1156, allocations: 51.47 MB / 395.2 MB, free: 4.727 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8288/0.9445, allocations: 328.8 MB / 0.707 GB, free: 28.61 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.9448, allocations: 87.14 kB / 0.7071 GB, free: 28.56 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5666/1.511, allocations: 168.6 MB / 0.8718 GB, free: 38.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.322e-06/1.511, allocations: 0 / 0.8718 GB, free: 38.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.534e-05/1.512, allocations: 23.91 kB / 0.8718 GB, free: 38.43 MB / 442.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.002364/1.514, allocations: 1.116 MB / 0.8729 GB, free: 37.28 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/1.514, allocations: 8.031 kB / 0.8729 GB, free: 37.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003488/1.514, allocations: 99.81 kB / 0.873 GB, free: 37.18 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/1.515, allocations: 0.6279 MB / 0.8736 GB, free: 36.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.123e-05/1.515, allocations: 16 kB / 0.8737 GB, free: 36.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.179e-05/1.515, allocations: 32 kB / 0.8737 GB, free: 36.47 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009803/1.516, allocations: 0.717 MB / 0.8744 GB, free: 35.76 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/1.517, allocations: 0.7937 MB / 0.8752 GB, free: 34.9 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/1.517, allocations: 3.938 kB / 0.8752 GB, free: 34.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.041e-05/1.518, allocations: 4 kB / 0.8752 GB, free: 34.89 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.254e-05/1.518, allocations: 45.3 kB / 0.8752 GB, free: 34.85 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003994/1.522, allocations: 3.654 MB / 0.8788 GB, free: 31.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006279/1.522, allocations: 0.4982 MB / 0.8793 GB, free: 30.52 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002914/1.523, allocations: 246.1 kB / 0.8795 GB, free: 30.27 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001709/1.524, allocations: 1.836 MB / 0.8813 GB, free: 28.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/1.524, allocations: 38.56 kB / 0.8813 GB, free: 28.19 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 2.445e-06/1.524, allocations: 0 / 0.8813 GB, free: 28.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.005799/1.53, allocations: 1.829 MB / 0.8831 GB, free: 26.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.733e-05/1.53, allocations: 136.5 kB / 0.8832 GB, free: 26.13 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000506/1.531, allocations: 0.5032 MB / 0.8837 GB, free: 25.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.937e-05/1.531, allocations: 25.7 kB / 0.8838 GB, free: 25.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001904/1.531, allocations: 411.1 kB / 0.8842 GB, free: 25.19 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.229e-05/1.531, allocations: 161.7 kB / 0.8843 GB, free: 25.03 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.571e-05/1.531, allocations: 3.938 kB / 0.8843 GB, free: 25.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.24e-05/1.531, allocations: 374.8 kB / 0.8847 GB, free: 24.65 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/1.532, allocations: 237.5 kB / 0.8849 GB, free: 24.42 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000397/1.532, allocations: 481.6 kB / 0.8854 GB, free: 23.84 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002346/1.534, allocations: 0.6615 MB / 0.886 GB, free: 23.18 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/1.534, allocations: 0 / 0.886 GB, free: 23.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003053/1.537, allocations: 1.159 MB / 0.8871 GB, free: 22 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004332/1.538, allocations: 2.704 MB / 0.8898 GB, free: 19.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/1.538, allocations: 8 kB / 0.8898 GB, free: 19.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002643/1.538, allocations: 93.66 kB / 0.8899 GB, free: 18.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009215/1.539, allocations: 191.7 kB / 0.8901 GB, free: 18.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/1.54, allocations: 1.874 MB / 0.8919 GB, free: 16.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005952/1.541, allocations: 40.03 kB / 0.8919 GB, free: 16.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.235e-05/1.541, allocations: 39.97 kB / 0.892 GB, free: 16.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.393e-06/1.541, allocations: 4 kB / 0.892 GB, free: 16.76 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00289/1.544, allocations: 1.034 MB / 0.893 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/1.544, allocations: 8 kB / 0.893 GB, free: 15.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001805/1.544, allocations: 85.66 kB / 0.8931 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006166/1.545, allocations: 180.1 kB / 0.8932 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007994/1.546, allocations: 1.233 MB / 0.8944 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005056/1.546, allocations: 40 kB / 0.8945 GB, free: 14.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.757e-05/1.546, allocations: 43.92 kB / 0.8945 GB, free: 14.08 MB / 442.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.0001735/1.546, allocations: 130.2 kB / 0.8946 GB, free: 13.95 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/1.546, allocations: 63.25 kB / 0.8947 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001888/1.548, allocations: 0.8473 MB / 0.8955 GB, free: 13.03 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.218e-06/1.548, allocations: 8 kB / 0.8955 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.548, allocations: 0 / 0.8955 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/1.548, allocations: 3.984 kB / 0.8955 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002497/1.551, allocations: 1.521 MB / 0.897 GB, free: 11.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/1.551, allocations: 4.094 kB / 0.897 GB, free: 11.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005906/1.551, allocations: 139.8 kB / 0.8972 GB, free: 11.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001729/1.552, allocations: 65.67 kB / 0.8972 GB, free: 11.24 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.483e-05/1.552, allocations: 4 kB / 0.8972 GB, free: 11.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008692/1.553, allocations: 1.792 MB / 0.899 GB, free: 9.371 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/1.553, allocations: 3.938 kB / 0.899 GB, free: 9.367 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/1.554, allocations: 1.142 MB / 0.9001 GB, free: 8.172 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001464/1.555, allocations: 164.1 kB / 0.9003 GB, free: 7.992 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001131/1.555, allocations: 0 / 0.9003 GB, free: 7.992 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000488/1.555, allocations: 31.91 kB / 0.9003 GB, free: 7.961 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.887e-05/1.555, allocations: 56.55 kB / 0.9003 GB, free: 7.906 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.498e-05/1.555, allocations: 35.97 kB / 0.9004 GB, free: 7.871 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003917/1.556, allocations: 391.2 kB / 0.9007 GB, free: 7.496 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.556, allocations: 0 / 0.9007 GB, free: 7.496 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00181/1.558, allocations: 0.6166 MB / 0.9013 GB, free: 6.879 MB / 442.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.001279/1.559, allocations: 0.6713 MB / 0.902 GB, free: 6.242 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002074/1.561, allocations: 1.067 MB / 0.903 GB, free: 5.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/1.561, allocations: 0 / 0.903 GB, free: 5.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006396/1.562, allocations: 358.8 kB / 0.9034 GB, free: 4.832 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/1.563, allocations: 287.1 kB / 0.9037 GB, free: 4.559 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001809/1.565, allocations: 1.105 MB / 0.9047 GB, free: 3.418 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/1.565, allocations: 1.003 MB / 0.9057 GB, free: 2.383 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001033/1.566, allocations: 329.7 kB / 0.906 GB, free: 2.059 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/1.566, allocations: 63.42 kB / 0.9061 GB, free: 1.996 MB / 442.7 MB Notification: Performance of SimCode: time 3.51e-07/1.566, allocations: 4 kB / 0.9061 GB, free: 1.992 MB / 442.7 MB Notification: Performance of Templates: time 0.2406/1.807, allocations: 18.72 MB / 0.9244 GB, free: 73.64 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches