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.001219/0.001219, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001292/0.001292, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 62.56 kB / 306.9 MB, free: 1.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09758/0.09892, allocations: 50.53 MB / 357.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.1925/0.2915, allocations: 18.45 MB / 375.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008853/0.3004, allocations: 6.401 MB / 382.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001374/0.3019, allocations: 31.59 kB / 382.3 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.303, allocations: 289 kB / 382.6 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002979/0.306, allocations: 1.002 MB / 383.6 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004237/0.3102, allocations: 1.355 MB / 385 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00429/0.3145, allocations: 3.068 MB / 388 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008866/0.3154, allocations: 423.8 kB / 388.4 MB, free: 6.277 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001478/0.3169, allocations: 0.6312 MB / 389.1 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001218/0.3181, allocations: 0.741 MB / 389.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.3183, allocations: 34.5 kB / 389.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002756/0.3211, allocations: 1.115 MB / 391 MB, free: 5.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003353/0.3214, allocations: 227.9 kB / 391.2 MB, free: 5.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005432/0.322, allocations: 380.5 kB / 391.6 MB, free: 5.137 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00185/0.3238, allocations: 1.23 MB / 392.8 MB, free: 4.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3238, allocations: 0 / 392.8 MB, free: 4.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3239, allocations: 0 / 392.8 MB, free: 4.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.3239, allocations: 1.406 kB / 392.8 MB, free: 4.359 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.002385/0.3263, allocations: 1.176 MB / 394 MB, free: 3.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.3263, allocations: 9 kB / 394 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003433/0.3267, allocations: 81.12 kB / 394.1 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007586/0.3274, allocations: 0.5572 MB / 394.6 MB, free: 2.926 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.161e-05/0.3275, allocations: 36.83 kB / 394.6 MB, free: 2.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.82e-05/0.3276, allocations: 51.27 kB / 394.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.3287, allocations: 0.7387 MB / 395.4 MB, free: 2.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.3288, allocations: 5.031 kB / 395.4 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.548e-05/0.3288, allocations: 21.61 kB / 395.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.749e-05/0.3289, allocations: 42.72 kB / 395.5 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.33, allocations: 0.6989 MB / 396.2 MB, free: 2.039 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.004083/0.3341, allocations: 3.037 MB / 399.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008143/0.3349, allocations: 493 kB / 399.7 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004088/0.3353, allocations: 266.7 kB / 400 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002733/0.3356, allocations: 344.1 kB / 400.3 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.3357, allocations: 43 kB / 400.4 MB, free: 14.61 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 2.625e-06/0.3357, allocations: 0 / 400.4 MB, free: 14.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.005741/0.3414, allocations: 2.299 MB / 402.7 MB, free: 13.24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/0.3415, allocations: 89.92 kB / 402.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009067/0.3424, allocations: 0.6171 MB / 403.4 MB, free: 12.78 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.173e-05/0.3425, allocations: 43.27 kB / 403.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.3428, allocations: 331.4 kB / 403.7 MB, free: 12.44 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000196/0.343, allocations: 203.5 kB / 403.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002409/0.3433, allocations: 145.9 kB / 404.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.3434, allocations: 383.1 kB / 404.4 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005121/0.3439, allocations: 311.7 kB / 404.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006592/0.3446, allocations: 480.4 kB / 405.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.3457, allocations: 0.7455 MB / 406 MB, free: 10.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.3457, allocations: 1.781 kB / 406 MB, free: 10.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001738/0.3475, allocations: 0.9757 MB / 406.9 MB, free: 9.969 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.3475, allocations: 8 kB / 406.9 MB, free: 9.961 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.3475, allocations: 7.984 kB / 407 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002661/0.3502, allocations: 404.3 kB / 407.3 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006376/0.3509, allocations: 151.8 kB / 407.5 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000955/0.3518, allocations: 0.8248 MB / 408.3 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000755/0.3526, allocations: 44.03 kB / 408.4 MB, free: 8.516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.993e-05/0.3527, allocations: 43.86 kB / 408.4 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007466/0.3535, allocations: 473.9 kB / 408.9 MB, free: 8.008 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006081/0.3541, allocations: 470.8 kB / 409.3 MB, free: 7.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001005/0.3551, allocations: 0.7243 MB / 410.1 MB, free: 6.691 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.92e-06/0.3551, allocations: 4 kB / 410.1 MB, free: 6.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001593/0.3567, allocations: 0.905 MB / 411 MB, free: 5.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.3567, allocations: 8 kB / 411 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.3568, allocations: 7.984 kB / 411 MB, free: 5.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002012/0.3588, allocations: 284.6 kB / 411.3 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006158/0.3594, allocations: 151.8 kB / 411.4 MB, free: 5.328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006631/0.3601, allocations: 0.7167 MB / 412.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007341/0.3608, allocations: 39.97 kB / 412.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.151e-05/0.3609, allocations: 31.98 kB / 412.2 MB, free: 4.516 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.0003088/0.3612, allocations: 235.6 kB / 412.4 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.3615, allocations: 71.16 kB / 412.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/0.3631, allocations: 0.8671 MB / 413.4 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.3632, allocations: 8 kB / 413.4 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.3632, allocations: 3.938 kB / 413.4 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/0.3632, allocations: 3.984 kB / 413.4 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003124/0.3663, allocations: 1.711 MB / 415.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.3663, allocations: 0 / 415.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005296/0.3669, allocations: 107.9 kB / 415.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001615/0.3685, allocations: 336.6 kB / 415.5 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.998e-05/0.3686, allocations: 15.94 kB / 415.5 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007895/0.3694, allocations: 0.8138 MB / 416.3 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.3694, allocations: 0 / 416.3 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002028/0.3714, allocations: 1.295 MB / 417.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003298/0.3718, allocations: 145 kB / 417.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002171/0.372, allocations: 16 kB / 417.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006325/0.3726, allocations: 35.95 kB / 417.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.3728, allocations: 52.48 kB / 417.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.897e-05/0.3729, allocations: 23.98 kB / 417.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006156/0.3735, allocations: 451.1 kB / 418.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3735, allocations: 3.938 kB / 418.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001881/0.3754, allocations: 0.5349 MB / 418.9 MB, free: 13.67 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.001324/0.3767, allocations: 451.6 kB / 419.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002428/0.3791, allocations: 1.185 MB / 420.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/0.3792, allocations: 8.188 kB / 420.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007105/0.3799, allocations: 394.8 kB / 420.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/0.3818, allocations: 344.2 kB / 421.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002974/0.3848, allocations: 1.867 MB / 423.1 MB, free: 9.402 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005246/0.3854, allocations: 0.9637 MB / 424.1 MB, free: 8.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002392/0.3856, allocations: 67.42 kB / 424.1 MB, free: 8.348 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3856, allocations: 0 / 424.1 MB, free: 8.348 MB / 334.1 MB Notification: Performance of Templates: time 0.02691/0.4125, allocations: 17.62 MB / 441.8 MB, free: 6.789 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