Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",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.399/2.399, allocations: 235 MB / 241.9 MB, free: 9.77 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1717/2.571, allocations: 57.21 MB / 299.1 MB, free: 448 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/2.862, allocations: 54.84 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.621/9.483, allocations: 2.656 GB / 3.001 GB, free: 97.38 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/9.484, allocations: 75.28 kB / 3.001 GB, free: 97.34 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 4.875/14.36, allocations: 0.8625 GB / 3.864 GB, free: 31.86 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/14.36, allocations: 10.28 kB / 3.864 GB, free: 31.86 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009685/14.37, allocations: 0.8129 MB / 3.865 GB, free: 31.73 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008566/14.38, allocations: 1.967 MB / 3.867 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002874/14.38, allocations: 90.28 kB / 3.867 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009905/14.38, allocations: 109.9 kB / 3.867 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00818/14.39, allocations: 2.397 MB / 3.869 GB, free: 31.28 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009094/14.4, allocations: 2.618 MB / 3.872 GB, free: 30.83 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.629e-05/14.4, allocations: 4.469 kB / 3.872 GB, free: 30.83 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004284/14.4, allocations: 12.09 kB / 3.872 GB, free: 30.83 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002535/14.4, allocations: 159.7 kB / 3.872 GB, free: 30.82 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5117/14.91, allocations: 109.6 MB / 3.979 GB, free: 21.56 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00274/14.91, allocations: 1.017 MB / 3.98 GB, free: 21.53 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002253/14.91, allocations: 0.9131 MB / 3.981 GB, free: 21.52 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1075/15.02, allocations: 17.53 MB / 3.998 GB, free: 9.852 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003046/15.02, allocations: 1.12 MB / 3.999 GB, free: 9.688 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=136): time 5.541e-06/15.02, allocations: 0 / 3.999 GB, free: 9.688 MB / 0.5573 GB Notification: Performance of matching and sorting (n=148): time 0.03455/15.06, allocations: 7.487 MB / 4.006 GB, free: 8.055 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000236/15.06, allocations: 359.1 kB / 4.007 GB, free: 7.648 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002661/15.06, allocations: 1.084 MB / 4.008 GB, free: 7.473 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004948/15.06, allocations: 28.95 kB / 4.008 GB, free: 7.441 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007437/15.06, allocations: 0.7195 MB / 4.008 GB, free: 7.016 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008347/15.06, allocations: 497 kB / 4.009 GB, free: 6.699 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/15.06, allocations: 4 kB / 4.009 GB, free: 6.695 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002206/15.06, allocations: 383.6 kB / 4.009 GB, free: 6.387 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002655/15.07, allocations: 1.004 MB / 4.01 GB, free: 6.383 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003055/15.07, allocations: 1.4 MB / 4.012 GB, free: 5.934 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02149/15.09, allocations: 2.912 MB / 4.014 GB, free: 5.867 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.379e-05/15.09, allocations: 3.25 kB / 4.014 GB, free: 5.867 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.03235/15.12, allocations: 5.266 MB / 4.02 GB, free: 5.629 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001869/15.13, allocations: 4.245 MB / 4.024 GB, free: 17.24 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-05/15.13, allocations: 9.562 kB / 4.024 GB, free: 17.24 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005112/15.13, allocations: 0.5752 MB / 4.024 GB, free: 17.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003852/15.14, allocations: 446.5 kB / 4.025 GB, free: 17.19 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004922/15.14, allocations: 3.094 MB / 4.028 GB, free: 15.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004212/15.14, allocations: 233.4 kB / 4.028 GB, free: 15.06 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00066/15.15, allocations: 94.98 kB / 4.028 GB, free: 15.06 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/15.15, allocations: 7.594 kB / 4.028 GB, free: 15.06 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02636/15.17, allocations: 4.114 MB / 4.032 GB, free: 14.95 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.863e-05/15.17, allocations: 10.41 kB / 4.032 GB, free: 14.95 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/15.17, allocations: 190.3 kB / 4.032 GB, free: 14.93 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005399/15.18, allocations: 464.6 kB / 4.033 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002864/15.18, allocations: 1.924 MB / 4.035 GB, free: 13.36 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003868/15.19, allocations: 218.2 kB / 4.035 GB, free: 13.32 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003718/15.19, allocations: 96.14 kB / 4.035 GB, free: 13.32 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (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_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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007836/15.19, allocations: 224.4 kB / 4.035 GB, free: 13.14 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002697/15.19, allocations: 0.6052 MB / 4.036 GB, free: 13.05 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0169/15.21, allocations: 6.315 MB / 4.042 GB, free: 11.25 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.821e-05/15.21, allocations: 46.64 kB / 4.042 GB, free: 11.23 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/15.21, allocations: 4 kB / 4.042 GB, free: 11.22 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01228/15.22, allocations: 5.287 MB / 4.047 GB, free: 8 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02248/15.24, allocations: 8.675 MB / 4.056 GB, free: 3.371 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.899e-05/15.24, allocations: 0 / 4.056 GB, free: 3.371 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002589/15.24, allocations: 266.8 kB / 4.056 GB, free: 3.172 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004531/15.25, allocations: 1.314 MB / 4.057 GB, free: 2.227 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000504/15.25, allocations: 42.55 kB / 4.057 GB, free: 2.203 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2785/15.53, allocations: 3.621 MB / 4.061 GB, free: 124.1 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/15.53, allocations: 3.812 kB / 4.061 GB, free: 124.1 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01946/15.55, allocations: 6.648 MB / 4.067 GB, free: 123.7 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02113/15.57, allocations: 8.972 MB / 4.076 GB, free: 122.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002342/15.57, allocations: 0.6442 MB / 4.077 GB, free: 122.8 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008231/15.57, allocations: 17.45 kB / 4.077 GB, free: 122.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003087/15.57, allocations: 154.9 kB / 4.077 GB, free: 122.8 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004318/15.57, allocations: 112 kB / 4.077 GB, free: 122.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002433/15.58, allocations: 67.5 kB / 4.077 GB, free: 122.8 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002455/15.58, allocations: 1.014 MB / 4.078 GB, free: 122.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01768/15.6, allocations: 3.132 MB / 4.081 GB, free: 122.7 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 39 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.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,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 (139): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01769/15.61, allocations: 3.128 MB / 4.084 GB, free: 122.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01313/15.63, allocations: 4.876 MB / 4.089 GB, free: 122.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/15.63, allocations: 0 / 4.089 GB, free: 122.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005913/15.63, allocations: 2.609 MB / 4.091 GB, free: 122.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01026/15.64, allocations: 0.7589 MB / 4.092 GB, free: 122.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08825/15.73, allocations: 19.65 MB / 4.111 GB, free: 121.3 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00429/15.74, allocations: 2.225 MB / 4.113 GB, free: 120.5 MB / 0.573 GB Notification: Performance of SimCode: time 2.695e-06/15.74, allocations: 0 / 4.113 GB, free: 120.5 MB / 0.573 GB