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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(ModelicaTest): time 2.231/2.231, allocations: 235.1 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2338/2.465, allocations: 57.2 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/2.736, allocations: 54.86 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.521/12.26, allocations: 3.685 GB / 4.031 GB, free: 104.1 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003418/12.26, allocations: 86.38 kB / 4.031 GB, free: 104.1 MB / 474.7 MB 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 9.48/21.74, allocations: 1.464 GB / 5.495 GB, free: 10.07 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/21.74, allocations: 8 kB / 5.495 GB, free: 10.07 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003061/21.74, allocations: 288.9 kB / 5.496 GB, free: 9.781 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009078/21.75, allocations: 1.643 MB / 5.497 GB, free: 8.082 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002503/21.75, allocations: 64 kB / 5.497 GB, free: 8.02 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001456/21.75, allocations: 111.9 kB / 5.497 GB, free: 7.91 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01272/21.76, allocations: 3.154 MB / 5.5 GB, free: 4.754 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01206/21.78, allocations: 2.865 MB / 5.503 GB, free: 1.824 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.751e-05/21.78, allocations: 0 / 5.503 GB, free: 1.824 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005797/21.78, allocations: 4 kB / 5.503 GB, free: 1.82 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003748/21.78, allocations: 195.7 kB / 5.503 GB, free: 1.629 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4099/22.19, allocations: 11.75 MB / 5.515 GB, free: 51.26 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004735/22.19, allocations: 1.2 MB / 5.516 GB, free: 51.23 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003475/22.2, allocations: 0.9794 MB / 5.517 GB, free: 51.23 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002328/22.2, allocations: 1.677 MB / 5.519 GB, free: 49.54 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.731e-05/22.2, allocations: 61.66 kB / 5.519 GB, free: 49.5 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=153): time 4.639e-06/22.2, allocations: 0 / 5.519 GB, free: 49.5 MB / 0.5573 GB Notification: Performance of matching and sorting (n=165): time 0.05711/22.26, allocations: 7.162 MB / 5.526 GB, free: 48.82 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.839e-05/22.26, allocations: 198.9 kB / 5.526 GB, free: 48.6 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003487/22.26, allocations: 1.195 MB / 5.527 GB, free: 48.43 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007766/22.26, allocations: 29.64 kB / 5.527 GB, free: 48.4 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000729/22.26, allocations: 0.8221 MB / 5.528 GB, free: 48 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001162/22.26, allocations: 0.56 MB / 5.528 GB, free: 47.71 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004171/22.26, allocations: 0 / 5.528 GB, free: 47.71 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002076/22.26, allocations: 399.3 kB / 5.529 GB, free: 47.41 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003707/22.27, allocations: 1.094 MB / 5.53 GB, free: 47.4 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004191/22.27, allocations: 1.62 MB / 5.531 GB, free: 46.82 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04238/22.31, allocations: 4.1 MB / 5.535 GB, free: 46.8 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.259e-05/22.31, allocations: 7.219 kB / 5.535 GB, free: 46.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.05286/22.37, allocations: 6.135 MB / 5.541 GB, free: 46.62 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001473/22.37, allocations: 5.802 MB / 5.547 GB, free: 40.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.202e-05/22.37, allocations: 20.81 kB / 5.547 GB, free: 40.64 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01105/22.38, allocations: 0.9291 MB / 5.548 GB, free: 40.62 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007227/22.39, allocations: 0.5398 MB / 5.549 GB, free: 40.62 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009712/22.4, allocations: 2.222 MB / 5.551 GB, free: 39.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009727/22.41, allocations: 169.1 kB / 5.551 GB, free: 39.57 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001798/22.41, allocations: 178.5 kB / 5.551 GB, free: 39.57 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/22.41, allocations: 3.75 kB / 5.551 GB, free: 39.57 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06377/22.47, allocations: 6.097 MB / 5.557 GB, free: 39.51 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001013/22.47, allocations: 13.69 kB / 5.557 GB, free: 39.51 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01082/22.48, allocations: 0.8501 MB / 5.558 GB, free: 39.49 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006105/22.49, allocations: 0.5504 MB / 5.558 GB, free: 39.49 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004763/22.49, allocations: 1.917 MB / 5.56 GB, free: 38.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005943/22.5, allocations: 159.4 kB / 5.56 GB, free: 38.44 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001065/22.5, allocations: 173 kB / 5.561 GB, free: 38.44 MB / 0.5573 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.001206/22.5, allocations: 196.3 kB / 5.561 GB, free: 38.32 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008248/22.5, allocations: 189.8 kB / 5.561 GB, free: 38.23 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02/22.52, allocations: 4.126 MB / 5.565 GB, free: 37.99 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.292e-05/22.52, allocations: 18.31 kB / 5.565 GB, free: 37.99 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/22.52, allocations: 6.641 kB / 5.565 GB, free: 37.98 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.552e-05/22.52, allocations: 9.891 kB / 5.565 GB, free: 37.98 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02325/22.55, allocations: 5.141 MB / 5.57 GB, free: 37.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.646e-05/22.55, allocations: 6.719 kB / 5.57 GB, free: 37.52 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004446/22.55, allocations: 305.9 kB / 5.57 GB, free: 37.52 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01067/22.56, allocations: 0.7787 MB / 5.571 GB, free: 37.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009527/22.56, allocations: 49.92 kB / 5.571 GB, free: 37.49 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005885/22.57, allocations: 2.106 MB / 5.573 GB, free: 36.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.614e-05/22.57, allocations: 11.59 kB / 5.573 GB, free: 36.45 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01777/22.59, allocations: 4.36 MB / 5.577 GB, free: 35.65 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02989/22.62, allocations: 6.627 MB / 5.584 GB, free: 34.47 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002059/22.62, allocations: 319.9 kB / 5.584 GB, free: 34.28 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001893/22.62, allocations: 12.72 kB / 5.584 GB, free: 34.28 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00601/22.63, allocations: 126.6 kB / 5.584 GB, free: 34.28 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008198/22.63, allocations: 122.1 kB / 5.584 GB, free: 34.27 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005068/22.63, allocations: 100.7 kB / 5.585 GB, free: 34.27 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.002809/22.63, allocations: 0.9317 MB / 5.585 GB, free: 34.16 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02431/22.65, allocations: 4.022 MB / 5.589 GB, free: 34.16 MB / 0.5573 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.02022/22.67, allocations: 4.619 MB / 5.594 GB, free: 33.71 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0165/22.69, allocations: 4.324 MB / 5.598 GB, free: 33.54 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.575e-05/22.69, allocations: 2.094 kB / 5.598 GB, free: 33.54 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004626/22.7, allocations: 1.157 MB / 5.599 GB, free: 33.54 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009983/22.71, allocations: 0.8814 MB / 5.6 GB, free: 33.51 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01979/22.73, allocations: 3.925 MB / 5.604 GB, free: 32.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006567/22.73, allocations: 2.078 MB / 5.606 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of SimCode: time 1.774e-06/22.73, allocations: 3.719 kB / 5.606 GB, free: 31.96 MB / 0.5573 GB