Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.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_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001568/0.001568, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002037/0.002037, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 63.88 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.277, allocations: 50.53 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01715/0.2942, allocations: 17.65 MB / 427.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0092/0.3034, allocations: 6.042 MB / 433.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009193/0.3044, allocations: 23.88 kB / 433.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009296/0.3053, allocations: 325.9 kB / 434 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002678/0.308, allocations: 1.038 MB / 435 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003768/0.3118, allocations: 1.655 MB / 436.7 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00249/0.3143, allocations: 1.941 MB / 438.6 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006797/0.315, allocations: 477.7 kB / 439.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001255/0.3163, allocations: 0.7436 MB / 439.8 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009685/0.3173, allocations: 0.7279 MB / 440.5 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.3174, allocations: 71.94 kB / 440.6 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002102/0.3195, allocations: 1.131 MB / 441.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003283/0.3198, allocations: 259.3 kB / 442 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004542/0.3203, allocations: 410.1 kB / 442.4 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002323/0.3226, allocations: 1.692 MB / 444.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3227, allocations: 0 / 444.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3227, allocations: 0 / 444.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.3227, allocations: 0 / 444.1 MB, free: 15.32 MB / 366.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.002141/0.3248, allocations: 1.18 MB / 445.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.3249, allocations: 8.031 kB / 445.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002884/0.3252, allocations: 87.98 kB / 445.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009032/0.3261, allocations: 0.5791 MB / 445.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.301e-05/0.3261, allocations: 40.98 kB / 446 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.909e-05/0.3262, allocations: 51.98 kB / 446 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.3274, allocations: 0.7333 MB / 446.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.3274, allocations: 3.984 kB / 446.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.761e-05/0.3275, allocations: 27.98 kB / 446.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.169e-05/0.3275, allocations: 40.97 kB / 446.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.3286, allocations: 0.6987 MB / 447.5 MB, free: 11.74 MB / 366.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.004263/0.3329, allocations: 3.027 MB / 450.6 MB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007818/0.3337, allocations: 492.9 kB / 451 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003859/0.3341, allocations: 274 kB / 451.3 MB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000282/0.3344, allocations: 340.8 kB / 451.6 MB, free: 7.328 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.3344, allocations: 39 kB / 451.7 MB, free: 7.281 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.595e-06/0.3344, allocations: 0 / 451.7 MB, free: 7.281 MB / 366.1 MB Notification: Performance of matching and sorting (n=58): time 0.005209/0.3397, allocations: 2.303 MB / 454 MB, free: 4.906 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/0.3397, allocations: 89.61 kB / 454.1 MB, free: 4.801 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007663/0.3405, allocations: 0.6211 MB / 454.7 MB, free: 4.168 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.593e-05/0.3406, allocations: 41.7 kB / 454.7 MB, free: 4.121 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/0.3408, allocations: 328.4 kB / 455 MB, free: 3.793 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/0.341, allocations: 209 kB / 455.3 MB, free: 3.586 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00023/0.3412, allocations: 142.6 kB / 455.4 MB, free: 3.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.3414, allocations: 382.8 kB / 455.8 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004804/0.3419, allocations: 312.6 kB / 456.1 MB, free: 2.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006037/0.3425, allocations: 481.3 kB / 456.5 MB, free: 2.211 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.3435, allocations: 0.7444 MB / 457.3 MB, free: 1.402 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3436, allocations: 4 kB / 457.3 MB, free: 1.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001563/0.3451, allocations: 0.9693 MB / 458.3 MB, free: 428 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.3452, allocations: 8 kB / 458.3 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.3452, allocations: 4 kB / 458.3 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002441/0.3476, allocations: 409 kB / 458.7 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000636/0.3483, allocations: 155.8 kB / 458.8 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009365/0.3492, allocations: 0.8255 MB / 459.6 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005254/0.3498, allocations: 35.92 kB / 459.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.22e-05/0.3498, allocations: 31.98 kB / 459.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006951/0.3505, allocations: 473.9 kB / 460.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000578/0.3511, allocations: 474.1 kB / 460.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001015/0.3521, allocations: 0.728 MB / 461.4 MB, free: 13.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.422e-06/0.3522, allocations: 4 kB / 461.4 MB, free: 13.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001518/0.3537, allocations: 0.9126 MB / 462.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.3537, allocations: 10.97 kB / 462.3 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.3537, allocations: 4 kB / 462.3 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0019/0.3556, allocations: 269 kB / 462.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005941/0.3562, allocations: 163.7 kB / 462.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006154/0.3569, allocations: 0.7123 MB / 463.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005298/0.3574, allocations: 35.97 kB / 463.5 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.788e-05/0.3575, allocations: 28 kB / 463.5 MB, free: 10.97 MB / 382.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.0002754/0.3577, allocations: 226.4 kB / 463.7 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.3579, allocations: 83.02 kB / 463.8 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001544/0.3594, allocations: 0.8654 MB / 464.7 MB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.3595, allocations: 11.83 kB / 464.7 MB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.3595, allocations: 0 / 464.7 MB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.3595, allocations: 3.984 kB / 464.7 MB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002689/0.3622, allocations: 1.71 MB / 466.4 MB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.3622, allocations: 4 kB / 466.4 MB, free: 8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005004/0.3627, allocations: 103.9 kB / 466.5 MB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001458/0.3642, allocations: 320.6 kB / 466.8 MB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.574e-05/0.3642, allocations: 15.94 kB / 466.8 MB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008339/0.3651, allocations: 0.8255 MB / 467.6 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3651, allocations: 0 / 467.6 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001859/0.367, allocations: 1.288 MB / 468.9 MB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.3672, allocations: 152.2 kB / 469.1 MB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.3673, allocations: 12.09 kB / 469.1 MB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/0.3677, allocations: 31.91 kB / 469.1 MB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.3679, allocations: 48.5 kB / 469.2 MB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.458e-05/0.3679, allocations: 27.92 kB / 469.2 MB, free: 5.113 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005078/0.3685, allocations: 447 kB / 469.6 MB, free: 4.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3685, allocations: 4 kB / 469.6 MB, free: 4.676 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001376/0.3698, allocations: 0.5349 MB / 470.2 MB, free: 4.141 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.0009271/0.3708, allocations: 446.8 kB / 470.6 MB, free: 3.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002269/0.3731, allocations: 1.199 MB / 471.8 MB, free: 2.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.3731, allocations: 4 kB / 471.8 MB, free: 2.496 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00065/0.3737, allocations: 398.8 kB / 472.2 MB, free: 2.109 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/0.3753, allocations: 364.6 kB / 472.6 MB, free: 1.762 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.3778, allocations: 1.607 MB / 474.2 MB, free: 116 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005803/0.3784, allocations: 0.9635 MB / 475.1 MB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002323/0.3786, allocations: 79.36 kB / 475.2 MB, free: 15.05 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3786, allocations: 0 / 475.2 MB, free: 15.05 MB / 398.1 MB Notification: Performance of Templates: time 0.02492/0.4035, allocations: 17.71 MB / 492.9 MB, free: 13.41 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches