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"}) [: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.324/2.324, allocations: 234.9 MB / 241.9 MB, free: 9.789 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2213/2.545, allocations: 57.22 MB / 299.1 MB, free: 464 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/2.839, allocations: 54.84 MB / 354 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.088/11.93, allocations: 3.685 GB / 4.031 GB, free: 104.2 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/11.93, allocations: 95.11 kB / 4.031 GB, free: 104.2 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 8.61/20.54, allocations: 1.464 GB / 5.495 GB, free: 10.74 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/20.54, allocations: 8 kB / 5.495 GB, free: 10.73 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002689/20.54, allocations: 288.9 kB / 5.495 GB, free: 10.45 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007728/20.55, allocations: 1.635 MB / 5.497 GB, free: 8.758 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002568/20.55, allocations: 67.98 kB / 5.497 GB, free: 8.691 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001694/20.55, allocations: 108 kB / 5.497 GB, free: 8.586 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01211/20.56, allocations: 3.158 MB / 5.5 GB, free: 5.426 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0117/20.57, allocations: 2.86 MB / 5.503 GB, free: 2.5 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.841e-05/20.57, allocations: 4 kB / 5.503 GB, free: 2.496 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006187/20.57, allocations: 0 / 5.503 GB, free: 2.496 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003437/20.58, allocations: 199.7 kB / 5.503 GB, free: 2.301 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.403/20.98, allocations: 11.75 MB / 5.515 GB, free: 50.16 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005868/20.98, allocations: 1.208 MB / 5.516 GB, free: 50.13 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002903/20.99, allocations: 0.985 MB / 5.517 GB, free: 50.12 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002289/20.99, allocations: 1.676 MB / 5.519 GB, free: 48.44 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.216e-05/20.99, allocations: 50.06 kB / 5.519 GB, free: 48.4 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=153): time 4.689e-06/20.99, allocations: 5.844 kB / 5.519 GB, free: 48.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=165): time 0.06053/21.05, allocations: 7.163 MB / 5.526 GB, free: 47.72 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/21.05, allocations: 199.5 kB / 5.526 GB, free: 47.5 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003336/21.05, allocations: 1.201 MB / 5.527 GB, free: 47.33 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008444/21.05, allocations: 29.48 kB / 5.527 GB, free: 47.3 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00116/21.06, allocations: 0.8277 MB / 5.528 GB, free: 46.89 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00197/21.06, allocations: 0.5539 MB / 5.528 GB, free: 46.61 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008956/21.06, allocations: 0 / 5.528 GB, free: 46.61 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003747/21.06, allocations: 395.9 kB / 5.529 GB, free: 46.3 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004845/21.06, allocations: 1.101 MB / 5.53 GB, free: 46.29 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004163/21.07, allocations: 1.619 MB / 5.531 GB, free: 45.71 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03399/21.1, allocations: 4.093 MB / 5.535 GB, free: 45.7 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.762e-05/21.1, allocations: 7.062 kB / 5.535 GB, free: 45.7 MB / 0.5573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.04254/21.14, allocations: 6.143 MB / 5.541 GB, free: 45.52 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001325/21.15, allocations: 5.802 MB / 5.547 GB, free: 39.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.815e-05/21.15, allocations: 13.06 kB / 5.547 GB, free: 39.54 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009186/21.16, allocations: 0.9391 MB / 5.548 GB, free: 39.52 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005112/21.16, allocations: 0.5447 MB / 5.548 GB, free: 39.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005421/21.17, allocations: 2.208 MB / 5.551 GB, free: 38.47 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005606/21.17, allocations: 166.2 kB / 5.551 GB, free: 38.46 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006714/21.17, allocations: 179.5 kB / 5.551 GB, free: 38.46 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/21.17, allocations: 3.875 kB / 5.551 GB, free: 38.46 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04541/21.22, allocations: 6.099 MB / 5.557 GB, free: 38.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.781e-05/21.22, allocations: 14.28 kB / 5.557 GB, free: 38.4 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008806/21.23, allocations: 0.8511 MB / 5.558 GB, free: 38.39 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005238/21.23, allocations: 0.5463 MB / 5.558 GB, free: 38.39 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003985/21.24, allocations: 1.912 MB / 5.56 GB, free: 37.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004741/21.24, allocations: 155.7 kB / 5.56 GB, free: 37.34 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005849/21.24, allocations: 178.8 kB / 5.56 GB, free: 37.34 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.00107/21.24, allocations: 198.7 kB / 5.561 GB, free: 37.22 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007623/21.24, allocations: 183.8 kB / 5.561 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01693/21.26, allocations: 4.127 MB / 5.565 GB, free: 36.88 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.392e-05/21.26, allocations: 17.88 kB / 5.565 GB, free: 36.88 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/21.26, allocations: 0.875 kB / 5.565 GB, free: 36.88 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-05/21.26, allocations: 14.2 kB / 5.565 GB, free: 36.88 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01862/21.28, allocations: 5.144 MB / 5.57 GB, free: 36.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-05/21.28, allocations: 7.031 kB / 5.57 GB, free: 36.41 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003118/21.28, allocations: 310.8 kB / 5.57 GB, free: 36.41 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006705/21.29, allocations: 0.7704 MB / 5.571 GB, free: 36.39 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006655/21.29, allocations: 52.38 kB / 5.571 GB, free: 36.39 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0057/21.3, allocations: 2.108 MB / 5.573 GB, free: 35.34 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.241e-05/21.3, allocations: 3.438 kB / 5.573 GB, free: 35.34 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01664/21.31, allocations: 4.366 MB / 5.577 GB, free: 34.55 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02227/21.33, allocations: 6.615 MB / 5.584 GB, free: 33.37 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/21.34, allocations: 325.5 kB / 5.584 GB, free: 33.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001378/21.34, allocations: 14.55 kB / 5.584 GB, free: 33.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004284/21.34, allocations: 126.9 kB / 5.584 GB, free: 33.17 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007147/21.34, allocations: 120.5 kB / 5.584 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004308/21.34, allocations: 110.2 kB / 5.584 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.003977/21.35, allocations: 0.9258 MB / 5.585 GB, free: 33.05 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02224/21.37, allocations: 4.013 MB / 5.589 GB, free: 33.05 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.01824/21.39, allocations: 4.622 MB / 5.594 GB, free: 32.62 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01607/21.4, allocations: 4.328 MB / 5.598 GB, free: 32.44 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/21.4, allocations: 4.156 kB / 5.598 GB, free: 32.44 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004182/21.41, allocations: 1.157 MB / 5.599 GB, free: 32.44 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008902/21.42, allocations: 0.8694 MB / 5.6 GB, free: 32.41 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01529/21.43, allocations: 3.938 MB / 5.604 GB, free: 31.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00481/21.44, allocations: 2.081 MB / 5.606 GB, free: 30.86 MB / 0.5573 GB Notification: Performance of SimCode: time 1.813e-06/21.44, allocations: 0 / 5.606 GB, free: 30.86 MB / 0.5573 GB