Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",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.062/2.062, allocations: 234.9 MB / 241.9 MB, free: 9.777 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1384/2.2, allocations: 57.2 MB / 299.1 MB, free: 476 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/2.47, allocations: 54.84 MB / 354 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.752/4.222, allocations: 0.6869 GB / 1.033 GB, free: 95.29 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/4.222, allocations: 78.7 kB / 1.033 GB, free: 95.27 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 2.944/7.166, allocations: 0.5495 GB / 1.582 GB, free: 38.3 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/7.166, allocations: 9.969 kB / 1.582 GB, free: 38.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005631/7.172, allocations: 444.7 kB / 1.583 GB, free: 38.18 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009269/7.181, allocations: 1.952 MB / 1.585 GB, free: 37.73 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/7.181, allocations: 58.92 kB / 1.585 GB, free: 37.73 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001034/7.182, allocations: 94.06 kB / 1.585 GB, free: 37.73 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007217/7.19, allocations: 2.179 MB / 1.587 GB, free: 37.72 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008346/7.198, allocations: 2.403 MB / 1.589 GB, free: 37.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.663e-05/7.198, allocations: 13.25 kB / 1.589 GB, free: 37.29 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004859/7.199, allocations: 6.156 kB / 1.589 GB, free: 37.29 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002444/7.199, allocations: 163.9 kB / 1.589 GB, free: 37.29 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02823/7.227, allocations: 11.42 MB / 1.6 GB, free: 30.89 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004404/7.232, allocations: 1.03 MB / 1.601 GB, free: 30.86 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00384/7.236, allocations: 0.979 MB / 1.602 GB, free: 30.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002317/7.238, allocations: 453 kB / 1.603 GB, free: 30.55 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00452/7.243, allocations: 1.071 MB / 1.604 GB, free: 30.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 9.438e-06/7.243, allocations: 0 / 1.604 GB, free: 30.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=173): time 0.08097/7.324, allocations: 9.428 MB / 1.613 GB, free: 29.54 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/7.324, allocations: 260.8 kB / 1.613 GB, free: 29.25 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002503/7.326, allocations: 1.088 MB / 1.614 GB, free: 29.07 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008191/7.327, allocations: 29.33 kB / 1.614 GB, free: 29.04 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000801/7.328, allocations: 0.6658 MB / 1.615 GB, free: 28.65 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001289/7.329, allocations: 0.5681 MB / 1.616 GB, free: 28.29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002982/7.33, allocations: 0 / 1.616 GB, free: 28.29 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001737/7.33, allocations: 383.8 kB / 1.616 GB, free: 27.98 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003129/7.333, allocations: 0.9955 MB / 1.617 GB, free: 27.98 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003354/7.336, allocations: 1.421 MB / 1.618 GB, free: 27.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02555/7.362, allocations: 2.418 MB / 1.621 GB, free: 27.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-05/7.362, allocations: 3.969 kB / 1.621 GB, free: 27.52 MB / 490.7 MB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02847/7.391, allocations: 4.065 MB / 1.625 GB, free: 26.56 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001286/7.392, allocations: 4.173 MB / 1.629 GB, free: 22.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-05/7.392, allocations: 11.06 kB / 1.629 GB, free: 22.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008518/7.393, allocations: 175.1 kB / 1.629 GB, free: 22.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005788/7.399, allocations: 0.5364 MB / 1.63 GB, free: 22.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002074/7.401, allocations: 2.368 MB / 1.632 GB, free: 19.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006818/7.408, allocations: 175 kB / 1.632 GB, free: 19.94 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001503/7.409, allocations: 186.6 kB / 1.632 GB, free: 19.92 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/7.409, allocations: 2.938 kB / 1.632 GB, free: 19.92 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03589/7.445, allocations: 3.536 MB / 1.636 GB, free: 19.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.58e-05/7.445, allocations: 10.59 kB / 1.636 GB, free: 19.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009235/7.446, allocations: 174.5 kB / 1.636 GB, free: 19.01 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008022/7.454, allocations: 0.532 MB / 1.636 GB, free: 18.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00307/7.458, allocations: 2.363 MB / 1.639 GB, free: 32.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007041/7.465, allocations: 167.1 kB / 1.639 GB, free: 32.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001693/7.466, allocations: 181.7 kB / 1.639 GB, free: 32.77 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002597/7.469, allocations: 221.5 kB / 1.639 GB, free: 32.56 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001439/7.471, allocations: 194.4 kB / 1.639 GB, free: 32.45 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03687/7.508, allocations: 4.244 MB / 1.644 GB, free: 29.25 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.31e-05/7.508, allocations: 19.94 kB / 1.644 GB, free: 29.23 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/7.508, allocations: 4 kB / 1.644 GB, free: 29.22 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02254/7.53, allocations: 3.492 MB / 1.647 GB, free: 26.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03661/7.567, allocations: 6.776 MB / 1.654 GB, free: 20.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.162e-05/7.567, allocations: 4 kB / 1.654 GB, free: 20.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005195/7.572, allocations: 413.8 kB / 1.654 GB, free: 20.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009729/7.573, allocations: 164.9 kB / 1.654 GB, free: 20.33 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000812/7.574, allocations: 68.52 kB / 1.654 GB, free: 20.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003966/7.578, allocations: 3.036 MB / 1.657 GB, free: 17.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.888e-06/7.578, allocations: 11.88 kB / 1.657 GB, free: 17.14 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02826/7.606, allocations: 5.27 MB / 1.662 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03226/7.639, allocations: 7.16 MB / 1.669 GB, free: 5.98 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002292/7.641, allocations: 0.5015 MB / 1.67 GB, free: 5.527 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008631/7.642, allocations: 27.66 kB / 1.67 GB, free: 5.504 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00318/7.645, allocations: 90.25 kB / 1.67 GB, free: 5.438 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000689/7.646, allocations: 143.1 kB / 1.67 GB, free: 5.344 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006532/7.647, allocations: 146.4 kB / 1.67 GB, free: 5.215 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003289/7.65, allocations: 0.7952 MB / 1.671 GB, free: 4.504 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01545/7.665, allocations: 2.255 MB / 1.673 GB, free: 2.289 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (181): * Single equations (assignments): 175 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01498/7.68, allocations: 2.694 MB / 1.676 GB, free: 176 kB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02645/7.707, allocations: 4.168 MB / 1.68 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.861e-05/7.707, allocations: 0 / 1.68 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006406/7.714, allocations: 1.377 MB / 1.681 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008451/7.722, allocations: 0.753 MB / 1.682 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02675/7.749, allocations: 5.61 MB / 1.687 GB, free: 5.453 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007969/7.757, allocations: 2.156 MB / 1.69 GB, free: 3.266 MB / 0.5105 GB Notification: Performance of SimCode: time 1.523e-06/7.757, allocations: 0 / 1.69 GB, free: 3.266 MB / 0.5105 GB