Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",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.71/2.71, allocations: 235.1 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1593/2.869, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/3.159, allocations: 54.86 MB / 354.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.114/5.272, allocations: 0.687 GB / 1.033 GB, free: 95.18 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003698/5.273, allocations: 81.75 kB / 1.033 GB, free: 95.15 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.755/9.028, allocations: 0.6139 GB / 1.647 GB, free: 18.41 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/9.028, allocations: 8 kB / 1.647 GB, free: 18.4 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006436/9.034, allocations: 468.5 kB / 1.647 GB, free: 17.94 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01069/9.045, allocations: 2.005 MB / 1.649 GB, free: 15.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/9.045, allocations: 59.98 kB / 1.649 GB, free: 15.87 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001218/9.046, allocations: 103.9 kB / 1.649 GB, free: 15.77 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009121/9.055, allocations: 2.264 MB / 1.652 GB, free: 13.5 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009769/9.065, allocations: 2.516 MB / 1.654 GB, free: 10.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.783e-05/9.065, allocations: 4 kB / 1.654 GB, free: 10.82 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000549/9.066, allocations: 4 kB / 1.654 GB, free: 10.81 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002726/9.066, allocations: 167.1 kB / 1.654 GB, free: 10.65 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03268/9.099, allocations: 11.94 MB / 1.666 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004375/9.103, allocations: 1.109 MB / 1.667 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003747/9.107, allocations: 1.059 MB / 1.668 GB, free: 11.9 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002035/9.109, allocations: 465.5 kB / 1.668 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004414/9.114, allocations: 1.156 MB / 1.67 GB, free: 10.21 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=167): time 7.594e-06/9.114, allocations: 0 / 1.67 GB, free: 10.21 MB / 0.4948 GB Notification: Performance of matching and sorting (n=192): time 0.3565/9.47, allocations: 10.37 MB / 1.68 GB, free: 73.87 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/9.471, allocations: 262.4 kB / 1.68 GB, free: 73.59 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002988/9.474, allocations: 1.104 MB / 1.681 GB, free: 73.44 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007495/9.474, allocations: 25.7 kB / 1.681 GB, free: 73.41 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007264/9.475, allocations: 0.6938 MB / 1.682 GB, free: 73.32 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00107/9.476, allocations: 0.6279 MB / 1.682 GB, free: 73.07 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003003/9.477, allocations: 3.5 kB / 1.682 GB, free: 73.07 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001712/9.477, allocations: 389.9 kB / 1.683 GB, free: 72.77 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003589/9.48, allocations: 1.043 MB / 1.684 GB, free: 72.76 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004579/9.485, allocations: 1.52 MB / 1.685 GB, free: 72.29 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.023/9.508, allocations: 2.473 MB / 1.688 GB, free: 72.28 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.424e-05/9.508, allocations: 7.375 kB / 1.688 GB, free: 72.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.02961/9.538, allocations: 4.276 MB / 1.692 GB, free: 72.06 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001179/9.539, allocations: 4.719 MB / 1.696 GB, free: 67.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.318e-05/9.539, allocations: 14.34 kB / 1.696 GB, free: 67.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001375/9.54, allocations: 275.1 kB / 1.697 GB, free: 67.21 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005958/9.546, allocations: 0.5604 MB / 1.697 GB, free: 67.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003032/9.55, allocations: 3.07 MB / 1.7 GB, free: 64.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005405/9.555, allocations: 168.3 kB / 1.7 GB, free: 64.61 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001178/9.556, allocations: 211 kB / 1.701 GB, free: 64.61 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/9.556, allocations: 2.344 kB / 1.701 GB, free: 64.61 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02613/9.582, allocations: 3.735 MB / 1.704 GB, free: 64.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.302e-05/9.582, allocations: 11.53 kB / 1.704 GB, free: 64.53 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/9.584, allocations: 277.1 kB / 1.704 GB, free: 64.49 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005563/9.589, allocations: 0.551 MB / 1.705 GB, free: 64.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002896/9.592, allocations: 3.076 MB / 1.708 GB, free: 61.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005047/9.597, allocations: 163.4 kB / 1.708 GB, free: 61.89 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001143/9.598, allocations: 200.4 kB / 1.708 GB, free: 61.89 MB / 0.4948 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.001441/9.6, allocations: 239.8 kB / 1.709 GB, free: 61.72 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000854/9.601, allocations: 204.7 kB / 1.709 GB, free: 61.61 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0377/9.639, allocations: 4.786 MB / 1.713 GB, free: 61.46 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.363e-05/9.639, allocations: 20.31 kB / 1.713 GB, free: 61.46 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/9.639, allocations: 2.375 kB / 1.714 GB, free: 61.46 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.028/9.667, allocations: 3.832 MB / 1.717 GB, free: 60.93 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04884/9.716, allocations: 7.344 MB / 1.724 GB, free: 59.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.389e-05/9.716, allocations: 7.281 kB / 1.724 GB, free: 59.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004692/9.72, allocations: 444.5 kB / 1.725 GB, free: 59.96 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001608/9.722, allocations: 297 kB / 1.725 GB, free: 59.91 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006591/9.723, allocations: 83.95 kB / 1.725 GB, free: 59.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004035/9.727, allocations: 3.737 MB / 1.729 GB, free: 56.65 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-05/9.727, allocations: 15.41 kB / 1.729 GB, free: 56.65 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03431/9.761, allocations: 5.729 MB / 1.734 GB, free: 55.59 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04419/9.805, allocations: 7.75 MB / 1.742 GB, free: 54.13 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002478/9.808, allocations: 0.5263 MB / 1.743 GB, free: 53.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001117/9.809, allocations: 25.2 kB / 1.743 GB, free: 53.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003953/9.813, allocations: 92.5 kB / 1.743 GB, free: 53.93 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008391/9.814, allocations: 168.9 kB / 1.743 GB, free: 53.92 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005884/9.815, allocations: 176 kB / 1.743 GB, free: 53.92 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002127/9.817, allocations: 0.8075 MB / 1.744 GB, free: 53.81 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01529/9.832, allocations: 2.387 MB / 1.746 GB, free: 53.81 MB / 0.4948 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.01081/9.843, allocations: 2.857 MB / 1.749 GB, free: 53.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01366/9.857, allocations: 4.23 MB / 1.753 GB, free: 53.33 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.545e-05/9.857, allocations: 2.75 kB / 1.753 GB, free: 53.33 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005099/9.862, allocations: 1.509 MB / 1.755 GB, free: 53.16 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01028/9.872, allocations: 0.8881 MB / 1.755 GB, free: 53.15 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02797/9.9, allocations: 5.878 MB / 1.761 GB, free: 52.23 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006852/9.907, allocations: 2.241 MB / 1.763 GB, free: 51.48 MB / 0.4948 GB Notification: Performance of SimCode: time 1.683e-06/9.907, allocations: 2.719 kB / 1.763 GB, free: 51.48 MB / 0.4948 GB