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_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances") Notification: Performance of loadModel(ModelicaTest): time 2.381/2.381, allocations: 270.1 MB / 283.6 MB, free: 3.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.564e-05/3.574e-05, allocations: 5.969 kB / 348.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 61.88 MB / 410.3 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.82/8.93, allocations: 3.456 GB / 3.857 GB, free: 29.84 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003788/8.931, allocations: 87.94 kB / 3.857 GB, free: 29.75 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 8.815/17.75, allocations: 1.584 GB / 5.44 GB, free: 30.08 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.568e-06/17.75, allocations: 0 / 5.44 GB, free: 30.08 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0003144/17.75, allocations: 88.59 kB / 5.44 GB, free: 30.08 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.03201/17.78, allocations: 8.382 MB / 5.448 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/17.78, allocations: 9.781 kB / 5.449 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002549/17.78, allocations: 404.4 kB / 5.449 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006885/17.79, allocations: 2.094 MB / 5.451 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005406/17.79, allocations: 0.4964 MB / 5.451 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001306/17.79, allocations: 286.8 kB / 5.452 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01258/17.8, allocations: 4.746 MB / 5.456 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001098/17.8, allocations: 16.42 kB / 5.456 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007553/17.8, allocations: 123 kB / 5.456 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000375/17.8, allocations: 259 kB / 5.457 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01204/17.82, allocations: 4.756 MB / 5.461 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05419/17.87, allocations: 20.87 MB / 5.482 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005906/17.88, allocations: 2.507 MB / 5.484 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003425/17.88, allocations: 1.533 MB / 5.486 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002721/17.88, allocations: 3.316 MB / 5.489 GB, free: 10.62 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.541e-05/17.88, allocations: 66.45 kB / 5.489 GB, free: 10.58 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=232): time 7.959e-06/17.88, allocations: 0 / 5.489 GB, free: 10.58 MB / 0.6198 GB Notification: Performance of matching and sorting (n=268): time 0.08084/17.96, allocations: 14.12 MB / 5.503 GB, free: 9.492 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/17.96, allocations: 236.6 kB / 5.503 GB, free: 9.238 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007378/17.97, allocations: 2.17 MB / 5.505 GB, free: 8.965 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.001119/17.97, allocations: 79.27 kB / 5.505 GB, free: 8.934 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.002181/17.97, allocations: 1.47 MB / 5.507 GB, free: 8.258 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.002088/17.98, allocations: 0.9437 MB / 5.508 GB, free: 7.664 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007919/17.98, allocations: 81.47 kB / 5.508 GB, free: 7.664 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.000448/17.98, allocations: 470.9 kB / 5.508 GB, free: 7.355 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007908/17.99, allocations: 1.814 MB / 5.51 GB, free: 7.348 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008962/17.99, allocations: 2.997 MB / 5.513 GB, free: 5.965 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008667/18, allocations: 2.377 MB / 5.515 GB, free: 21.79 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.8e-05/18, allocations: 10.31 kB / 5.515 GB, free: 21.79 MB / 0.6355 GB Notification: Performance of matching and sorting (n=502) (initialization): time 0.01546/18.02, allocations: 5.572 MB / 5.521 GB, free: 21.36 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.00741/18.03, allocations: 15.22 MB / 5.535 GB, free: 5.531 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001347/18.03, allocations: 36.59 kB / 5.535 GB, free: 5.531 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00365/18.03, allocations: 0.7376 MB / 5.536 GB, free: 5.508 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005692/18.04, allocations: 0.897 MB / 5.537 GB, free: 5.508 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003732/18.04, allocations: 2.448 MB / 5.539 GB, free: 3.953 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006295/18.05, allocations: 387 kB / 5.54 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001403/18.05, allocations: 240.9 kB / 5.54 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/18.05, allocations: 6.031 kB / 5.54 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01506/18.06, allocations: 5.198 MB / 5.545 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001124/18.06, allocations: 36.09 kB / 5.545 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003401/18.07, allocations: 0.7354 MB / 5.546 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005285/18.07, allocations: 0.8906 MB / 5.547 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003639/18.07, allocations: 2.453 MB / 5.549 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006108/18.08, allocations: 377.5 kB / 5.549 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001367/18.08, allocations: 241.9 kB / 5.55 GB, free: 2.094 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.001483/18.08, allocations: 365.8 kB / 5.55 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009488/18.09, allocations: 298 kB / 5.55 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01593/18.1, allocations: 5.876 MB / 5.556 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.49e-05/18.1, allocations: 34.84 kB / 5.556 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/18.1, allocations: 0 / 5.556 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.165e-05/18.1, allocations: 20.86 kB / 5.556 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02178/18.12, allocations: 8.261 MB / 5.564 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.838e-05/18.12, allocations: 3.562 kB / 5.564 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004011/18.13, allocations: 0.5354 MB / 5.565 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004671/18.13, allocations: 0.9034 MB / 5.566 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008024/18.13, allocations: 110.4 kB / 5.566 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003369/18.14, allocations: 2.335 MB / 5.568 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/18.14, allocations: 6.875 kB / 5.568 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01626/18.15, allocations: 6.564 MB / 5.574 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003255/18.16, allocations: 0.8796 MB / 5.575 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001477/18.16, allocations: 75.02 kB / 5.575 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004819/18.16, allocations: 284.9 kB / 5.576 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000843/18.16, allocations: 197.5 kB / 5.576 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006155/18.16, allocations: 150.6 kB / 5.576 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.00399/18.17, allocations: 1.674 MB / 5.578 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.224e-06/18.17, allocations: 0 / 5.578 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.02409/18.19, allocations: 3.938 MB / 5.581 GB, free: 13.56 MB / 0.6511 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.02398/18.22, allocations: 4.603 MB / 5.586 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.02518/18.24, allocations: 7.651 MB / 5.593 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/18.24, allocations: 4.688 kB / 5.593 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.005449/18.25, allocations: 2.088 MB / 5.595 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00819/18.25, allocations: 1.324 MB / 5.597 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01987/18.27, allocations: 6.309 MB / 5.603 GB, free: 9.141 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005775/18.28, allocations: 2.287 MB / 5.605 GB, free: 8.238 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.01534/18.3, allocations: 2.749 MB / 5.608 GB, free: 8.129 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001816/18.3, allocations: 313.5 kB / 5.608 GB, free: 8.098 MB / 0.6511 GB Notification: Performance of SimCode: time 2.706e-06/18.3, allocations: 0 / 5.608 GB, free: 8.098 MB / 0.6511 GB Notification: Performance of Templates: time 0.762/19.06, allocations: 137 MB / 5.742 GB, free: 69.73 MB / 0.6667 GB