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_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances") Notification: Performance of loadModel(ModelicaTest): time 2.324/2.324, allocations: 270 MB / 283.6 MB, free: 3.031 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.672e-05/3.695e-05, allocations: 4 kB / 348.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.114, allocations: 61.88 MB / 410.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.754/8.868, allocations: 3.456 GB / 3.857 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/8.868, allocations: 89.02 kB / 3.857 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 8.449/17.32, allocations: 1.584 GB / 5.44 GB, free: 32.2 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.595e-06/17.32, allocations: 0 / 5.44 GB, free: 32.2 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0003085/17.32, allocations: 82.86 kB / 5.44 GB, free: 32.18 MB / 0.6198 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.03165/17.35, allocations: 8.385 MB / 5.448 GB, free: 27.47 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/17.35, allocations: 8.219 kB / 5.449 GB, free: 27.47 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002579/17.35, allocations: 402.2 kB / 5.449 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007081/17.36, allocations: 2.092 MB / 5.451 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000565/17.36, allocations: 0.4935 MB / 5.451 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001464/17.36, allocations: 281.2 kB / 5.452 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01332/17.37, allocations: 4.754 MB / 5.456 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001323/17.38, allocations: 16.66 kB / 5.456 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001045/17.38, allocations: 128.1 kB / 5.456 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003859/17.38, allocations: 262.7 kB / 5.457 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/17.39, allocations: 4.754 MB / 5.461 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04187/17.43, allocations: 20.87 MB / 5.482 GB, free: 9.801 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005756/17.44, allocations: 2.52 MB / 5.484 GB, free: 7.547 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003292/17.44, allocations: 1.53 MB / 5.486 GB, free: 6.156 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002699/17.44, allocations: 3.311 MB / 5.489 GB, free: 2.262 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.614e-05/17.44, allocations: 72.55 kB / 5.489 GB, free: 2.184 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=232): time 7.077e-06/17.44, allocations: 0 / 5.489 GB, free: 2.184 MB / 0.6198 GB Notification: Performance of matching and sorting (n=268): time 0.07395/17.52, allocations: 14.3 MB / 5.503 GB, free: 6.844 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001699/17.52, allocations: 235.7 kB / 5.503 GB, free: 6.562 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005391/17.52, allocations: 2.182 MB / 5.505 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0008558/17.52, allocations: 81.7 kB / 5.505 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.001932/17.53, allocations: 1.46 MB / 5.507 GB, free: 2.801 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.001801/17.53, allocations: 0.9553 MB / 5.508 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005524/17.53, allocations: 76 kB / 5.508 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0004542/17.53, allocations: 466.4 kB / 5.508 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5161/18.04, allocations: 1.814 MB / 5.51 GB, free: 49.27 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006084/18.05, allocations: 2.99 MB / 5.513 GB, free: 47.89 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005784/18.06, allocations: 2.379 MB / 5.515 GB, free: 47.71 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.164e-05/18.06, allocations: 10.91 kB / 5.515 GB, free: 47.71 MB / 0.6355 GB Notification: Performance of matching and sorting (n=502) (initialization): time 0.01539/18.07, allocations: 5.568 MB / 5.521 GB, free: 47.45 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.003064/18.08, allocations: 15.22 MB / 5.536 GB, free: 31.64 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001297/18.08, allocations: 38.91 kB / 5.536 GB, free: 31.64 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003598/18.08, allocations: 0.7254 MB / 5.536 GB, free: 31.61 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005629/18.08, allocations: 0.8951 MB / 5.537 GB, free: 31.61 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003226/18.09, allocations: 2.466 MB / 5.54 GB, free: 30.05 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005809/18.09, allocations: 383.7 kB / 5.54 GB, free: 30.05 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009906/18.09, allocations: 238.4 kB / 5.54 GB, free: 30.05 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/18.09, allocations: 3.531 kB / 5.54 GB, free: 30.05 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01451/18.11, allocations: 5.201 MB / 5.545 GB, free: 29.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/18.11, allocations: 37.88 kB / 5.545 GB, free: 29.82 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00389/18.11, allocations: 0.731 MB / 5.546 GB, free: 29.79 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005402/18.12, allocations: 0.8868 MB / 5.547 GB, free: 29.79 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003319/18.12, allocations: 2.453 MB / 5.549 GB, free: 28.24 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006142/18.13, allocations: 382.5 kB / 5.55 GB, free: 28.24 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001263/18.13, allocations: 236.2 kB / 5.55 GB, free: 28.24 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.001453/18.13, allocations: 365.4 kB / 5.55 GB, free: 28.13 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009061/18.13, allocations: 300.5 kB / 5.551 GB, free: 28.13 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0145/18.15, allocations: 5.872 MB / 5.556 GB, free: 27.87 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-05/18.15, allocations: 32.86 kB / 5.556 GB, free: 27.87 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/18.15, allocations: 0 / 5.556 GB, free: 27.87 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.447e-05/18.15, allocations: 20.72 kB / 5.556 GB, free: 27.87 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02046/18.17, allocations: 8.256 MB / 5.564 GB, free: 27.36 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.691e-05/18.17, allocations: 3.031 kB / 5.564 GB, free: 27.36 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003693/18.17, allocations: 0.5292 MB / 5.565 GB, free: 27.36 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005334/18.18, allocations: 0.9086 MB / 5.566 GB, free: 27.32 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007859/18.18, allocations: 107.9 kB / 5.566 GB, free: 27.32 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002908/18.18, allocations: 2.339 MB / 5.568 GB, free: 25.77 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.727e-06/18.18, allocations: 4.734 kB / 5.568 GB, free: 25.77 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01544/18.2, allocations: 6.567 MB / 5.575 GB, free: 25.15 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002959/18.2, allocations: 0.8844 MB / 5.575 GB, free: 24.89 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001013/18.2, allocations: 81.36 kB / 5.576 GB, free: 24.89 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004075/18.2, allocations: 274.5 kB / 5.576 GB, free: 24.88 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006571/18.2, allocations: 199.9 kB / 5.576 GB, free: 24.88 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005644/18.2, allocations: 148 kB / 5.576 GB, free: 24.88 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.003559/18.21, allocations: 1.679 MB / 5.578 GB, free: 24.72 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.215e-06/18.21, allocations: 0 / 5.578 GB, free: 24.72 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.01651/18.22, allocations: 3.938 MB / 5.582 GB, free: 24.72 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 (285): * Single equations (assignments): 273 * 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.01541/18.24, allocations: 4.591 MB / 5.586 GB, free: 24.2 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01892/18.26, allocations: 7.651 MB / 5.594 GB, free: 23.61 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/18.26, allocations: 6.438 kB / 5.594 GB, free: 23.61 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.005413/18.26, allocations: 2.098 MB / 5.596 GB, free: 23.6 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008002/18.27, allocations: 1.307 MB / 5.597 GB, free: 23.55 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01748/18.29, allocations: 6.315 MB / 5.603 GB, free: 22.62 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00264/18.29, allocations: 2.287 MB / 5.605 GB, free: 21.85 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.01251/18.31, allocations: 2.757 MB / 5.608 GB, free: 21.74 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001899/18.31, allocations: 308.5 kB / 5.608 GB, free: 21.74 MB / 0.6355 GB Notification: Performance of SimCode: time 1.897e-06/18.31, allocations: 2.562 kB / 5.608 GB, free: 21.74 MB / 0.6355 GB Notification: Performance of Templates: time 0.2771/18.58, allocations: 137 MB / 5.742 GB, free: 7.977 MB / 0.6667 GB