Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.h|tank.aboveLevel.1.|tank.aboveLevel.2.|tank.aboveLevel.3.|tank.aboveLevel.4.|tank.ports_m_flow_out.1.|tank.ports_m_flow_out.2.|tank.ports_m_flow_out.3.|tank.ports_m_flow_out.4.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadModel(ModelicaTest): time 2.281/2.281, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004353/0.0004355, allocations: 15.98 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2848, allocations: 54.87 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.07741/0.3623, allocations: 49.68 MB / 418.9 MB, free: 8.91 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02397/0.3863, allocations: 14.14 MB / 433 MB, free: 10.74 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009811/0.3873, allocations: 31.75 kB / 433 MB, free: 10.71 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.3886, allocations: 386.1 kB / 433.4 MB, free: 10.33 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01464/0.4033, allocations: 3.872 MB / 437.3 MB, free: 6.449 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006817/0.4102, allocations: 1.917 MB / 439.2 MB, free: 4.527 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003102/0.4133, allocations: 1.674 MB / 440.9 MB, free: 2.852 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001312/0.4146, allocations: 0.7053 MB / 441.6 MB, free: 2.125 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008116/0.4228, allocations: 3.613 MB / 445.2 MB, free: 14.51 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006415/0.4292, allocations: 3.286 MB / 448.5 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002261/0.4295, allocations: 56 kB / 448.5 MB, free: 11.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01709/0.4466, allocations: 7.105 MB / 455.6 MB, free: 4.051 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000457/0.4471, allocations: 259.2 kB / 455.9 MB, free: 3.797 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004605/0.4476, allocations: 233.2 kB / 456.1 MB, free: 3.562 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007747/0.4553, allocations: 3.726 MB / 459.9 MB, free: 15.83 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.582e-06/0.4554, allocations: 0 / 459.9 MB, free: 15.83 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.747e-06/0.4554, allocations: 0 / 459.9 MB, free: 15.83 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.4554, allocations: 4 kB / 459.9 MB, free: 15.82 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004917/0.4603, allocations: 1.704 MB / 461.6 MB, free: 14.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.4604, allocations: 8.031 kB / 461.6 MB, free: 14.06 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002872/0.4633, allocations: 326.5 kB / 461.9 MB, free: 13.74 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.4647, allocations: 0.6406 MB / 462.5 MB, free: 13.06 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003181/0.4651, allocations: 303.6 kB / 462.8 MB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001935/0.4653, allocations: 84 kB / 462.9 MB, free: 12.63 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004288/0.4696, allocations: 1.534 MB / 464.4 MB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.524e-05/0.4696, allocations: 3.938 kB / 464.4 MB, free: 11.01 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.4698, allocations: 39.95 kB / 464.5 MB, free: 10.97 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.111e-05/0.4699, allocations: 41.98 kB / 464.5 MB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004481/0.4744, allocations: 1.381 MB / 465.9 MB, free: 9.547 MB / 394.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.01099/0.4854, allocations: 6.385 MB / 472.3 MB, free: 2.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003764/0.4892, allocations: 0.999 MB / 473.3 MB, free: 1.664 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2874/0.7766, allocations: 18.9 MB / 492.2 MB, free: 84.54 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.7766, allocations: 45.2 kB / 492.2 MB, free: 84.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=59): time 3.788e-06/0.7767, allocations: 1.219 kB / 492.2 MB, free: 84.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=64): time 0.0108/0.7875, allocations: 3.022 MB / 495.3 MB, free: 82.55 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.813e-05/0.7876, allocations: 164.6 kB / 495.4 MB, free: 82.36 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.7887, allocations: 0.7933 MB / 496.2 MB, free: 81.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001325/0.7888, allocations: 41.7 kB / 496.2 MB, free: 81.51 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002707/0.7891, allocations: 470.6 kB / 496.7 MB, free: 81.05 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.7893, allocations: 218.5 kB / 496.9 MB, free: 80.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.383e-05/0.7894, allocations: 24 kB / 496.9 MB, free: 80.82 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.305e-05/0.7895, allocations: 354.6 kB / 497.3 MB, free: 80.46 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.7907, allocations: 457.7 kB / 497.7 MB, free: 80.02 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.792, allocations: 0.7269 MB / 498.5 MB, free: 79.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.7932, allocations: 498.5 kB / 499 MB, free: 78.69 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.362e-06/0.7932, allocations: 4 kB / 499 MB, free: 78.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003144/0.7964, allocations: 1.247 MB / 0.4885 GB, free: 77.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.7965, allocations: 8 kB / 0.4885 GB, free: 77.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.7965, allocations: 12 kB / 0.4885 GB, free: 77.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004263/0.7969, allocations: 92.78 kB / 0.4886 GB, free: 77.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003879/0.8008, allocations: 356.2 kB / 0.4889 GB, free: 76.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005703/0.8066, allocations: 6.427 MB / 0.4952 GB, free: 70.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.8079, allocations: 139.9 kB / 0.4953 GB, free: 69.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.8081, allocations: 47.98 kB / 0.4954 GB, free: 69.82 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005911/0.8087, allocations: 338 kB / 0.4957 GB, free: 69.49 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000224/0.8089, allocations: 86.97 kB / 0.4958 GB, free: 69.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003856/0.8128, allocations: 2.209 MB / 0.4979 GB, free: 67.17 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.515e-05/0.8129, allocations: 23.97 kB / 0.498 GB, free: 67.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.027e-06/0.8129, allocations: 0 / 0.498 GB, free: 67.14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.8129, allocations: 7.984 kB / 0.498 GB, free: 67.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005995/0.8189, allocations: 3.44 MB / 0.5013 GB, free: 63.65 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.819, allocations: 7.984 kB / 0.5013 GB, free: 63.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003736/0.8227, allocations: 295.7 kB / 0.5016 GB, free: 63.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004693/0.8232, allocations: 112.7 kB / 0.5017 GB, free: 63.24 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.8234, allocations: 19.92 kB / 0.5018 GB, free: 63.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005659/0.829, allocations: 6.395 MB / 0.508 GB, free: 56.28 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.8291, allocations: 3.938 kB / 0.508 GB, free: 56.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004142/0.8332, allocations: 2.184 MB / 0.5101 GB, free: 54.06 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004661/0.8337, allocations: 307 kB / 0.5104 GB, free: 53.74 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002389/0.834, allocations: 27.98 kB / 0.5105 GB, free: 53.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.8351, allocations: 119.8 kB / 0.5106 GB, free: 53.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003049/0.8354, allocations: 132.2 kB / 0.5107 GB, free: 53.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.773e-05/0.8355, allocations: 23.98 kB / 0.5107 GB, free: 53.45 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001156/0.8367, allocations: 0.7891 MB / 0.5115 GB, free: 52.65 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.08e-07/0.8367, allocations: 0 / 0.5115 GB, free: 52.65 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003471/0.8402, allocations: 1.22 MB / 0.5127 GB, free: 51.51 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.level,tank.medium.h) * Number of discrete variables: 20 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.005411/0.8456, allocations: 1.294 MB / 0.5139 GB, free: 50.43 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005767/0.8514, allocations: 1.31 MB / 0.5152 GB, free: 49.12 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.807e-06/0.8515, allocations: 4 kB / 0.5152 GB, free: 49.12 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004403/0.8559, allocations: 0.9041 MB / 0.5161 GB, free: 48.22 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.8587, allocations: 0.5092 MB / 0.5166 GB, free: 47.72 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004528/0.8633, allocations: 3.018 MB / 0.5196 GB, free: 44.65 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007026/0.864, allocations: 1.223 MB / 0.5207 GB, free: 43.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000387/0.8645, allocations: 87.42 kB / 0.5208 GB, free: 43.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.507e-06/0.8645, allocations: 0 / 0.5208 GB, free: 43.3 MB / 394.7 MB Notification: Performance of Templates: time 0.07988/0.9444, allocations: 61.9 MB / 0.5813 GB, free: 13.36 MB / 426.7 MB