Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",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.337/2.337, allocations: 235 MB / 241.9 MB, free: 9.789 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1903/2.528, allocations: 57.2 MB / 299.1 MB, free: 480 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/2.831, allocations: 54.84 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.742/4.574, allocations: 0.687 GB / 1.033 GB, free: 95.08 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/4.574, allocations: 77.12 kB / 1.033 GB, free: 95.05 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 3.25/7.825, allocations: 0.6139 GB / 1.647 GB, free: 12.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/7.825, allocations: 8 kB / 1.647 GB, free: 12.79 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005992/7.831, allocations: 468.5 kB / 1.647 GB, free: 12.33 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01104/7.842, allocations: 2.007 MB / 1.649 GB, free: 10.31 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002949/7.842, allocations: 64 kB / 1.649 GB, free: 10.25 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001247/7.843, allocations: 107.9 kB / 1.649 GB, free: 10.14 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008112/7.851, allocations: 2.26 MB / 1.651 GB, free: 7.883 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009512/7.861, allocations: 2.516 MB / 1.654 GB, free: 5.207 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001234/7.861, allocations: 4 kB / 1.654 GB, free: 5.203 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000723/7.862, allocations: 4 kB / 1.654 GB, free: 5.199 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002418/7.862, allocations: 167.1 kB / 1.654 GB, free: 5.035 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0406/7.903, allocations: 11.93 MB / 1.666 GB, free: 8.457 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00544/7.908, allocations: 1.117 MB / 1.667 GB, free: 7.332 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00541/7.914, allocations: 1.055 MB / 1.668 GB, free: 6.273 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00259/7.917, allocations: 464.2 kB / 1.668 GB, free: 5.77 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004329/7.921, allocations: 1.153 MB / 1.669 GB, free: 4.59 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=167): time 7.665e-06/7.921, allocations: 0 / 1.669 GB, free: 4.59 MB / 0.4948 GB Notification: Performance of matching and sorting (n=192): time 0.105/8.026, allocations: 10.37 MB / 1.68 GB, free: 10.18 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002544/8.026, allocations: 261.2 kB / 1.68 GB, free: 9.875 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00472/8.031, allocations: 1.106 MB / 1.681 GB, free: 8.766 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009175/8.032, allocations: 33.7 kB / 1.681 GB, free: 8.727 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001583/8.034, allocations: 0.6881 MB / 1.682 GB, free: 8.027 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002123/8.036, allocations: 0.6236 MB / 1.682 GB, free: 7.395 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005166/8.036, allocations: 4 kB / 1.682 GB, free: 7.391 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004646/8.037, allocations: 402.3 kB / 1.683 GB, free: 6.992 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005417/8.042, allocations: 1.039 MB / 1.684 GB, free: 5.949 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006722/8.049, allocations: 1.519 MB / 1.685 GB, free: 4.242 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.032/8.081, allocations: 2.478 MB / 1.688 GB, free: 1.766 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-05/8.081, allocations: 4 kB / 1.688 GB, free: 1.762 MB / 0.5105 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.3724/8.454, allocations: 4.273 MB / 1.692 GB, free: 87 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001689/8.456, allocations: 4.708 MB / 1.696 GB, free: 82.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001554/8.456, allocations: 11.69 kB / 1.696 GB, free: 82.23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002259/8.458, allocations: 282 kB / 1.697 GB, free: 82.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0053/8.463, allocations: 0.5587 MB / 1.697 GB, free: 82.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002864/8.466, allocations: 3.06 MB / 1.7 GB, free: 79.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004747/8.471, allocations: 172.8 kB / 1.7 GB, free: 79.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008035/8.472, allocations: 203.3 kB / 1.7 GB, free: 79.61 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/8.472, allocations: 10.86 kB / 1.7 GB, free: 79.61 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02749/8.5, allocations: 3.737 MB / 1.704 GB, free: 79.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.852e-05/8.5, allocations: 11.62 kB / 1.704 GB, free: 79.53 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/8.501, allocations: 285.6 kB / 1.704 GB, free: 79.49 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004878/8.506, allocations: 0.5514 MB / 1.705 GB, free: 79.49 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002533/8.508, allocations: 3.064 MB / 1.708 GB, free: 76.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004285/8.512, allocations: 166.8 kB / 1.708 GB, free: 76.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005874/8.513, allocations: 202.3 kB / 1.708 GB, free: 76.91 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (262): * Single equations (assignments): 255 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009139/8.514, allocations: 236.7 kB / 1.709 GB, free: 76.74 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006311/8.515, allocations: 203.7 kB / 1.709 GB, free: 76.74 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03741/8.552, allocations: 4.79 MB / 1.713 GB, free: 76.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.693e-05/8.552, allocations: 19.25 kB / 1.713 GB, free: 76.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-05/8.552, allocations: 1.25 kB / 1.713 GB, free: 76.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03679/8.589, allocations: 3.828 MB / 1.717 GB, free: 76.08 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04295/8.632, allocations: 7.351 MB / 1.724 GB, free: 75.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.321e-05/8.632, allocations: 5.312 kB / 1.724 GB, free: 75.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006725/8.639, allocations: 447.4 kB / 1.725 GB, free: 75.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002299/8.641, allocations: 299.2 kB / 1.725 GB, free: 75.11 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009063/8.642, allocations: 79.84 kB / 1.725 GB, free: 75.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004307/8.647, allocations: 3.74 MB / 1.729 GB, free: 71.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.038e-05/8.647, allocations: 8.125 kB / 1.729 GB, free: 71.87 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02951/8.676, allocations: 5.736 MB / 1.734 GB, free: 70.81 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03303/8.709, allocations: 7.738 MB / 1.742 GB, free: 69.36 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002469/8.712, allocations: 0.5262 MB / 1.742 GB, free: 69.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001425/8.713, allocations: 27.58 kB / 1.742 GB, free: 69.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003975/8.717, allocations: 98.81 kB / 1.743 GB, free: 69.15 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008698/8.718, allocations: 158.3 kB / 1.743 GB, free: 69.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005494/8.719, allocations: 189.2 kB / 1.743 GB, free: 69.15 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001916/8.721, allocations: 0.8049 MB / 1.744 GB, free: 69.04 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0144/8.735, allocations: 2.39 MB / 1.746 GB, free: 69.04 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 9 (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,junctionVolume.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 (198): * Single equations (assignments): 191 * 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: 5 * 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: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009497/8.745, allocations: 2.853 MB / 1.749 GB, free: 68.73 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.013/8.758, allocations: 4.239 MB / 1.753 GB, free: 68.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.669e-05/8.758, allocations: 0 / 1.753 GB, free: 68.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005474/8.763, allocations: 1.513 MB / 1.754 GB, free: 68.38 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01317/8.777, allocations: 0.8826 MB / 1.755 GB, free: 68.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02439/8.801, allocations: 5.882 MB / 1.761 GB, free: 67.45 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00586/8.807, allocations: 2.245 MB / 1.763 GB, free: 66.71 MB / 0.5105 GB Notification: Performance of SimCode: time 2.134e-06/8.807, allocations: 0 / 1.763 GB, free: 66.71 MB / 0.5105 GB