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.0008668/0.0008668, allocations: 96.34 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 203.6 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002697/0.0002698, allocations: 8 kB / 308.4 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1034, allocations: 51.51 MB / 359.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.2185/0.322, allocations: 17.88 MB / 377.8 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009379/0.3314, allocations: 6.296 MB / 384.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001079/0.3325, allocations: 29.78 kB / 384.1 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000992/0.3335, allocations: 290.2 kB / 384.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00293/0.3365, allocations: 0.9909 MB / 385.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004442/0.3409, allocations: 1.367 MB / 386.8 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004567/0.3455, allocations: 3.065 MB / 389.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008557/0.3464, allocations: 421.1 kB / 390.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001437/0.3478, allocations: 0.6269 MB / 390.9 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001149/0.349, allocations: 0.7347 MB / 391.6 MB, free: 6.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.3491, allocations: 33.44 kB / 391.6 MB, free: 6.316 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002948/0.3521, allocations: 1.108 MB / 392.7 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003094/0.3524, allocations: 228.8 kB / 393 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004925/0.3529, allocations: 408.4 kB / 393.4 MB, free: 5.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00198/0.3549, allocations: 1.214 MB / 394.6 MB, free: 4.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3549, allocations: 3.938 kB / 394.6 MB, free: 4.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3549, allocations: 1.469 kB / 394.6 MB, free: 4.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.3549, allocations: 0 / 394.6 MB, free: 4.805 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.002106/0.357, allocations: 1.038 MB / 395.6 MB, free: 3.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.3571, allocations: 8.938 kB / 395.6 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003058/0.3574, allocations: 82.16 kB / 395.7 MB, free: 3.934 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000715/0.3581, allocations: 0.5516 MB / 396.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.085e-05/0.3582, allocations: 41.17 kB / 396.3 MB, free: 3.445 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.193e-05/0.3583, allocations: 51.69 kB / 396.3 MB, free: 3.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.3595, allocations: 0.7359 MB / 397.1 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.3595, allocations: 3.938 kB / 397.1 MB, free: 2.961 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.587e-05/0.3596, allocations: 21.5 kB / 397.1 MB, free: 2.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-05/0.3596, allocations: 43.22 kB / 397.1 MB, free: 2.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.3607, allocations: 0.6945 MB / 397.8 MB, free: 2.582 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.3645, allocations: 3.056 MB / 400.9 MB, free: 15.97 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008191/0.3653, allocations: 490.2 kB / 401.4 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004511/0.3658, allocations: 270.9 kB / 401.6 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003159/0.3661, allocations: 343.5 kB / 402 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.3661, allocations: 39.22 kB / 402 MB, free: 15.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 2.595e-06/0.3661, allocations: 0 / 402 MB, free: 15.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.005484/0.3716, allocations: 2.319 MB / 404.3 MB, free: 13.78 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.342e-05/0.3718, allocations: 83.2 kB / 404.4 MB, free: 13.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000816/0.3726, allocations: 0.6176 MB / 405 MB, free: 13.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.604e-05/0.3727, allocations: 44.67 kB / 405.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002802/0.3729, allocations: 329.9 kB / 405.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/0.3731, allocations: 201.4 kB / 405.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.3732, allocations: 72.64 kB / 405.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.3734, allocations: 376.6 kB / 406 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004792/0.3739, allocations: 308.5 kB / 406.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000631/0.3745, allocations: 481 kB / 406.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/0.3757, allocations: 0.744 MB / 407.6 MB, free: 11.38 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3757, allocations: 1.344 kB / 407.6 MB, free: 11.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00167/0.3774, allocations: 0.9794 MB / 408.5 MB, free: 10.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001742/0.3776, allocations: 228.9 kB / 408.8 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3776, allocations: 4 kB / 408.8 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002742/0.3803, allocations: 428.3 kB / 409.2 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006168/0.381, allocations: 155.7 kB / 409.3 MB, free: 9.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009384/0.3819, allocations: 0.8293 MB / 410.2 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006561/0.3826, allocations: 46.03 kB / 410.2 MB, free: 8.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8e-05/0.3827, allocations: 28 kB / 410.2 MB, free: 8.676 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.448e-06/0.3827, allocations: 4 kB / 410.2 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001355/0.384, allocations: 0.824 MB / 411.1 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3841, allocations: 4 kB / 411.1 MB, free: 7.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002036/0.3861, allocations: 289.1 kB / 411.3 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005778/0.3867, allocations: 159.7 kB / 411.5 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000657/0.3874, allocations: 0.7084 MB / 412.2 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006342/0.388, allocations: 51.94 kB / 412.3 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.271e-05/0.3881, allocations: 35.98 kB / 412.3 MB, free: 6.578 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.0004906/0.3886, allocations: 315.5 kB / 412.6 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.3887, allocations: 75.14 kB / 412.7 MB, free: 6.188 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001561/0.3903, allocations: 0.8784 MB / 413.6 MB, free: 5.309 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.3903, allocations: 15.94 kB / 413.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3903, allocations: 0 / 413.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.3903, allocations: 3.984 kB / 413.6 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002759/0.3931, allocations: 1.711 MB / 415.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.3931, allocations: 0 / 415.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004896/0.3936, allocations: 111.8 kB / 415.4 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001559/0.3952, allocations: 352.6 kB / 415.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.282e-05/0.3952, allocations: 16 kB / 415.8 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007816/0.396, allocations: 0.8176 MB / 416.6 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.396, allocations: 0 / 416.6 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/0.398, allocations: 1.291 MB / 417.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002659/0.3983, allocations: 160.2 kB / 418 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.3984, allocations: 15.98 kB / 418 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004641/0.3989, allocations: 35.89 kB / 418.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.399, allocations: 60.42 kB / 418.1 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-05/0.3991, allocations: 27.92 kB / 418.2 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005583/0.3997, allocations: 447 kB / 418.6 MB, free: 136 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3997, allocations: 0 / 418.6 MB, free: 136 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.001632/0.4013, allocations: 0.531 MB / 419.1 MB, free: 15.6 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.001052/0.4024, allocations: 442.7 kB / 419.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002279/0.4046, allocations: 1.177 MB / 420.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/0.4047, allocations: 8 kB / 420.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006895/0.4054, allocations: 388.2 kB / 421.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/0.4071, allocations: 350.4 kB / 421.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002807/0.41, allocations: 1.99 MB / 423.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005808/0.4106, allocations: 0.9637 MB / 424.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000236/0.4108, allocations: 71.36 kB / 424.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4108, allocations: 4 kB / 424.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of Templates: time 0.02501/0.4358, allocations: 17.52 MB / 442 MB, free: 8.703 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/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