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.001528/0.001528, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001799/0.0018, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.9 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 66.41 kB / 306.9 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09797/0.09927, allocations: 50.53 MB / 357.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.1947/0.294, allocations: 21.38 MB / 378.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009484/0.3036, allocations: 7.407 MB / 386.2 MB, free: 5.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00144/0.3051, allocations: 36.34 kB / 386.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001224/0.3064, allocations: 326.2 kB / 386.6 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003379/0.3098, allocations: 1.027 MB / 387.6 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004818/0.3146, allocations: 1.564 MB / 389.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003817/0.3184, allocations: 3.139 MB / 392.3 MB, free: 3.109 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008825/0.3193, allocations: 0.5 MB / 392.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001382/0.3207, allocations: 0.7105 MB / 393.5 MB, free: 2.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001183/0.3219, allocations: 0.7744 MB / 394.3 MB, free: 2.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.3221, allocations: 44.56 kB / 394.3 MB, free: 2.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002868/0.325, allocations: 1.243 MB / 395.6 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003245/0.3253, allocations: 259.3 kB / 395.8 MB, free: 1.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005628/0.3259, allocations: 433.5 kB / 396.3 MB, free: 1.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001796/0.3277, allocations: 1.38 MB / 397.6 MB, free: 392 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.3277, allocations: 0 / 397.6 MB, free: 392 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3277, allocations: 0 / 397.6 MB, free: 392 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.859e-05/0.3277, allocations: 4 kB / 397.6 MB, free: 388 kB / 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.00259/0.3303, allocations: 1.28 MB / 398.9 MB, free: 15.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.3304, allocations: 9.625 kB / 398.9 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004173/0.3308, allocations: 100.2 kB / 399 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009653/0.3318, allocations: 0.5955 MB / 399.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.588e-05/0.3318, allocations: 45.23 kB / 399.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.795e-05/0.332, allocations: 59.86 kB / 399.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.3334, allocations: 0.8831 MB / 400.6 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/0.3335, allocations: 5.188 kB / 400.6 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.116e-05/0.3336, allocations: 31.58 kB / 400.6 MB, free: 14.19 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.399e-05/0.3336, allocations: 47.22 kB / 400.7 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001368/0.335, allocations: 0.8184 MB / 401.5 MB, free: 13.77 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.005408/0.3404, allocations: 3.818 MB / 405.3 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009005/0.3414, allocations: 0.5524 MB / 405.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003974/0.3418, allocations: 272 kB / 406.1 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003914/0.3422, allocations: 0.5042 MB / 406.6 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.3422, allocations: 38.5 kB / 406.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.695e-06/0.3422, allocations: 4 kB / 406.7 MB, free: 9.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.00466/0.3469, allocations: 2.118 MB / 408.8 MB, free: 8.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.566e-05/0.347, allocations: 134.3 kB / 408.9 MB, free: 7.859 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009308/0.3479, allocations: 0.7311 MB / 409.7 MB, free: 7.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.195e-05/0.348, allocations: 37.7 kB / 409.7 MB, free: 7.098 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002812/0.3483, allocations: 379.9 kB / 410.1 MB, free: 6.723 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001838/0.3485, allocations: 193.3 kB / 410.3 MB, free: 6.531 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002541/0.3487, allocations: 150.6 kB / 410.4 MB, free: 6.379 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.3489, allocations: 386.8 kB / 410.8 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005221/0.3494, allocations: 316.7 kB / 411.1 MB, free: 5.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006528/0.3501, allocations: 0.507 MB / 411.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.3512, allocations: 0.7778 MB / 412.4 MB, free: 4.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3512, allocations: 0 / 412.4 MB, free: 4.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00171/0.3529, allocations: 0.9954 MB / 413.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.353, allocations: 7.938 kB / 413.4 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.353, allocations: 11.88 kB / 413.4 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001722/0.3547, allocations: 305.8 kB / 413.7 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005764/0.3553, allocations: 139.8 kB / 413.8 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/0.3565, allocations: 1.305 MB / 415.1 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007781/0.3573, allocations: 47.81 kB / 415.2 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.409e-05/0.3574, allocations: 39.98 kB / 415.2 MB, free: 1.324 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00082/0.3582, allocations: 481.9 kB / 415.7 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006635/0.3589, allocations: 0.5084 MB / 416.2 MB, free: 256 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001105/0.36, allocations: 0.7475 MB / 417 MB, free: 15.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.574e-06/0.36, allocations: 4 kB / 417 MB, free: 15.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001712/0.3617, allocations: 0.9411 MB / 417.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.3618, allocations: 11.98 kB / 417.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.3618, allocations: 12.06 kB / 417.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.363, allocations: 181.6 kB / 418.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007127/0.3637, allocations: 171.7 kB / 418.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008513/0.3646, allocations: 1.175 MB / 419.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007669/0.3653, allocations: 47.91 kB / 419.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.143e-05/0.3654, allocations: 39.98 kB / 419.5 MB, free: 12.77 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.0002926/0.3657, allocations: 233.2 kB / 419.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002264/0.366, allocations: 82.97 kB / 419.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/0.3679, allocations: 0.9783 MB / 420.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.3679, allocations: 8 kB / 420.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.3679, allocations: 0 / 420.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.976e-06/0.3679, allocations: 3.984 kB / 420.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00311/0.3711, allocations: 1.755 MB / 422.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.3711, allocations: 0 / 422.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004528/0.3715, allocations: 103.9 kB / 422.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001174/0.3727, allocations: 237.6 kB / 422.9 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.799e-05/0.3728, allocations: 12 kB / 422.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/0.3738, allocations: 1.273 MB / 424.2 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.3739, allocations: 0 / 424.2 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/0.376, allocations: 1.32 MB / 425.5 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003465/0.3764, allocations: 156.2 kB / 425.7 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002293/0.3766, allocations: 23.84 kB / 425.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006251/0.3772, allocations: 40.03 kB / 425.7 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.3774, allocations: 52.56 kB / 425.8 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-05/0.3775, allocations: 35.97 kB / 425.8 MB, free: 6.293 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007841/0.3783, allocations: 0.5107 MB / 426.3 MB, free: 5.789 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3783, allocations: 0 / 426.3 MB, free: 5.789 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001952/0.3802, allocations: 0.5935 MB / 426.9 MB, free: 5.195 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.001665/0.3819, allocations: 0.5085 MB / 427.4 MB, free: 4.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00255/0.3845, allocations: 1.204 MB / 428.6 MB, free: 3.488 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.3845, allocations: 4.062 kB / 428.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00071/0.3852, allocations: 391 kB / 429 MB, free: 3.105 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00226/0.3875, allocations: 400.3 kB / 429.4 MB, free: 2.719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003217/0.3907, allocations: 1.921 MB / 431.3 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006692/0.3914, allocations: 0.9839 MB / 432.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000344/0.3918, allocations: 87.41 kB / 432.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3918, allocations: 4 kB / 432.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of Templates: time 0.03356/0.4253, allocations: 23.15 MB / 455.6 MB, free: 8.594 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.0.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