Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",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.144/2.144, allocations: 234.9 MB / 241.9 MB, free: 9.797 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1933/2.338, allocations: 57.21 MB / 299.1 MB, free: 480 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/2.631, allocations: 54.85 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.345/8.976, allocations: 2.655 GB / 3.001 GB, free: 34.36 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/8.977, allocations: 75.84 kB / 3.001 GB, free: 34.33 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 4.238/13.21, allocations: 0.7949 GB / 3.796 GB, free: 37.41 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/13.21, allocations: 10.31 kB / 3.796 GB, free: 37.41 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01773/13.23, allocations: 0.8699 MB / 3.797 GB, free: 37.27 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01218/13.24, allocations: 2.101 MB / 3.799 GB, free: 36.82 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002905/13.24, allocations: 91.75 kB / 3.799 GB, free: 36.82 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001325/13.25, allocations: 118.7 kB / 3.799 GB, free: 36.82 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009224/13.26, allocations: 2.931 MB / 3.802 GB, free: 36.81 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009828/13.27, allocations: 2.934 MB / 3.805 GB, free: 36.27 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.299e-05/13.27, allocations: 7.625 kB / 3.805 GB, free: 36.27 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004185/13.27, allocations: 10.14 kB / 3.805 GB, free: 36.27 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002526/13.27, allocations: 174.8 kB / 3.805 GB, free: 36.26 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5039/13.77, allocations: 110 MB / 3.912 GB, free: 27.3 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003253/13.77, allocations: 1.171 MB / 3.913 GB, free: 27.29 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002646/13.78, allocations: 1.023 MB / 3.914 GB, free: 27.27 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06675/13.84, allocations: 17.53 MB / 3.931 GB, free: 15.6 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004028/13.85, allocations: 1.249 MB / 3.933 GB, free: 15.43 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=152): time 6.172e-06/13.85, allocations: 0 / 3.933 GB, free: 15.43 MB / 0.5573 GB Notification: Performance of matching and sorting (n=164): time 0.04165/13.89, allocations: 8.257 MB / 3.941 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002772/13.89, allocations: 0.503 MB / 3.941 GB, free: 13.1 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002823/13.89, allocations: 1.214 MB / 3.942 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005865/13.89, allocations: 29.48 kB / 3.942 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00084/13.89, allocations: 0.7829 MB / 3.943 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009668/13.89, allocations: 0.5302 MB / 3.944 GB, free: 12.08 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002523/13.89, allocations: 0 / 3.944 GB, free: 12.08 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002214/13.89, allocations: 398.1 kB / 3.944 GB, free: 11.77 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003071/13.9, allocations: 1.152 MB / 3.945 GB, free: 11.76 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00369/13.9, allocations: 1.613 MB / 3.947 GB, free: 11.24 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02265/13.92, allocations: 3.111 MB / 3.95 GB, free: 11.17 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.695e-05/13.92, allocations: 3.781 kB / 3.95 GB, free: 11.17 MB / 0.5573 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.03827/13.96, allocations: 5.675 MB / 3.955 GB, free: 10.92 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002105/13.96, allocations: 4.448 MB / 3.96 GB, free: 22.34 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001773/13.97, allocations: 16.03 kB / 3.96 GB, free: 22.34 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008417/13.97, allocations: 0.8661 MB / 3.961 GB, free: 22.28 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004223/13.98, allocations: 484.1 kB / 3.961 GB, free: 22.28 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0075/13.99, allocations: 3.527 MB / 3.965 GB, free: 20.18 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005568/13.99, allocations: 231.1 kB / 3.965 GB, free: 20.14 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008606/13.99, allocations: 111.4 kB / 3.965 GB, free: 20.14 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/13.99, allocations: 3.906 kB / 3.965 GB, free: 20.14 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03475/14.03, allocations: 4.564 MB / 3.969 GB, free: 20.01 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001357/14.03, allocations: 12.84 kB / 3.969 GB, free: 20.01 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003306/14.03, allocations: 356.2 kB / 3.97 GB, free: 19.97 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005447/14.04, allocations: 0.4968 MB / 3.97 GB, free: 19.96 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00731/14.04, allocations: 3.984 MB / 3.974 GB, free: 17.18 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00428/14.05, allocations: 207.6 kB / 3.974 GB, free: 17.14 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008751/14.05, allocations: 107.6 kB / 3.974 GB, free: 17.14 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001105/14.05, allocations: 238.3 kB / 3.975 GB, free: 16.94 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002949/14.05, allocations: 0.6267 MB / 3.975 GB, free: 16.55 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02037/14.07, allocations: 6.769 MB / 3.982 GB, free: 12.73 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.919e-05/14.07, allocations: 58.69 kB / 3.982 GB, free: 12.71 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/14.07, allocations: 4 kB / 3.982 GB, free: 12.71 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01332/14.09, allocations: 5.714 MB / 3.987 GB, free: 9.266 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02383/14.11, allocations: 9.289 MB / 3.996 GB, free: 4.336 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.107e-05/14.11, allocations: 0 / 3.996 GB, free: 4.336 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0028/14.11, allocations: 278.8 kB / 3.997 GB, free: 4.129 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009941/14.12, allocations: 2.053 MB / 3.999 GB, free: 2.621 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008613/14.12, allocations: 57.97 kB / 3.999 GB, free: 2.59 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2613/14.39, allocations: 4.27 MB / 4.003 GB, free: 131.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/14.39, allocations: 2.906 kB / 4.003 GB, free: 131.2 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01933/14.4, allocations: 7.206 MB / 4.01 GB, free: 130.8 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02298/14.43, allocations: 9.69 MB / 4.019 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/14.43, allocations: 0.6875 MB / 4.02 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001004/14.43, allocations: 31.08 kB / 4.02 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003763/14.44, allocations: 145.5 kB / 4.02 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005714/14.44, allocations: 129.5 kB / 4.02 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002639/14.44, allocations: 66.75 kB / 4.021 GB, free: 129.9 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002689/14.44, allocations: 1.103 MB / 4.022 GB, free: 129.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02291/14.46, allocations: 3.23 MB / 4.025 GB, free: 129.7 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],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,$cse8.phase,$cse8.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.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 (143): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 9 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.02106/14.48, allocations: 3.079 MB / 4.028 GB, free: 129.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01997/14.5, allocations: 5.593 MB / 4.033 GB, free: 129.1 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/14.5, allocations: 2.75 kB / 4.033 GB, free: 129.1 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.007219/14.51, allocations: 2.701 MB / 4.036 GB, free: 129 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01029/14.52, allocations: 0.7278 MB / 4.037 GB, free: 129 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08383/14.6, allocations: 20.09 MB / 4.056 GB, free: 128 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004345/14.61, allocations: 2.36 MB / 4.058 GB, free: 127.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.363e-06/14.61, allocations: 3.062 kB / 4.058 GB, free: 127.2 MB / 0.573 GB