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.Tanks.ThreeTanks.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.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 1.909/1.909, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003578, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07969/0.08008, allocations: 44.5 MB / 308.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03725/0.1174, allocations: 24.94 MB / 333.3 MB, free: 8.023 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02532/0.1428, allocations: 13.32 MB / 346.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002084/0.1449, allocations: 55.5 kB / 346.6 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002087/0.147, allocations: 0.5245 MB / 347.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00707/0.1541, allocations: 1.881 MB / 349.1 MB, free: 8.219 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01993/0.1741, allocations: 2.904 MB / 352 MB, free: 5.309 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02579/0.1999, allocations: 2.584 MB / 354.5 MB, free: 2.723 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008985/0.209, allocations: 0.9806 MB / 355.5 MB, free: 1.715 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009494/0.2185, allocations: 1.204 MB / 356.7 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01306/0.2317, allocations: 1.106 MB / 357.8 MB, free: 15.39 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001003/0.2328, allocations: 88 kB / 357.9 MB, free: 15.31 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01595/0.2488, allocations: 2.208 MB / 360.1 MB, free: 13.1 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002104/0.2509, allocations: 0.4948 MB / 360.6 MB, free: 12.61 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001456/0.2524, allocations: 313 kB / 360.9 MB, free: 12.29 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009084/0.2616, allocations: 2.608 MB / 363.5 MB, free: 9.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.809e-06/0.2616, allocations: 4 kB / 363.5 MB, free: 9.676 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.943e-06/0.2616, allocations: 0 / 363.5 MB, free: 9.676 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.534e-05/0.2617, allocations: 0 / 363.5 MB, free: 9.676 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.005996/0.2677, allocations: 1.904 MB / 365.4 MB, free: 7.719 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.2677, allocations: 8.031 kB / 365.5 MB, free: 7.711 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009385/0.2687, allocations: 170.1 kB / 365.6 MB, free: 7.543 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002586/0.2713, allocations: 0.9646 MB / 366.6 MB, free: 6.535 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000264/0.2716, allocations: 171.1 kB / 366.7 MB, free: 6.348 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003893/0.272, allocations: 111.9 kB / 366.9 MB, free: 6.238 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004808/0.2768, allocations: 1.749 MB / 368.6 MB, free: 4.438 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.737e-05/0.2769, allocations: 0 / 368.6 MB, free: 4.438 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000216/0.2771, allocations: 47.97 kB / 368.7 MB, free: 4.391 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002185/0.2774, allocations: 113.9 kB / 368.8 MB, free: 4.277 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004779/0.2822, allocations: 1.776 MB / 370.5 MB, free: 2.492 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.2184/0.5006, allocations: 6.822 MB / 377.4 MB, free: 60.9 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0028/0.5034, allocations: 1.237 MB / 378.6 MB, free: 60.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007553/0.511, allocations: 4.338 MB / 382.9 MB, free: 57.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.5111, allocations: 49.66 kB / 383 MB, free: 57.29 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001026/0.5122, allocations: 205.3 kB / 383.2 MB, free: 57.21 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 5.223e-06/0.5122, allocations: 1.219 kB / 383.2 MB, free: 57.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=112): time 0.02236/0.5346, allocations: 5.736 MB / 388.9 MB, free: 54.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.5346, allocations: 149.3 kB / 389.1 MB, free: 54.15 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002022/0.5367, allocations: 1.245 MB / 390.3 MB, free: 53.47 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002871/0.537, allocations: 49.39 kB / 390.4 MB, free: 53.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003653/0.5374, allocations: 0.5877 MB / 391 MB, free: 52.88 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004195/0.5378, allocations: 391.5 kB / 391.3 MB, free: 52.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.538, allocations: 30.41 kB / 391.4 MB, free: 52.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.5381, allocations: 362.6 kB / 391.7 MB, free: 52.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/0.5397, allocations: 0.6954 MB / 392.4 MB, free: 51.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001877/0.5416, allocations: 1.052 MB / 393.5 MB, free: 51.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00196/0.5436, allocations: 0.8165 MB / 394.3 MB, free: 50.6 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.5436, allocations: 3.969 kB / 394.3 MB, free: 50.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.005185/0.5488, allocations: 2.16 MB / 396.4 MB, free: 49.49 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001824/0.549, allocations: 388.7 kB / 396.8 MB, free: 49.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/0.5491, allocations: 11.78 kB / 396.8 MB, free: 49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00904/0.5581, allocations: 1.276 MB / 398.1 MB, free: 48.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/0.5598, allocations: 304.1 kB / 398.4 MB, free: 48.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002845/0.5627, allocations: 1.601 MB / 400 MB, free: 46.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001812/0.5646, allocations: 87.86 kB / 400.1 MB, free: 46.65 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002797/0.5649, allocations: 71.95 kB / 400.2 MB, free: 46.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.5649, allocations: 4 kB / 400.2 MB, free: 46.58 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004369/0.5693, allocations: 1.918 MB / 402.1 MB, free: 44.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.277e-05/0.5694, allocations: 12.88 kB / 402.1 MB, free: 44.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00677/0.5762, allocations: 0.9937 MB / 403.1 MB, free: 43.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001603/0.5778, allocations: 303.5 kB / 403.4 MB, free: 43.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002054/0.5799, allocations: 1.295 MB / 404.7 MB, free: 42.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/0.5812, allocations: 79.89 kB / 404.8 MB, free: 41.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001959/0.5815, allocations: 64.62 kB / 404.8 MB, free: 41.91 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0009491/0.5824, allocations: 472.5 kB / 405.3 MB, free: 41.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003935/0.5828, allocations: 146.2 kB / 405.4 MB, free: 41.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004941/0.5878, allocations: 2.093 MB / 407.5 MB, free: 39.19 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-05/0.5878, allocations: 12 kB / 407.5 MB, free: 39.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.768e-06/0.5879, allocations: 0 / 407.5 MB, free: 39.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.5879, allocations: 7.969 kB / 407.5 MB, free: 39.17 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007229/0.5951, allocations: 3.588 MB / 411.1 MB, free: 35.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.872e-06/0.5952, allocations: 4 kB / 411.1 MB, free: 35.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/0.5964, allocations: 191.8 kB / 411.3 MB, free: 35.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004437/0.6009, allocations: 1.003 MB / 412.3 MB, free: 34.36 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002454/0.6011, allocations: 27.98 kB / 412.4 MB, free: 34.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00259/0.6037, allocations: 1.615 MB / 414 MB, free: 32.69 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.623e-06/0.6038, allocations: 0.875 kB / 414 MB, free: 32.69 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005673/0.6095, allocations: 2.895 MB / 416.9 MB, free: 29.78 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.6106, allocations: 419 kB / 417.3 MB, free: 29.35 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003469/0.6109, allocations: 31.95 kB / 417.3 MB, free: 29.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00139/0.6124, allocations: 79.94 kB / 417.4 MB, free: 29.24 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002678/0.6126, allocations: 101.2 kB / 417.5 MB, free: 29.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001694/0.6128, allocations: 45.28 kB / 417.5 MB, free: 29.1 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001359/0.6142, allocations: 0.8363 MB / 418.4 MB, free: 28.26 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.4e-07/0.6142, allocations: 0 / 418.4 MB, free: 28.26 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003446/0.6177, allocations: 1.15 MB / 419.5 MB, free: 27.21 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.002067/0.6198, allocations: 0.8359 MB / 420.4 MB, free: 26.52 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.006959/0.6268, allocations: 2.718 MB / 423.1 MB, free: 23.8 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.266e-06/0.6268, allocations: 4.625 kB / 423.1 MB, free: 23.8 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002397/0.6292, allocations: 0.8673 MB / 423.9 MB, free: 22.94 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003332/0.6326, allocations: 0.5926 MB / 424.5 MB, free: 22.35 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006681/0.6393, allocations: 3.629 MB / 428.2 MB, free: 18.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008152/0.6402, allocations: 1.316 MB / 429.5 MB, free: 17.35 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007252/0.6409, allocations: 143.4 kB / 429.6 MB, free: 17.21 MB / 314.7 MB Notification: Performance of SimCode: time 1.679e-06/0.6409, allocations: 8 kB / 429.6 MB, free: 17.2 MB / 314.7 MB Notification: Performance of Templates: time 0.0591/0.7, allocations: 35.37 MB / 465 MB, free: 13.82 MB / 346.7 MB