Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.758/1.758, allocations: 171.2 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004835/0.0004836, allocations: 8 kB / 233.9 MB, free: 296 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1027, allocations: 38.78 MB / 272.6 MB, free: 9.426 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.3027/0.4054, allocations: 31.69 MB / 304.3 MB, free: 14.38 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03444/0.4399, allocations: 13.48 MB / 317.8 MB, free: 3.953 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002997/0.443, allocations: 67.66 kB / 317.9 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003893/0.4469, allocations: 0.6081 MB / 318.5 MB, free: 3.379 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01144/0.4584, allocations: 2.082 MB / 320.6 MB, free: 1.703 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01579/0.4742, allocations: 2.913 MB / 323.5 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008762/0.483, allocations: 2.902 MB / 326.4 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003052/0.4861, allocations: 1.032 MB / 327.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005206/0.4914, allocations: 1.363 MB / 328.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003909/0.4953, allocations: 1.149 MB / 329.9 MB, free: 9.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006939/0.4961, allocations: 84 kB / 330 MB, free: 9.348 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008307/0.5044, allocations: 2.216 MB / 332.2 MB, free: 7.129 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001368/0.5058, allocations: 0.5103 MB / 332.7 MB, free: 6.617 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009382/0.5068, allocations: 356.8 kB / 333.1 MB, free: 6.262 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007541/0.5143, allocations: 2.888 MB / 336 MB, free: 3.367 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.5144, allocations: 0 / 336 MB, free: 3.367 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.5144, allocations: 4 kB / 336 MB, free: 3.363 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.439e-05/0.5145, allocations: 4 kB / 336 MB, free: 3.359 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.007384/0.5219, allocations: 2.081 MB / 338.1 MB, free: 1.223 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.522, allocations: 12.03 kB / 338.1 MB, free: 1.211 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/0.5231, allocations: 205.2 kB / 338.3 MB, free: 1.012 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003217/0.5263, allocations: 1.063 MB / 339.3 MB, free: 15.89 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001484/0.5265, allocations: 102.2 kB / 339.4 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004147/0.5269, allocations: 112 kB / 339.6 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005316/0.5322, allocations: 1.936 MB / 341.5 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.594e-05/0.5323, allocations: 0 / 341.5 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002545/0.5326, allocations: 47.98 kB / 341.5 MB, free: 13.6 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000259/0.5329, allocations: 118.3 kB / 341.6 MB, free: 13.48 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005758/0.5386, allocations: 1.988 MB / 343.6 MB, free: 11.49 MB / 282.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.0196/0.5583, allocations: 7.914 MB / 351.6 MB, free: 3.098 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003382/0.5617, allocations: 1.153 MB / 352.7 MB, free: 1.934 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007976/0.5697, allocations: 3.384 MB / 356.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.872e-05/0.5698, allocations: 51.56 kB / 356.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=119): time 4.559e-06/0.5699, allocations: 4 kB / 356.1 MB, free: 14.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=134): time 0.02239/0.5923, allocations: 5.361 MB / 361.5 MB, free: 8.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.5924, allocations: 171.5 kB / 361.7 MB, free: 8.523 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00282/0.5953, allocations: 1.331 MB / 363 MB, free: 7.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003701/0.5957, allocations: 57.7 kB / 363.1 MB, free: 7.117 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008746/0.5966, allocations: 0.7338 MB / 363.8 MB, free: 6.375 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007551/0.5973, allocations: 473.3 kB / 364.3 MB, free: 5.906 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.5975, allocations: 40 kB / 364.3 MB, free: 5.867 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002303/0.5978, allocations: 377.8 kB / 364.7 MB, free: 5.492 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002294/0.6001, allocations: 0.7495 MB / 365.4 MB, free: 4.742 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002723/0.6028, allocations: 1.227 MB / 366.6 MB, free: 3.312 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002643/0.6055, allocations: 0.8842 MB / 367.5 MB, free: 2.434 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.287e-05/0.6055, allocations: 4 kB / 367.5 MB, free: 2.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.007204/0.6128, allocations: 2.428 MB / 370 MB, free: 15.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004618/0.6133, allocations: 0.5025 MB / 370.5 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/0.6133, allocations: 12 kB / 370.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01312/0.6264, allocations: 1.142 MB / 371.6 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002767/0.6292, allocations: 359.5 kB / 372 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004161/0.6334, allocations: 2.877 MB / 374.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002591/0.6361, allocations: 139.9 kB / 375 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002735/0.6364, allocations: 79.98 kB / 375.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.6364, allocations: 4.625 kB / 375.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006295/0.6427, allocations: 2.159 MB / 377.2 MB, free: 8.395 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.654e-05/0.6428, allocations: 15.98 kB / 377.2 MB, free: 8.379 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01123/0.654, allocations: 0.8592 MB / 378.1 MB, free: 7.508 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002859/0.6569, allocations: 383.3 kB / 378.5 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003303/0.6603, allocations: 2.631 MB / 381.1 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002435/0.6627, allocations: 136.1 kB / 381.2 MB, free: 4.266 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003202/0.6631, allocations: 83.98 kB / 381.3 MB, free: 4.184 MB / 314.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.001318/0.6644, allocations: 0.5257 MB / 381.8 MB, free: 3.645 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004697/0.6649, allocations: 162 kB / 382 MB, free: 3.484 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007771/0.6727, allocations: 2.334 MB / 384.3 MB, free: 1.125 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.578e-05/0.6728, allocations: 11.92 kB / 384.3 MB, free: 1.113 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.6728, allocations: 8 kB / 384.3 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006905/0.6735, allocations: 262.8 kB / 384.6 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005417/0.6741, allocations: 35.98 kB / 384.6 MB, free: 0.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001844/0.6759, allocations: 99.78 kB / 384.7 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004416/0.6764, allocations: 137.7 kB / 384.9 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0087/0.6851, allocations: 2.215 MB / 387.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.007738/0.6929, allocations: 2.725 MB / 389.8 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002052/0.695, allocations: 0.7885 MB / 390.6 MB, free: 10.8 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001953/0.697, allocations: 0.8914 MB / 391.5 MB, free: 9.91 MB / 330.7 MB Notification: Performance of Backend: time 8.22e-07/0.697, allocations: 0 / 391.5 MB, free: 9.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01129/0.7083, allocations: 3.201 MB / 394.7 MB, free: 6.719 MB / 330.7 MB Notification: Performance of SimCode: time 0.01072/0.719, allocations: 4.731 MB / 399.4 MB, free: 1.941 MB / 330.7 MB Notification: Performance of Templates: time 0.3258/1.045, allocations: 46.85 MB / 446.3 MB, free: 101.7 MB / 346.7 MB