Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume1.mC_scaled.1.|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p|volume2.mC_scaled.1.|volume2.medium.T|volume2.medium.Xi.1.|volume2.medium.p|volume3.mC_scaled.1.|volume3.medium.T|volume3.medium.Xi.1.|volume3.medium.p",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances") Notification: Performance of loadModel(ModelicaTest): time 2.472/2.472, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.801e-05/6.796e-05, allocations: 4.047 kB / 308 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4381/0.4382, allocations: 54.86 MB / 362.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances): time 0.8269/1.265, allocations: 246.3 MB / 0.5948 GB, free: 5.52 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.06891/1.334, allocations: 31.93 MB / 0.626 GB, free: 6.742 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004315/1.339, allocations: 107.1 kB / 0.6261 GB, free: 6.637 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004963/1.344, allocations: 1.038 MB / 0.6271 GB, free: 5.594 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03231/1.376, allocations: 7.169 MB / 0.6341 GB, free: 14.41 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01958/1.396, allocations: 4.971 MB / 0.639 GB, free: 9.422 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.009687/1.405, allocations: 3.722 MB / 0.6426 GB, free: 5.691 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004473/1.41, allocations: 1.784 MB / 0.6444 GB, free: 3.902 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01407/1.424, allocations: 4.088 MB / 0.6484 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007289/1.431, allocations: 2.526 MB / 0.6508 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04663/1.478, allocations: 15.96 MB / 0.6664 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.006394/1.484, allocations: 0.6602 MB / 0.6671 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.003429/1.488, allocations: 1.458 MB / 0.6685 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.002132/1.49, allocations: 388 kB / 0.6688 GB, free: 10.8 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.02716/1.517, allocations: 9.426 MB / 0.6781 GB, free: 1.352 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/1.517, allocations: 0 / 0.6781 GB, free: 1.352 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.836e-06/1.517, allocations: 0 / 0.6781 GB, free: 1.352 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001801/1.517, allocations: 0 / 0.6781 GB, free: 1.352 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 752 * Number of variables: 752 Notification: Performance of Generate backend data structure: time 0.02168/1.539, allocations: 5.146 MB / 0.6831 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/1.539, allocations: 8.031 kB / 0.6831 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002592/1.542, allocations: 403.7 kB / 0.6835 GB, free: 11.71 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007069/1.549, allocations: 1.893 MB / 0.6853 GB, free: 9.758 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007778/1.55, allocations: 0.5007 MB / 0.6858 GB, free: 9.199 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001374/1.551, allocations: 279.9 kB / 0.6861 GB, free: 8.926 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01549/1.567, allocations: 4.943 MB / 0.6909 GB, free: 3.746 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001156/1.567, allocations: 11.88 kB / 0.6909 GB, free: 3.734 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006828/1.568, allocations: 131.9 kB / 0.691 GB, free: 3.605 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006189/1.568, allocations: 277.2 kB / 0.6913 GB, free: 3.332 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3502/1.918, allocations: 5.107 MB / 0.6963 GB, free: 225.1 MB / 0.5261 GB 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.04724/1.966, allocations: 21.79 MB / 0.7176 GB, free: 209 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007989/1.974, allocations: 2.625 MB / 0.7201 GB, free: 207.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003402/1.977, allocations: 3.38 MB / 0.7234 GB, free: 204 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.259e-05/1.977, allocations: 67.91 kB / 0.7235 GB, free: 203.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=235): time 5.25e-06/1.977, allocations: 0 / 0.7235 GB, free: 203.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=271): time 0.103/2.08, allocations: 15.92 MB / 0.739 GB, free: 195 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.239e-05/2.081, allocations: 243.7 kB / 0.7393 GB, free: 194.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004042/2.085, allocations: 2.013 MB / 0.7412 GB, free: 192.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008954/2.086, allocations: 77.7 kB / 0.7413 GB, free: 192.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001182/2.087, allocations: 1.414 MB / 0.7427 GB, free: 191.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001549/2.088, allocations: 0.9565 MB / 0.7436 GB, free: 190.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005301/2.089, allocations: 80 kB / 0.7437 GB, free: 190.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002709/2.089, allocations: 479.5 kB / 0.7442 GB, free: 189.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007011/2.096, allocations: 1.964 MB / 0.7461 GB, free: 187.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00787/2.104, allocations: 3.277 MB / 0.7493 GB, free: 183.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008162/2.112, allocations: 2.542 MB / 0.7518 GB, free: 181.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.072e-05/2.112, allocations: 8 kB / 0.7518 GB, free: 181.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=514) (initialization): time 0.02198/2.134, allocations: 6.08 MB / 0.7577 GB, free: 175.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.003436/2.138, allocations: 16.05 MB / 0.7734 GB, free: 157.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/2.138, allocations: 40 kB / 0.7734 GB, free: 157.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007414/2.146, allocations: 0.9564 MB / 0.7744 GB, free: 156.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007196/2.153, allocations: 0.9435 MB / 0.7753 GB, free: 155.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007517/2.16, allocations: 2.781 MB / 0.778 GB, free: 153 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007084/2.168, allocations: 387.4 kB / 0.7784 GB, free: 152.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001352/2.169, allocations: 283.9 kB / 0.7786 GB, free: 152.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/2.169, allocations: 4 kB / 0.7786 GB, free: 152.3 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02112/2.19, allocations: 5.841 MB / 0.7843 GB, free: 146.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001269/2.19, allocations: 40.23 kB / 0.7844 GB, free: 146.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007192/2.197, allocations: 0.9593 MB / 0.7853 GB, free: 145.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007159/2.205, allocations: 0.9282 MB / 0.7862 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007378/2.212, allocations: 2.8 MB / 0.789 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005877/2.218, allocations: 367.5 kB / 0.7893 GB, free: 141.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0013/2.219, allocations: 279.9 kB / 0.7896 GB, free: 141 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 183 * Number of states: 0 () * Number of discrete variables: 22 (traceSubstance1.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance.ind,volume1.regularFlow[1],volume1.regularFlow[2],volume1.regularFlow[3],volume2.regularFlow[1],volume2.regularFlow[2],volume2.regularFlow[3],volume3.regularFlow[1],volume3.regularFlow[2],volume3.regularFlow[3],volume3.inFlow[3],volume3.inFlow[2],volume3.inFlow[1],volume2.inFlow[3],volume2.inFlow[2],volume2.inFlow[1],volume1.inFlow[3],volume1.inFlow[2],volume1.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (493): * Single equations (assignments): 486 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.003125/2.223, allocations: 0.8928 MB / 0.7905 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001071/2.224, allocations: 288.5 kB / 0.7907 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02395/2.248, allocations: 6.144 MB / 0.7967 GB, free: 133.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-05/2.248, allocations: 39.94 kB / 0.7968 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.534e-05/2.248, allocations: 0 / 0.7968 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001004/2.248, allocations: 15.94 kB / 0.7968 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02854/2.276, allocations: 8.902 MB / 0.8055 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.908e-05/2.277, allocations: 0 / 0.8055 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005224/2.282, allocations: 0.5736 MB / 0.806 GB, free: 124 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008998/2.291, allocations: 1.13 MB / 0.8071 GB, free: 122.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009537/2.292, allocations: 119.9 kB / 0.8073 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006495/2.298, allocations: 2.668 MB / 0.8099 GB, free: 120 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/2.298, allocations: 4.031 kB / 0.8099 GB, free: 120 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02508/2.324, allocations: 7.42 MB / 0.8171 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003109/2.327, allocations: 0.8795 MB / 0.818 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001334/2.328, allocations: 71.98 kB / 0.818 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005447/2.334, allocations: 275.6 kB / 0.8183 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009753/2.335, allocations: 210.2 kB / 0.8185 GB, free: 111 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007215/2.335, allocations: 180 kB / 0.8187 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003162/2.338, allocations: 1.47 MB / 0.8201 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.132e-06/2.339, allocations: 0 / 0.8201 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01551/2.354, allocations: 3.739 MB / 0.8238 GB, free: 106 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T,volume1.mC_scaled[1],volume2.medium.p,volume2.medium.Xi[1],volume2.medium.T,volume2.mC_scaled[1],volume3.medium.p,volume3.medium.Xi[1],volume3.medium.T,volume3.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (297): * Single equations (assignments): 285 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0137/2.368, allocations: 3.291 MB / 0.827 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02702/2.395, allocations: 8.335 MB / 0.8351 GB, free: 94.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.448e-05/2.395, allocations: 8.5 kB / 0.8351 GB, free: 94.69 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008318/2.403, allocations: 2.361 MB / 0.8374 GB, free: 92.33 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01056/2.414, allocations: 1.21 MB / 0.8386 GB, free: 91.12 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02653/2.441, allocations: 9.063 MB / 0.8475 GB, free: 82 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002877/2.443, allocations: 2.288 MB / 0.8497 GB, free: 79.68 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003497/2.447, allocations: 467.2 kB / 0.8501 GB, free: 79.22 MB / 0.5261 GB Notification: Performance of SimCode: time 1.903e-06/2.447, allocations: 0 / 0.8501 GB, free: 79.22 MB / 0.5261 GB Notification: Performance of Templates: time 0.5688/3.016, allocations: 125.5 MB / 0.9727 GB, free: 174.8 MB / 0.5261 GB