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"}) [: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.005/2.005, allocations: 209.3 MB / 216.3 MB, free: 6.789 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2141/2.219, allocations: 51.04 MB / 267.3 MB, free: 5.125 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/2.344, allocations: 48.69 MB / 316 MB, free: 4.34 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.029/11.37, allocations: 3.679 GB / 3.987 GB, free: 104.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003603/11.37, allocations: 86.48 kB / 3.988 GB, free: 104.2 MB / 426.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.618/19.99, allocations: 1.454 GB / 5.441 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/19.99, allocations: 10.94 kB / 5.441 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002699/19.99, allocations: 285.3 kB / 5.442 GB, free: 21.28 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007381/20, allocations: 1.635 MB / 5.443 GB, free: 20.87 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002053/20, allocations: 66.06 kB / 5.443 GB, free: 20.87 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001215/20, allocations: 106.8 kB / 5.443 GB, free: 20.87 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01056/20.01, allocations: 3.161 MB / 5.446 GB, free: 20.86 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01086/20.02, allocations: 2.852 MB / 5.449 GB, free: 20.63 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.576e-05/20.02, allocations: 0 / 5.449 GB, free: 20.63 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006902/20.03, allocations: 9.281 kB / 5.449 GB, free: 20.63 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002945/20.03, allocations: 196.5 kB / 5.449 GB, free: 20.62 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04722/20.07, allocations: 11.37 MB / 5.461 GB, free: 16.53 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003951/20.08, allocations: 1.201 MB / 5.462 GB, free: 16.5 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002949/20.08, allocations: 0.9881 MB / 5.463 GB, free: 16.49 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001982/20.08, allocations: 1.682 MB / 5.464 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.902e-05/20.08, allocations: 51.88 kB / 5.464 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=153): time 4.97e-06/20.08, allocations: 5.562 kB / 5.464 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=165): time 0.04732/20.13, allocations: 7.155 MB / 5.471 GB, free: 14 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.411e-05/20.13, allocations: 198.9 kB / 5.472 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003327/20.13, allocations: 1.199 MB / 5.473 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007169/20.13, allocations: 29.73 kB / 5.473 GB, free: 13.56 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007068/20.13, allocations: 0.8243 MB / 5.474 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001217/20.14, allocations: 0.5574 MB / 5.474 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004824/20.14, allocations: 0 / 5.474 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002459/20.14, allocations: 397.6 kB / 5.474 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003659/20.14, allocations: 1.102 MB / 5.476 GB, free: 12.37 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004199/20.14, allocations: 1.62 MB / 5.477 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03517/20.18, allocations: 4.096 MB / 5.481 GB, free: 11.76 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-05/20.18, allocations: 6.781 kB / 5.481 GB, free: 11.76 MB / 0.5105 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.048/20.23, allocations: 6.137 MB / 5.487 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.00129/20.23, allocations: 5.802 MB / 5.493 GB, free: 5.598 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.206e-05/20.23, allocations: 15.94 kB / 5.493 GB, free: 5.598 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00957/20.24, allocations: 0.9275 MB / 5.494 GB, free: 5.578 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007676/20.25, allocations: 0.5478 MB / 5.494 GB, free: 5.578 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0085/20.25, allocations: 2.214 MB / 5.496 GB, free: 4.527 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005579/20.26, allocations: 157.2 kB / 5.497 GB, free: 4.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00114/20.26, allocations: 181.3 kB / 5.497 GB, free: 4.52 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/20.26, allocations: 7.094 kB / 5.497 GB, free: 4.516 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04672/20.31, allocations: 6.099 MB / 5.503 GB, free: 4.453 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.265e-05/20.31, allocations: 19.47 kB / 5.503 GB, free: 4.453 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00878/20.32, allocations: 0.8531 MB / 5.504 GB, free: 4.434 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0051/20.32, allocations: 0.5469 MB / 5.504 GB, free: 4.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004167/20.33, allocations: 1.917 MB / 5.506 GB, free: 19.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005095/20.33, allocations: 150.8 kB / 5.506 GB, free: 19.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001127/20.33, allocations: 181 kB / 5.506 GB, free: 19.34 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.001292/20.33, allocations: 196.4 kB / 5.506 GB, free: 19.18 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008101/20.34, allocations: 186.5 kB / 5.507 GB, free: 19.09 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01754/20.35, allocations: 4.13 MB / 5.511 GB, free: 18.77 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.934e-05/20.35, allocations: 15.75 kB / 5.511 GB, free: 18.77 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/20.35, allocations: 1.844 kB / 5.511 GB, free: 18.77 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.743e-05/20.35, allocations: 9.938 kB / 5.511 GB, free: 18.77 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01984/20.37, allocations: 5.144 MB / 5.516 GB, free: 18.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-05/20.37, allocations: 2.344 kB / 5.516 GB, free: 18.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003099/20.38, allocations: 305.8 kB / 5.516 GB, free: 18.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005885/20.38, allocations: 0.7832 MB / 5.517 GB, free: 18.23 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006251/20.38, allocations: 52.22 kB / 5.517 GB, free: 18.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004912/20.39, allocations: 2.105 MB / 5.519 GB, free: 17.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.114e-05/20.39, allocations: 4.344 kB / 5.519 GB, free: 17.17 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01501/20.4, allocations: 4.354 MB / 5.523 GB, free: 16.38 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02414/20.43, allocations: 6.628 MB / 5.53 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001303/20.43, allocations: 319.7 kB / 5.53 GB, free: 14.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001115/20.43, allocations: 15.22 kB / 5.53 GB, free: 14.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003709/20.43, allocations: 123.9 kB / 5.53 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006261/20.43, allocations: 117.7 kB / 5.53 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000477/20.43, allocations: 102.9 kB / 5.53 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003644/20.44, allocations: 0.9259 MB / 5.531 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.03213/20.47, allocations: 4.019 MB / 5.535 GB, free: 11.85 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.02221/20.49, allocations: 4.622 MB / 5.54 GB, free: 10.67 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0184/20.51, allocations: 4.335 MB / 5.544 GB, free: 6.789 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.688e-05/20.51, allocations: 0 / 5.544 GB, free: 6.789 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005327/20.52, allocations: 1.163 MB / 5.545 GB, free: 5.727 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009493/20.53, allocations: 0.8673 MB / 5.546 GB, free: 5.129 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01778/20.54, allocations: 3.928 MB / 5.55 GB, free: 1.797 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005511/20.55, allocations: 2.083 MB / 5.552 GB, free: 156 kB / 0.5261 GB Notification: Performance of SimCode: time 1.663e-06/20.55, allocations: 0 / 5.552 GB, free: 156 kB / 0.5261 GB