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.001582/0.001582, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.337/1.337, allocations: 221.3 MB / 235.5 MB, free: 2.957 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.0008754/0.0008753, allocations: 98.11 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.481e-05/2.482e-05, allocations: 4 kB / 343.8 MB, free: 4.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09298/0.09302, allocations: 50.41 MB / 394.2 MB, free: 1.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7193/0.8124, allocations: 324.4 MB / 0.7018 GB, free: 7.637 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/0.8127, allocations: 94.38 kB / 0.7019 GB, free: 7.594 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8364/1.649, allocations: 196 MB / 0.8933 GB, free: 78.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.313e-06/1.649, allocations: 0 / 0.8933 GB, free: 78.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.634e-05/1.649, allocations: 22.56 kB / 0.8933 GB, free: 78.23 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.002775/1.652, allocations: 1.294 MB / 0.8946 GB, free: 77.71 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/1.652, allocations: 10.78 kB / 0.8946 GB, free: 77.71 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003624/1.652, allocations: 109.6 kB / 0.8947 GB, free: 77.66 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/1.654, allocations: 0.739 MB / 0.8954 GB, free: 77.41 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.368e-05/1.654, allocations: 52.02 kB / 0.8955 GB, free: 77.41 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/1.654, allocations: 62.67 kB / 0.8955 GB, free: 77.41 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/1.656, allocations: 1.052 MB / 0.8966 GB, free: 77.22 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/1.656, allocations: 4.688 kB / 0.8966 GB, free: 77.22 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-05/1.656, allocations: 32.03 kB / 0.8966 GB, free: 77.22 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.153e-05/1.656, allocations: 63.86 kB / 0.8967 GB, free: 77.22 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/1.658, allocations: 0.9945 MB / 0.8976 GB, free: 77.21 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006181/1.664, allocations: 4.392 MB / 0.9019 GB, free: 75.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008643/1.665, allocations: 0.5615 MB / 0.9025 GB, free: 75.05 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004434/1.665, allocations: 308.4 kB / 0.9028 GB, free: 75.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002457/1.668, allocations: 2.075 MB / 0.9048 GB, free: 73.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/1.668, allocations: 44.17 kB / 0.9048 GB, free: 73.76 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 1.984e-06/1.668, allocations: 1 kB / 0.9048 GB, free: 73.76 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.003107/1.671, allocations: 1.499 MB / 0.9063 GB, free: 73.33 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.738e-05/1.671, allocations: 160.7 kB / 0.9064 GB, free: 73.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/1.672, allocations: 0.8095 MB / 0.9072 GB, free: 72.99 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.536e-05/1.672, allocations: 40.08 kB / 0.9073 GB, free: 72.96 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002578/1.672, allocations: 480.8 kB / 0.9077 GB, free: 72.77 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/1.672, allocations: 160 kB / 0.9079 GB, free: 72.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.304e-05/1.672, allocations: 18.22 kB / 0.9079 GB, free: 72.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.051e-05/1.673, allocations: 345 kB / 0.9082 GB, free: 72.39 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004557/1.673, allocations: 301 kB / 0.9085 GB, free: 72.39 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006007/1.674, allocations: 0.5898 MB / 0.9091 GB, free: 72.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005898/1.674, allocations: 394.9 kB / 0.9095 GB, free: 72.04 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/1.674, allocations: 2.5 kB / 0.9095 GB, free: 72.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001719/1.676, allocations: 1.065 MB / 0.9105 GB, free: 71.94 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005983/1.677, allocations: 3.313 MB / 0.9137 GB, free: 68.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/1.677, allocations: 12.91 kB / 0.9138 GB, free: 68.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001918/1.679, allocations: 316.2 kB / 0.9141 GB, free: 68.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006953/1.679, allocations: 176.2 kB / 0.9142 GB, free: 68.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000998/1.68, allocations: 1.347 MB / 0.9155 GB, free: 67.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000911/1.681, allocations: 58.95 kB / 0.9156 GB, free: 67.44 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.207e-05/1.681, allocations: 50.22 kB / 0.9157 GB, free: 67.44 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/1.681, allocations: 5.75 kB / 0.9157 GB, free: 67.44 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001687/1.683, allocations: 0.9388 MB / 0.9166 GB, free: 67.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/1.683, allocations: 12.44 kB / 0.9166 GB, free: 67.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001674/1.685, allocations: 295.1 kB / 0.9169 GB, free: 67.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000639/1.685, allocations: 170.6 kB / 0.917 GB, free: 67.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000845/1.686, allocations: 1.306 MB / 0.9183 GB, free: 66.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007644/1.687, allocations: 62.22 kB / 0.9184 GB, free: 66.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.159e-05/1.687, allocations: 42.41 kB / 0.9184 GB, free: 66.35 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.0002393/1.687, allocations: 157.5 kB / 0.9186 GB, free: 66.24 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/1.687, allocations: 99.77 kB / 0.9186 GB, free: 66.19 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001728/1.689, allocations: 0.7759 MB / 0.9194 GB, free: 66.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/1.689, allocations: 5.469 kB / 0.9194 GB, free: 66.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.689, allocations: 3.062 kB / 0.9194 GB, free: 66.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/1.689, allocations: 5 kB / 0.9194 GB, free: 66.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002359/1.692, allocations: 1.585 MB / 0.921 GB, free: 65.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/1.692, allocations: 3.75 kB / 0.921 GB, free: 65.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003514/1.692, allocations: 69.66 kB / 0.921 GB, free: 65.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001389/1.693, allocations: 288.3 kB / 0.9213 GB, free: 65.74 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.885e-05/1.693, allocations: 11.03 kB / 0.9213 GB, free: 65.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007461/1.694, allocations: 1.313 MB / 0.9226 GB, free: 64.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.694, allocations: 3.516 kB / 0.9226 GB, free: 64.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/1.696, allocations: 1.094 MB / 0.9237 GB, free: 64.43 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002572/1.696, allocations: 188.5 kB / 0.9239 GB, free: 64.29 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/1.696, allocations: 21.41 kB / 0.9239 GB, free: 64.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005413/1.696, allocations: 36.95 kB / 0.9239 GB, free: 64.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.501e-05/1.697, allocations: 54.69 kB / 0.924 GB, free: 64.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.692e-05/1.697, allocations: 24.48 kB / 0.924 GB, free: 64.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006735/1.697, allocations: 0.6307 MB / 0.9246 GB, free: 64.17 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.697, allocations: 0 / 0.9246 GB, free: 64.17 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002295/1.7, allocations: 0.8378 MB / 0.9254 GB, free: 64.05 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.001623/1.701, allocations: 0.8188 MB / 0.9262 GB, free: 63.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002045/1.703, allocations: 1.235 MB / 0.9274 GB, free: 63.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/1.703, allocations: 3.219 kB / 0.9274 GB, free: 63.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006847/1.704, allocations: 343.8 kB / 0.9278 GB, free: 63.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/1.706, allocations: 380.8 kB / 0.9281 GB, free: 63.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/1.707, allocations: 1.266 MB / 0.9294 GB, free: 63.47 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004083/1.708, allocations: 1.06 MB / 0.9304 GB, free: 62.77 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001185/1.709, allocations: 422.7 kB / 0.9308 GB, free: 62.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/1.709, allocations: 59 kB / 0.9309 GB, free: 62.75 MB / 442.7 MB Notification: Performance of SimCode: time 3.61e-07/1.709, allocations: 3.156 kB / 0.9309 GB, free: 62.75 MB / 442.7 MB Notification: Performance of Templates: time 0.03394/1.743, allocations: 25.93 MB / 0.9562 GB, free: 61.76 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