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.Tanks.ThreeTanks.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.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.1_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 1.588/1.588, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003562/0.0003564, allocations: 8 kB / 233.2 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07457/0.07495, allocations: 38.78 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03779/0.1128, allocations: 24.91 MB / 296.8 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2136/0.3265, allocations: 13.3 MB / 310.1 MB, free: 8.762 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002278/0.3288, allocations: 57 kB / 310.2 MB, free: 8.762 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002242/0.3311, allocations: 0.5263 MB / 310.7 MB, free: 8.758 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007083/0.3382, allocations: 1.888 MB / 312.6 MB, free: 8.738 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01092/0.3491, allocations: 2.903 MB / 315.5 MB, free: 8.66 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004784/0.3539, allocations: 2.585 MB / 318.1 MB, free: 8.582 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00177/0.3558, allocations: 0.9853 MB / 319.1 MB, free: 8.145 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002608/0.3584, allocations: 1.209 MB / 320.3 MB, free: 7.793 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002131/0.3605, allocations: 1.102 MB / 321.4 MB, free: 7.379 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003874/0.361, allocations: 84.84 kB / 321.5 MB, free: 7.379 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005974/0.3669, allocations: 2.199 MB / 323.7 MB, free: 6.809 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001049/0.368, allocations: 0.4902 MB / 324.2 MB, free: 6.508 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007732/0.3688, allocations: 309.1 kB / 324.5 MB, free: 6.352 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005678/0.3745, allocations: 2.623 MB / 327.1 MB, free: 4.922 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.776e-06/0.3746, allocations: 0 / 327.1 MB, free: 4.922 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.061e-06/0.3746, allocations: 0 / 327.1 MB, free: 4.922 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.07e-05/0.3746, allocations: 0 / 327.1 MB, free: 4.922 MB / 250.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.005281/0.3799, allocations: 1.903 MB / 329 MB, free: 3.566 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.38, allocations: 14.33 kB / 329 MB, free: 3.562 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007499/0.3808, allocations: 178.1 kB / 329.2 MB, free: 3.477 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002132/0.3829, allocations: 0.9661 MB / 330.1 MB, free: 2.766 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.3831, allocations: 173.7 kB / 330.3 MB, free: 2.637 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002523/0.3834, allocations: 99.41 kB / 330.4 MB, free: 2.613 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003476/0.3869, allocations: 1.751 MB / 332.2 MB, free: 1.281 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.011e-05/0.3869, allocations: 7.891 kB / 332.2 MB, free: 1.273 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001839/0.3871, allocations: 45.22 kB / 332.2 MB, free: 1.238 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001698/0.3873, allocations: 117.9 kB / 332.3 MB, free: 1.121 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003951/0.3913, allocations: 1.776 MB / 334.1 MB, free: 15.34 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.01685/0.4082, allocations: 6.824 MB / 340.9 MB, free: 8.246 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002816/0.411, allocations: 1.234 MB / 342.2 MB, free: 7.008 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008763/0.4198, allocations: 4.357 MB / 346.5 MB, free: 2.273 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.929e-05/0.4199, allocations: 43.56 kB / 346.6 MB, free: 2.223 MB / 266.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001095/0.421, allocations: 208.9 kB / 346.8 MB, free: 2.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=97): time 4.908e-06/0.4211, allocations: 0 / 346.8 MB, free: 2.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=112): time 0.02388/0.4449, allocations: 5.74 MB / 352.5 MB, free: 12.25 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.4451, allocations: 145.5 kB / 352.7 MB, free: 12.08 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002419/0.4475, allocations: 1.238 MB / 353.9 MB, free: 10.83 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002989/0.4479, allocations: 49.7 kB / 353.9 MB, free: 10.78 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005743/0.4484, allocations: 0.5927 MB / 354.5 MB, free: 10.18 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005221/0.449, allocations: 384 kB / 354.9 MB, free: 9.812 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.4491, allocations: 28 kB / 354.9 MB, free: 9.785 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002255/0.4494, allocations: 370.8 kB / 355.3 MB, free: 9.414 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/0.4511, allocations: 0.6949 MB / 356 MB, free: 8.719 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002014/0.4531, allocations: 1.056 MB / 357 MB, free: 7.523 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001944/0.4551, allocations: 0.8237 MB / 357.9 MB, free: 6.699 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.136e-06/0.4551, allocations: 0 / 357.9 MB, free: 6.699 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.005516/0.4607, allocations: 2.166 MB / 360 MB, free: 4.523 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003528/0.4611, allocations: 386.3 kB / 360.4 MB, free: 4.012 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.081e-05/0.4611, allocations: 8 kB / 360.4 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008512/0.4696, allocations: 1.265 MB / 361.7 MB, free: 2.734 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001688/0.4713, allocations: 295.6 kB / 362 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003447/0.4748, allocations: 1.618 MB / 363.6 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.4766, allocations: 83.8 kB / 363.7 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002245/0.4769, allocations: 72.12 kB / 363.7 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.4769, allocations: 4 kB / 363.7 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00478/0.4817, allocations: 1.917 MB / 365.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.923e-05/0.4818, allocations: 15.98 kB / 365.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007173/0.489, allocations: 0.996 MB / 366.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001689/0.4907, allocations: 307.5 kB / 367 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002461/0.4932, allocations: 1.289 MB / 368.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/0.4945, allocations: 87.8 kB / 368.4 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001985/0.4947, allocations: 67.97 kB / 368.4 MB, free: 11.94 MB / 298.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.001071/0.4958, allocations: 464.6 kB / 368.9 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004204/0.4962, allocations: 150.2 kB / 369 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005669/0.5019, allocations: 2.086 MB / 371.1 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.503e-05/0.502, allocations: 15.98 kB / 371.1 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.502, allocations: 0 / 371.1 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.629e-05/0.502, allocations: 3.984 kB / 371.1 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008889/0.5109, allocations: 3.587 MB / 374.7 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.288e-06/0.511, allocations: 0 / 374.7 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.5122, allocations: 199.7 kB / 374.9 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004912/0.5172, allocations: 0.9994 MB / 375.9 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002458/0.5175, allocations: 31.98 kB / 375.9 MB, free: 4.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003198/0.5207, allocations: 1.607 MB / 377.5 MB, free: 2.727 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.362e-06/0.5207, allocations: 4.094 kB / 377.5 MB, free: 2.723 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006832/0.5276, allocations: 2.898 MB / 380.4 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/0.5289, allocations: 419.1 kB / 380.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002973/0.5292, allocations: 24 kB / 380.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001332/0.5305, allocations: 83.84 kB / 381 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003113/0.5309, allocations: 101.2 kB / 381.1 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001889/0.5311, allocations: 52.09 kB / 381.1 MB, free: 15.12 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001636/0.5327, allocations: 0.8362 MB / 381.9 MB, free: 14.29 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.066e-06/0.5327, allocations: 0 / 381.9 MB, free: 14.29 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00397/0.5367, allocations: 1.144 MB / 383.1 MB, free: 13.14 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.002472/0.5392, allocations: 0.8386 MB / 383.9 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.008411/0.5477, allocations: 2.727 MB / 386.7 MB, free: 9.617 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.806e-06/0.5477, allocations: 1.938 kB / 386.7 MB, free: 9.617 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002807/0.5506, allocations: 0.8634 MB / 387.5 MB, free: 8.758 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003621/0.5542, allocations: 0.5966 MB / 388.1 MB, free: 8.164 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008104/0.5624, allocations: 3.635 MB / 391.8 MB, free: 4.508 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001279/0.5637, allocations: 1.315 MB / 393.1 MB, free: 3.168 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007406/0.5644, allocations: 135.4 kB / 393.2 MB, free: 3.035 MB / 314.7 MB Notification: Performance of SimCode: time 1.641e-06/0.5645, allocations: 0 / 393.2 MB, free: 3.035 MB / 314.7 MB Notification: Performance of Templates: time 0.06425/0.6287, allocations: 35.37 MB / 428.6 MB, free: 15.68 MB / 362.7 MB