Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.681/1.681, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003115/0.0003115, allocations: 8 kB / 264.1 MB, free: 3.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2578, allocations: 44.51 MB / 308.6 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03509/0.2929, allocations: 24.93 MB / 333.5 MB, free: 3.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0242/0.3172, allocations: 13.33 MB / 346.8 MB, free: 6.402 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001534/0.3187, allocations: 55.5 kB / 346.9 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001825/0.3206, allocations: 0.5206 MB / 347.4 MB, free: 5.824 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006398/0.327, allocations: 1.881 MB / 349.3 MB, free: 3.938 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01018/0.3372, allocations: 2.9 MB / 352.2 MB, free: 1.031 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005224/0.3425, allocations: 2.576 MB / 354.7 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001804/0.3443, allocations: 0.9845 MB / 355.7 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002631/0.3469, allocations: 1.207 MB / 356.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002266/0.3492, allocations: 1.102 MB / 358 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003367/0.3496, allocations: 84 kB / 358.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00589/0.3555, allocations: 2.196 MB / 360.3 MB, free: 8.844 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009531/0.3565, allocations: 0.4948 MB / 360.8 MB, free: 8.348 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000629/0.3571, allocations: 309 kB / 361.1 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005686/0.3628, allocations: 2.615 MB / 363.7 MB, free: 5.418 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.3629, allocations: 3.938 kB / 363.7 MB, free: 5.414 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3629, allocations: 0 / 363.7 MB, free: 5.414 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.343e-05/0.3629, allocations: 0 / 363.7 MB, free: 5.414 MB / 298.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.006601/0.3695, allocations: 1.904 MB / 365.6 MB, free: 3.457 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.3696, allocations: 12.03 kB / 365.7 MB, free: 3.445 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003421/0.3699, allocations: 168.5 kB / 365.8 MB, free: 3.273 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006166/0.3705, allocations: 174.1 kB / 366 MB, free: 3.102 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002236/0.3728, allocations: 0.9645 MB / 367 MB, free: 2.094 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001963/0.373, allocations: 175.1 kB / 367.1 MB, free: 1.902 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002987/0.3733, allocations: 103.9 kB / 367.2 MB, free: 1.801 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004097/0.3774, allocations: 1.741 MB / 369 MB, free: 8 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.612e-05/0.3775, allocations: 4 kB / 369 MB, free: 4 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.3777, allocations: 43.97 kB / 369 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000234/0.378, allocations: 109.9 kB / 369.1 MB, free: 15.85 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004444/0.3824, allocations: 1.776 MB / 370.9 MB, free: 14.07 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.01731/0.3997, allocations: 6.835 MB / 377.7 MB, free: 6.891 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002992/0.4028, allocations: 1.238 MB / 379 MB, free: 5.648 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008945/0.4117, allocations: 4.337 MB / 383.3 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.758e-05/0.4118, allocations: 47.56 kB / 383.4 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001229/0.413, allocations: 210.6 kB / 383.6 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 3.687e-06/0.4131, allocations: 0 / 383.6 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of matching and sorting (n=112): time 0.03119/0.4443, allocations: 5.742 MB / 389.3 MB, free: 10.83 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.17e-05/0.4444, allocations: 141.5 kB / 389.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002357/0.4468, allocations: 1.249 MB / 390.7 MB, free: 9.402 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001879/0.447, allocations: 45.7 kB / 390.7 MB, free: 9.352 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006796/0.4477, allocations: 0.6091 MB / 391.3 MB, free: 8.734 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004852/0.4481, allocations: 386.5 kB / 391.7 MB, free: 8.352 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.4483, allocations: 28 kB / 391.7 MB, free: 8.324 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.4485, allocations: 365.9 kB / 392.1 MB, free: 7.961 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001874/0.4504, allocations: 0.6988 MB / 392.8 MB, free: 7.262 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002186/0.4526, allocations: 1.048 MB / 393.8 MB, free: 6.074 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002101/0.4547, allocations: 0.8144 MB / 394.7 MB, free: 5.258 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.4547, allocations: 0 / 394.7 MB, free: 5.258 MB / 330.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.005989/0.4607, allocations: 2.245 MB / 396.9 MB, free: 3 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000308/0.4611, allocations: 383.1 kB / 397.3 MB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.4611, allocations: 12 kB / 397.3 MB, free: 2.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.012/0.4731, allocations: 1.28 MB / 398.6 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002121/0.4752, allocations: 295.6 kB / 398.9 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003755/0.479, allocations: 1.602 MB / 400.5 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/0.481, allocations: 91.73 kB / 400.6 MB, free: 15.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002104/0.4812, allocations: 67.97 kB / 400.6 MB, free: 15.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.4812, allocations: 7.938 kB / 400.6 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005046/0.4863, allocations: 1.933 MB / 402.6 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.4863, allocations: 12 kB / 402.6 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01104/0.4974, allocations: 1.006 MB / 403.6 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002174/0.4996, allocations: 311.5 kB / 403.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002628/0.5022, allocations: 1.298 MB / 405.2 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001722/0.504, allocations: 87.8 kB / 405.3 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002026/0.5042, allocations: 67.95 kB / 405.3 MB, free: 10.38 MB / 346.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.0009992/0.5052, allocations: 475.3 kB / 405.8 MB, free: 9.906 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003412/0.5055, allocations: 150.2 kB / 405.9 MB, free: 9.758 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006449/0.512, allocations: 2.082 MB / 408 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.769e-05/0.512, allocations: 12 kB / 408 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.5121, allocations: 0 / 408 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.123e-05/0.5121, allocations: 3.984 kB / 408 MB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00859/0.5207, allocations: 3.594 MB / 411.6 MB, free: 3.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.5207, allocations: 0 / 411.6 MB, free: 3.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/0.5224, allocations: 187.8 kB / 411.8 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005929/0.5283, allocations: 1.003 MB / 412.8 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001371/0.5285, allocations: 31.98 kB / 412.9 MB, free: 2.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003438/0.5319, allocations: 1.596 MB / 414.5 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.532, allocations: 7.953 kB / 414.5 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2345/0.7664, allocations: 2.898 MB / 417.4 MB, free: 95.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001086/0.7676, allocations: 416.3 kB / 417.8 MB, free: 95.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000326/0.7679, allocations: 24.66 kB / 417.8 MB, free: 95.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001796/0.7697, allocations: 83.91 kB / 417.9 MB, free: 95.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002744/0.77, allocations: 101.9 kB / 418 MB, free: 95.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001513/0.7702, allocations: 50.7 kB / 418 MB, free: 95.53 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001384/0.7716, allocations: 0.8312 MB / 418.9 MB, free: 95.2 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.7716, allocations: 3.969 kB / 418.9 MB, free: 95.2 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00342/0.775, allocations: 1.149 MB / 420 MB, free: 95.11 MB / 346.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.008563/0.7836, allocations: 4.185 MB / 424.2 MB, free: 93.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008023/0.7916, allocations: 2.738 MB / 426.9 MB, free: 92.51 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.7917, allocations: 3.969 kB / 426.9 MB, free: 92.51 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002915/0.7946, allocations: 0.8635 MB / 427.8 MB, free: 92 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004096/0.7987, allocations: 0.5925 MB / 428.4 MB, free: 91.53 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009007/0.8077, allocations: 4.951 MB / 433.3 MB, free: 86.6 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008366/0.8086, allocations: 1.315 MB / 434.7 MB, free: 85.26 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002875/0.8115, allocations: 0.5877 MB / 435.2 MB, free: 84.66 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009156/0.8124, allocations: 0.5383 MB / 435.8 MB, free: 84.12 MB / 346.7 MB Notification: Performance of SimCode: time 9.12e-07/0.8124, allocations: 0 / 435.8 MB, free: 84.12 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1087/0.9211, allocations: 53.06 MB / 488.8 MB, free: 31.02 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/0.9214, allocations: 198.2 kB / 489 MB, free: 30.77 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.661/5.582, allocations: 0 / 489 MB, free: 30.77 MB / 346.7 MB