Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestComponents_Fittings_TestJunctionTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.405/2.405, allocations: 235.1 MB / 242.2 MB, free: 15.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.952e-05/2.963e-05, allocations: 0 / 299.5 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3743, allocations: 54.86 MB / 354.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.18/11.55, allocations: 3.685 GB / 4.031 GB, free: 110.3 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/11.55, allocations: 83.31 kB / 4.032 GB, free: 110.3 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.683/20.24, allocations: 1.444 GB / 5.475 GB, free: 16.59 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.575e-06/20.24, allocations: 0 / 5.475 GB, free: 16.59 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002746/20.24, allocations: 67.27 kB / 5.475 GB, free: 16.52 MB / 0.5417 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.03383/20.27, allocations: 7.275 MB / 5.482 GB, free: 9.637 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/20.27, allocations: 8.031 kB / 5.482 GB, free: 9.629 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002158/20.27, allocations: 289 kB / 5.483 GB, free: 9.344 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005763/20.28, allocations: 1.628 MB / 5.484 GB, free: 7.66 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/20.28, allocations: 67.98 kB / 5.484 GB, free: 7.594 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005228/20.28, allocations: 111.9 kB / 5.484 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007255/20.29, allocations: 3.08 MB / 5.487 GB, free: 4.402 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006605/20.29, allocations: 2.813 MB / 5.49 GB, free: 1.523 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.25e-05/20.29, allocations: 0 / 5.49 GB, free: 1.523 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003926/20.29, allocations: 4 kB / 5.49 GB, free: 1.52 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003422/20.29, allocations: 183.7 kB / 5.49 GB, free: 1.34 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03573/20.33, allocations: 11.67 MB / 5.502 GB, free: 4.938 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004497/20.33, allocations: 1.47 MB / 5.503 GB, free: 3.465 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002716/20.34, allocations: 0.958 MB / 5.504 GB, free: 2.504 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002554/20.34, allocations: 1.673 MB / 5.506 GB, free: 0.4961 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.78e-05/20.34, allocations: 51.88 kB / 5.506 GB, free: 448 kB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003484/20.34, allocations: 270.2 kB / 5.506 GB, free: 176 kB / 0.5573 GB Notification: Performance of pre-optimization done (n=153): time 6.883e-06/20.34, allocations: 1.094 kB / 5.506 GB, free: 176 kB / 0.5573 GB Notification: Performance of matching and sorting (n=165): time 0.04344/20.39, allocations: 6.881 MB / 5.513 GB, free: 9.227 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/20.39, allocations: 201.2 kB / 5.513 GB, free: 8.988 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003106/20.39, allocations: 1.189 MB / 5.514 GB, free: 7.793 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006981/20.39, allocations: 29.7 kB / 5.514 GB, free: 7.758 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001344/20.39, allocations: 1.04 MB / 5.515 GB, free: 6.703 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001327/20.39, allocations: 0.5505 MB / 5.516 GB, free: 6.145 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003664/20.39, allocations: 0 / 5.516 GB, free: 6.145 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000306/20.39, allocations: 402.5 kB / 5.516 GB, free: 5.746 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003277/20.4, allocations: 1.071 MB / 5.517 GB, free: 4.672 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003914/20.4, allocations: 1.59 MB / 5.519 GB, free: 2.855 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5678/20.97, allocations: 3.868 MB / 5.522 GB, free: 48.13 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.115e-05/20.97, allocations: 4.25 kB / 5.522 GB, free: 48.13 MB / 0.573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.04066/21.01, allocations: 5.886 MB / 5.528 GB, free: 48.05 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001324/21.01, allocations: 5.868 MB / 5.534 GB, free: 42.02 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.878e-05/21.01, allocations: 13.94 kB / 5.534 GB, free: 42.02 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008154/21.02, allocations: 0.889 MB / 5.535 GB, free: 42 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0049/21.03, allocations: 0.5389 MB / 5.535 GB, free: 42 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004594/21.03, allocations: 2.148 MB / 5.537 GB, free: 40.96 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005225/21.04, allocations: 163.9 kB / 5.538 GB, free: 40.96 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001176/21.04, allocations: 180.4 kB / 5.538 GB, free: 40.96 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/21.04, allocations: 6.375 kB / 5.538 GB, free: 40.96 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04236/21.08, allocations: 5.821 MB / 5.543 GB, free: 40.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.907e-05/21.08, allocations: 20.97 kB / 5.543 GB, free: 40.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007768/21.09, allocations: 0.8165 MB / 5.544 GB, free: 40.88 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004907/21.09, allocations: 0.5474 MB / 5.545 GB, free: 40.88 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00337/21.1, allocations: 1.855 MB / 5.547 GB, free: 39.85 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004615/21.1, allocations: 151.2 kB / 5.547 GB, free: 39.85 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009405/21.1, allocations: 179.4 kB / 5.547 GB, free: 39.85 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.001197/21.1, allocations: 198.2 kB / 5.547 GB, free: 39.73 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01445/21.12, allocations: 2.83 MB / 5.55 GB, free: 39.65 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0012/21.12, allocations: 188.2 kB / 5.55 GB, free: 39.6 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01436/21.13, allocations: 3.854 MB / 5.554 GB, free: 39.34 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.72e-05/21.13, allocations: 22.77 kB / 5.554 GB, free: 39.34 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/21.13, allocations: 0 / 5.554 GB, free: 39.34 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-05/21.13, allocations: 10.22 kB / 5.554 GB, free: 39.34 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02012/21.15, allocations: 5.037 MB / 5.559 GB, free: 38.87 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.601e-05/21.15, allocations: 4.438 kB / 5.559 GB, free: 38.87 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003766/21.16, allocations: 308.2 kB / 5.559 GB, free: 38.87 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007117/21.16, allocations: 0.7552 MB / 5.56 GB, free: 38.84 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007105/21.16, allocations: 45.84 kB / 5.56 GB, free: 38.84 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005804/21.17, allocations: 2.059 MB / 5.562 GB, free: 37.79 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.388e-05/21.17, allocations: 4.75 kB / 5.562 GB, free: 37.79 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01855/21.19, allocations: 4.222 MB / 5.566 GB, free: 37 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001447/21.19, allocations: 329.6 kB / 5.566 GB, free: 36.8 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0013/21.19, allocations: 16.64 kB / 5.566 GB, free: 36.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004842/21.2, allocations: 110.8 kB / 5.566 GB, free: 36.8 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007781/21.2, allocations: 133.8 kB / 5.566 GB, free: 36.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005202/21.2, allocations: 111 kB / 5.567 GB, free: 36.8 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002852/21.2, allocations: 0.9178 MB / 5.567 GB, free: 36.69 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.123e-06/21.2, allocations: 0 / 5.567 GB, free: 36.69 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01926/21.22, allocations: 2.986 MB / 5.57 GB, free: 36.69 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.03371/21.25, allocations: 10.27 MB / 5.58 GB, free: 33.99 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0135/21.27, allocations: 4.324 MB / 5.585 GB, free: 33.7 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/21.27, allocations: 2.719 kB / 5.585 GB, free: 33.7 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003679/21.27, allocations: 1.128 MB / 5.586 GB, free: 33.7 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008333/21.28, allocations: 0.9095 MB / 5.587 GB, free: 33.67 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01942/21.3, allocations: 5.142 MB / 5.592 GB, free: 32.95 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001759/21.3, allocations: 1.715 MB / 5.593 GB, free: 32.21 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.00989/21.31, allocations: 1.235 MB / 5.595 GB, free: 32.15 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003279/21.31, allocations: 0.903 MB / 5.595 GB, free: 32.14 MB / 0.573 GB Notification: Performance of SimCode: time 2.144e-06/21.31, allocations: 0 / 5.595 GB, free: 32.14 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2688/21.58, allocations: 108.1 MB / 5.701 GB, free: 8.773 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/21.58, allocations: 201.3 kB / 5.701 GB, free: 8.508 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.989/29.57, allocations: 0 / 5.701 GB, free: 8.508 MB / 0.573 GB