Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 107.2 kB / 17.74 MB, free: 5.359 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.001215/0.001215, allocations: 184.1 kB / 18.67 MB, free: 4.441 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.445/1.445, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 51.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2958, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01748/0.3134, allocations: 17.53 MB / 418.9 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008856/0.3223, allocations: 6.025 MB / 425 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001023/0.3233, allocations: 23.88 kB / 425 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.3243, allocations: 329.9 kB / 425.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002665/0.3271, allocations: 1.026 MB / 426.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004145/0.3312, allocations: 1.64 MB / 428 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002803/0.334, allocations: 1.945 MB / 429.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009678/0.335, allocations: 473.7 kB / 430.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001631/0.3367, allocations: 0.7398 MB / 431.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001432/0.3381, allocations: 0.7278 MB / 431.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002922/0.3384, allocations: 64 kB / 431.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002649/0.3411, allocations: 1.112 MB / 433 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004929/0.3416, allocations: 271.2 kB / 433.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008834/0.3425, allocations: 398.1 kB / 433.7 MB, free: 8.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00333/0.3458, allocations: 1.679 MB / 435.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3459, allocations: 4 kB / 435.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.3459, allocations: 0 / 435.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.764e-05/0.3459, allocations: 7.938 kB / 435.4 MB, free: 6.801 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002993/0.3489, allocations: 1.172 MB / 436.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.349, allocations: 11.97 kB / 436.5 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004158/0.3494, allocations: 91.98 kB / 436.6 MB, free: 5.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.3504, allocations: 0.5753 MB / 437.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.894e-05/0.3505, allocations: 37 kB / 437.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.3506, allocations: 47.98 kB / 437.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.3519, allocations: 0.7372 MB / 438 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.3519, allocations: 4 kB / 438 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.921e-05/0.352, allocations: 19.98 kB / 438.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.882e-05/0.3521, allocations: 44.97 kB / 438.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/0.3532, allocations: 0.6987 MB / 438.8 MB, free: 3.238 MB / 350.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.004568/0.3578, allocations: 3.042 MB / 441.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007833/0.3586, allocations: 488.5 kB / 442.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000387/0.359, allocations: 270 kB / 442.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002774/0.3593, allocations: 341.3 kB / 442.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/0.3594, allocations: 46.94 kB / 443 MB, free: 14.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.424e-06/0.3594, allocations: 0 / 443 MB, free: 14.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=58): time 0.005609/0.365, allocations: 2.296 MB / 445.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.3651, allocations: 89.61 kB / 445.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008302/0.3659, allocations: 0.6211 MB / 446 MB, free: 11.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.747e-05/0.366, allocations: 37.7 kB / 446 MB, free: 11.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002623/0.3663, allocations: 328.4 kB / 446.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001762/0.3665, allocations: 209.1 kB / 446.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002337/0.3667, allocations: 142.6 kB / 446.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3669, allocations: 378.8 kB / 447 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005391/0.3674, allocations: 312.7 kB / 447.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005986/0.368, allocations: 477.3 kB / 447.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.3691, allocations: 0.7482 MB / 448.6 MB, free: 8.906 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.3691, allocations: 0 / 448.6 MB, free: 8.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001668/0.3708, allocations: 0.9734 MB / 449.5 MB, free: 7.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.3709, allocations: 8 kB / 449.5 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.3709, allocations: 4 kB / 449.5 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00245/0.3733, allocations: 412.7 kB / 449.9 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006501/0.374, allocations: 155.7 kB / 450.1 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009623/0.375, allocations: 0.8294 MB / 450.9 MB, free: 6.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006123/0.3756, allocations: 39.98 kB / 451 MB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.574e-05/0.3757, allocations: 39.92 kB / 451 MB, free: 6.418 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007892/0.3765, allocations: 473.9 kB / 451.5 MB, free: 5.953 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005849/0.3771, allocations: 466.1 kB / 451.9 MB, free: 5.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001032/0.3781, allocations: 0.7321 MB / 452.7 MB, free: 4.625 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.701e-06/0.3782, allocations: 0 / 452.7 MB, free: 4.625 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001635/0.3798, allocations: 0.905 MB / 453.6 MB, free: 3.715 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.3798, allocations: 8 kB / 453.6 MB, free: 3.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.3799, allocations: 4 kB / 453.6 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002001/0.3819, allocations: 276.7 kB / 453.8 MB, free: 3.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006291/0.3825, allocations: 155.8 kB / 454 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006528/0.3832, allocations: 0.7085 MB / 454.7 MB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005997/0.3838, allocations: 35.97 kB / 454.7 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.55e-05/0.3839, allocations: 32 kB / 454.8 MB, free: 2.477 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[1],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 (84): * 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: 1 * 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): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000329/0.3842, allocations: 228.7 kB / 455 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001956/0.3844, allocations: 79 kB / 455.1 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001556/0.386, allocations: 0.8544 MB / 455.9 MB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/0.386, allocations: 11.98 kB / 455.9 MB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.386, allocations: 4 kB / 455.9 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3861, allocations: 0 / 455.9 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003096/0.3892, allocations: 1.714 MB / 457.7 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.3892, allocations: 0 / 457.7 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007078/0.3899, allocations: 111.9 kB / 457.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001459/0.3914, allocations: 320.5 kB / 458.1 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.119e-05/0.3915, allocations: 23.92 kB / 458.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001032/0.3925, allocations: 0.8175 MB / 458.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.3925, allocations: 4.031 kB / 458.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002022/0.3946, allocations: 1.292 MB / 460.2 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002537/0.3948, allocations: 152.2 kB / 460.4 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.395, allocations: 12 kB / 460.4 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004911/0.3955, allocations: 31.97 kB / 460.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.3956, allocations: 44.5 kB / 460.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.023e-05/0.3957, allocations: 31.92 kB / 460.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006778/0.3964, allocations: 447 kB / 460.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3964, allocations: 0 / 460.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001724/0.3981, allocations: 0.5271 MB / 461.4 MB, free: 11.65 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001255/0.3994, allocations: 442.9 kB / 461.9 MB, free: 11.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002535/0.402, allocations: 1.2 MB / 463.1 MB, free: 10.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.402, allocations: 4.062 kB / 463.1 MB, free: 10 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007348/0.4027, allocations: 398.8 kB / 463.5 MB, free: 9.613 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001852/0.4046, allocations: 362.7 kB / 463.8 MB, free: 9.266 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003007/0.4076, allocations: 1.611 MB / 465.4 MB, free: 7.617 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005898/0.4082, allocations: 0.9635 MB / 466.4 MB, free: 6.625 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002456/0.4085, allocations: 67.42 kB / 466.5 MB, free: 6.562 MB / 382.1 MB Notification: Performance of SimCode: time 2.455e-06/0.4085, allocations: 4 kB / 466.5 MB, free: 6.559 MB / 382.1 MB Notification: Performance of Templates: time 0.02667/0.4352, allocations: 17.58 MB / 484 MB, free: 5.066 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches