Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Fittings_TestJunctionTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.958/1.958, allocations: 209.4 MB / 216.5 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2e-05/2.008e-05, allocations: 0 / 267.6 MB, free: 4.938 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09966/0.0997, allocations: 48.7 MB / 316.3 MB, free: 4.141 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.94/11.04, allocations: 3.679 GB / 3.988 GB, free: 68.38 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/11.04, allocations: 84.39 kB / 3.988 GB, free: 68.33 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.642/19.68, allocations: 1.434 GB / 5.422 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.856e-06/19.68, allocations: 3.281 kB / 5.422 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003338/19.68, allocations: 62.89 kB / 5.422 GB, free: 25.14 MB / 0.5105 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.03485/19.71, allocations: 7.273 MB / 5.429 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/19.71, allocations: 10.16 kB / 5.429 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002443/19.72, allocations: 281.4 kB / 5.429 GB, free: 21.05 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006865/19.72, allocations: 1.63 MB / 5.431 GB, free: 20.64 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000166/19.72, allocations: 63.59 kB / 5.431 GB, free: 20.64 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009375/19.72, allocations: 105.1 kB / 5.431 GB, free: 20.64 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009083/19.73, allocations: 3.091 MB / 5.434 GB, free: 20.63 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009807/19.74, allocations: 2.8 MB / 5.437 GB, free: 20.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.787e-05/19.74, allocations: 6.922 kB / 5.437 GB, free: 20.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005557/19.74, allocations: 3.344 kB / 5.437 GB, free: 20.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004015/19.74, allocations: 185.2 kB / 5.437 GB, free: 20.39 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03728/19.78, allocations: 11.3 MB / 5.448 GB, free: 16.29 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00452/19.79, allocations: 1.469 MB / 5.449 GB, free: 16.25 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002449/19.79, allocations: 0.9534 MB / 5.45 GB, free: 16.24 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00198/19.79, allocations: 1.678 MB / 5.452 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.122e-05/19.79, allocations: 50.41 kB / 5.452 GB, free: 14.51 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003356/19.79, allocations: 273.4 kB / 5.452 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=153): time 6.642e-06/19.79, allocations: 1.094 kB / 5.452 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of matching and sorting (n=165): time 0.04142/19.84, allocations: 6.88 MB / 5.459 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/19.84, allocations: 199.9 kB / 5.459 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002753/19.84, allocations: 1.197 MB / 5.46 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000746/19.84, allocations: 33.33 kB / 5.46 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009178/19.84, allocations: 1.031 MB / 5.461 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001162/19.84, allocations: 0.5563 MB / 5.462 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004008/19.84, allocations: 3.688 kB / 5.462 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002141/19.84, allocations: 396.9 kB / 5.462 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003065/19.85, allocations: 1.067 MB / 5.463 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003817/19.85, allocations: 1.588 MB / 5.465 GB, free: 11.48 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03104/19.88, allocations: 3.868 MB / 5.469 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-05/19.88, allocations: 3.562 kB / 5.469 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.03869/19.92, allocations: 5.881 MB / 5.474 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001384/19.92, allocations: 5.878 MB / 5.48 GB, free: 5.125 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.877e-05/19.92, allocations: 14.44 kB / 5.48 GB, free: 5.125 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008247/19.93, allocations: 0.8913 MB / 5.481 GB, free: 5.109 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004957/19.93, allocations: 0.5467 MB / 5.481 GB, free: 5.078 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005042/19.94, allocations: 2.153 MB / 5.484 GB, free: 20.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005224/19.94, allocations: 153.8 kB / 5.484 GB, free: 20 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00108/19.95, allocations: 179.5 kB / 5.484 GB, free: 20 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/19.95, allocations: 6.438 kB / 5.484 GB, free: 20 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04222/19.99, allocations: 5.822 MB / 5.49 GB, free: 19.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.065e-05/19.99, allocations: 14.59 kB / 5.49 GB, free: 19.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007955/20, allocations: 0.8187 MB / 5.49 GB, free: 19.84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005147/20, allocations: 0.5432 MB / 5.491 GB, free: 19.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003694/20, allocations: 1.863 MB / 5.493 GB, free: 18.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004681/20.01, allocations: 148.2 kB / 5.493 GB, free: 18.73 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007018/20.01, allocations: 182.5 kB / 5.493 GB, free: 18.73 MB / 0.5261 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 multiPort.ports_b_Xi_inStream[2,1]:VARIABLE(min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "inStream mass fractions at ports_b" type: Real [2,1] 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.001109/20.01, allocations: 198.3 kB / 5.493 GB, free: 18.58 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01439/20.03, allocations: 2.832 MB / 5.496 GB, free: 18.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001256/20.03, allocations: 182.3 kB / 5.496 GB, free: 18.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01391/20.04, allocations: 3.851 MB / 5.5 GB, free: 18 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-05/20.04, allocations: 22.2 kB / 5.5 GB, free: 17.99 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/20.04, allocations: 2.406 kB / 5.5 GB, free: 17.99 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.223e-05/20.04, allocations: 9.562 kB / 5.5 GB, free: 17.99 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01664/20.06, allocations: 5.066 MB / 5.505 GB, free: 16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/20.06, allocations: 3.344 kB / 5.505 GB, free: 16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002623/20.06, allocations: 299.6 kB / 5.505 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004886/20.07, allocations: 0.758 MB / 5.506 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003323/20.07, allocations: 43.02 kB / 5.506 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004005/20.07, allocations: 2.051 MB / 5.508 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/20.07, allocations: 3.375 kB / 5.508 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01309/20.08, allocations: 4.218 MB / 5.512 GB, free: 11.01 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/20.08, allocations: 323.9 kB / 5.512 GB, free: 10.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006662/20.09, allocations: 19.7 kB / 5.512 GB, free: 10.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002981/20.09, allocations: 119.7 kB / 5.513 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004389/20.09, allocations: 136.2 kB / 5.513 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003587/20.09, allocations: 102.6 kB / 5.513 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002138/20.09, allocations: 0.9209 MB / 5.514 GB, free: 9.602 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.41e-07/20.09, allocations: 0 / 5.514 GB, free: 9.602 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01435/20.11, allocations: 2.976 MB / 5.517 GB, free: 6.711 MB / 0.5261 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.03115/20.14, allocations: 10.27 MB / 5.527 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01468/20.15, allocations: 4.334 MB / 5.531 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.308e-05/20.15, allocations: 0 / 5.531 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003821/20.16, allocations: 1.134 MB / 5.532 GB, free: 8.684 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008432/20.16, allocations: 0.8976 MB / 5.533 GB, free: 8.043 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02012/20.18, allocations: 5.146 MB / 5.538 GB, free: 3.586 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002077/20.19, allocations: 1.714 MB / 5.539 GB, free: 2.191 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009515/20.2, allocations: 1.243 MB / 5.541 GB, free: 1.297 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003117/20.2, allocations: 0.9064 MB / 5.542 GB, free: 496 kB / 0.5417 GB Notification: Performance of SimCode: time 1.122e-06/20.2, allocations: 0 / 5.542 GB, free: 496 kB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8001/21, allocations: 108.1 MB / 5.647 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002581/21, allocations: 197.3 kB / 5.647 GB, free: 43.46 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.937/28.94, allocations: 6.625 kB / 5.647 GB, free: 43.46 MB / 0.5417 GB