Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.722/1.722, allocations: 171.2 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003729, allocations: 12 kB / 233.2 MB, free: 3.039 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1297, allocations: 38.76 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.2324/0.3622, allocations: 31.69 MB / 303.6 MB, free: 8.785 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02168/0.384, allocations: 13.49 MB / 317.1 MB, free: 8.277 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002387/0.3864, allocations: 63.53 kB / 317.2 MB, free: 8.242 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002205/0.3886, allocations: 0.6009 MB / 317.8 MB, free: 7.984 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007364/0.396, allocations: 2.087 MB / 319.9 MB, free: 7.328 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0105/0.4066, allocations: 2.926 MB / 322.8 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005116/0.4117, allocations: 2.898 MB / 325.7 MB, free: 4.852 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001864/0.4136, allocations: 1.036 MB / 326.7 MB, free: 4.215 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003197/0.4169, allocations: 1.367 MB / 328.1 MB, free: 3.531 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002548/0.4194, allocations: 1.149 MB / 329.2 MB, free: 2.922 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004241/0.4199, allocations: 85.75 kB / 329.3 MB, free: 2.922 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006051/0.426, allocations: 2.208 MB / 331.5 MB, free: 1.926 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001036/0.427, allocations: 0.5119 MB / 332 MB, free: 1.613 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007864/0.4279, allocations: 358 kB / 332.4 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006036/0.4339, allocations: 2.895 MB / 335.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.472e-06/0.434, allocations: 0 / 335.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.378e-06/0.434, allocations: 0 / 335.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.555e-05/0.434, allocations: 4 kB / 335.3 MB, free: 15.43 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005933/0.44, allocations: 2.096 MB / 337.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.44, allocations: 8.031 kB / 337.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009276/0.441, allocations: 201.8 kB / 337.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002639/0.4436, allocations: 1.044 MB / 338.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.4438, allocations: 98.25 kB / 338.7 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003362/0.4441, allocations: 123.9 kB / 338.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004498/0.4487, allocations: 1.936 MB / 340.8 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.592e-05/0.4487, allocations: 7.938 kB / 340.8 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002221/0.449, allocations: 55.91 kB / 340.8 MB, free: 9.652 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002067/0.4492, allocations: 114.3 kB / 341 MB, free: 9.539 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004992/0.4542, allocations: 1.984 MB / 342.9 MB, free: 7.547 MB / 266.7 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.01727/0.4715, allocations: 7.908 MB / 350.9 MB, free: 15.16 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002871/0.4744, allocations: 1.164 MB / 352 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007398/0.4819, allocations: 3.376 MB / 355.4 MB, free: 10.36 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.016e-05/0.482, allocations: 51.48 kB / 355.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of pre-optimization done (n=119): time 4.556e-06/0.482, allocations: 0 / 355.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of matching and sorting (n=134): time 0.01703/0.499, allocations: 5.373 MB / 360.8 MB, free: 4.812 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.4992, allocations: 171.5 kB / 361 MB, free: 4.605 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002591/0.5018, allocations: 1.323 MB / 362.3 MB, free: 3.27 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002961/0.5021, allocations: 65.69 kB / 362.4 MB, free: 3.199 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007455/0.5029, allocations: 0.7002 MB / 363.1 MB, free: 2.492 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006977/0.5036, allocations: 469.3 kB / 363.5 MB, free: 2.027 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.5038, allocations: 40 kB / 363.6 MB, free: 1.988 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002608/0.504, allocations: 382.8 kB / 363.9 MB, free: 1.605 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001954/0.506, allocations: 0.7495 MB / 364.7 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002473/0.5085, allocations: 1.242 MB / 365.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002321/0.5109, allocations: 0.8842 MB / 366.8 MB, free: 14.53 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.622e-05/0.5109, allocations: 4 kB / 366.8 MB, free: 14.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.006221/0.5171, allocations: 2.339 MB / 369.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005035/0.5177, allocations: 0.4993 MB / 369.7 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.122e-05/0.5177, allocations: 16 kB / 369.7 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009103/0.5268, allocations: 1.135 MB / 370.8 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001932/0.5288, allocations: 355.5 kB / 371.2 MB, free: 9.961 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003874/0.5327, allocations: 2.877 MB / 374 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00205/0.5348, allocations: 135.8 kB / 374.2 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000373/0.5352, allocations: 83.98 kB / 374.2 MB, free: 6.766 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.5353, allocations: 4 kB / 374.3 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005683/0.541, allocations: 2.162 MB / 376.4 MB, free: 4.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.183e-05/0.5411, allocations: 12 kB / 376.4 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007326/0.5484, allocations: 0.8504 MB / 377.3 MB, free: 3.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002042/0.5505, allocations: 379.4 kB / 377.6 MB, free: 3.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003171/0.5537, allocations: 2.608 MB / 380.3 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/0.5553, allocations: 132 kB / 380.4 MB, free: 0.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002791/0.5557, allocations: 87.97 kB / 380.5 MB, free: 424 kB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (210): * Single equations (assignments): 206 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.00129/0.557, allocations: 0.5178 MB / 381 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004683/0.5575, allocations: 162 kB / 381.1 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006858/0.5643, allocations: 2.344 MB / 383.5 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.733e-05/0.5644, allocations: 16 kB / 383.5 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.5644, allocations: 0 / 383.5 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.781e-05/0.5645, allocations: 11.97 kB / 383.5 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01063/0.5751, allocations: 3.971 MB / 387.5 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-05/0.5752, allocations: 0 / 387.5 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/0.5767, allocations: 239.8 kB / 387.7 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005748/0.5825, allocations: 0.9284 MB / 388.6 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003115/0.5829, allocations: 43.97 kB / 388.7 MB, free: 8.047 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00365/0.5865, allocations: 2.826 MB / 391.5 MB, free: 5.117 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/0.5866, allocations: 11.97 kB / 391.5 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00768/0.5943, allocations: 3.128 MB / 394.7 MB, free: 1.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006955/0.595, allocations: 266.9 kB / 394.9 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005004/0.5955, allocations: 39.98 kB / 395 MB, free: 1.609 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/0.597, allocations: 99.78 kB / 395.1 MB, free: 1.512 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004851/0.5975, allocations: 145.1 kB / 395.2 MB, free: 1.367 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000209/0.5978, allocations: 55.98 kB / 395.3 MB, free: 1.312 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001843/0.5996, allocations: 0.8953 MB / 396.1 MB, free: 428 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.106e-06/0.5996, allocations: 4 kB / 396.2 MB, free: 424 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.004689/0.6043, allocations: 1.246 MB / 397.4 MB, free: 15.17 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.level,tank3.medium.T,tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002701/0.6071, allocations: 0.8791 MB / 398.3 MB, free: 14.29 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.008738/0.6159, allocations: 3.05 MB / 401.3 MB, free: 11.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.073e-05/0.6159, allocations: 3.938 kB / 401.3 MB, free: 11.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003006/0.6189, allocations: 1.07 MB / 402.4 MB, free: 10.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004031/0.623, allocations: 0.6606 MB / 403.1 MB, free: 9.523 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008977/0.632, allocations: 4.17 MB / 407.2 MB, free: 5.312 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001611/0.6337, allocations: 1.426 MB / 408.7 MB, free: 3.859 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008509/0.6345, allocations: 159.4 kB / 408.8 MB, free: 3.703 MB / 330.7 MB Notification: Performance of SimCode: time 1.892e-06/0.6346, allocations: 0 / 408.8 MB, free: 3.703 MB / 330.7 MB Notification: Performance of Templates: time 0.2714/0.906, allocations: 57.84 MB / 466.6 MB, free: 122 MB / 362.7 MB