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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008105/0.0008105, allocations: 91.58 kB / 17.31 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008766/0.0008767, allocations: 184.4 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.263/1.263, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002999/0.0002998, allocations: 7.938 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09434/0.09466, allocations: 50.42 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.2007/0.2954, allocations: 21.92 MB / 374.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01237/0.3078, allocations: 10.27 MB / 384.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001184/0.309, allocations: 39.81 kB / 384.7 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001215/0.3102, allocations: 346.7 kB / 385.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004542/0.3148, allocations: 1.342 MB / 386.4 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007603/0.3224, allocations: 2.217 MB / 388.6 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005044/0.3275, allocations: 3.804 MB / 392.4 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.3287, allocations: 0.5642 MB / 393 MB, free: 6.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002043/0.3307, allocations: 0.8332 MB / 393.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00192/0.3327, allocations: 0.9749 MB / 394.8 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000326/0.333, allocations: 46.06 kB / 394.8 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004308/0.3373, allocations: 1.686 MB / 396.5 MB, free: 4.816 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006398/0.338, allocations: 319 kB / 396.8 MB, free: 4.617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001128/0.3391, allocations: 0.5101 MB / 397.4 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003048/0.3422, allocations: 1.761 MB / 399.1 MB, free: 3.312 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3422, allocations: 1.031 kB / 399.1 MB, free: 3.312 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3422, allocations: 0 / 399.1 MB, free: 3.312 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.381e-05/0.3423, allocations: 3.938 kB / 399.1 MB, free: 3.309 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003197/0.3455, allocations: 1.309 MB / 400.4 MB, free: 2.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.3455, allocations: 9.469 kB / 400.4 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004858/0.346, allocations: 120.8 kB / 400.6 MB, free: 2.238 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000959/0.347, allocations: 0.689 MB / 401.2 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.095e-05/0.3471, allocations: 45.77 kB / 401.3 MB, free: 1.676 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.3472, allocations: 65.31 kB / 401.4 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.3487, allocations: 1.06 MB / 402.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.3487, allocations: 3.281 kB / 402.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-05/0.3488, allocations: 34.59 kB / 402.4 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.268e-05/0.3489, allocations: 66.14 kB / 402.5 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.3502, allocations: 1.037 MB / 403.5 MB, free: 428 kB / 302.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.006351/0.3566, allocations: 4.451 MB / 408 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009482/0.3576, allocations: 0.5702 MB / 408.6 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005054/0.3581, allocations: 321.9 kB / 408.9 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002494/0.3606, allocations: 1.975 MB / 410.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.3607, allocations: 38.89 kB / 410.9 MB, free: 9.379 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 3.616e-06/0.3607, allocations: 0 / 410.9 MB, free: 9.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.00458/0.3653, allocations: 1.966 MB / 412.9 MB, free: 7.324 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.033e-05/0.3654, allocations: 162.2 kB / 413 MB, free: 7.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.3666, allocations: 0.939 MB / 414 MB, free: 6.164 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.376e-05/0.3667, allocations: 37.7 kB / 414 MB, free: 6.121 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003575/0.3671, allocations: 482.6 kB / 414.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.3673, allocations: 165.6 kB / 414.6 MB, free: 5.492 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.3674, allocations: 81.62 kB / 414.7 MB, free: 5.406 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3675, allocations: 341.9 kB / 415 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005852/0.3681, allocations: 321.8 kB / 415.4 MB, free: 4.754 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007234/0.3688, allocations: 0.6289 MB / 416 MB, free: 3.996 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.37, allocations: 0.889 MB / 416.9 MB, free: 2.988 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.37, allocations: 0 / 416.9 MB, free: 2.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001978/0.372, allocations: 1.12 MB / 418 MB, free: 1.852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002362/0.3723, allocations: 357 kB / 418.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.3723, allocations: 8 kB / 418.4 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002631/0.3749, allocations: 389.2 kB / 418.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007207/0.3757, allocations: 179.7 kB / 418.9 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.3769, allocations: 1.347 MB / 420.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009969/0.3779, allocations: 63.94 kB / 420.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.378, allocations: 40 kB / 420.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.378, allocations: 4 kB / 420.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001706/0.3797, allocations: 0.9792 MB / 421.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.409e-05/0.3798, allocations: 15.98 kB / 421.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002357/0.3822, allocations: 356.4 kB / 421.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006476/0.3828, allocations: 179.6 kB / 421.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.3839, allocations: 1.312 MB / 423.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008514/0.3847, allocations: 47.97 kB / 423.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.3849, allocations: 43.98 kB / 423.3 MB, free: 12.32 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (104): * Single equations (assignments): 102 * 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,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005834/0.3854, allocations: 379.7 kB / 423.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002224/0.3857, allocations: 98.88 kB / 423.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001745/0.3874, allocations: 0.7892 MB / 424.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-05/0.3875, allocations: 11.94 kB / 424.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.3875, allocations: 0 / 424.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.3875, allocations: 0 / 424.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002745/0.3902, allocations: 1.588 MB / 426.1 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.3903, allocations: 0 / 426.1 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000359/0.3906, allocations: 79.89 kB / 426.2 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001499/0.3921, allocations: 301.5 kB / 426.5 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.491e-05/0.3922, allocations: 12 kB / 426.5 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009513/0.3932, allocations: 1.305 MB / 427.8 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/0.3932, allocations: 0 / 427.8 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.3948, allocations: 1.087 MB / 428.9 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003608/0.3952, allocations: 187.9 kB / 429.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002135/0.3954, allocations: 19.98 kB / 429.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000657/0.3961, allocations: 39.95 kB / 429.2 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.3963, allocations: 48.36 kB / 429.2 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.581e-05/0.3963, allocations: 19.98 kB / 429.2 MB, free: 6.195 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009327/0.3973, allocations: 0.6481 MB / 429.9 MB, free: 5.535 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3973, allocations: 0 / 429.9 MB, free: 5.535 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002369/0.3997, allocations: 0.7574 MB / 430.6 MB, free: 4.777 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * 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 (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,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00173/0.4014, allocations: 0.6179 MB / 431.2 MB, free: 4.195 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002638/0.4041, allocations: 1.283 MB / 432.5 MB, free: 2.922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.4041, allocations: 0 / 432.5 MB, free: 2.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005761/0.4047, allocations: 306.6 kB / 432.8 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002229/0.4069, allocations: 387.7 kB / 433.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.4099, allocations: 2.152 MB / 435.4 MB, free: 64 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005815/0.4106, allocations: 1.03 MB / 436.4 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002855/0.4108, allocations: 79.42 kB / 436.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4109, allocations: 8 kB / 436.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of Templates: time 0.03401/0.4449, allocations: 26.1 MB / 462.6 MB, free: 4.906 MB / 366.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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