Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",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.546/2.546, allocations: 235.1 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1641/2.71, allocations: 57.2 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/3.019, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.007/5.026, allocations: 0.6869 GB / 1.033 GB, free: 95.3 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/5.027, allocations: 75.42 kB / 1.033 GB, free: 95.28 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 3.476/8.503, allocations: 0.5496 GB / 1.582 GB, free: 38.49 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.95e-05/8.503, allocations: 7.281 kB / 1.582 GB, free: 38.49 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008996/8.512, allocations: 448.7 kB / 1.583 GB, free: 38.36 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01607/8.528, allocations: 1.947 MB / 1.585 GB, free: 37.92 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003585/8.529, allocations: 55.59 kB / 1.585 GB, free: 37.92 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001671/8.53, allocations: 97.47 kB / 1.585 GB, free: 37.92 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01184/8.542, allocations: 2.178 MB / 1.587 GB, free: 37.91 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01327/8.556, allocations: 2.407 MB / 1.589 GB, free: 37.49 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002198/8.556, allocations: 14.19 kB / 1.589 GB, free: 37.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001428/8.557, allocations: 7.594 kB / 1.589 GB, free: 37.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004493/8.558, allocations: 158.6 kB / 1.589 GB, free: 37.48 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03844/8.596, allocations: 11.41 MB / 1.601 GB, free: 31.09 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004364/8.601, allocations: 1.032 MB / 1.602 GB, free: 31.06 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003718/8.605, allocations: 0.9807 MB / 1.603 GB, free: 31.05 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002149/8.607, allocations: 460.1 kB / 1.603 GB, free: 30.75 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00468/8.612, allocations: 1.066 MB / 1.604 GB, free: 30.63 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 1.394e-05/8.612, allocations: 0 / 1.604 GB, free: 30.63 MB / 490.7 MB Notification: Performance of matching and sorting (n=173): time 0.1025/8.714, allocations: 9.436 MB / 1.613 GB, free: 29.73 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/8.714, allocations: 259 kB / 1.613 GB, free: 29.45 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002919/8.717, allocations: 1.085 MB / 1.615 GB, free: 29.28 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007701/8.718, allocations: 29.64 kB / 1.615 GB, free: 29.25 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009252/8.719, allocations: 0.6643 MB / 1.615 GB, free: 28.86 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001234/8.72, allocations: 0.5629 MB / 1.616 GB, free: 28.49 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003147/8.721, allocations: 3.625 kB / 1.616 GB, free: 28.49 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001819/8.721, allocations: 384.8 kB / 1.616 GB, free: 28.18 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003208/8.724, allocations: 0.9975 MB / 1.617 GB, free: 28.18 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003899/8.728, allocations: 1.424 MB / 1.619 GB, free: 27.75 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0224/8.75, allocations: 2.416 MB / 1.621 GB, free: 27.54 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.353e-05/8.751, allocations: 3.812 kB / 1.621 GB, free: 27.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02954/8.78, allocations: 4.072 MB / 1.625 GB, free: 26.51 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001145/8.781, allocations: 4.172 MB / 1.629 GB, free: 22.17 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-05/8.781, allocations: 11.5 kB / 1.629 GB, free: 22.17 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/8.783, allocations: 169.3 kB / 1.629 GB, free: 22.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006665/8.789, allocations: 0.5351 MB / 1.63 GB, free: 22.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/8.792, allocations: 2.368 MB / 1.632 GB, free: 19.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005509/8.797, allocations: 171.9 kB / 1.632 GB, free: 19.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009788/8.798, allocations: 187.8 kB / 1.632 GB, free: 19.87 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/8.798, allocations: 4.375 kB / 1.632 GB, free: 19.87 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02664/8.825, allocations: 3.534 MB / 1.636 GB, free: 19.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.587e-05/8.825, allocations: 10.78 kB / 1.636 GB, free: 19.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006993/8.826, allocations: 180.5 kB / 1.636 GB, free: 18.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006231/8.832, allocations: 0.5206 MB / 1.636 GB, free: 18.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002877/8.835, allocations: 2.371 MB / 1.639 GB, free: 32.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005202/8.84, allocations: 172.8 kB / 1.639 GB, free: 32.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001253/8.842, allocations: 178.2 kB / 1.639 GB, free: 32.72 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.001728/8.843, allocations: 221.7 kB / 1.639 GB, free: 32.51 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000947/8.844, allocations: 192.8 kB / 1.639 GB, free: 32.35 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03832/8.883, allocations: 4.238 MB / 1.644 GB, free: 29.15 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.396e-05/8.883, allocations: 20 kB / 1.644 GB, free: 29.13 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-05/8.883, allocations: 0 / 1.644 GB, free: 29.13 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03477/8.918, allocations: 3.497 MB / 1.647 GB, free: 26.2 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03933/8.957, allocations: 6.788 MB / 1.654 GB, free: 20.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.411e-05/8.957, allocations: 8 kB / 1.654 GB, free: 20.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004558/8.962, allocations: 417.2 kB / 1.654 GB, free: 20.37 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008312/8.963, allocations: 165.5 kB / 1.654 GB, free: 20.22 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006638/8.963, allocations: 63.25 kB / 1.654 GB, free: 20.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003094/8.967, allocations: 3.03 MB / 1.657 GB, free: 17.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.216e-05/8.967, allocations: 15.75 kB / 1.657 GB, free: 17.03 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03798/9.005, allocations: 5.264 MB / 1.662 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04833/9.053, allocations: 7.156 MB / 1.669 GB, free: 5.887 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002943/9.056, allocations: 0.5044 MB / 1.67 GB, free: 5.434 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001059/9.057, allocations: 27.75 kB / 1.67 GB, free: 5.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003842/9.061, allocations: 92.94 kB / 1.67 GB, free: 5.34 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009468/9.062, allocations: 140.8 kB / 1.67 GB, free: 5.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006029/9.063, allocations: 146 kB / 1.67 GB, free: 5.121 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003246/9.066, allocations: 0.7934 MB / 1.671 GB, free: 4.41 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01991/9.086, allocations: 2.26 MB / 1.673 GB, free: 2.195 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.01524/9.101, allocations: 2.69 MB / 1.676 GB, free: 76 kB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02024/9.121, allocations: 3.962 MB / 1.68 GB, free: 12.45 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.844e-05/9.122, allocations: 4 kB / 1.68 GB, free: 12.45 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005388/9.127, allocations: 1.373 MB / 1.681 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01098/9.138, allocations: 0.7466 MB / 1.682 GB, free: 10.63 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04041/9.178, allocations: 5.624 MB / 1.687 GB, free: 5.293 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008875/9.187, allocations: 2.145 MB / 1.689 GB, free: 3.109 MB / 0.5105 GB Notification: Performance of SimCode: time 1.583e-06/9.187, allocations: 0 / 1.689 GB, free: 3.109 MB / 0.5105 GB