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.001018/0.001018, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.0009621/0.0009621, allocations: 182 kB / 17.56 MB, free: 6.203 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.47/1.47, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002992/0.0002991, allocations: 12.44 kB / 301.4 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09218/0.0925, allocations: 50.42 MB / 351.8 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01939/0.1119, allocations: 17.76 MB / 369.6 MB, free: 1.621 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1715/0.2835, allocations: 6.257 MB / 375.9 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007699/0.2843, allocations: 33.53 kB / 375.9 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007517/0.2851, allocations: 291.1 kB / 376.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002204/0.2873, allocations: 0.9785 MB / 377.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003735/0.291, allocations: 1.364 MB / 378.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003617/0.2947, allocations: 3.052 MB / 381.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007371/0.2954, allocations: 417 kB / 382 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00118/0.2966, allocations: 0.6149 MB / 382.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.2976, allocations: 0.7427 MB / 383.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.2978, allocations: 33.34 kB / 383.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002409/0.3002, allocations: 1.09 MB / 384.5 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002587/0.3004, allocations: 233.5 kB / 384.7 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003718/0.3008, allocations: 398.5 kB / 385.1 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002301/0.3031, allocations: 1.636 MB / 386.7 MB, free: 7.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3032, allocations: 0 / 386.7 MB, free: 7.645 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3032, allocations: 0 / 386.7 MB, free: 7.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.836e-05/0.3032, allocations: 0 / 386.7 MB, free: 7.645 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.001898/0.3051, allocations: 1.034 MB / 387.7 MB, free: 6.871 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.3051, allocations: 8.438 kB / 387.8 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002787/0.3054, allocations: 90 kB / 387.8 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006978/0.3061, allocations: 0.5469 MB / 388.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.126e-05/0.3062, allocations: 40.03 kB / 388.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.405e-05/0.3063, allocations: 50.78 kB / 388.5 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.3074, allocations: 0.7415 MB / 389.2 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.3074, allocations: 1.219 kB / 389.2 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.49e-05/0.3075, allocations: 18.19 kB / 389.2 MB, free: 6.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.924e-05/0.3076, allocations: 42.5 kB / 389.3 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.3087, allocations: 0.7027 MB / 390 MB, free: 5.746 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.003661/0.3123, allocations: 3.032 MB / 393 MB, free: 3.191 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006412/0.313, allocations: 489.7 kB / 393.5 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003607/0.3134, allocations: 265.9 kB / 393.8 MB, free: 2.805 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001878/0.3136, allocations: 351.7 kB / 394.1 MB, free: 2.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.3136, allocations: 39.16 kB / 394.1 MB, free: 2.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.164e-06/0.3136, allocations: 3.938 kB / 394.1 MB, free: 2.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.00498/0.3186, allocations: 2.325 MB / 396.5 MB, free: 1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.3186, allocations: 88.48 kB / 396.5 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006473/0.3193, allocations: 0.6218 MB / 397.2 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.458e-05/0.3194, allocations: 38.2 kB / 397.2 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.3195, allocations: 329.4 kB / 397.5 MB, free: 212 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.3197, allocations: 209 kB / 397.7 MB, free: 32 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.3198, allocations: 68.86 kB / 397.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.3199, allocations: 381.2 kB / 398.2 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004982/0.3204, allocations: 308.9 kB / 398.5 MB, free: 15.46 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005754/0.321, allocations: 480.6 kB / 398.9 MB, free: 15.11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009993/0.322, allocations: 0.7461 MB / 399.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.3221, allocations: 0 / 399.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001536/0.3236, allocations: 0.9732 MB / 400.7 MB, free: 14.1 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001589/0.3238, allocations: 227.9 kB / 400.9 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3238, allocations: 5.656 kB / 400.9 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002671/0.3265, allocations: 429.3 kB / 401.3 MB, free: 13.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005998/0.3271, allocations: 150.8 kB / 401.5 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008789/0.328, allocations: 0.8303 MB / 402.3 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006371/0.3286, allocations: 49.44 kB / 402.3 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.348e-05/0.3287, allocations: 29.22 kB / 402.4 MB, free: 12.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.516e-06/0.3287, allocations: 3.406 kB / 402.4 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001299/0.33, allocations: 0.8164 MB / 403.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.33, allocations: 10.97 kB / 403.2 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00212/0.3322, allocations: 288.5 kB / 403.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006068/0.3328, allocations: 159.8 kB / 403.6 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006516/0.3334, allocations: 0.7084 MB / 404.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006162/0.3341, allocations: 44.03 kB / 404.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.311e-05/0.3341, allocations: 32 kB / 404.4 MB, free: 11.2 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.0004772/0.3346, allocations: 324.3 kB / 404.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.3348, allocations: 71.16 kB / 404.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001583/0.3364, allocations: 0.8734 MB / 405.7 MB, free: 9.922 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.3364, allocations: 15.88 kB / 405.7 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3364, allocations: 0 / 405.7 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/0.3364, allocations: 3.984 kB / 405.7 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002831/0.3392, allocations: 1.719 MB / 407.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.688e-06/0.3393, allocations: 0 / 407.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005005/0.3398, allocations: 107.9 kB / 407.5 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001587/0.3414, allocations: 356.6 kB / 407.9 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.604e-05/0.3414, allocations: 12 kB / 407.9 MB, free: 7.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007651/0.3422, allocations: 0.8239 MB / 408.7 MB, free: 6.816 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3422, allocations: 0 / 408.7 MB, free: 6.816 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00198/0.3442, allocations: 1.287 MB / 410 MB, free: 5.508 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002774/0.3445, allocations: 160.1 kB / 410.1 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001487/0.3446, allocations: 15.98 kB / 410.2 MB, free: 5.316 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000523/0.3452, allocations: 32.08 kB / 410.2 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.3453, allocations: 56.47 kB / 410.2 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.6e-05/0.3454, allocations: 27.98 kB / 410.3 MB, free: 5.203 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005874/0.346, allocations: 447 kB / 410.7 MB, free: 4.773 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.346, allocations: 0 / 410.7 MB, free: 4.773 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001714/0.3477, allocations: 0.5271 MB / 411.2 MB, free: 4.246 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.00122/0.3489, allocations: 446.3 kB / 411.7 MB, free: 3.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002395/0.3513, allocations: 1.181 MB / 412.9 MB, free: 2.641 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3514, allocations: 0 / 412.9 MB, free: 2.641 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000694/0.3521, allocations: 387 kB / 413.2 MB, free: 2.266 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.3541, allocations: 346.7 kB / 413.6 MB, free: 1.93 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002945/0.357, allocations: 1.95 MB / 415.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005593/0.3576, allocations: 0.9598 MB / 416.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001043/0.3587, allocations: 288.7 kB / 416.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/0.3589, allocations: 67.42 kB / 416.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3589, allocations: 3.938 kB / 416.8 MB, free: 14.6 MB / 334.1 MB Notification: Performance of Templates: time 0.0326/0.3915, allocations: 19.23 MB / 436.1 MB, free: 11.57 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","/var/lib/jenkins/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