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.EmptyTanks.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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.9/1.9, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003657/0.0003659, allocations: 16 kB / 263.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08113/0.08152, allocations: 44.5 MB / 308.3 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.0206/0.1022, allocations: 13.73 MB / 322.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01229/0.1145, allocations: 6.136 MB / 328.2 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001121/0.1157, allocations: 31.75 kB / 328.2 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001189/0.1169, allocations: 294.4 kB / 328.5 MB, free: 12.78 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003499/0.1204, allocations: 0.8724 MB / 329.4 MB, free: 11.91 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005193/0.1256, allocations: 1.38 MB / 330.8 MB, free: 10.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002783/0.1284, allocations: 1.339 MB / 332.1 MB, free: 9.18 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001129/0.1296, allocations: 0.49 MB / 332.6 MB, free: 8.68 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001533/0.1312, allocations: 0.6037 MB / 333.2 MB, free: 8.074 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001054/0.1322, allocations: 0.5177 MB / 333.7 MB, free: 7.555 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001866/0.1325, allocations: 44 kB / 333.8 MB, free: 7.512 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002937/0.1354, allocations: 1.092 MB / 334.9 MB, free: 6.418 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005295/0.136, allocations: 247.3 kB / 335.1 MB, free: 6.176 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000385/0.1364, allocations: 169.3 kB / 335.3 MB, free: 6.004 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002972/0.1394, allocations: 1.294 MB / 336.6 MB, free: 4.707 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.585e-06/0.1394, allocations: 0 / 336.6 MB, free: 4.707 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.707e-06/0.1394, allocations: 0 / 336.6 MB, free: 4.707 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.1394, allocations: 4 kB / 336.6 MB, free: 4.703 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002935/0.1424, allocations: 1.099 MB / 337.7 MB, free: 3.551 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.1425, allocations: 12.03 kB / 337.7 MB, free: 3.539 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000429/0.1429, allocations: 94.95 kB / 337.8 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001272/0.1442, allocations: 0.574 MB / 338.4 MB, free: 2.832 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/0.1444, allocations: 108.7 kB / 338.5 MB, free: 2.715 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.1445, allocations: 55.98 kB / 338.5 MB, free: 2.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002134/0.1467, allocations: 0.8962 MB / 339.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.1467, allocations: 7.891 kB / 339.4 MB, free: 1.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001133/0.1468, allocations: 27.97 kB / 339.4 MB, free: 1.703 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001109/0.147, allocations: 53.27 kB / 339.5 MB, free: 1.648 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002094/0.1491, allocations: 0.8366 MB / 340.3 MB, free: 0.8086 MB / 282.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.008049/0.1571, allocations: 3.495 MB / 343.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.1587, allocations: 0.657 MB / 344.5 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004131/0.1629, allocations: 2.062 MB / 346.6 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.191e-05/0.163, allocations: 43.12 kB / 346.6 MB, free: 10.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 3.528e-06/0.163, allocations: 0 / 346.6 MB, free: 10.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=66): time 0.00968/0.1727, allocations: 2.86 MB / 349.5 MB, free: 7.219 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.271e-05/0.1728, allocations: 93.61 kB / 349.5 MB, free: 7.105 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001234/0.1741, allocations: 0.672 MB / 350.2 MB, free: 6.422 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001354/0.1742, allocations: 45.64 kB / 350.3 MB, free: 6.371 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003223/0.1746, allocations: 350.9 kB / 350.6 MB, free: 6.027 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003003/0.1749, allocations: 228.7 kB / 350.8 MB, free: 5.801 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.608e-05/0.175, allocations: 16 kB / 350.8 MB, free: 5.785 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.1752, allocations: 338.8 kB / 351.2 MB, free: 5.445 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009338/0.1761, allocations: 365.8 kB / 351.5 MB, free: 5.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.1772, allocations: 0.5113 MB / 352 MB, free: 4.516 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.1783, allocations: 415 kB / 352.4 MB, free: 4.113 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.529e-06/0.1783, allocations: 0 / 352.4 MB, free: 4.113 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002923/0.1812, allocations: 1.114 MB / 353.6 MB, free: 2.988 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002122/0.1815, allocations: 211.7 kB / 353.8 MB, free: 2.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.1815, allocations: 4 kB / 353.8 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001809/0.1833, allocations: 456.4 kB / 354.2 MB, free: 2.262 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009379/0.1843, allocations: 159.8 kB / 354.4 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001817/0.1861, allocations: 1.021 MB / 355.4 MB, free: 1.059 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009343/0.1871, allocations: 44.02 kB / 355.4 MB, free: 1.016 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/0.1873, allocations: 39.98 kB / 355.5 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.1873, allocations: 0 / 355.5 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002481/0.1898, allocations: 0.9373 MB / 356.4 MB, free: 36 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.1898, allocations: 4 kB / 356.4 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000845/0.1907, allocations: 249.1 kB / 356.7 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008964/0.1916, allocations: 167.8 kB / 356.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/0.1928, allocations: 0.7981 MB / 357.6 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006227/0.1934, allocations: 51.86 kB / 357.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.1935, allocations: 35.98 kB / 357.7 MB, free: 14.71 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006732/0.1942, allocations: 328.8 kB / 358 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002414/0.1945, allocations: 83.11 kB / 358.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002877/0.1974, allocations: 1.091 MB / 359.2 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.1974, allocations: 8 kB / 359.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.927e-06/0.1974, allocations: 0 / 359.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.1974, allocations: 3.984 kB / 359.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004694/0.2021, allocations: 2.002 MB / 361.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.365e-06/0.2022, allocations: 4 kB / 361.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007855/0.203, allocations: 115.9 kB / 361.3 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001763/0.2048, allocations: 448.5 kB / 361.8 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/0.2049, allocations: 19.98 kB / 361.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001745/0.2067, allocations: 1.036 MB / 362.8 MB, free: 9.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.152e-06/0.2067, allocations: 0 / 362.8 MB, free: 9.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003704/0.2104, allocations: 1.591 MB / 364.4 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006472/0.2111, allocations: 248.1 kB / 364.7 MB, free: 7.602 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/0.2113, allocations: 19.98 kB / 364.7 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007999/0.2121, allocations: 51.81 kB / 364.7 MB, free: 7.531 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.2123, allocations: 56.56 kB / 364.8 MB, free: 7.477 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.2124, allocations: 27.98 kB / 364.8 MB, free: 7.449 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008761/0.2133, allocations: 475 kB / 365.3 MB, free: 6.988 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.88e-07/0.2133, allocations: 4 kB / 365.3 MB, free: 6.984 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002013/0.2153, allocations: 0.5701 MB / 365.8 MB, free: 6.414 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001306/0.2167, allocations: 474.5 kB / 366.3 MB, free: 5.938 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003914/0.2206, allocations: 1.361 MB / 367.7 MB, free: 4.578 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/0.2207, allocations: 4 kB / 367.7 MB, free: 4.574 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001452/0.2221, allocations: 463.4 kB / 368.1 MB, free: 4.125 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002105/0.2243, allocations: 351.8 kB / 368.5 MB, free: 3.789 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004665/0.229, allocations: 2.079 MB / 370.6 MB, free: 1.68 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000851/0.2299, allocations: 1.003 MB / 371.6 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003979/0.2303, allocations: 87.41 kB / 371.6 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of SimCode: time 8.47e-06/0.2303, allocations: 0 / 371.6 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of Templates: time 0.2297/0.46, allocations: 18.88 MB / 390.5 MB, free: 55.8 MB / 314.7 MB