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.001228/0.001228, allocations: 108.3 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.001194/0.001194, allocations: 191 kB / 18.67 MB, free: 4.434 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.306/1.306, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001094, allocations: 47.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.275, allocations: 49.44 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01741/0.2925, allocations: 17.53 MB / 418.9 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008885/0.3014, allocations: 6.015 MB / 424.9 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.3025, allocations: 31.81 kB / 425 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001175/0.3038, allocations: 322 kB / 425.3 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002876/0.3067, allocations: 1.034 MB / 426.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003958/0.3106, allocations: 1.644 MB / 428 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002556/0.3132, allocations: 1.933 MB / 429.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006762/0.3139, allocations: 485.6 kB / 430.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001177/0.3151, allocations: 0.7436 MB / 431.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001012/0.3161, allocations: 0.7201 MB / 431.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001274/0.3162, allocations: 68 kB / 431.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002206/0.3185, allocations: 1.108 MB / 433 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002861/0.3188, allocations: 267.2 kB / 433.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004459/0.3192, allocations: 402.1 kB / 433.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002333/0.3216, allocations: 1.691 MB / 435.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3216, allocations: 0 / 435.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3216, allocations: 0 / 435.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.3216, allocations: 0 / 435.4 MB, free: 6.82 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.002146/0.3238, allocations: 1.172 MB / 436.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/0.3238, allocations: 16.02 kB / 436.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002996/0.3241, allocations: 84 kB / 436.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008379/0.325, allocations: 0.5675 MB / 437.2 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.1e-05/0.325, allocations: 48.97 kB / 437.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.77e-05/0.3251, allocations: 43.94 kB / 437.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.3262, allocations: 0.7411 MB / 438 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.3263, allocations: 7.922 kB / 438 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.286e-05/0.3263, allocations: 23.92 kB / 438.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.279e-05/0.3264, allocations: 48.97 kB / 438.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.3274, allocations: 0.6987 MB / 438.8 MB, free: 3.246 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.004167/0.3316, allocations: 3.034 MB / 441.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007205/0.3324, allocations: 492.5 kB / 442.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003667/0.3327, allocations: 266 kB / 442.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002572/0.333, allocations: 340.9 kB / 442.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.333, allocations: 42.98 kB / 443 MB, free: 14.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.655e-06/0.3331, allocations: 0 / 443 MB, free: 14.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=58): time 0.004934/0.338, allocations: 2.3 MB / 445.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.347e-05/0.3381, allocations: 81.67 kB / 445.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006978/0.3388, allocations: 0.6211 MB / 446 MB, free: 11.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.2e-05/0.3389, allocations: 41.7 kB / 446 MB, free: 11.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/0.3391, allocations: 332.4 kB / 446.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/0.3393, allocations: 197.1 kB / 446.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.3395, allocations: 146.6 kB / 446.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3396, allocations: 378.8 kB / 447 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004734/0.3401, allocations: 312.7 kB / 447.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005656/0.3407, allocations: 477.3 kB / 447.8 MB, free: 9.746 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009833/0.3417, allocations: 0.756 MB / 448.6 MB, free: 8.922 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3417, allocations: 0 / 448.6 MB, free: 8.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001474/0.3432, allocations: 0.9693 MB / 449.5 MB, free: 7.941 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.3432, allocations: 4 kB / 449.5 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.3432, allocations: 8 kB / 449.5 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002424/0.3457, allocations: 416.9 kB / 449.9 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005956/0.3463, allocations: 143.8 kB / 450.1 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009228/0.3472, allocations: 0.841 MB / 450.9 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005237/0.3477, allocations: 39.91 kB / 451 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.265e-05/0.3478, allocations: 28 kB / 451 MB, free: 6.445 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007231/0.3485, allocations: 481.9 kB / 451.5 MB, free: 5.973 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005484/0.3491, allocations: 466.2 kB / 451.9 MB, free: 5.449 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009741/0.3501, allocations: 0.7281 MB / 452.6 MB, free: 4.648 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.418e-06/0.3501, allocations: 4 kB / 452.7 MB, free: 4.645 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001418/0.3515, allocations: 0.9126 MB / 453.6 MB, free: 3.727 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.3516, allocations: 11.98 kB / 453.6 MB, free: 3.715 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3516, allocations: 4 kB / 453.6 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001812/0.3534, allocations: 264.9 kB / 453.8 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005607/0.354, allocations: 151.8 kB / 454 MB, free: 3.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005684/0.3545, allocations: 0.7085 MB / 454.7 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005009/0.355, allocations: 35.97 kB / 454.7 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.756e-05/0.3551, allocations: 35.98 kB / 454.8 MB, free: 2.496 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.0002505/0.3554, allocations: 230 kB / 455 MB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.3555, allocations: 83.06 kB / 455.1 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00145/0.357, allocations: 0.8542 MB / 455.9 MB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.357, allocations: 8 kB / 455.9 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.357, allocations: 4 kB / 455.9 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.357, allocations: 3.984 kB / 455.9 MB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002554/0.3596, allocations: 1.698 MB / 457.6 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3596, allocations: 8 kB / 457.6 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004814/0.3601, allocations: 111.9 kB / 457.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/0.3615, allocations: 320.5 kB / 458.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.375e-05/0.3615, allocations: 23.86 kB / 458.1 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007473/0.3623, allocations: 0.8174 MB / 458.9 MB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3623, allocations: 0 / 458.9 MB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001791/0.3641, allocations: 1.296 MB / 460.2 MB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001986/0.3643, allocations: 144.2 kB / 460.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.3644, allocations: 19.98 kB / 460.4 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004245/0.3648, allocations: 23.98 kB / 460.4 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.365, allocations: 52.58 kB / 460.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.9e-05/0.365, allocations: 31.86 kB / 460.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005202/0.3656, allocations: 443 kB / 460.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3656, allocations: 0 / 460.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00144/0.367, allocations: 0.5349 MB / 461.4 MB, free: 11.67 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.001014/0.3681, allocations: 450.6 kB / 461.9 MB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002534/0.3706, allocations: 1.192 MB / 463.1 MB, free: 10.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.3706, allocations: 0 / 463.1 MB, free: 10.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006679/0.3713, allocations: 402.8 kB / 463.5 MB, free: 9.633 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.3729, allocations: 359.7 kB / 463.8 MB, free: 9.289 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.3755, allocations: 1.621 MB / 465.4 MB, free: 7.633 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005788/0.3761, allocations: 0.9635 MB / 466.4 MB, free: 6.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002192/0.3763, allocations: 67.42 kB / 466.5 MB, free: 6.578 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3763, allocations: 0 / 466.5 MB, free: 6.578 MB / 382.1 MB Notification: Performance of Templates: time 0.02602/0.4023, allocations: 17.66 MB / 484.1 MB, free: 4.992 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