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.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances") Notification: Performance of loadModel(ModelicaTest): time 2.386/2.386, allocations: 249.5 MB / 261.6 MB, free: 2.148 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.663e-05/3.663e-05, allocations: 7.938 kB / 323.4 MB, free: 4.301 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3407, allocations: 58.83 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.616/8.957, allocations: 3.621 GB / 3.994 GB, free: 160.2 MB / 0.4949 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/8.957, allocations: 81.7 kB / 3.994 GB, free: 160.1 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 8.41/17.37, allocations: 1.635 GB / 5.629 GB, free: 1.887 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.106e-06/17.37, allocations: 0 / 5.629 GB, free: 1.887 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0002717/17.37, allocations: 87.86 kB / 5.629 GB, free: 1.801 MB / 0.5886 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.03494/17.4, allocations: 8.731 MB / 5.638 GB, free: 8.965 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/17.4, allocations: 8.031 kB / 5.638 GB, free: 8.957 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002775/17.41, allocations: 399.7 kB / 5.638 GB, free: 8.562 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007884/17.41, allocations: 2.096 MB / 5.64 GB, free: 6.41 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007225/17.41, allocations: 0.4931 MB / 5.641 GB, free: 5.859 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001592/17.42, allocations: 291.8 kB / 5.641 GB, free: 5.574 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01445/17.43, allocations: 4.789 MB / 5.646 GB, free: 0.5273 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001039/17.43, allocations: 11.88 kB / 5.646 GB, free: 0.5156 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007089/17.43, allocations: 128 kB / 5.646 GB, free: 400 kB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004852/17.43, allocations: 257.1 kB / 5.646 GB, free: 140 kB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01383/17.45, allocations: 4.801 MB / 5.651 GB, free: 11.33 MB / 0.6199 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5155/17.96, allocations: 20.68 MB / 5.671 GB, free: 33 MB / 0.6199 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006211/17.97, allocations: 2.621 MB / 5.674 GB, free: 32.96 MB / 0.6199 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00365/17.97, allocations: 1.551 MB / 5.675 GB, free: 32.95 MB / 0.6199 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002881/17.97, allocations: 3.345 MB / 5.678 GB, free: 29.48 MB / 0.6199 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.932e-05/17.97, allocations: 63.17 kB / 5.678 GB, free: 29.44 MB / 0.6199 GB Notification: Performance of pre-optimization done (n=235): time 6.716e-06/17.97, allocations: 0 / 5.678 GB, free: 29.44 MB / 0.6199 GB Notification: Performance of matching and sorting (n=271): time 0.07027/18.04, allocations: 14.27 MB / 5.692 GB, free: 28.52 MB / 0.6199 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.958e-05/18.04, allocations: 240.9 kB / 5.693 GB, free: 28.26 MB / 0.6199 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004204/18.05, allocations: 2.148 MB / 5.695 GB, free: 28.01 MB / 0.6199 GB Notification: Performance of collectPreVariables (initialization): time 0.0008447/18.05, allocations: 83.95 kB / 5.695 GB, free: 27.98 MB / 0.6199 GB Notification: Performance of collectInitialEqns (initialization): time 0.001182/18.05, allocations: 1.458 MB / 5.696 GB, free: 27.45 MB / 0.6199 GB Notification: Performance of collectInitialBindings (initialization): time 0.001363/18.05, allocations: 0.956 MB / 5.697 GB, free: 26.98 MB / 0.6199 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004949/18.05, allocations: 81.41 kB / 5.697 GB, free: 26.98 MB / 0.6199 GB Notification: Performance of setup shared object (initialization): time 0.0002534/18.05, allocations: 463.8 kB / 5.698 GB, free: 26.67 MB / 0.6199 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00446/18.06, allocations: 1.821 MB / 5.699 GB, free: 26.66 MB / 0.6199 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005339/18.06, allocations: 3.006 MB / 5.702 GB, free: 25.29 MB / 0.6199 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005453/18.07, allocations: 2.384 MB / 5.705 GB, free: 25.11 MB / 0.6199 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.132e-05/18.07, allocations: 12.22 kB / 5.705 GB, free: 25.11 MB / 0.6199 GB Notification: Performance of matching and sorting (n=502) (initialization): time 0.0152/18.08, allocations: 5.645 MB / 5.71 GB, free: 24.68 MB / 0.6199 GB Notification: Performance of prepare postOptimizeDAE: time 0.004683/18.09, allocations: 15.22 MB / 5.725 GB, free: 24.85 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001294/18.09, allocations: 41.92 kB / 5.725 GB, free: 24.85 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003467/18.09, allocations: 0.7277 MB / 5.726 GB, free: 24.83 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005492/18.1, allocations: 0.9178 MB / 5.727 GB, free: 24.83 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00363/18.1, allocations: 2.451 MB / 5.729 GB, free: 23.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005859/18.11, allocations: 392.5 kB / 5.729 GB, free: 23.26 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001289/18.11, allocations: 278.2 kB / 5.73 GB, free: 23.26 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/18.11, allocations: 8.219 kB / 5.73 GB, free: 23.26 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01453/18.12, allocations: 5.277 MB / 5.735 GB, free: 23.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001084/18.12, allocations: 35.53 kB / 5.735 GB, free: 23.02 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003422/18.13, allocations: 0.7342 MB / 5.736 GB, free: 23 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005178/18.13, allocations: 0.9088 MB / 5.736 GB, free: 23 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003501/18.13, allocations: 2.454 MB / 5.739 GB, free: 21.44 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005644/18.14, allocations: 375.1 kB / 5.739 GB, free: 21.43 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001249/18.14, allocations: 275.5 kB / 5.74 GB, free: 21.43 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * 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 (481): * Single equations (assignments): 474 * 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.001455/18.14, allocations: 362 kB / 5.74 GB, free: 21.32 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/18.14, allocations: 302.4 kB / 5.74 GB, free: 21.17 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01639/18.16, allocations: 5.732 MB / 5.746 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-05/18.16, allocations: 35.91 kB / 5.746 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/18.16, allocations: 0 / 5.746 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-05/18.16, allocations: 17.62 kB / 5.746 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02929/18.19, allocations: 9.514 MB / 5.755 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.094e-05/18.19, allocations: 0 / 5.755 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004031/18.19, allocations: 0.5701 MB / 5.756 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004658/18.2, allocations: 0.9153 MB / 5.757 GB, free: 20.3 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008509/18.2, allocations: 123.8 kB / 5.757 GB, free: 20.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003264/18.2, allocations: 2.335 MB / 5.759 GB, free: 18.75 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.837e-06/18.2, allocations: 2.25 kB / 5.759 GB, free: 18.75 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02178/18.23, allocations: 7.661 MB / 5.766 GB, free: 18.12 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003094/18.23, allocations: 0.8922 MB / 5.767 GB, free: 17.87 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001242/18.23, allocations: 72.56 kB / 5.767 GB, free: 17.87 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004527/18.23, allocations: 279.5 kB / 5.768 GB, free: 17.86 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008258/18.23, allocations: 219.7 kB / 5.768 GB, free: 17.86 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006407/18.24, allocations: 186.8 kB / 5.768 GB, free: 17.86 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.00347/18.24, allocations: 1.591 MB / 5.77 GB, free: 17.7 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.377e-06/18.24, allocations: 1.719 kB / 5.77 GB, free: 17.7 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.01807/18.26, allocations: 4.277 MB / 5.774 GB, free: 17.7 MB / 0.6355 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.01785/18.28, allocations: 5.233 MB / 5.779 GB, free: 17.03 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01891/18.29, allocations: 7.787 MB / 5.786 GB, free: 16.45 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/18.29, allocations: 3.625 kB / 5.786 GB, free: 16.45 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.005717/18.3, allocations: 2.218 MB / 5.789 GB, free: 16.43 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008502/18.31, allocations: 1.331 MB / 5.79 GB, free: 16.39 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01842/18.33, allocations: 6.417 MB / 5.796 GB, free: 15.43 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003071/18.33, allocations: 2.291 MB / 5.798 GB, free: 14.66 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0139/18.34, allocations: 2.423 MB / 5.801 GB, free: 14.55 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002426/18.35, allocations: 383 kB / 5.801 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of SimCode: time 1.971e-06/18.35, allocations: 2.438 kB / 5.801 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of Templates: time 0.7474/19.09, allocations: 143.9 MB / 5.942 GB, free: 73.28 MB / 0.6511 GB