Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",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 3.029/3.029, allocations: 235 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.202/3.231, allocations: 57.2 MB / 299.2 MB, free: 436 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/3.538, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.005/5.543, allocations: 0.6869 GB / 1.033 GB, free: 95.27 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/5.544, allocations: 78.64 kB / 1.033 GB, free: 95.24 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.173/8.717, allocations: 0.5495 GB / 1.582 GB, free: 38.29 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/8.717, allocations: 10.66 kB / 1.582 GB, free: 38.29 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006735/8.724, allocations: 448.5 kB / 1.583 GB, free: 38.17 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01065/8.735, allocations: 1.95 MB / 1.585 GB, free: 37.72 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001963/8.735, allocations: 59.78 kB / 1.585 GB, free: 37.72 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001114/8.736, allocations: 98.8 kB / 1.585 GB, free: 37.72 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009018/8.745, allocations: 2.171 MB / 1.587 GB, free: 37.71 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008859/8.754, allocations: 2.401 MB / 1.589 GB, free: 37.29 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.973e-05/8.754, allocations: 11.62 kB / 1.589 GB, free: 37.29 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004847/8.755, allocations: 5.156 kB / 1.589 GB, free: 37.29 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002564/8.755, allocations: 166.2 kB / 1.589 GB, free: 37.29 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02896/8.784, allocations: 11.41 MB / 1.601 GB, free: 30.89 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003543/8.788, allocations: 1.027 MB / 1.602 GB, free: 30.86 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003237/8.791, allocations: 0.9849 MB / 1.603 GB, free: 30.85 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001808/8.793, allocations: 455.2 kB / 1.603 GB, free: 30.55 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003685/8.796, allocations: 1.068 MB / 1.604 GB, free: 30.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 6.963e-06/8.797, allocations: 3.156 kB / 1.604 GB, free: 30.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=173): time 0.08728/8.884, allocations: 9.418 MB / 1.613 GB, free: 29.54 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/8.884, allocations: 261.6 kB / 1.613 GB, free: 29.26 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002904/8.887, allocations: 1.084 MB / 1.615 GB, free: 29.09 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007463/8.888, allocations: 29.67 kB / 1.615 GB, free: 29.05 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007694/8.888, allocations: 0.6675 MB / 1.615 GB, free: 28.67 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001141/8.89, allocations: 0.5586 MB / 1.616 GB, free: 28.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003086/8.89, allocations: 3.938 kB / 1.616 GB, free: 28.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/8.89, allocations: 383.9 kB / 1.616 GB, free: 27.99 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003357/8.894, allocations: 1.001 MB / 1.617 GB, free: 27.99 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004065/8.898, allocations: 1.426 MB / 1.618 GB, free: 27.56 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02298/8.921, allocations: 2.418 MB / 1.621 GB, free: 27.39 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.384e-05/8.921, allocations: 7.656 kB / 1.621 GB, free: 27.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02895/8.95, allocations: 4.06 MB / 1.625 GB, free: 26.36 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001044/8.951, allocations: 4.178 MB / 1.629 GB, free: 22 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.805e-05/8.951, allocations: 11.81 kB / 1.629 GB, free: 22 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007521/8.952, allocations: 170.2 kB / 1.629 GB, free: 21.95 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006015/8.958, allocations: 0.5385 MB / 1.63 GB, free: 21.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002358/8.96, allocations: 2.361 MB / 1.632 GB, free: 19.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005437/8.966, allocations: 175.2 kB / 1.632 GB, free: 19.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001234/8.967, allocations: 186.3 kB / 1.632 GB, free: 19.71 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/8.967, allocations: 4.219 kB / 1.632 GB, free: 19.71 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02665/8.994, allocations: 3.54 MB / 1.636 GB, free: 18.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.346e-05/8.994, allocations: 13.64 kB / 1.636 GB, free: 18.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007065/8.994, allocations: 171.4 kB / 1.636 GB, free: 18.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005864/9, allocations: 0.5249 MB / 1.636 GB, free: 18.76 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002573/9.003, allocations: 2.37 MB / 1.639 GB, free: 32.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005013/9.008, allocations: 167.1 kB / 1.639 GB, free: 32.58 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001113/9.009, allocations: 189.2 kB / 1.639 GB, free: 32.56 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.00127/9.01, allocations: 224.4 kB / 1.639 GB, free: 32.35 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008451/9.011, allocations: 192.8 kB / 1.639 GB, free: 32.23 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03417/9.046, allocations: 4.236 MB / 1.644 GB, free: 29.03 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.882e-05/9.046, allocations: 20 kB / 1.644 GB, free: 29.01 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/9.046, allocations: 0 / 1.644 GB, free: 29.01 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02713/9.073, allocations: 3.492 MB / 1.647 GB, free: 26.09 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04109/9.114, allocations: 6.787 MB / 1.654 GB, free: 20.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.999e-05/9.114, allocations: 8 kB / 1.654 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004647/9.119, allocations: 406.5 kB / 1.654 GB, free: 20.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007842/9.119, allocations: 161.5 kB / 1.654 GB, free: 20.11 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006343/9.12, allocations: 74.44 kB / 1.654 GB, free: 20.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003271/9.123, allocations: 3.036 MB / 1.657 GB, free: 16.92 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.024e-05/9.123, allocations: 8 kB / 1.657 GB, free: 16.91 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03123/9.155, allocations: 5.273 MB / 1.662 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03921/9.194, allocations: 7.15 MB / 1.669 GB, free: 5.77 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002731/9.197, allocations: 0.509 MB / 1.67 GB, free: 5.312 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001144/9.198, allocations: 27.41 kB / 1.67 GB, free: 5.293 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003831/9.202, allocations: 94.67 kB / 1.67 GB, free: 5.223 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008386/9.203, allocations: 137.4 kB / 1.67 GB, free: 5.133 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005601/9.203, allocations: 150 kB / 1.67 GB, free: 5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.00248/9.206, allocations: 0.7995 MB / 1.671 GB, free: 4.285 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0159/9.222, allocations: 2.256 MB / 1.673 GB, free: 2.07 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.01165/9.233, allocations: 2.711 MB / 1.676 GB, free: 0 / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01728/9.251, allocations: 3.988 MB / 1.68 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.031e-05/9.251, allocations: 4 kB / 1.68 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007696/9.259, allocations: 1.373 MB / 1.681 GB, free: 11.16 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01134/9.27, allocations: 0.7416 MB / 1.682 GB, free: 10.62 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03011/9.3, allocations: 5.616 MB / 1.687 GB, free: 5.203 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007637/9.308, allocations: 2.149 MB / 1.689 GB, free: 3.016 MB / 0.5105 GB Notification: Performance of SimCode: time 1.613e-06/9.308, allocations: 0 / 1.689 GB, free: 3.016 MB / 0.5105 GB