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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001518/0.001518, allocations: 111.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001942/0.001942, allocations: 209.8 kB / 18.92 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 247.1 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001798, allocations: 63.47 kB / 307.1 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1136, allocations: 50.54 MB / 357.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.1925/0.3061, allocations: 21.33 MB / 379 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009023/0.3152, allocations: 7.195 MB / 386.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001573/0.3168, allocations: 32.31 kB / 386.2 MB, free: 5.895 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001387/0.3183, allocations: 322.5 kB / 386.5 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003525/0.3218, allocations: 1.026 MB / 387.6 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005369/0.3272, allocations: 1.691 MB / 389.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003379/0.3306, allocations: 2.149 MB / 391.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/0.3317, allocations: 0.579 MB / 392 MB, free: 3.199 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001752/0.3335, allocations: 0.8304 MB / 392.8 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001268/0.3348, allocations: 0.7969 MB / 393.6 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001808/0.335, allocations: 76.75 kB / 393.7 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002858/0.3378, allocations: 1.283 MB / 395 MB, free: 2.164 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000408/0.3383, allocations: 291.6 kB / 395.3 MB, free: 2.016 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006607/0.3389, allocations: 466.3 kB / 395.7 MB, free: 1.727 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002293/0.3412, allocations: 1.412 MB / 397.1 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3413, allocations: 0 / 397.1 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3413, allocations: 1.125 kB / 397.1 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.3413, allocations: 0 / 397.1 MB, free: 0.8477 MB / 302.1 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.002897/0.3442, allocations: 1.278 MB / 398.4 MB, free: 15.85 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3442, allocations: 8.781 kB / 398.4 MB, free: 15.85 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004395/0.3447, allocations: 105.7 kB / 398.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.3458, allocations: 0.5979 MB / 399.1 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.946e-05/0.3458, allocations: 41.81 kB / 399.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.346, allocations: 55.73 kB / 399.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.3475, allocations: 0.8988 MB / 400.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.3476, allocations: 1.375 kB / 400.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.792e-05/0.3477, allocations: 22.88 kB / 400.1 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.441e-05/0.3477, allocations: 46.5 kB / 400.2 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.3492, allocations: 0.8091 MB / 401 MB, free: 14.23 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006354/0.3555, allocations: 3.83 MB / 404.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009389/0.3565, allocations: 0.5441 MB / 405.4 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000408/0.3569, allocations: 278 kB / 405.6 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007519/0.3577, allocations: 0.5023 MB / 406.1 MB, free: 9.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.03e-05/0.3577, allocations: 39.84 kB / 406.2 MB, free: 9.844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.345e-06/0.3577, allocations: 0 / 406.2 MB, free: 9.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.004936/0.3627, allocations: 2.13 MB / 408.3 MB, free: 8.469 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.3628, allocations: 140.4 kB / 408.4 MB, free: 8.309 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.3638, allocations: 0.7211 MB / 409.2 MB, free: 7.871 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.065e-05/0.3639, allocations: 41.7 kB / 409.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003472/0.3643, allocations: 379.9 kB / 409.6 MB, free: 7.449 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/0.3645, allocations: 185.3 kB / 409.8 MB, free: 7.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002697/0.3647, allocations: 154.6 kB / 409.9 MB, free: 7.109 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002312/0.365, allocations: 394.7 kB / 410.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005463/0.3655, allocations: 308.7 kB / 410.6 MB, free: 6.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007756/0.3663, allocations: 0.5109 MB / 411.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.3675, allocations: 0.7748 MB / 411.9 MB, free: 4.961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.3676, allocations: 4 kB / 411.9 MB, free: 4.957 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001901/0.3695, allocations: 0.9953 MB / 412.9 MB, free: 3.949 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.3695, allocations: 15.06 kB / 412.9 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.3695, allocations: 4 kB / 412.9 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001767/0.3713, allocations: 297.9 kB / 413.2 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000616/0.3719, allocations: 151.7 kB / 413.3 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.3733, allocations: 1.302 MB / 414.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008384/0.3741, allocations: 52.69 kB / 414.7 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.068e-05/0.3742, allocations: 28 kB / 414.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008373/0.3751, allocations: 487.1 kB / 415.2 MB, free: 1.578 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007252/0.3758, allocations: 0.504 MB / 415.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001157/0.377, allocations: 0.7552 MB / 416.5 MB, free: 148 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.567e-06/0.377, allocations: 0 / 416.5 MB, free: 148 kB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001858/0.3789, allocations: 0.945 MB / 417.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.3789, allocations: 8 kB / 417.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.3789, allocations: 4 kB / 417.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.3801, allocations: 181.6 kB / 417.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007162/0.3808, allocations: 167.7 kB / 417.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.3818, allocations: 1.183 MB / 418.9 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007796/0.3826, allocations: 57.34 kB / 419 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.778e-05/0.3827, allocations: 36.06 kB / 419 MB, free: 13.49 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003756/0.3831, allocations: 232 kB / 419.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001849/0.3833, allocations: 82.97 kB / 419.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002054/0.3853, allocations: 0.9818 MB / 420.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.3854, allocations: 4 kB / 420.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3854, allocations: 0 / 420.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.3854, allocations: 7.984 kB / 420.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003224/0.3886, allocations: 1.747 MB / 422.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3887, allocations: 0 / 422.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004684/0.3891, allocations: 103.9 kB / 422.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001122/0.3903, allocations: 241.5 kB / 422.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.186e-05/0.3903, allocations: 16 kB / 422.4 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001126/0.3915, allocations: 1.276 MB / 423.7 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.3915, allocations: 4.031 kB / 423.7 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002197/0.3937, allocations: 1.312 MB / 425 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003503/0.3941, allocations: 156.3 kB / 425.2 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.3942, allocations: 27.83 kB / 425.2 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005295/0.3947, allocations: 31.98 kB / 425.2 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.3949, allocations: 52.48 kB / 425.3 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.201e-05/0.395, allocations: 35.97 kB / 425.3 MB, free: 7.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007352/0.3957, allocations: 0.5146 MB / 425.8 MB, free: 6.512 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3957, allocations: 0 / 425.8 MB, free: 6.512 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001806/0.3975, allocations: 0.5974 MB / 426.4 MB, free: 5.914 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001363/0.3989, allocations: 0.4995 MB / 426.9 MB, free: 5.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002989/0.4019, allocations: 1.329 MB / 428.3 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.852e-05/0.402, allocations: 4 kB / 428.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000747/0.4027, allocations: 395 kB / 428.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002237/0.405, allocations: 430.5 kB / 429.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003318/0.4083, allocations: 1.913 MB / 431 MB, free: 1.332 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006943/0.409, allocations: 0.9914 MB / 432 MB, free: 320 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003177/0.4094, allocations: 87.36 kB / 432.1 MB, free: 236 kB / 334.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4094, allocations: 0 / 432.1 MB, free: 236 kB / 334.1 MB Notification: Performance of Templates: time 0.03504/0.4444, allocations: 23.13 MB / 455.2 MB, free: 9.191 MB / 366.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches