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.0009992/0.0009992, allocations: 97.78 kB / 17.31 MB, free: 5.938 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.0009676/0.0009679, allocations: 182.5 kB / 18.21 MB, free: 5.414 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.243/1.243, allocations: 223.3 MB / 242.3 MB, free: 16 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002672/0.0002673, allocations: 8.719 kB / 302.1 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09759/0.09788, allocations: 50.42 MB / 352.5 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01853/0.1164, allocations: 17.76 MB / 370.3 MB, free: 1.824 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1876/0.3041, allocations: 6.258 MB / 376.5 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001328/0.3055, allocations: 29.72 kB / 376.6 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.3066, allocations: 284 kB / 376.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003196/0.3098, allocations: 0.979 MB / 377.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004598/0.3144, allocations: 1.372 MB / 379.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004111/0.3186, allocations: 3.052 MB / 382.2 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009521/0.3195, allocations: 418.7 kB / 382.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001416/0.321, allocations: 0.618 MB / 383.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001425/0.3224, allocations: 0.7394 MB / 384 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001933/0.3226, allocations: 34.34 kB / 384 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002741/0.3254, allocations: 1.092 MB / 385.1 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003685/0.3257, allocations: 219.5 kB / 385.3 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006941/0.3264, allocations: 400.8 kB / 385.7 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001862/0.3283, allocations: 1.216 MB / 386.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3283, allocations: 5.094 kB / 387 MB, free: 7.824 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3283, allocations: 4 kB / 387 MB, free: 7.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.554e-05/0.3284, allocations: 0 / 387 MB, free: 7.82 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.002336/0.3307, allocations: 1.029 MB / 388 MB, free: 7.047 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.3308, allocations: 8.562 kB / 388 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003975/0.3312, allocations: 85.69 kB / 388.1 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008469/0.332, allocations: 0.553 MB / 388.6 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.145e-05/0.3321, allocations: 37.22 kB / 388.7 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.3322, allocations: 49.44 kB / 388.7 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.3334, allocations: 0.7431 MB / 389.5 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.3334, allocations: 0 / 389.5 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.806e-05/0.3335, allocations: 21.55 kB / 389.5 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.948e-05/0.3336, allocations: 45.41 kB / 389.5 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.3347, allocations: 0.6896 MB / 390.2 MB, free: 6.094 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.00375/0.3385, allocations: 3.043 MB / 393.3 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000687/0.3392, allocations: 494.5 kB / 393.7 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003487/0.3395, allocations: 263 kB / 394 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000181/0.3397, allocations: 345.9 kB / 394.3 MB, free: 2.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.3397, allocations: 45.16 kB / 394.4 MB, free: 2.703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 1.934e-06/0.3397, allocations: 0 / 394.4 MB, free: 2.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.004922/0.3447, allocations: 2.318 MB / 396.7 MB, free: 1.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/0.3447, allocations: 92.53 kB / 396.8 MB, free: 1.238 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007274/0.3455, allocations: 0.6137 MB / 397.4 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.065e-05/0.3455, allocations: 43.3 kB / 397.4 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.3457, allocations: 331.9 kB / 397.8 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.3458, allocations: 207.8 kB / 398 MB, free: 384 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.094e-05/0.3459, allocations: 68.98 kB / 398 MB, free: 332 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.346, allocations: 375.8 kB / 398.4 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004741/0.3465, allocations: 308.6 kB / 398.7 MB, free: 15.81 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005606/0.3471, allocations: 483.9 kB / 399.2 MB, free: 15.45 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009886/0.3481, allocations: 0.7382 MB / 399.9 MB, free: 14.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3481, allocations: 2.812 kB / 399.9 MB, free: 14.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001461/0.3496, allocations: 0.969 MB / 400.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001495/0.3497, allocations: 238.2 kB / 401.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.3497, allocations: 6.688 kB / 401.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002555/0.3523, allocations: 424.3 kB / 401.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005449/0.3529, allocations: 153.8 kB / 401.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008579/0.3537, allocations: 0.8305 MB / 402.5 MB, free: 13.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006141/0.3544, allocations: 50.69 kB / 402.6 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.717e-05/0.3544, allocations: 32 kB / 402.6 MB, free: 13.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.175e-06/0.3545, allocations: 3.375 kB / 402.6 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001282/0.3557, allocations: 0.8199 MB / 403.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.3558, allocations: 4.125 kB / 403.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00199/0.3578, allocations: 283 kB / 403.7 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000569/0.3583, allocations: 167.7 kB / 403.9 MB, free: 12.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006284/0.359, allocations: 0.7045 MB / 404.6 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005654/0.3596, allocations: 48.03 kB / 404.6 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.58e-05/0.3596, allocations: 35.98 kB / 404.7 MB, free: 11.54 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.0004123/0.3601, allocations: 322.4 kB / 405 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.3602, allocations: 71.16 kB / 405 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/0.3617, allocations: 0.8765 MB / 405.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.3617, allocations: 7.938 kB / 405.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3617, allocations: 4 kB / 405.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3618, allocations: 3.984 kB / 405.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002768/0.3645, allocations: 1.717 MB / 407.6 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3646, allocations: 3.938 kB / 407.7 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000485/0.365, allocations: 107.9 kB / 407.8 MB, free: 8.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001563/0.3666, allocations: 356.6 kB / 408.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.792e-05/0.3667, allocations: 15.98 kB / 408.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007818/0.3675, allocations: 0.8137 MB / 408.9 MB, free: 7.168 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.3675, allocations: 0 / 408.9 MB, free: 7.168 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/0.3694, allocations: 1.29 MB / 410.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002652/0.3697, allocations: 164.1 kB / 410.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.3698, allocations: 27.86 kB / 410.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004873/0.3703, allocations: 31.98 kB / 410.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.3705, allocations: 52.48 kB / 410.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.703e-05/0.3705, allocations: 23.98 kB / 410.5 MB, free: 5.547 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000562/0.3711, allocations: 451 kB / 411 MB, free: 5.113 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3711, allocations: 0 / 411 MB, free: 5.113 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001676/0.3728, allocations: 0.5232 MB / 411.5 MB, free: 4.59 MB / 318.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.001254/0.374, allocations: 438.3 kB / 411.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002278/0.3763, allocations: 1.195 MB / 413.1 MB, free: 2.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.3764, allocations: 0 / 413.1 MB, free: 2.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000666/0.377, allocations: 387 kB / 413.5 MB, free: 2.605 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/0.3788, allocations: 337.9 kB / 413.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002879/0.3817, allocations: 1.986 MB / 415.8 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005874/0.3823, allocations: 0.9598 MB / 416.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002282/0.3826, allocations: 71.42 kB / 416.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3826, allocations: 0 / 416.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of Templates: time 0.02519/0.4078, allocations: 17.38 MB / 434.2 MB, free: 13.91 MB / 350.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