Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,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.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,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.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 177.1 kB / 8.35 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.43/1.43, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.000899/0.0008991, allocations: 83.12 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.37e-05/1.364e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09289/0.09291, allocations: 50.42 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7495/0.8425, allocations: 323.7 MB / 0.6945 GB, free: 5.141 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.8427, allocations: 92.94 kB / 0.6946 GB, free: 5.094 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6387/1.481, allocations: 194.7 MB / 0.8848 GB, free: 9.637 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.212e-06/1.481, allocations: 0 / 0.8848 GB, free: 9.637 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.173e-05/1.482, allocations: 24 kB / 0.8848 GB, free: 9.613 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.002945/1.485, allocations: 1.303 MB / 0.8861 GB, free: 8.266 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/1.485, allocations: 8.031 kB / 0.8861 GB, free: 8.258 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003734/1.485, allocations: 114.9 kB / 0.8862 GB, free: 8.145 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/1.486, allocations: 0.7297 MB / 0.8869 GB, free: 7.367 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.337e-05/1.486, allocations: 24 kB / 0.8869 GB, free: 7.344 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.004e-05/1.486, allocations: 36 kB / 0.887 GB, free: 7.309 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001189/1.488, allocations: 0.8927 MB / 0.8879 GB, free: 6.418 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/1.489, allocations: 0.9577 MB / 0.8888 GB, free: 5.402 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/1.489, allocations: 7.938 kB / 0.8888 GB, free: 5.395 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.842e-05/1.489, allocations: 4 kB / 0.8888 GB, free: 5.391 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.298e-05/1.489, allocations: 61.27 kB / 0.8889 GB, free: 5.332 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005105/1.494, allocations: 4.236 MB / 0.893 GB, free: 0.8555 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006559/1.495, allocations: 0.5453 MB / 0.8935 GB, free: 312 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003184/1.495, allocations: 298.1 kB / 0.8938 GB, free: 12 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2784/1.774, allocations: 2.017 MB / 0.8958 GB, free: 79.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/1.774, allocations: 37.89 kB / 0.8958 GB, free: 79.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 2.554e-06/1.774, allocations: 0 / 0.8958 GB, free: 79.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.007584/1.781, allocations: 1.747 MB / 0.8975 GB, free: 78.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.279e-05/1.781, allocations: 165 kB / 0.8977 GB, free: 78.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001389/1.783, allocations: 0.623 MB / 0.8983 GB, free: 78.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/1.783, allocations: 32.73 kB / 0.8983 GB, free: 78.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004791/1.783, allocations: 488.8 kB / 0.8988 GB, free: 78.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/1.784, allocations: 160.9 kB / 0.8989 GB, free: 78.06 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.083e-05/1.784, allocations: 0 / 0.8989 GB, free: 78.06 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/1.784, allocations: 390.8 kB / 0.8993 GB, free: 77.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004999/1.784, allocations: 296.7 kB / 0.8996 GB, free: 77.74 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006105/1.785, allocations: 0.5764 MB / 0.9002 GB, free: 77.41 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002186/1.787, allocations: 0.7213 MB / 0.9009 GB, free: 77.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/1.787, allocations: 2.219 kB / 0.9009 GB, free: 77.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003236/1.79, allocations: 1.336 MB / 0.9022 GB, free: 77.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006033/1.791, allocations: 3.309 MB / 0.9054 GB, free: 73.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/1.791, allocations: 8 kB / 0.9054 GB, free: 73.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006026/1.792, allocations: 166.4 kB / 0.9056 GB, free: 73.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000672/1.792, allocations: 181.1 kB / 0.9057 GB, free: 73.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/1.794, allocations: 1.503 MB / 0.9072 GB, free: 72.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009007/1.795, allocations: 40.34 kB / 0.9072 GB, free: 72.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-05/1.795, allocations: 44.84 kB / 0.9073 GB, free: 72.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/1.795, allocations: 3.312 kB / 0.9073 GB, free: 72.8 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002833/1.798, allocations: 1.153 MB / 0.9084 GB, free: 72.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/1.798, allocations: 9.844 kB / 0.9084 GB, free: 72.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005844/1.798, allocations: 159.2 kB / 0.9086 GB, free: 72.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000627/1.799, allocations: 179.7 kB / 0.9088 GB, free: 72.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/1.801, allocations: 1.408 MB / 0.9101 GB, free: 71.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008184/1.801, allocations: 48.48 kB / 0.9102 GB, free: 71.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.302e-05/1.802, allocations: 48.56 kB / 0.9102 GB, free: 71.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002783/1.802, allocations: 135.7 kB / 0.9103 GB, free: 71.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001852/1.802, allocations: 86.3 kB / 0.9104 GB, free: 71.56 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00233/1.804, allocations: 0.7897 MB / 0.9112 GB, free: 71.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/1.804, allocations: 5.469 kB / 0.9112 GB, free: 71.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/1.804, allocations: 0 / 0.9112 GB, free: 71.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/1.804, allocations: 7.781 kB / 0.9112 GB, free: 71.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003271/1.808, allocations: 1.54 MB / 0.9127 GB, free: 71.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/1.808, allocations: 1.062 kB / 0.9127 GB, free: 71.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003823/1.808, allocations: 76.88 kB / 0.9128 GB, free: 71.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005782/1.809, allocations: 155.2 kB / 0.9129 GB, free: 71.15 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/1.809, allocations: 8.438 kB / 0.9129 GB, free: 71.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001366/1.81, allocations: 1.393 MB / 0.9143 GB, free: 70.11 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/1.81, allocations: 1.062 kB / 0.9143 GB, free: 70.11 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/1.812, allocations: 1.108 MB / 0.9154 GB, free: 69.85 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003337/1.813, allocations: 177.4 kB / 0.9156 GB, free: 69.71 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/1.813, allocations: 3.516 kB / 0.9156 GB, free: 69.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005652/1.813, allocations: 35.48 kB / 0.9156 GB, free: 69.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/1.814, allocations: 52.16 kB / 0.9156 GB, free: 69.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.117e-05/1.814, allocations: 25.86 kB / 0.9157 GB, free: 69.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000745/1.814, allocations: 491.2 kB / 0.9161 GB, free: 69.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.814, allocations: 0 / 0.9161 GB, free: 69.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002944/1.817, allocations: 0.7849 MB / 0.9169 GB, free: 69.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002344/1.82, allocations: 0.811 MB / 0.9177 GB, free: 69.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002444/1.822, allocations: 1.153 MB / 0.9188 GB, free: 69.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/1.822, allocations: 1.406 kB / 0.9188 GB, free: 69.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005448/1.823, allocations: 291.3 kB / 0.9191 GB, free: 69.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001754/1.824, allocations: 295.4 kB / 0.9194 GB, free: 69.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/1.827, allocations: 1.205 MB / 0.9206 GB, free: 69.18 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004332/1.827, allocations: 1.059 MB / 0.9216 GB, free: 68.48 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001325/1.829, allocations: 362.6 kB / 0.9219 GB, free: 68.46 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000187/1.829, allocations: 63.98 kB / 0.922 GB, free: 68.46 MB / 442.7 MB Notification: Performance of SimCode: time 5.81e-07/1.829, allocations: 1 kB / 0.922 GB, free: 68.46 MB / 442.7 MB Notification: Performance of Templates: time 0.03487/1.864, allocations: 21.98 MB / 0.9435 GB, free: 67.68 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches