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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadModel(ModelicaTest): time 2.33/2.33, allocations: 269 MB / 284.1 MB, free: 3.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.044e-05/3.038e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1344, allocations: 61.89 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.4252/0.5597, allocations: 48.59 MB / 459.5 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02731/0.587, allocations: 13.29 MB / 472.8 MB, free: 6.637 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0014/0.5885, allocations: 27.5 kB / 472.8 MB, free: 6.625 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001748/0.5903, allocations: 370.3 kB / 473.2 MB, free: 6.289 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01478/0.6051, allocations: 3.469 MB / 476.7 MB, free: 3.285 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007949/0.6131, allocations: 1.698 MB / 478.4 MB, free: 1.883 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003184/0.6163, allocations: 1.262 MB / 479.6 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001366/0.6177, allocations: 0.5685 MB / 480.2 MB, free: 0.625 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00949/0.6273, allocations: 3.553 MB / 483.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008432/0.6357, allocations: 3.255 MB / 487 MB, free: 11.53 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01992/0.6557, allocations: 6.634 MB / 493.6 MB, free: 4.891 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003031/0.6588, allocations: 440 kB / 494.1 MB, free: 4.461 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000707/0.6596, allocations: 255.2 kB / 494.3 MB, free: 4.211 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006159/0.6602, allocations: 123.9 kB / 494.4 MB, free: 4.09 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009619/0.6698, allocations: 3.547 MB / 498 MB, free: 0.5352 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.6699, allocations: 0 / 498 MB, free: 0.5352 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.6699, allocations: 0 / 498 MB, free: 0.5352 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.906e-05/0.67, allocations: 0 / 498 MB, free: 0.5352 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.006364/0.6763, allocations: 1.63 MB / 499.6 MB, free: 14.85 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.6764, allocations: 8.031 kB / 499.6 MB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003534/0.6799, allocations: 322.5 kB / 499.9 MB, free: 14.53 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001906/0.6819, allocations: 0.6329 MB / 0.4888 GB, free: 13.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003558/0.6823, allocations: 295.6 kB / 0.4891 GB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003012/0.6826, allocations: 87.91 kB / 0.4892 GB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005807/0.6884, allocations: 1.531 MB / 0.4907 GB, free: 11.81 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.449e-05/0.6885, allocations: 7.891 kB / 0.4907 GB, free: 11.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001878/0.6887, allocations: 43.92 kB / 0.4907 GB, free: 11.76 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.64e-05/0.6888, allocations: 41.98 kB / 0.4908 GB, free: 11.72 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007734/0.6966, allocations: 1.381 MB / 0.4921 GB, free: 10.34 MB / 410.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.01931/0.716, allocations: 6.44 MB / 0.4984 GB, free: 3.418 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007/0.723, allocations: 1.007 MB / 0.4994 GB, free: 2.395 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06931/0.7924, allocations: 15.82 MB / 0.5149 GB, free: 0.7227 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.916e-05/0.7925, allocations: 39.12 kB / 0.5149 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 4.028e-06/0.7925, allocations: 0 / 0.5149 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.01518/0.8077, allocations: 3.059 MB / 0.5179 GB, free: 13.56 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.8079, allocations: 162.8 kB / 0.518 GB, free: 13.37 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00149/0.8094, allocations: 0.7184 MB / 0.5187 GB, free: 12.64 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002345/0.8096, allocations: 49.69 kB / 0.5188 GB, free: 12.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004484/0.8101, allocations: 457.8 kB / 0.5192 GB, free: 12.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003379/0.8105, allocations: 217 kB / 0.5194 GB, free: 11.92 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.984e-05/0.8106, allocations: 16 kB / 0.5194 GB, free: 11.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.8107, allocations: 350.8 kB / 0.5198 GB, free: 11.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001852/0.8126, allocations: 449.7 kB / 0.5202 GB, free: 11.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002054/0.8147, allocations: 0.6727 MB / 0.5209 GB, free: 10.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00186/0.8166, allocations: 470.9 kB / 0.5213 GB, free: 9.891 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.8166, allocations: 4 kB / 0.5213 GB, free: 9.887 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004643/0.8213, allocations: 1.197 MB / 0.5225 GB, free: 8.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.8214, allocations: 8 kB / 0.5225 GB, free: 8.672 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.8214, allocations: 8.062 kB / 0.5225 GB, free: 8.664 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005495/0.822, allocations: 88.8 kB / 0.5226 GB, free: 8.574 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006673/0.8286, allocations: 351.4 kB / 0.5229 GB, free: 8.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008669/0.8374, allocations: 6.41 MB / 0.5292 GB, free: 1.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.8393, allocations: 127.9 kB / 0.5293 GB, free: 1.145 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000195/0.8396, allocations: 47.98 kB / 0.5293 GB, free: 1.098 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 98 * 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.000797/0.8404, allocations: 331.7 kB / 0.5297 GB, free: 0.7656 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000301/0.8407, allocations: 90.92 kB / 0.5298 GB, free: 0.6758 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005863/0.8466, allocations: 2.262 MB / 0.532 GB, free: 14.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.365e-05/0.8467, allocations: 15.98 kB / 0.532 GB, free: 14.37 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.8467, allocations: 0 / 0.532 GB, free: 14.37 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.8467, allocations: 7.984 kB / 0.532 GB, free: 14.36 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009403/0.8561, allocations: 3.521 MB / 0.5354 GB, free: 10.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.8562, allocations: 4.125 kB / 0.5354 GB, free: 10.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006318/0.8625, allocations: 307.4 kB / 0.5357 GB, free: 10.47 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005999/0.8632, allocations: 100.8 kB / 0.5358 GB, free: 10.37 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001687/0.8634, allocations: 19.98 kB / 0.5358 GB, free: 10.35 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008787/0.8721, allocations: 6.387 MB / 0.5421 GB, free: 3.414 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.8722, allocations: 3.953 kB / 0.5421 GB, free: 3.41 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008674/0.8809, allocations: 2.265 MB / 0.5443 GB, free: 1.086 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.882, allocations: 346.7 kB / 0.5446 GB, free: 0.7266 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006529/0.8827, allocations: 32.05 kB / 0.5446 GB, free: 0.6953 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002823/0.8855, allocations: 111.8 kB / 0.5448 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009578/0.8865, allocations: 136.2 kB / 0.5449 GB, free: 464 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003998/0.887, allocations: 23.98 kB / 0.5449 GB, free: 440 kB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004144/0.8911, allocations: 0.8844 MB / 0.5458 GB, free: 15.54 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.443e-06/0.8912, allocations: 0 / 0.5458 GB, free: 15.54 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008031/0.8993, allocations: 1.179 MB / 0.5469 GB, free: 14.36 MB / 474.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,$cse11.phase,$cse11.region,$cse12.phase,$cse12.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]) * 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.006991/0.9063, allocations: 1.299 MB / 0.5482 GB, free: 13.05 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0126/0.9189, allocations: 1.274 MB / 0.5494 GB, free: 11.78 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/0.919, allocations: 0 / 0.5494 GB, free: 11.78 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006387/0.9254, allocations: 0.8784 MB / 0.5503 GB, free: 10.89 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004747/0.9302, allocations: 0.5375 MB / 0.5508 GB, free: 10.36 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006926/0.9372, allocations: 3.05 MB / 0.5538 GB, free: 7.262 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/0.9384, allocations: 1.242 MB / 0.555 GB, free: 5.988 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005294/0.9389, allocations: 83.42 kB / 0.5551 GB, free: 5.906 MB / 474.7 MB Notification: Performance of SimCode: time 3.586e-06/0.9389, allocations: 0 / 0.5551 GB, free: 5.906 MB / 474.7 MB Notification: Performance of Templates: time 0.4709/1.41, allocations: 61.32 MB / 0.615 GB, free: 173.8 MB / 0.5105 GB