Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",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 1.794/1.794, allocations: 209.3 MB / 216.3 MB, free: 6.805 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2329/2.027, allocations: 51.02 MB / 267.3 MB, free: 5.168 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/2.152, allocations: 48.69 MB / 316 MB, free: 4.383 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.554/8.706, allocations: 2.549 GB / 2.858 GB, free: 50.84 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003493/8.707, allocations: 80.14 kB / 2.858 GB, free: 50.79 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 4.382/13.09, allocations: 0.8761 GB / 3.734 GB, free: 14.34 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/13.09, allocations: 9.594 kB / 3.734 GB, free: 14.34 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0111/13.1, allocations: 0.8814 MB / 3.735 GB, free: 14.11 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01034/13.11, allocations: 2.081 MB / 3.737 GB, free: 12.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003183/13.11, allocations: 91.61 kB / 3.737 GB, free: 12.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001145/13.11, allocations: 123.7 kB / 3.737 GB, free: 12.31 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01081/13.12, allocations: 2.733 MB / 3.739 GB, free: 9.863 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01517/13.14, allocations: 2.928 MB / 3.742 GB, free: 7.223 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001027/13.14, allocations: 3.938 kB / 3.742 GB, free: 7.219 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006308/13.14, allocations: 8.562 kB / 3.742 GB, free: 7.211 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002863/13.14, allocations: 171.8 kB / 3.743 GB, free: 7.07 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.755/13.89, allocations: 111 MB / 3.851 GB, free: 34.49 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003406/13.9, allocations: 1.101 MB / 3.852 GB, free: 34.46 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003814/13.9, allocations: 0.9762 MB / 3.853 GB, free: 34.45 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06944/13.97, allocations: 17.53 MB / 3.87 GB, free: 38.79 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005281/13.98, allocations: 1.194 MB / 3.871 GB, free: 38.62 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=149): time 7.885e-06/13.98, allocations: 0 / 3.871 GB, free: 38.62 MB / 0.4948 GB Notification: Performance of matching and sorting (n=165): time 0.04957/14.03, allocations: 8.012 MB / 3.879 GB, free: 37.14 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003008/14.03, allocations: 358.9 kB / 3.879 GB, free: 36.74 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003162/14.03, allocations: 1.154 MB / 3.88 GB, free: 36.57 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000601/14.03, allocations: 29.17 kB / 3.88 GB, free: 36.54 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001009/14.03, allocations: 0.7975 MB / 3.881 GB, free: 36.18 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001318/14.03, allocations: 0.5478 MB / 3.882 GB, free: 35.9 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003772/14.03, allocations: 0 / 3.882 GB, free: 35.9 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003101/14.03, allocations: 391.1 kB / 3.882 GB, free: 35.59 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002893/14.04, allocations: 1.092 MB / 3.883 GB, free: 35.59 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003365/14.04, allocations: 1.539 MB / 3.885 GB, free: 35.09 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02312/14.06, allocations: 3.028 MB / 3.888 GB, free: 35.02 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.914e-05/14.06, allocations: 3.594 kB / 3.888 GB, free: 35.02 MB / 0.4948 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.03317/14.1, allocations: 5.377 MB / 3.893 GB, free: 34.78 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00212/14.1, allocations: 4.869 MB / 3.898 GB, free: 29.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.447e-05/14.1, allocations: 13.19 kB / 3.898 GB, free: 29.75 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/14.1, allocations: 224.2 kB / 3.898 GB, free: 29.72 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00473/14.1, allocations: 0.5242 MB / 3.898 GB, free: 29.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004102/14.11, allocations: 2.492 MB / 3.901 GB, free: 27.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005184/14.11, allocations: 265.7 kB / 3.901 GB, free: 27.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006018/14.11, allocations: 106.2 kB / 3.901 GB, free: 27.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/14.11, allocations: 3.969 kB / 3.901 GB, free: 27.6 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02681/14.14, allocations: 4.311 MB / 3.905 GB, free: 27.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.543e-05/14.14, allocations: 13.84 kB / 3.905 GB, free: 27.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009433/14.14, allocations: 233.6 kB / 3.906 GB, free: 27.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004456/14.15, allocations: 0.5197 MB / 3.906 GB, free: 27.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002708/14.15, allocations: 2.487 MB / 3.909 GB, free: 25.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004224/14.15, allocations: 236.8 kB / 3.909 GB, free: 25.33 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005048/14.15, allocations: 108.3 kB / 3.909 GB, free: 25.33 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,splitter.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * 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.000939/14.15, allocations: 238.2 kB / 3.909 GB, free: 25.15 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002906/14.16, allocations: 0.6531 MB / 3.91 GB, free: 25.06 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01655/14.17, allocations: 6.019 MB / 3.916 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.125e-05/14.17, allocations: 53.02 kB / 3.916 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/14.17, allocations: 0 / 3.916 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01203/14.19, allocations: 4.993 MB / 3.921 GB, free: 23.87 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0231/14.21, allocations: 8.88 MB / 3.929 GB, free: 22.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-05/14.21, allocations: 6.578 kB / 3.929 GB, free: 22.72 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004938/14.21, allocations: 332.1 kB / 3.93 GB, free: 22.71 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002428/14.22, allocations: 319.6 kB / 3.93 GB, free: 22.67 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008348/14.22, allocations: 45.09 kB / 3.93 GB, free: 22.67 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003953/14.22, allocations: 2.66 MB / 3.933 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.095e-05/14.22, allocations: 2.969 kB / 3.933 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02989/14.25, allocations: 6.687 MB / 3.939 GB, free: 19.84 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03254/14.28, allocations: 9.136 MB / 3.948 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00398/14.29, allocations: 0.6737 MB / 3.949 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001745/14.29, allocations: 21.81 kB / 3.949 GB, free: 14.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005066/14.3, allocations: 176.8 kB / 3.949 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006105/14.3, allocations: 127.5 kB / 3.949 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002817/14.3, allocations: 72.39 kB / 3.949 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002433/14.3, allocations: 1.062 MB / 3.95 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0172/14.32, allocations: 3.263 MB / 3.953 GB, free: 11.19 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 36 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,splitter.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 11 * 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 Backend phase and start with SimCode phase: time 0.0169/14.33, allocations: 3.187 MB / 3.956 GB, free: 9.043 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01359/14.35, allocations: 5.155 MB / 3.961 GB, free: 6.078 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/14.35, allocations: 0 / 3.961 GB, free: 6.078 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006068/14.35, allocations: 2.615 MB / 3.964 GB, free: 4.773 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008522/14.36, allocations: 0.8052 MB / 3.965 GB, free: 4.328 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3856/14.75, allocations: 20.4 MB / 3.985 GB, free: 92.71 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004773/14.75, allocations: 2.327 MB / 3.987 GB, free: 91.95 MB / 0.4948 GB Notification: Performance of SimCode: time 1.533e-06/14.75, allocations: 2.188 kB / 3.987 GB, free: 91.95 MB / 0.4948 GB