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.001121/0.001121, allocations: 96.83 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001428/0.001428, allocations: 198 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002107/0.0002108, allocations: 8 kB / 306.6 MB, free: 1.398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08987/0.0901, allocations: 51.49 MB / 358.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.1664/0.2566, allocations: 15.31 MB / 373.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008289/0.2649, allocations: 5.518 MB / 378.9 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000623/0.2656, allocations: 31.8 kB / 378.9 MB, free: 9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008755/0.2665, allocations: 292.5 kB / 379.2 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002846/0.2693, allocations: 0.8543 MB / 380.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004071/0.2734, allocations: 1.251 MB / 381.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002116/0.2755, allocations: 1.076 MB / 382.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007251/0.2763, allocations: 403.1 kB / 382.8 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.2774, allocations: 0.5542 MB / 383.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007327/0.2781, allocations: 470.6 kB / 383.8 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.2782, allocations: 34.06 kB / 383.8 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002925/0.2812, allocations: 1.027 MB / 384.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003061/0.2815, allocations: 212.6 kB / 385.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002585/0.2818, allocations: 164.7 kB / 385.2 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001734/0.2835, allocations: 1.213 MB / 386.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.2835, allocations: 0 / 386.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.2835, allocations: 0 / 386.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.2835, allocations: 4 kB / 386.5 MB, free: 8.113 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.001767/0.2853, allocations: 1.044 MB / 387.5 MB, free: 7.379 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.2854, allocations: 9.031 kB / 387.5 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002801/0.2856, allocations: 83.94 kB / 387.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008058/0.2865, allocations: 0.5304 MB / 388.1 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.769e-05/0.2865, allocations: 35.78 kB / 388.2 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.315e-05/0.2866, allocations: 52.81 kB / 388.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.2876, allocations: 0.7282 MB / 388.9 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.2877, allocations: 7.906 kB / 388.9 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.324e-05/0.2877, allocations: 19.72 kB / 389 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.269e-05/0.2878, allocations: 40.92 kB / 389 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.2889, allocations: 0.6973 MB / 389.7 MB, free: 6.387 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.003656/0.2925, allocations: 3.05 MB / 392.7 MB, free: 3.812 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006724/0.2932, allocations: 494.5 kB / 393.2 MB, free: 3.555 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001878/0.2934, allocations: 342.1 kB / 393.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.2935, allocations: 42.53 kB / 393.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 1.953e-06/0.2935, allocations: 5.094 kB / 393.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.004927/0.2984, allocations: 2.312 MB / 395.9 MB, free: 1.754 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/0.2985, allocations: 88.06 kB / 396 MB, free: 1.656 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006847/0.2991, allocations: 0.6165 MB / 396.6 MB, free: 1.285 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.415e-05/0.2992, allocations: 39.36 kB / 396.7 MB, free: 1.246 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.2994, allocations: 335.6 kB / 397 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.2995, allocations: 201.9 kB / 397.2 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.673e-05/0.2996, allocations: 18.72 kB / 397.2 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.119e-05/0.2996, allocations: 384 kB / 397.6 MB, free: 412 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000427/0.3001, allocations: 295.7 kB / 397.9 MB, free: 264 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005088/0.3006, allocations: 471.4 kB / 398.3 MB, free: 15.9 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005259/0.3011, allocations: 353 kB / 398.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3011, allocations: 1.219 kB / 398.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001507/0.3027, allocations: 0.9577 MB / 399.6 MB, free: 15.22 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005813/0.3032, allocations: 1.83 MB / 401.5 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/0.3033, allocations: 5.875 kB / 401.5 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002545/0.3058, allocations: 422.5 kB / 401.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005929/0.3064, allocations: 156.7 kB / 402 MB, free: 13.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007856/0.3072, allocations: 0.8208 MB / 402.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005685/0.3078, allocations: 45.55 kB / 402.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.234e-05/0.3079, allocations: 35.86 kB / 402.9 MB, free: 12.31 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/0.3079, allocations: 4.812 kB / 402.9 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0012/0.3091, allocations: 0.8085 MB / 403.8 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3091, allocations: 6.312 kB / 403.8 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001971/0.3111, allocations: 289.7 kB / 404 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000553/0.3116, allocations: 156.8 kB / 404.2 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005701/0.3122, allocations: 0.7165 MB / 404.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005025/0.3127, allocations: 52.38 kB / 405 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.688e-05/0.3128, allocations: 32.5 kB / 405 MB, free: 11.05 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 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003828/0.3132, allocations: 317.4 kB / 405.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.3133, allocations: 74.86 kB / 405.4 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001438/0.3148, allocations: 0.8651 MB / 406.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.3148, allocations: 10.78 kB / 406.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.3148, allocations: 0 / 406.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.3148, allocations: 3.984 kB / 406.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002613/0.3174, allocations: 1.718 MB / 408 MB, free: 9.027 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.3174, allocations: 0 / 408 MB, free: 9.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004972/0.3179, allocations: 111.8 kB / 408.1 MB, free: 8.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001576/0.3195, allocations: 348.6 kB / 408.4 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.581e-05/0.3196, allocations: 15.98 kB / 408.4 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007239/0.3203, allocations: 0.8184 MB / 409.3 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3203, allocations: 3.938 kB / 409.3 MB, free: 7.711 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001832/0.3222, allocations: 1.302 MB / 410.6 MB, free: 6.363 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000211/0.3224, allocations: 156.1 kB / 410.7 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.3225, allocations: 12 kB / 410.7 MB, free: 6.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004671/0.323, allocations: 39.97 kB / 410.8 MB, free: 6.141 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.3231, allocations: 60.45 kB / 410.8 MB, free: 6.082 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.347e-05/0.3232, allocations: 31.92 kB / 410.9 MB, free: 6.051 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005193/0.3237, allocations: 443 kB / 411.3 MB, free: 5.625 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3237, allocations: 0 / 411.3 MB, free: 5.625 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001545/0.3253, allocations: 0.531 MB / 411.8 MB, free: 5.094 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008676/0.3261, allocations: 449.5 kB / 412.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00201/0.3282, allocations: 1.165 MB / 413.4 MB, free: 3.512 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3282, allocations: 0 / 413.4 MB, free: 3.512 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006188/0.3288, allocations: 388.8 kB / 413.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/0.3303, allocations: 333.1 kB / 414.1 MB, free: 2.809 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.3326, allocations: 1.87 MB / 416 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004731/0.3331, allocations: 0.9793 MB / 417 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009073/0.334, allocations: 285.8 kB / 417.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.3341, allocations: 71.42 kB / 417.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3342, allocations: 0 / 417.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of Templates: time 0.02981/0.364, allocations: 18.81 MB / 436.1 MB, free: 12.91 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches