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.00104/0.00104, allocations: 95 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.00135, allocations: 206.1 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.8 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002212/0.0002212, allocations: 8 kB / 307.8 MB, free: 0.7578 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09486/0.0951, allocations: 51.52 MB / 359.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.1798/0.275, allocations: 20.77 MB / 380 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00846/0.2835, allocations: 7.297 MB / 387.3 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006658/0.2842, allocations: 29.75 kB / 387.4 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007792/0.285, allocations: 321.4 kB / 387.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002192/0.2872, allocations: 1.028 MB / 388.7 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00376/0.291, allocations: 1.568 MB / 390.3 MB, free: 4.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003433/0.2944, allocations: 3.132 MB / 393.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006614/0.2951, allocations: 0.4904 MB / 393.9 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001074/0.2962, allocations: 0.7162 MB / 394.6 MB, free: 3.418 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008787/0.297, allocations: 0.7628 MB / 395.4 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.2972, allocations: 38.72 kB / 395.4 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002205/0.2994, allocations: 1.248 MB / 396.7 MB, free: 2.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002254/0.2996, allocations: 251.2 kB / 396.9 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003941/0.3, allocations: 448.8 kB / 397.3 MB, free: 1.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001824/0.3018, allocations: 1.85 MB / 399.2 MB, free: 0.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3019, allocations: 0 / 399.2 MB, free: 0.707 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3019, allocations: 1.375 kB / 399.2 MB, free: 0.707 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.3019, allocations: 0 / 399.2 MB, free: 0.707 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.001911/0.3038, allocations: 1.119 MB / 400.3 MB, free: 15.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.3038, allocations: 12.5 kB / 400.3 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003431/0.3042, allocations: 102.3 kB / 400.4 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008115/0.305, allocations: 0.5905 MB / 401 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.953e-05/0.3051, allocations: 45.77 kB / 401.1 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.898e-05/0.3052, allocations: 55.91 kB / 401.1 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.3065, allocations: 0.8949 MB / 402 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.3066, allocations: 2.312 kB / 402 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.728e-05/0.3067, allocations: 27.52 kB / 402 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.542e-05/0.3067, allocations: 45.06 kB / 402.1 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.3079, allocations: 0.8136 MB / 402.9 MB, free: 14.2 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.004617/0.3126, allocations: 3.838 MB / 406.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008241/0.3134, allocations: 0.5382 MB / 407.3 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003971/0.3138, allocations: 282.2 kB / 407.6 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003718/0.3142, allocations: 0.4936 MB / 408 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.3142, allocations: 51.84 kB / 408.1 MB, free: 9.809 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.344e-06/0.3142, allocations: 0 / 408.1 MB, free: 9.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.004192/0.3184, allocations: 2.122 MB / 410.2 MB, free: 8.078 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.422e-05/0.3185, allocations: 141 kB / 410.4 MB, free: 7.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008324/0.3194, allocations: 0.7309 MB / 411.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.022e-05/0.3194, allocations: 37.7 kB / 411.1 MB, free: 7.125 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002645/0.3197, allocations: 383.9 kB / 411.5 MB, free: 6.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.3198, allocations: 181.4 kB / 411.7 MB, free: 6.566 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.32, allocations: 65.69 kB / 411.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.3201, allocations: 386.7 kB / 412.1 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005143/0.3206, allocations: 305.8 kB / 412.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006413/0.3213, allocations: 0.5148 MB / 412.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.3224, allocations: 0.77 MB / 413.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3224, allocations: 0 / 413.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001601/0.324, allocations: 0.999 MB / 414.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001531/0.3242, allocations: 261.5 kB / 415 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.3242, allocations: 8 kB / 415 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001685/0.3259, allocations: 313.2 kB / 415.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005607/0.3264, allocations: 143.8 kB / 415.4 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001069/0.3275, allocations: 1.307 MB / 416.7 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006003/0.3281, allocations: 56.03 kB / 416.8 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.66e-05/0.3282, allocations: 32 kB / 416.8 MB, free: 1.105 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.453e-06/0.3282, allocations: 4 kB / 416.8 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001409/0.3296, allocations: 0.8463 MB / 417.7 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3297, allocations: 8 kB / 417.7 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001132/0.3308, allocations: 185.9 kB / 417.8 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006669/0.3315, allocations: 179.7 kB / 418 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007503/0.3322, allocations: 1.183 MB / 419.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000502/0.3327, allocations: 56 kB / 419.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-05/0.3328, allocations: 35.92 kB / 419.3 MB, free: 14.55 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.0003901/0.3332, allocations: 327.3 kB / 419.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.3334, allocations: 83.05 kB / 419.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001775/0.3351, allocations: 0.9841 MB / 420.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.3352, allocations: 8 kB / 420.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.3352, allocations: 0 / 420.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/0.3352, allocations: 3.984 kB / 420.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002557/0.3378, allocations: 1.755 MB / 422.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.3378, allocations: 4 kB / 422.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004592/0.3382, allocations: 103.8 kB / 422.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001304/0.3396, allocations: 253.6 kB / 422.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.474e-05/0.3396, allocations: 19.98 kB / 422.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.3408, allocations: 1.265 MB / 424.1 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3408, allocations: 4.125 kB / 424.1 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002112/0.3429, allocations: 1.308 MB / 425.4 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001994/0.3431, allocations: 172 kB / 425.6 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.3432, allocations: 20 kB / 425.6 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004934/0.3437, allocations: 40.03 kB / 425.6 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.3439, allocations: 56.48 kB / 425.7 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.695e-05/0.3439, allocations: 23.98 kB / 425.7 MB, free: 7.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006039/0.3445, allocations: 0.5107 MB / 426.2 MB, free: 7.453 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.3445, allocations: 8 kB / 426.2 MB, free: 7.445 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001794/0.3463, allocations: 0.5974 MB / 426.8 MB, free: 6.848 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.001088/0.3474, allocations: 0.4991 MB / 427.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.3496, allocations: 1.207 MB / 428.5 MB, free: 5.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.3496, allocations: 1.5 kB / 428.5 MB, free: 5.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006394/0.3502, allocations: 395.1 kB / 428.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002025/0.3523, allocations: 404.3 kB / 429.3 MB, free: 4.367 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002584/0.3549, allocations: 1.982 MB / 431.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005645/0.3555, allocations: 0.9916 MB / 432.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009913/0.3565, allocations: 316.9 kB / 432.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.3567, allocations: 79.41 kB / 432.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of SimCode: time 1.804e-06/0.3567, allocations: 0 / 432.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of Templates: time 0.03519/0.3919, allocations: 21.82 MB / 454.5 MB, free: 11.32 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","/var/lib/jenkins/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