Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.808/1.808, allocations: 194.8 MB / 211.6 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003619, allocations: 16 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07832/0.0787, allocations: 44.51 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.04435/0.1231, allocations: 31.71 MB / 340.1 MB, free: 1.23 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02486/0.148, allocations: 13.51 MB / 353.6 MB, free: 3.703 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002032/0.1501, allocations: 63.44 kB / 353.6 MB, free: 3.641 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002056/0.1522, allocations: 0.6023 MB / 354.2 MB, free: 3.035 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00726/0.1594, allocations: 2.068 MB / 356.3 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01031/0.1698, allocations: 2.919 MB / 359.2 MB, free: 14.04 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005635/0.1754, allocations: 2.89 MB / 362.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002111/0.1776, allocations: 1.035 MB / 363.2 MB, free: 10.08 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003403/0.181, allocations: 1.371 MB / 364.5 MB, free: 8.707 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002449/0.1835, allocations: 1.149 MB / 365.7 MB, free: 7.555 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003859/0.1839, allocations: 88 kB / 365.8 MB, free: 7.469 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00603/0.19, allocations: 2.204 MB / 368 MB, free: 5.262 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001115/0.1911, allocations: 0.5141 MB / 368.5 MB, free: 4.746 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007665/0.1919, allocations: 356.8 kB / 368.8 MB, free: 4.391 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006402/0.1983, allocations: 2.892 MB / 371.7 MB, free: 1.492 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.929e-06/0.1984, allocations: 0 / 371.7 MB, free: 1.492 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.441e-06/0.1984, allocations: 0 / 371.7 MB, free: 1.492 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.651e-05/0.1985, allocations: 0 / 371.7 MB, free: 1.492 MB / 314.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.2046/0.4031, allocations: 2.086 MB / 373.8 MB, free: 63.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.4031, allocations: 8.688 kB / 373.8 MB, free: 63.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009463/0.4041, allocations: 207.6 kB / 374 MB, free: 63.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002626/0.4067, allocations: 1.048 MB / 375.1 MB, free: 63.51 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/0.4069, allocations: 99.53 kB / 375.2 MB, free: 63.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003/0.4072, allocations: 123.1 kB / 375.3 MB, free: 63.5 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004233/0.4115, allocations: 1.939 MB / 377.2 MB, free: 62.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.444e-05/0.4115, allocations: 5.969 kB / 377.2 MB, free: 62.7 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002024/0.4118, allocations: 54.14 kB / 377.3 MB, free: 62.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002026/0.412, allocations: 116.7 kB / 377.4 MB, free: 62.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004644/0.4166, allocations: 1.98 MB / 379.4 MB, free: 61.98 MB / 314.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.01349/0.4302, allocations: 7.902 MB / 387.3 MB, free: 56.14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00249/0.4327, allocations: 1.158 MB / 388.4 MB, free: 55.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005502/0.4382, allocations: 3.384 MB / 391.8 MB, free: 52.71 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.4383, allocations: 51.36 kB / 391.9 MB, free: 52.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=119): time 4.211e-06/0.4383, allocations: 0 / 391.9 MB, free: 52.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=134): time 0.01439/0.4527, allocations: 5.377 MB / 397.2 MB, free: 49.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.4528, allocations: 170.6 kB / 397.4 MB, free: 49.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002048/0.4548, allocations: 1.318 MB / 398.7 MB, free: 48.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000228/0.4551, allocations: 61.69 kB / 398.8 MB, free: 48.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004531/0.4556, allocations: 0.7025 MB / 399.5 MB, free: 47.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004344/0.456, allocations: 475.5 kB / 400 MB, free: 47.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.4562, allocations: 36 kB / 400 MB, free: 47.15 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.4563, allocations: 378.8 kB / 400.4 MB, free: 46.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001584/0.4579, allocations: 0.7495 MB / 401.1 MB, free: 46.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.4598, allocations: 1.236 MB / 402.3 MB, free: 44.59 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001716/0.4615, allocations: 0.8807 MB / 403.2 MB, free: 43.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.766e-06/0.4615, allocations: 7.156 kB / 403.2 MB, free: 43.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.004795/0.4663, allocations: 2.342 MB / 405.6 MB, free: 41.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000213/0.4666, allocations: 0.5014 MB / 406.1 MB, free: 40.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.283e-05/0.4666, allocations: 16 kB / 406.1 MB, free: 40.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008378/0.475, allocations: 1.14 MB / 407.2 MB, free: 39.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001718/0.4768, allocations: 359.5 kB / 407.6 MB, free: 39.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004771/0.4816, allocations: 2.877 MB / 410.5 MB, free: 36.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003195/0.4848, allocations: 132.4 kB / 410.6 MB, free: 36.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000482/0.4853, allocations: 87.92 kB / 410.7 MB, free: 36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.4854, allocations: 4 kB / 410.7 MB, free: 35.99 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00713/0.4925, allocations: 2.151 MB / 412.8 MB, free: 33.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.841e-05/0.4926, allocations: 19.94 kB / 412.8 MB, free: 33.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006852/0.4994, allocations: 0.849 MB / 413.7 MB, free: 32.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001819/0.5013, allocations: 379.4 kB / 414.1 MB, free: 32.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002036/0.5034, allocations: 2.607 MB / 416.7 MB, free: 29.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.5049, allocations: 132 kB / 416.8 MB, free: 29.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000222/0.5051, allocations: 83.97 kB / 416.9 MB, free: 29.67 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.0009819/0.5061, allocations: 0.5217 MB / 417.4 MB, free: 29.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003665/0.5065, allocations: 165.9 kB / 417.6 MB, free: 28.97 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00528/0.5118, allocations: 2.344 MB / 419.9 MB, free: 26.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.111e-05/0.5118, allocations: 16 kB / 419.9 MB, free: 26.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.965e-06/0.5119, allocations: 8 kB / 419.9 MB, free: 26.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.045e-05/0.5119, allocations: 7.969 kB / 419.9 MB, free: 26.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007684/0.5196, allocations: 3.967 MB / 423.9 MB, free: 22.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/0.5196, allocations: 0 / 423.9 MB, free: 22.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001245/0.5209, allocations: 239.7 kB / 424.1 MB, free: 22.33 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005476/0.5264, allocations: 0.9356 MB / 425.1 MB, free: 21.38 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002201/0.5267, allocations: 39.97 kB / 425.1 MB, free: 21.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002376/0.529, allocations: 2.822 MB / 427.9 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/0.5291, allocations: 4.031 kB / 427.9 MB, free: 18.42 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00579/0.5349, allocations: 3.126 MB / 431.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005475/0.5355, allocations: 258.9 kB / 431.3 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003241/0.5358, allocations: 39.98 kB / 431.4 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.537, allocations: 108 kB / 431.5 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004855/0.5375, allocations: 141.1 kB / 431.6 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001968/0.5377, allocations: 67.86 kB / 431.7 MB, free: 14.63 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001361/0.5391, allocations: 0.8953 MB / 432.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.68e-07/0.5391, allocations: 0 / 432.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003462/0.5426, allocations: 1.251 MB / 433.8 MB, free: 12.59 MB / 314.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.002013/0.5446, allocations: 0.8819 MB / 434.7 MB, free: 11.87 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.006349/0.551, allocations: 3.044 MB / 437.7 MB, free: 8.836 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.995e-06/0.551, allocations: 0 / 437.7 MB, free: 8.836 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002267/0.5533, allocations: 1.073 MB / 438.8 MB, free: 7.766 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003228/0.5566, allocations: 0.6648 MB / 439.5 MB, free: 7.105 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006075/0.5627, allocations: 4.159 MB / 443.6 MB, free: 2.898 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009273/0.5636, allocations: 1.426 MB / 445.1 MB, free: 1.438 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006755/0.5643, allocations: 163.3 kB / 445.2 MB, free: 1.277 MB / 314.7 MB Notification: Performance of SimCode: time 1.495e-06/0.5643, allocations: 0 / 445.2 MB, free: 1.277 MB / 314.7 MB Notification: Performance of Templates: time 0.09097/0.6553, allocations: 57.86 MB / 0.4913 GB, free: 7.383 MB / 378.7 MB