Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.947/1.947, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006033/0.0006034, allocations: 19.98 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3392, allocations: 48.7 MB / 331.3 MB, free: 6.531 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.0237/0.3629, allocations: 14.19 MB / 345.5 MB, free: 12.28 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01414/0.3771, allocations: 6.068 MB / 351.5 MB, free: 7.465 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001252/0.3784, allocations: 36.72 kB / 351.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001544/0.38, allocations: 338.3 kB / 351.9 MB, free: 7.176 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003674/0.3837, allocations: 0.8311 MB / 352.7 MB, free: 6.523 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006985/0.3907, allocations: 1.503 MB / 354.2 MB, free: 5.484 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003488/0.3942, allocations: 1.33 MB / 355.6 MB, free: 4.621 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001542/0.3958, allocations: 0.542 MB / 356.1 MB, free: 4.273 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00244/0.3983, allocations: 0.6682 MB / 356.8 MB, free: 3.906 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001853/0.4002, allocations: 0.554 MB / 357.3 MB, free: 3.602 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003473/0.4006, allocations: 39.88 kB / 357.4 MB, free: 3.602 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004109/0.4048, allocations: 1.152 MB / 358.5 MB, free: 3.027 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000782/0.4056, allocations: 262.9 kB / 358.8 MB, free: 2.867 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005726/0.4062, allocations: 183.3 kB / 359 MB, free: 2.758 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003841/0.4101, allocations: 1.369 MB / 360.3 MB, free: 1.391 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.4101, allocations: 0 / 360.3 MB, free: 1.391 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.4101, allocations: 3.938 kB / 360.3 MB, free: 1.387 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.743e-05/0.4102, allocations: 0 / 360.3 MB, free: 1.387 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.004163/0.4143, allocations: 1.201 MB / 361.5 MB, free: 132 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.4144, allocations: 11.97 kB / 361.5 MB, free: 120 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004062/0.4148, allocations: 114.6 kB / 361.7 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005639/0.4154, allocations: 102.9 kB / 361.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0017/0.4171, allocations: 0.605 MB / 362.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.4173, allocations: 112.7 kB / 362.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001926/0.4176, allocations: 52 kB / 362.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002812/0.4204, allocations: 0.9949 MB / 363.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.632e-05/0.4205, allocations: 4 kB / 363.5 MB, free: 14.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/0.4206, allocations: 27.94 kB / 363.5 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001257/0.4208, allocations: 53.28 kB / 363.6 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002717/0.4235, allocations: 0.8912 MB / 364.5 MB, free: 13.06 MB / 298.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.01128/0.4348, allocations: 4.105 MB / 368.6 MB, free: 8.742 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001822/0.4367, allocations: 0.6138 MB / 369.2 MB, free: 8.121 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005497/0.4422, allocations: 2.326 MB / 371.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.4434, allocations: 429.7 kB / 372 MB, free: 5.109 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 3.566e-06/0.4434, allocations: 0 / 372 MB, free: 5.109 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.009377/0.4528, allocations: 2.547 MB / 374.5 MB, free: 2.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.453, allocations: 162.2 kB / 374.7 MB, free: 2.234 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001502/0.4545, allocations: 0.7778 MB / 375.4 MB, free: 1.441 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002051/0.4547, allocations: 37.7 kB / 375.5 MB, free: 1.398 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000445/0.4552, allocations: 457.6 kB / 375.9 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002652/0.4555, allocations: 165.7 kB / 376.1 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.105e-05/0.4556, allocations: 16 kB / 376.1 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.4557, allocations: 338.8 kB / 376.4 MB, free: 440 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001009/0.4568, allocations: 345.8 kB / 376.8 MB, free: 96 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.458, allocations: 0.6282 MB / 377.4 MB, free: 15.33 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.4593, allocations: 447.6 kB / 377.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-05/0.4593, allocations: 4 kB / 377.8 MB, free: 14.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003624/0.4629, allocations: 1.201 MB / 379 MB, free: 13.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000351/0.4633, allocations: 394.9 kB / 379.4 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.4634, allocations: 12 kB / 379.4 MB, free: 13.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/0.4649, allocations: 353.5 kB / 379.8 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.4662, allocations: 163.7 kB / 379.9 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002254/0.4685, allocations: 1.452 MB / 381.4 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/0.4698, allocations: 51.88 kB / 381.4 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/0.47, allocations: 36 kB / 381.5 MB, free: 11.03 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.47, allocations: 8.906 kB / 381.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003166/0.4732, allocations: 1.09 MB / 382.6 MB, free: 9.922 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.648e-05/0.4733, allocations: 8 kB / 382.6 MB, free: 9.914 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.4743, allocations: 261.6 kB / 382.8 MB, free: 9.652 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/0.4756, allocations: 167.7 kB / 383 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003449/0.4791, allocations: 2.378 MB / 385.4 MB, free: 6.953 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009367/0.4801, allocations: 55.97 kB / 385.4 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.4802, allocations: 36 kB / 385.5 MB, free: 6.863 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0008791/0.4811, allocations: 403 kB / 385.9 MB, free: 6.453 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002644/0.4814, allocations: 82.97 kB / 385.9 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003433/0.4849, allocations: 1.037 MB / 387 MB, free: 5.301 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-05/0.4849, allocations: 7.938 kB / 387 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.4849, allocations: 0 / 387 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.485, allocations: 0 / 387 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005083/0.49, allocations: 1.843 MB / 388.8 MB, free: 3.383 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/0.4901, allocations: 4 kB / 388.8 MB, free: 3.379 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008276/0.4909, allocations: 79.89 kB / 388.9 MB, free: 3.301 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001473/0.4924, allocations: 345.5 kB / 389.3 MB, free: 2.957 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001308/0.4926, allocations: 19.98 kB / 389.3 MB, free: 2.938 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002218/0.4948, allocations: 1.436 MB / 390.7 MB, free: 1.449 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4949, allocations: 0 / 390.7 MB, free: 1.449 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003999/0.4989, allocations: 1.472 MB / 392.2 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006784/0.4996, allocations: 240 kB / 392.4 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000232/0.4999, allocations: 8 kB / 392.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009739/0.5009, allocations: 47.98 kB / 392.5 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002228/0.5011, allocations: 56.39 kB / 392.5 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.617e-05/0.5012, allocations: 23.98 kB / 392.6 MB, free: 15.55 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001102/0.5023, allocations: 0.5185 MB / 393.1 MB, free: 15.04 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.42e-07/0.5024, allocations: 0 / 393.1 MB, free: 15.04 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002592/0.505, allocations: 0.5896 MB / 393.7 MB, free: 14.45 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.level,tank.medium.T) * Number of discrete variables: 9 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 5 (timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005977/0.511, allocations: 2.402 MB / 396.1 MB, free: 12.02 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005027/0.5161, allocations: 1.58 MB / 397.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.5161, allocations: 0 / 397.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001812/0.5179, allocations: 465.7 kB / 398.1 MB, free: 9.941 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/0.5204, allocations: 271.6 kB / 398.4 MB, free: 9.676 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007696/0.5281, allocations: 2.971 MB / 401.3 MB, free: 6.535 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008172/0.529, allocations: 1.025 MB / 402.4 MB, free: 5.484 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007936/0.5298, allocations: 303.2 kB / 402.7 MB, free: 5.188 MB / 330.7 MB Notification: Performance of SimCode: time 1.522e-06/0.5298, allocations: 0 / 402.7 MB, free: 5.188 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.548/4.078, allocations: 24.92 MB / 427.6 MB, free: 12.27 MB / 362.7 MB