Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junction1.mC_scaled.1.|junction1.medium.T|junction1.medium.Xi.1.|junction1.medium.p",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances") Notification: Performance of loadModel(ModelicaTest): time 2.101/2.101, allocations: 235 MB / 247.6 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.535e-05/3.539e-05, allocations: 7.984 kB / 304.9 MB, free: 5.648 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3275, allocations: 54.84 MB / 359.8 MB, free: 2.672 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.294/8.621, allocations: 3.686 GB / 4.037 GB, free: 165.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/8.621, allocations: 83.88 kB / 4.038 GB, free: 165.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.439/16.06, allocations: 1.457 GB / 5.494 GB, free: 26.68 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.113e-06/16.06, allocations: 0 / 5.494 GB, free: 26.68 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002217/16.06, allocations: 64.84 kB / 5.494 GB, free: 26.66 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 498 * Number of variables: 498 Notification: Performance of Generate backend data structure: time 0.02707/16.09, allocations: 7.271 MB / 5.501 GB, free: 22.79 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/16.09, allocations: 13.19 kB / 5.501 GB, free: 22.79 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001855/16.09, allocations: 281.5 kB / 5.502 GB, free: 22.66 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005176/16.09, allocations: 1.619 MB / 5.503 GB, free: 22.25 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/16.09, allocations: 161.3 kB / 5.503 GB, free: 22.25 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006398/16.1, allocations: 179.8 kB / 5.504 GB, free: 22.25 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007933/16.1, allocations: 3.046 MB / 5.507 GB, free: 22.02 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.353e-05/16.1, allocations: 4.344 kB / 5.507 GB, free: 22.02 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004438/16.1, allocations: 79.94 kB / 5.507 GB, free: 22.02 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003075/16.1, allocations: 184.5 kB / 5.507 GB, free: 22.02 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008759/16.11, allocations: 3.362 MB / 5.51 GB, free: 22.01 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0291/16.14, allocations: 11.99 MB / 5.522 GB, free: 17.36 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003828/16.15, allocations: 1.554 MB / 5.523 GB, free: 17.32 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002214/16.15, allocations: 1.003 MB / 5.524 GB, free: 17.3 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001738/16.15, allocations: 1.754 MB / 5.526 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/16.15, allocations: 50.41 kB / 5.526 GB, free: 15.57 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002609/16.15, allocations: 318.8 kB / 5.526 GB, free: 15.47 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=157): time 6.658e-06/16.15, allocations: 0 / 5.526 GB, free: 15.47 MB / 0.5573 GB Notification: Performance of matching and sorting (n=169): time 0.02884/16.18, allocations: 6.967 MB / 5.533 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/16.18, allocations: 201.6 kB / 5.533 GB, free: 14.5 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002784/16.18, allocations: 1.428 MB / 5.535 GB, free: 14.3 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004957/16.19, allocations: 59.08 kB / 5.535 GB, free: 14.27 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006082/16.19, allocations: 0.9763 MB / 5.536 GB, free: 13.74 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006284/16.19, allocations: 0.5921 MB / 5.536 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002743/16.19, allocations: 49.22 kB / 5.536 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001553/16.19, allocations: 404.9 kB / 5.537 GB, free: 13.05 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002612/16.19, allocations: 1.091 MB / 5.538 GB, free: 13.04 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002923/16.19, allocations: 1.63 MB / 5.539 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002964/16.2, allocations: 1.385 MB / 5.541 GB, free: 12.37 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-05/16.2, allocations: 3.531 kB / 5.541 GB, free: 12.37 MB / 0.5573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.01138/16.21, allocations: 3.669 MB / 5.544 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001292/16.21, allocations: 5.81 MB / 5.55 GB, free: 22.12 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.751e-05/16.21, allocations: 18.09 kB / 5.55 GB, free: 22.11 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009208/16.22, allocations: 1.214 MB / 5.551 GB, free: 22.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003465/16.22, allocations: 0.5431 MB / 5.552 GB, free: 22.08 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003396/16.22, allocations: 2.017 MB / 5.554 GB, free: 21.02 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003479/16.23, allocations: 210.1 kB / 5.554 GB, free: 21 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004614/16.23, allocations: 178.6 kB / 5.554 GB, free: 21 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/16.23, allocations: 6.344 kB / 5.554 GB, free: 21 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01121/16.24, allocations: 3.51 MB / 5.558 GB, free: 20.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-05/16.24, allocations: 13.75 kB / 5.558 GB, free: 20.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006436/16.25, allocations: 0.8724 MB / 5.558 GB, free: 20.78 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003346/16.25, allocations: 0.5521 MB / 5.559 GB, free: 20.75 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002877/16.25, allocations: 1.781 MB / 5.561 GB, free: 19.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003062/16.26, allocations: 199.9 kB / 5.561 GB, free: 19.69 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004833/16.26, allocations: 175.5 kB / 5.561 GB, free: 19.69 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance2.ind,traceSubstance.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (271): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,4 15} Notification: Performance of prepare postOptimizeDAE: time 0.0008254/16.26, allocations: 244.2 kB / 5.561 GB, free: 19.54 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006319/16.26, allocations: 204.7 kB / 5.562 GB, free: 19.43 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009799/16.27, allocations: 3.793 MB / 5.565 GB, free: 19.17 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.912e-05/16.27, allocations: 15.69 kB / 5.565 GB, free: 19.17 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.494e-06/16.27, allocations: 0 / 5.565 GB, free: 19.17 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-05/16.27, allocations: 13.47 kB / 5.565 GB, free: 19.17 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01447/16.28, allocations: 5.749 MB / 5.571 GB, free: 18.61 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/16.28, allocations: 3.094 kB / 5.571 GB, free: 18.61 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002192/16.28, allocations: 343.5 kB / 5.571 GB, free: 18.59 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007472/16.29, allocations: 1.071 MB / 5.572 GB, free: 18.57 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004748/16.29, allocations: 77.47 kB / 5.572 GB, free: 18.57 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002962/16.3, allocations: 1.944 MB / 5.574 GB, free: 17.5 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/16.3, allocations: 3.438 kB / 5.574 GB, free: 17.5 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009048/16.3, allocations: 4.431 MB / 5.579 GB, free: 15.64 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009612/16.31, allocations: 305.9 kB / 5.579 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005432/16.31, allocations: 48.7 kB / 5.579 GB, free: 15.38 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00242/16.31, allocations: 154 kB / 5.579 GB, free: 15.34 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003285/16.31, allocations: 147.9 kB / 5.579 GB, free: 15.32 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003521/16.31, allocations: 115.6 kB / 5.579 GB, free: 15.3 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002069/16.31, allocations: 1.094 MB / 5.58 GB, free: 14.87 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.01e-07/16.31, allocations: 0 / 5.58 GB, free: 14.87 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01133/16.32, allocations: 3.167 MB / 5.583 GB, free: 13.98 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (junction1.medium.p,junction1.medium.Xi[1],junction1.medium.T,junction1.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (166): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,3 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0121/16.33, allocations: 4.296 MB / 5.588 GB, free: 12.73 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01075/16.35, allocations: 4.46 MB / 5.592 GB, free: 11.03 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/16.35, allocations: 3.125 kB / 5.592 GB, free: 11.03 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00298/16.35, allocations: 1.256 MB / 5.593 GB, free: 10.59 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005583/16.35, allocations: 1.024 MB / 5.594 GB, free: 10.37 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00915/16.36, allocations: 3.973 MB / 5.598 GB, free: 8.012 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001902/16.36, allocations: 1.72 MB / 5.6 GB, free: 6.609 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00191/16.37, allocations: 313.7 kB / 5.6 GB, free: 6.348 MB / 0.573 GB Notification: Performance of SimCode: time 1.731e-06/16.37, allocations: 0 / 5.6 GB, free: 6.348 MB / 0.573 GB Notification: Performance of Templates: time 0.6067/16.97, allocations: 87.06 MB / 5.685 GB, free: 52.09 MB / 0.5886 GB