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.547/2.547, allocations: 235.1 MB / 242.3 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.524e-05/2.539e-05, allocations: 4 kB / 299.6 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.3681, allocations: 54.85 MB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.62/11.99, allocations: 3.685 GB / 4.032 GB, free: 89.74 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002733/11.99, allocations: 87 kB / 4.032 GB, free: 89.7 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.944/20.93, allocations: 1.444 GB / 5.475 GB, free: 10.7 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.445e-06/20.93, allocations: 0 / 5.475 GB, free: 10.7 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002382/20.93, allocations: 59.92 kB / 5.475 GB, free: 10.64 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.03468/20.96, allocations: 7.274 MB / 5.482 GB, free: 3.281 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.946e-05/20.96, allocations: 12.03 kB / 5.482 GB, free: 3.27 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002141/20.97, allocations: 285 kB / 5.483 GB, free: 2.988 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006609/20.97, allocations: 1.624 MB / 5.484 GB, free: 1.309 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/20.97, allocations: 68 kB / 5.484 GB, free: 1.242 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005994/20.97, allocations: 112 kB / 5.484 GB, free: 1.133 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009059/20.98, allocations: 3.088 MB / 5.487 GB, free: 14.04 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008157/20.99, allocations: 2.797 MB / 5.49 GB, free: 11.18 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.776e-05/20.99, allocations: 3.938 kB / 5.49 GB, free: 11.18 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004314/20.99, allocations: 7.938 kB / 5.49 GB, free: 11.17 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004474/20.99, allocations: 187.7 kB / 5.49 GB, free: 10.98 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5751/21.57, allocations: 11.67 MB / 5.502 GB, free: 40.23 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004938/21.57, allocations: 1.475 MB / 5.503 GB, free: 40.2 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002705/21.58, allocations: 0.9528 MB / 5.504 GB, free: 40.19 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002065/21.58, allocations: 1.674 MB / 5.506 GB, free: 38.5 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.291e-05/21.58, allocations: 59.58 kB / 5.506 GB, free: 38.46 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003467/21.58, allocations: 259.9 kB / 5.506 GB, free: 38.46 MB / 0.573 GB Notification: Performance of pre-optimization done (n=153): time 7.293e-06/21.58, allocations: 0 / 5.506 GB, free: 38.46 MB / 0.573 GB Notification: Performance of matching and sorting (n=165): time 0.04251/21.62, allocations: 6.891 MB / 5.513 GB, free: 37.86 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.163e-05/21.62, allocations: 201.5 kB / 5.513 GB, free: 37.63 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002633/21.63, allocations: 1.187 MB / 5.514 GB, free: 37.46 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005714/21.63, allocations: 31.08 kB / 5.514 GB, free: 37.43 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008867/21.63, allocations: 1.036 MB / 5.515 GB, free: 37.04 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009784/21.63, allocations: 0.5577 MB / 5.516 GB, free: 36.75 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003323/21.63, allocations: 1.406 kB / 5.516 GB, free: 36.75 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001818/21.63, allocations: 401.4 kB / 5.516 GB, free: 36.45 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002852/21.63, allocations: 1.074 MB / 5.517 GB, free: 36.44 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00325/21.64, allocations: 1.59 MB / 5.519 GB, free: 35.86 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03301/21.67, allocations: 3.872 MB / 5.522 GB, free: 35.84 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.331e-05/21.67, allocations: 4.156 kB / 5.522 GB, free: 35.84 MB / 0.573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.04041/21.71, allocations: 5.877 MB / 5.528 GB, free: 35.66 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001249/21.71, allocations: 5.871 MB / 5.534 GB, free: 29.61 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.182e-05/21.71, allocations: 13.31 kB / 5.534 GB, free: 29.61 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00892/21.72, allocations: 0.8973 MB / 5.535 GB, free: 29.59 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005104/21.72, allocations: 0.5411 MB / 5.535 GB, free: 29.59 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004802/21.73, allocations: 2.141 MB / 5.537 GB, free: 28.54 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005394/21.73, allocations: 161.6 kB / 5.538 GB, free: 28.54 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001043/21.74, allocations: 179.2 kB / 5.538 GB, free: 28.54 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/21.74, allocations: 2.906 kB / 5.538 GB, free: 28.54 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04434/21.78, allocations: 5.832 MB / 5.543 GB, free: 28.47 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.024e-05/21.78, allocations: 15.53 kB / 5.543 GB, free: 28.47 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008417/21.79, allocations: 0.8138 MB / 5.544 GB, free: 28.45 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005051/21.79, allocations: 0.5512 MB / 5.545 GB, free: 28.45 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003465/21.8, allocations: 1.853 MB / 5.547 GB, free: 27.41 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004583/21.8, allocations: 151.4 kB / 5.547 GB, free: 27.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006169/21.8, allocations: 172.6 kB / 5.547 GB, free: 27.4 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.001042/21.8, allocations: 197.1 kB / 5.547 GB, free: 27.28 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01452/21.82, allocations: 2.84 MB / 5.55 GB, free: 27.11 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000993/21.82, allocations: 182.7 kB / 5.55 GB, free: 27.02 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01426/21.83, allocations: 3.854 MB / 5.554 GB, free: 26.75 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/21.83, allocations: 23.06 kB / 5.554 GB, free: 26.75 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/21.83, allocations: 6.516 kB / 5.554 GB, free: 26.75 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.882e-05/21.83, allocations: 14.42 kB / 5.554 GB, free: 26.75 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01694/21.85, allocations: 5.038 MB / 5.559 GB, free: 26.28 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/21.85, allocations: 3.719 kB / 5.559 GB, free: 26.28 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002972/21.85, allocations: 304.5 kB / 5.559 GB, free: 26.28 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005536/21.86, allocations: 0.7529 MB / 5.56 GB, free: 26.26 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004773/21.86, allocations: 45.95 kB / 5.56 GB, free: 26.26 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004093/21.86, allocations: 2.048 MB / 5.562 GB, free: 25.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-05/21.86, allocations: 4.562 kB / 5.562 GB, free: 25.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01329/21.88, allocations: 4.223 MB / 5.566 GB, free: 24.41 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/21.88, allocations: 332.7 kB / 5.566 GB, free: 24.21 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008618/21.88, allocations: 16.42 kB / 5.566 GB, free: 24.21 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003352/21.88, allocations: 117.3 kB / 5.566 GB, free: 24.21 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004418/21.88, allocations: 138.5 kB / 5.567 GB, free: 24.21 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003558/21.88, allocations: 106.5 kB / 5.567 GB, free: 24.21 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002022/21.89, allocations: 0.9215 MB / 5.568 GB, free: 24.1 MB / 0.573 GB Notification: Performance of sort global known variables: time 6.31e-07/21.89, allocations: 0 / 5.568 GB, free: 24.1 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01433/21.9, allocations: 2.986 MB / 5.57 GB, free: 24.1 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.02922/21.93, allocations: 10.27 MB / 5.581 GB, free: 21.41 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0124/21.94, allocations: 4.341 MB / 5.585 GB, free: 21.11 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/21.94, allocations: 2.906 kB / 5.585 GB, free: 21.11 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003368/21.95, allocations: 1.133 MB / 5.586 GB, free: 21.1 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008244/21.95, allocations: 0.9 MB / 5.587 GB, free: 21.07 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0178/21.97, allocations: 5.14 MB / 5.592 GB, free: 20.29 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00169/21.97, allocations: 1.705 MB / 5.593 GB, free: 19.55 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.009483/21.98, allocations: 1.237 MB / 5.595 GB, free: 19.49 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002902/21.99, allocations: 0.9064 MB / 5.596 GB, free: 19.48 MB / 0.573 GB Notification: Performance of SimCode: time 9.11e-07/21.99, allocations: 0 / 5.596 GB, free: 19.48 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2837/22.27, allocations: 108.1 MB / 5.701 GB, free: 6.453 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003046/22.27, allocations: 209.8 kB / 5.701 GB, free: 6.164 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.23/30.5, allocations: 0 / 5.701 GB, free: 6.164 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances_res.mat does not exist to compare? outputFormat=mat