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.001335/0.001335, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001643/0.001643, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.634/1.634, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 65.3 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1229, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.1676/0.2905, allocations: 17.63 MB / 376.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007212/0.2978, allocations: 6.045 MB / 382.6 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005957/0.2984, allocations: 25.31 kB / 382.6 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000808/0.2993, allocations: 333.3 kB / 382.9 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002232/0.3015, allocations: 1.048 MB / 384 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004031/0.3056, allocations: 1.651 MB / 385.6 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002252/0.3078, allocations: 1.937 MB / 387.6 MB, free: 6.652 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006337/0.3085, allocations: 484.7 kB / 388.1 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009559/0.3094, allocations: 0.7222 MB / 388.8 MB, free: 6.168 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008098/0.3102, allocations: 0.7386 MB / 389.5 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.3104, allocations: 65.44 kB / 389.6 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002047/0.3124, allocations: 1.134 MB / 390.7 MB, free: 5.555 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002358/0.3127, allocations: 262.6 kB / 391 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003525/0.313, allocations: 409.8 kB / 391.4 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001828/0.3149, allocations: 1.692 MB / 393.1 MB, free: 4.289 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3149, allocations: 0 / 393.1 MB, free: 4.289 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3149, allocations: 5.344 kB / 393.1 MB, free: 4.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.969e-06/0.3149, allocations: 0 / 393.1 MB, free: 4.285 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001901/0.3168, allocations: 1.174 MB / 394.2 MB, free: 3.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.3169, allocations: 13 kB / 394.3 MB, free: 3.355 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002895/0.3171, allocations: 88.92 kB / 394.3 MB, free: 3.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007967/0.318, allocations: 0.5705 MB / 394.9 MB, free: 2.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.748e-05/0.318, allocations: 37.97 kB / 394.9 MB, free: 2.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.407e-05/0.3181, allocations: 47.02 kB / 395 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.3192, allocations: 0.7384 MB / 395.7 MB, free: 2.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.3192, allocations: 1.094 kB / 395.7 MB, free: 2.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.171e-05/0.3193, allocations: 25.02 kB / 395.8 MB, free: 2.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-05/0.3193, allocations: 42.94 kB / 395.8 MB, free: 2.305 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.3205, allocations: 0.695 MB / 396.5 MB, free: 1.961 MB / 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.003832/0.3243, allocations: 3.045 MB / 399.5 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008049/0.3251, allocations: 494.2 kB / 400 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004168/0.3255, allocations: 266.9 kB / 400.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002957/0.3258, allocations: 340.7 kB / 400.6 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.3259, allocations: 49.58 kB / 400.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 1.974e-06/0.3259, allocations: 0 / 400.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.005214/0.3311, allocations: 2.293 MB / 403 MB, free: 13.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.3312, allocations: 88.36 kB / 403 MB, free: 13.06 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007245/0.3319, allocations: 0.626 MB / 403.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.812e-05/0.332, allocations: 37.3 kB / 403.7 MB, free: 12.64 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002265/0.3322, allocations: 328.3 kB / 404 MB, free: 12.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001608/0.3324, allocations: 207.9 kB / 404.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000215/0.3326, allocations: 145 kB / 404.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.3328, allocations: 378.8 kB / 404.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004708/0.3333, allocations: 317.2 kB / 405.1 MB, free: 11.56 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005793/0.3338, allocations: 477.5 kB / 405.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009872/0.3348, allocations: 0.7451 MB / 406.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3349, allocations: 0 / 406.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001557/0.3364, allocations: 0.9709 MB / 407.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.3365, allocations: 8 kB / 407.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.3365, allocations: 4 kB / 407.2 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002383/0.3389, allocations: 420.5 kB / 407.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005893/0.3395, allocations: 149 kB / 407.8 MB, free: 9.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008802/0.3404, allocations: 0.8254 MB / 408.6 MB, free: 8.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005174/0.3409, allocations: 32.05 kB / 408.7 MB, free: 8.711 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.777e-05/0.341, allocations: 39.86 kB / 408.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006592/0.3416, allocations: 475.5 kB / 409.2 MB, free: 8.207 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000574/0.3422, allocations: 470.1 kB / 409.6 MB, free: 7.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009841/0.3432, allocations: 0.7359 MB / 410.4 MB, free: 6.879 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.695e-06/0.3432, allocations: 0 / 410.4 MB, free: 6.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.00144/0.3447, allocations: 0.9051 MB / 411.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/0.3447, allocations: 8 kB / 411.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.3447, allocations: 4 kB / 411.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0018/0.3465, allocations: 273.2 kB / 411.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005836/0.3471, allocations: 159.8 kB / 411.7 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005635/0.3477, allocations: 0.7132 MB / 412.4 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004769/0.3482, allocations: 27.98 kB / 412.4 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.271e-05/0.3482, allocations: 35.98 kB / 412.5 MB, free: 4.723 MB / 318.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.0001993/0.3484, allocations: 220.1 kB / 412.7 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.3486, allocations: 71.16 kB / 412.8 MB, free: 4.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001506/0.3501, allocations: 0.866 MB / 413.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.3501, allocations: 8 kB / 413.6 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.3501, allocations: 0 / 413.6 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.3501, allocations: 9.109 kB / 413.6 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002707/0.3528, allocations: 1.714 MB / 415.4 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3529, allocations: 96 / 415.4 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005039/0.3534, allocations: 111.9 kB / 415.5 MB, free: 1.648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001376/0.3548, allocations: 328.5 kB / 415.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.482e-05/0.3548, allocations: 15.94 kB / 415.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007477/0.3556, allocations: 0.8144 MB / 416.6 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.3556, allocations: 64 / 416.6 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.3574, allocations: 1.299 MB / 417.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001517/0.3576, allocations: 140.3 kB / 418 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.3577, allocations: 24.06 kB / 418.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004201/0.3581, allocations: 23.98 kB / 418.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.3582, allocations: 52.48 kB / 418.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.707e-05/0.3583, allocations: 27.92 kB / 418.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004961/0.3588, allocations: 447 kB / 418.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3588, allocations: 0 / 418.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001351/0.3602, allocations: 0.5427 MB / 419.2 MB, free: 13.88 MB / 334.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.0008879/0.3611, allocations: 438.8 kB / 419.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.3632, allocations: 1.193 MB / 420.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3632, allocations: 128 / 420.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00067/0.3639, allocations: 406.8 kB / 421.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.3654, allocations: 373.1 kB / 421.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002325/0.3677, allocations: 1.569 MB / 423.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005519/0.3683, allocations: 0.9635 MB / 424.1 MB, free: 8.914 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007734/0.3691, allocations: 286 kB / 424.3 MB, free: 8.633 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.3693, allocations: 63.42 kB / 424.4 MB, free: 8.57 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3693, allocations: 7.938 kB / 424.4 MB, free: 8.562 MB / 334.1 MB Notification: Performance of Templates: time 0.0293/0.3986, allocations: 20.41 MB / 444.8 MB, free: 4.297 MB / 350.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 -s gbode -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