Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009323/0.0009323, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.489/1.489, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008447/0.0008453, allocations: 90.69 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.47e-05/1.472e-05, allocations: 8 kB / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09521/0.09524, allocations: 47.58 MB / 363.1 MB, free: 7.062 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7289/0.8242, allocations: 326.3 MB / 0.6732 GB, free: 3.793 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.8245, allocations: 101.5 kB / 0.6733 GB, free: 3.738 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.096/1.921, allocations: 323.2 MB / 0.9889 GB, free: 43.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.493e-06/1.921, allocations: 0 / 0.9889 GB, free: 43.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001989/1.921, allocations: 43.83 kB / 0.9889 GB, free: 43.87 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.006369/1.927, allocations: 2.036 MB / 0.9909 GB, free: 41.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/1.927, allocations: 12.02 kB / 0.9909 GB, free: 41.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009982/1.928, allocations: 205.8 kB / 0.9911 GB, free: 41.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002422/1.931, allocations: 1.185 MB / 0.9923 GB, free: 40.37 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.104e-05/1.931, allocations: 47.98 kB / 0.9923 GB, free: 40.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002586/1.931, allocations: 71.62 kB / 0.9924 GB, free: 40.26 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002465/1.934, allocations: 1.758 MB / 0.9941 GB, free: 38.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003213/1.937, allocations: 1.748 MB / 0.9958 GB, free: 36.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.998e-05/1.937, allocations: 4 kB / 0.9958 GB, free: 36.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001941/1.937, allocations: 7.938 kB / 0.9958 GB, free: 36.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001314/1.937, allocations: 114.3 kB / 0.996 GB, free: 36.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01006/1.947, allocations: 7.391 MB / 1.003 GB, free: 28.81 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/1.949, allocations: 1.112 MB / 1.004 GB, free: 27.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000795/1.949, allocations: 0.7091 MB / 1.005 GB, free: 26.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004143/1.954, allocations: 3.378 MB / 1.008 GB, free: 23.37 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/1.954, allocations: 47.88 kB / 1.008 GB, free: 23.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 2.926e-06/1.954, allocations: 0 / 1.008 GB, free: 23.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.0138/1.967, allocations: 4.679 MB / 1.013 GB, free: 18.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/1.968, allocations: 171.5 kB / 1.013 GB, free: 18.38 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/1.969, allocations: 0.9444 MB / 1.014 GB, free: 17.43 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001817/1.969, allocations: 41.69 kB / 1.014 GB, free: 17.38 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004206/1.969, allocations: 0.7084 MB / 1.015 GB, free: 16.67 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003094/1.97, allocations: 449.3 kB / 1.015 GB, free: 16.22 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.625e-05/1.97, allocations: 0 / 1.015 GB, free: 16.22 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.918e-05/1.97, allocations: 381.9 kB / 1.015 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008975/1.971, allocations: 0.7107 MB / 1.016 GB, free: 15.13 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/1.972, allocations: 1.107 MB / 1.017 GB, free: 13.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/1.982, allocations: 2.526 MB / 1.02 GB, free: 11.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.579e-05/1.982, allocations: 4 kB / 1.02 GB, free: 11.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.01263/1.995, allocations: 3.894 MB / 1.024 GB, free: 7.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007425/1.996, allocations: 4.282 MB / 1.028 GB, free: 2.824 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/1.996, allocations: 12 kB / 1.028 GB, free: 2.812 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/1.997, allocations: 451.1 kB / 1.028 GB, free: 2.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/1.998, allocations: 343.5 kB / 1.028 GB, free: 2.023 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2261/2.224, allocations: 3.291 MB / 1.032 GB, free: 55.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00227/2.226, allocations: 101.6 kB / 1.032 GB, free: 55.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002211/2.227, allocations: 81.78 kB / 1.032 GB, free: 55.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/2.227, allocations: 7.281 kB / 1.032 GB, free: 55.6 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01365/2.24, allocations: 3.525 MB / 1.035 GB, free: 55.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/2.24, allocations: 10.53 kB / 1.035 GB, free: 55.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/2.241, allocations: 335.7 kB / 1.036 GB, free: 55.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/2.243, allocations: 358.4 kB / 1.036 GB, free: 55.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003559/2.246, allocations: 2.954 MB / 1.039 GB, free: 53.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/2.248, allocations: 94.64 kB / 1.039 GB, free: 53.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002111/2.248, allocations: 78.62 kB / 1.039 GB, free: 53.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005309/2.249, allocations: 165.3 kB / 1.039 GB, free: 53.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002904/2.249, allocations: 151.3 kB / 1.039 GB, free: 53.33 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005596/2.255, allocations: 2.334 MB / 1.042 GB, free: 53.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.027e-05/2.255, allocations: 26.3 kB / 1.042 GB, free: 53.19 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/2.255, allocations: 0 / 1.042 GB, free: 53.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/2.255, allocations: 6.797 kB / 1.042 GB, free: 53.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008238/2.263, allocations: 3.888 MB / 1.045 GB, free: 52.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/2.263, allocations: 3.094 kB / 1.045 GB, free: 52.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/2.264, allocations: 240.7 kB / 1.046 GB, free: 52.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001331/2.266, allocations: 450.2 kB / 1.046 GB, free: 52.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/2.266, allocations: 23.5 kB / 1.046 GB, free: 52.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003488/2.269, allocations: 3.061 MB / 1.049 GB, free: 50.73 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.795e-06/2.269, allocations: 2.438 kB / 1.049 GB, free: 50.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006184/2.275, allocations: 3.221 MB / 1.052 GB, free: 50.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007563/2.276, allocations: 253.2 kB / 1.053 GB, free: 50.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/2.277, allocations: 9.641 kB / 1.053 GB, free: 50.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/2.278, allocations: 79.12 kB / 1.053 GB, free: 50.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000318/2.278, allocations: 153.6 kB / 1.053 GB, free: 50.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/2.278, allocations: 62.14 kB / 1.053 GB, free: 50.15 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00119/2.279, allocations: 0.7092 MB / 1.053 GB, free: 50.04 MB / 426.7 MB Notification: Performance of sort global known variables: time 3e-07/2.279, allocations: 0 / 1.053 GB, free: 50.04 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004364/2.284, allocations: 1.283 MB / 1.055 GB, free: 50.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002811/2.287, allocations: 1.208 MB / 1.056 GB, free: 49.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00461/2.291, allocations: 2.877 MB / 1.059 GB, free: 49.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/2.291, allocations: 0 / 1.059 GB, free: 49.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001573/2.293, allocations: 1.025 MB / 1.06 GB, free: 49.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003122/2.296, allocations: 0.6249 MB / 1.06 GB, free: 49.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00432/2.3, allocations: 2.691 MB / 1.063 GB, free: 49.24 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007189/2.301, allocations: 1.44 MB / 1.064 GB, free: 48.52 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002464/2.304, allocations: 0.7359 MB / 1.065 GB, free: 48.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003414/2.304, allocations: 133.2 kB / 1.065 GB, free: 48.47 MB / 426.7 MB Notification: Performance of SimCode: time 7.41e-07/2.304, allocations: 0 / 1.065 GB, free: 48.47 MB / 426.7 MB Notification: Performance of Templates: time 0.05592/2.36, allocations: 43.96 MB / 1.108 GB, free: 45.54 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_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/TanksWithEmptyingPipe2/TanksWithEmptyingPipe2.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches