Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009713/0.0009714, allocations: 177.1 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 221.5 MB / 230.3 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008277/0.0008276, allocations: 92.59 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.592e-05/1.583e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1021, allocations: 50.42 MB / 387.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7556/0.8578, allocations: 324.1 MB / 0.6949 GB, free: 4.816 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.8581, allocations: 96.5 kB / 0.695 GB, free: 4.766 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.15/2.008, allocations: 285.6 MB / 0.9739 GB, free: 74 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.513e-06/2.008, allocations: 0 / 0.9739 GB, free: 74 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001922/2.008, allocations: 39.83 kB / 0.9739 GB, free: 73.99 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006303/2.014, allocations: 1.783 MB / 0.9756 GB, free: 72.96 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/2.014, allocations: 7.719 kB / 0.9757 GB, free: 72.96 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001209/2.016, allocations: 171 kB / 0.9758 GB, free: 72.89 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002997/2.019, allocations: 1.032 MB / 0.9768 GB, free: 72.33 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.484e-05/2.019, allocations: 40.17 kB / 0.9769 GB, free: 72.32 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004663/2.019, allocations: 57.88 kB / 0.9769 GB, free: 72.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002862/2.022, allocations: 1.426 MB / 0.9783 GB, free: 71.82 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002834/2.025, allocations: 1.474 MB / 0.9797 GB, free: 71.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/2.025, allocations: 7.594 kB / 0.9798 GB, free: 71.15 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002038/2.025, allocations: 3.875 kB / 0.9798 GB, free: 71.15 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001405/2.025, allocations: 101.8 kB / 0.9799 GB, free: 71.14 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01042/2.036, allocations: 6.302 MB / 0.986 GB, free: 67 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/2.037, allocations: 0.8796 MB / 0.9869 GB, free: 66.66 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007045/2.038, allocations: 0.5263 MB / 0.9874 GB, free: 66.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004057/2.042, allocations: 2.843 MB / 0.9902 GB, free: 64.48 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/2.042, allocations: 45.34 kB / 0.9902 GB, free: 64.43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 2.795e-06/2.042, allocations: 0 / 0.9902 GB, free: 64.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.0101/2.052, allocations: 3.13 MB / 0.9933 GB, free: 63.22 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.115e-05/2.052, allocations: 190.5 kB / 0.9934 GB, free: 63 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/2.054, allocations: 0.8684 MB / 0.9943 GB, free: 62.61 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001589/2.054, allocations: 33.58 kB / 0.9943 GB, free: 62.58 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005105/2.054, allocations: 0.6569 MB / 0.995 GB, free: 62.05 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002971/2.055, allocations: 311.1 kB / 0.9953 GB, free: 61.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.7e-05/2.055, allocations: 2.531 kB / 0.9953 GB, free: 61.82 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/2.055, allocations: 362.7 kB / 0.9956 GB, free: 61.49 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008048/2.056, allocations: 0.5249 MB / 0.9961 GB, free: 61.29 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/2.057, allocations: 0.9191 MB / 0.997 GB, free: 60.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00393/2.061, allocations: 1.206 MB / 0.9982 GB, free: 60.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.136e-05/2.061, allocations: 2.531 kB / 0.9982 GB, free: 60.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005575/2.066, allocations: 2.249 MB / 1 GB, free: 59.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009733/2.067, allocations: 4.359 MB / 1.005 GB, free: 54.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.973e-05/2.067, allocations: 12 kB / 1.005 GB, free: 54.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009994/2.068, allocations: 330.6 kB / 1.005 GB, free: 54.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/2.069, allocations: 283.5 kB / 1.005 GB, free: 54.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003266/2.073, allocations: 2.462 MB / 1.008 GB, free: 51.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001949/2.075, allocations: 74.3 kB / 1.008 GB, free: 51.44 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003141/2.075, allocations: 66.77 kB / 1.008 GB, free: 51.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/2.075, allocations: 4 kB / 1.008 GB, free: 51.37 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005321/2.08, allocations: 1.956 MB / 1.01 GB, free: 49.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.16e-05/2.08, allocations: 8 kB / 1.01 GB, free: 49.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009023/2.081, allocations: 273.4 kB / 1.01 GB, free: 49.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/2.082, allocations: 283.5 kB / 1.01 GB, free: 48.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002469/2.085, allocations: 2.221 MB / 1.012 GB, free: 46.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/2.086, allocations: 72.94 kB / 1.012 GB, free: 46.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001875/2.087, allocations: 63.98 kB / 1.013 GB, free: 46.44 MB / 442.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 () * 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.0004358/2.087, allocations: 151.7 kB / 1.013 GB, free: 46.29 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003665/2.087, allocations: 122.5 kB / 1.013 GB, free: 46.17 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003829/2.091, allocations: 1.523 MB / 1.014 GB, free: 44.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/2.091, allocations: 10.94 kB / 1.014 GB, free: 44.65 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/2.091, allocations: 3.625 kB / 1.014 GB, free: 44.65 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/2.091, allocations: 11.92 kB / 1.014 GB, free: 44.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005588/2.097, allocations: 2.725 MB / 1.017 GB, free: 41.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/2.097, allocations: 5.453 kB / 1.017 GB, free: 41.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006589/2.098, allocations: 155.8 kB / 1.017 GB, free: 41.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009585/2.099, allocations: 311.8 kB / 1.017 GB, free: 41.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.605e-05/2.099, allocations: 15.98 kB / 1.017 GB, free: 41.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002425/2.101, allocations: 2.275 MB / 1.02 GB, free: 39.06 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/2.101, allocations: 0 / 1.02 GB, free: 39.06 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00401/2.105, allocations: 2.142 MB / 1.022 GB, free: 36.87 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006904/2.106, allocations: 227.4 kB / 1.022 GB, free: 36.63 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004315/2.106, allocations: 4 kB / 1.022 GB, free: 36.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/2.108, allocations: 59.7 kB / 1.022 GB, free: 36.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/2.108, allocations: 93.17 kB / 1.022 GB, free: 36.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/2.108, allocations: 39.97 kB / 1.022 GB, free: 36.44 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001151/2.109, allocations: 0.6608 MB / 1.023 GB, free: 35.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/2.109, allocations: 0 / 1.023 GB, free: 35.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004426/2.114, allocations: 1.142 MB / 1.024 GB, free: 34.63 MB / 442.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]) * 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.003183/2.117, allocations: 1.093 MB / 1.025 GB, free: 33.68 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003626/2.12, allocations: 2.088 MB / 1.027 GB, free: 31.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/2.12, allocations: 0 / 1.027 GB, free: 31.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/2.122, allocations: 0.6523 MB / 1.028 GB, free: 30.96 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002622/2.124, allocations: 489.3 kB / 1.028 GB, free: 30.51 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003608/2.128, allocations: 2.034 MB / 1.03 GB, free: 28.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007461/2.129, allocations: 1.28 MB / 1.031 GB, free: 27.15 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002124/2.131, allocations: 0.5797 MB / 1.032 GB, free: 26.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002817/2.131, allocations: 91.41 kB / 1.032 GB, free: 26.51 MB / 442.7 MB Notification: Performance of SimCode: time 1.002e-06/2.131, allocations: 0 / 1.032 GB, free: 26.51 MB / 442.7 MB Notification: Performance of Templates: time 0.3492/2.48, allocations: 34.92 MB / 1.066 GB, free: 68.04 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches