Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Fittings_TestJunctionTraceSubstances",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.66/2.66, allocations: 235.2 MB / 242.3 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.068e-05/4.098e-05, allocations: 4 kB / 299.6 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4262/0.4263, allocations: 54.85 MB / 354.4 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 13.29/13.71, allocations: 3.685 GB / 4.032 GB, free: 91.89 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003488/13.71, allocations: 84.16 kB / 4.032 GB, free: 91.85 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 11.06/24.77, allocations: 1.448 GB / 5.479 GB, free: 9.551 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.066e-06/24.77, allocations: 0 / 5.479 GB, free: 9.551 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0004569/24.77, allocations: 63.98 kB / 5.479 GB, free: 9.488 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.05055/24.82, allocations: 7.274 MB / 5.486 GB, free: 2.133 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 7.856e-05/24.82, allocations: 12.03 kB / 5.486 GB, free: 2.121 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001869/24.82, allocations: 202.6 kB / 5.487 GB, free: 1.914 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003177/24.83, allocations: 281 kB / 5.487 GB, free: 1.637 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0108/24.84, allocations: 1.635 MB / 5.488 GB, free: 15.95 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003436/24.84, allocations: 83.59 kB / 5.488 GB, free: 15.86 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001486/24.84, allocations: 108 kB / 5.489 GB, free: 15.76 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01541/24.85, allocations: 3.088 MB / 5.492 GB, free: 12.67 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01471/24.87, allocations: 2.805 MB / 5.494 GB, free: 9.797 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001092/24.87, allocations: 0 / 5.494 GB, free: 9.797 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007749/24.87, allocations: 4 kB / 5.494 GB, free: 9.793 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006477/24.87, allocations: 183.7 kB / 5.495 GB, free: 9.613 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6941/25.56, allocations: 11.66 MB / 5.506 GB, free: 39.5 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006167/25.57, allocations: 1.47 MB / 5.507 GB, free: 39.47 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003208/25.57, allocations: 0.9601 MB / 5.508 GB, free: 39.46 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002356/25.58, allocations: 1.676 MB / 5.51 GB, free: 37.77 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.283e-05/25.58, allocations: 58.72 kB / 5.51 GB, free: 37.73 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004256/25.58, allocations: 264.5 kB / 5.51 GB, free: 37.73 MB / 0.573 GB Notification: Performance of pre-optimization done (n=153): time 1.414e-05/25.58, allocations: 0 / 5.51 GB, free: 37.73 MB / 0.573 GB Notification: Performance of matching and sorting (n=165): time 0.05586/25.64, allocations: 6.883 MB / 5.517 GB, free: 37.1 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/25.64, allocations: 200.6 kB / 5.517 GB, free: 36.88 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00342/25.64, allocations: 1.192 MB / 5.518 GB, free: 36.71 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007765/25.64, allocations: 25.7 kB / 5.518 GB, free: 36.68 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001234/25.64, allocations: 1.039 MB / 5.519 GB, free: 36.28 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001318/25.64, allocations: 0.5552 MB / 5.52 GB, free: 35.99 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004891/25.64, allocations: 1.312 kB / 5.52 GB, free: 35.99 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002632/25.64, allocations: 399.9 kB / 5.52 GB, free: 35.69 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00405/25.65, allocations: 1.068 MB / 5.521 GB, free: 35.68 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0048/25.65, allocations: 1.598 MB / 5.523 GB, free: 35.1 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04679/25.7, allocations: 3.871 MB / 5.527 GB, free: 35.09 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.846e-05/25.7, allocations: 4.031 kB / 5.527 GB, free: 35.09 MB / 0.573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.06205/25.76, allocations: 5.884 MB / 5.532 GB, free: 34.89 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001583/25.76, allocations: 5.867 MB / 5.538 GB, free: 28.85 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.924e-05/25.76, allocations: 16.16 kB / 5.538 GB, free: 28.85 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01392/25.78, allocations: 0.8994 MB / 5.539 GB, free: 28.83 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007799/25.79, allocations: 0.5404 MB / 5.54 GB, free: 28.83 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007369/25.79, allocations: 2.147 MB / 5.542 GB, free: 27.78 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007664/25.8, allocations: 164.1 kB / 5.542 GB, free: 27.77 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009475/25.8, allocations: 181.2 kB / 5.542 GB, free: 27.77 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/25.8, allocations: 3.562 kB / 5.542 GB, free: 27.77 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07129/25.87, allocations: 5.825 MB / 5.548 GB, free: 27.71 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000109/25.87, allocations: 15.16 kB / 5.548 GB, free: 27.71 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01312/25.89, allocations: 0.8152 MB / 5.548 GB, free: 27.69 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007399/25.89, allocations: 0.5479 MB / 5.549 GB, free: 27.69 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004979/25.9, allocations: 1.853 MB / 5.551 GB, free: 26.64 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006855/25.91, allocations: 153.3 kB / 5.551 GB, free: 26.64 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001403/25.91, allocations: 175.3 kB / 5.551 GB, free: 26.64 MB / 0.573 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: junction.port_2.m_flow:VARIABLE(flow=true min = max(-(if junction1.portFlowDirection_1 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59), if junction.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59) max = min(-(if junction1.portFlowDirection_1 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59), if junction.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59) unit = "kg/s" ) "Mass flow rate from the connection point into the component" type: Real 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,3 16} Notification: Performance of prepare postOptimizeDAE: time 0.001841/25.91, allocations: 193.6 kB / 5.551 GB, free: 26.52 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001336/25.91, allocations: 189 kB / 5.552 GB, free: 26.43 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02777/25.94, allocations: 3.863 MB / 5.555 GB, free: 26.17 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-05/25.94, allocations: 17.16 kB / 5.555 GB, free: 26.17 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.761e-05/25.94, allocations: 0 / 5.555 GB, free: 26.17 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-05/25.94, allocations: 7.125 kB / 5.555 GB, free: 26.17 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03199/25.97, allocations: 5.046 MB / 5.56 GB, free: 25.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.978e-05/25.97, allocations: 12.31 kB / 5.56 GB, free: 25.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005302/25.98, allocations: 305.4 kB / 5.561 GB, free: 25.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009604/25.99, allocations: 0.7556 MB / 5.561 GB, free: 25.67 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006409/25.99, allocations: 48.53 kB / 5.561 GB, free: 25.67 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005735/25.99, allocations: 2.049 MB / 5.563 GB, free: 24.62 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-05/25.99, allocations: 10.33 kB / 5.563 GB, free: 24.62 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01942/26.01, allocations: 4.221 MB / 5.567 GB, free: 23.82 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/26.01, allocations: 333.5 kB / 5.568 GB, free: 23.62 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001106/26.01, allocations: 10.58 kB / 5.568 GB, free: 23.62 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004958/26.02, allocations: 118.8 kB / 5.568 GB, free: 23.62 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006477/26.02, allocations: 137.9 kB / 5.568 GB, free: 23.62 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005689/26.02, allocations: 103.3 kB / 5.568 GB, free: 23.62 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00272/26.02, allocations: 0.9202 MB / 5.569 GB, free: 23.51 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.072e-06/26.02, allocations: 3.562 kB / 5.569 GB, free: 23.51 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01933/26.04, allocations: 2.983 MB / 5.572 GB, free: 23.51 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 (150): * Single equations (assignments): 148 * 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.03928/26.08, allocations: 10.26 MB / 5.582 GB, free: 20.83 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01612/26.1, allocations: 4.327 MB / 5.586 GB, free: 20.54 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.631e-05/26.1, allocations: 2.656 kB / 5.586 GB, free: 20.54 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004248/26.1, allocations: 1.141 MB / 5.587 GB, free: 20.52 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01048/26.11, allocations: 0.9027 MB / 5.588 GB, free: 20.49 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02184/26.13, allocations: 5.138 MB / 5.593 GB, free: 19.71 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002017/26.14, allocations: 1.714 MB / 5.595 GB, free: 18.98 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0113/26.15, allocations: 1.231 MB / 5.596 GB, free: 18.91 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003651/26.15, allocations: 0.906 MB / 5.597 GB, free: 18.9 MB / 0.573 GB Notification: Performance of SimCode: time 1.833e-06/26.15, allocations: 0 / 5.597 GB, free: 18.9 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3413/26.49, allocations: 109.7 MB / 5.704 GB, free: 5.777 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004808/26.49, allocations: 213.8 kB / 5.704 GB, free: 5.484 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.16/36.65, allocations: 3.906 kB / 5.704 GB, free: 5.48 MB / 0.5886 GB