Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",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.98/1.98, allocations: 209.3 MB / 216.3 MB, free: 6.777 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2642/2.245, allocations: 51.03 MB / 267.3 MB, free: 5.129 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/2.375, allocations: 48.68 MB / 316 MB, free: 4.352 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.42/8.795, allocations: 2.566 GB / 2.874 GB, free: 34.84 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/8.795, allocations: 79.83 kB / 2.874 GB, free: 34.8 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.687/13.48, allocations: 0.8795 GB / 3.754 GB, free: 5.641 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/13.48, allocations: 12 kB / 3.754 GB, free: 5.629 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01103/13.49, allocations: 0.875 MB / 3.755 GB, free: 4.75 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01021/13.5, allocations: 2.1 MB / 3.757 GB, free: 2.629 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003209/13.5, allocations: 91.98 kB / 3.757 GB, free: 2.539 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001092/13.5, allocations: 131.9 kB / 3.757 GB, free: 2.41 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.252/13.76, allocations: 2.676 MB / 3.76 GB, free: 60.76 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009781/13.77, allocations: 2.892 MB / 3.762 GB, free: 60.22 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001107/13.77, allocations: 8.781 kB / 3.762 GB, free: 60.22 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007194/13.77, allocations: 4.031 kB / 3.763 GB, free: 60.22 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000249/13.77, allocations: 171.9 kB / 3.763 GB, free: 60.21 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5422/14.31, allocations: 111 MB / 3.871 GB, free: 34.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003393/14.31, allocations: 1.12 MB / 3.872 GB, free: 34.28 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003026/14.32, allocations: 1.068 MB / 3.873 GB, free: 34.25 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06686/14.38, allocations: 17.36 MB / 3.89 GB, free: 38.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003532/14.39, allocations: 1.248 MB / 3.891 GB, free: 38.53 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=159): time 5.75e-06/14.39, allocations: 0 / 3.891 GB, free: 38.53 MB / 0.5105 GB Notification: Performance of matching and sorting (n=175): time 0.08059/14.47, allocations: 9.763 MB / 3.901 GB, free: 36.83 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000245/14.47, allocations: 364.9 kB / 3.901 GB, free: 36.42 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002826/14.47, allocations: 1.093 MB / 3.902 GB, free: 36.25 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007056/14.47, allocations: 29.67 kB / 3.902 GB, free: 36.22 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009531/14.47, allocations: 0.7805 MB / 3.903 GB, free: 35.88 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001187/14.47, allocations: 0.5708 MB / 3.904 GB, free: 35.58 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002642/14.47, allocations: 0 / 3.904 GB, free: 35.58 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002664/14.47, allocations: 388.7 kB / 3.904 GB, free: 35.27 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004509/14.48, allocations: 1.105 MB / 3.905 GB, free: 35.26 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006465/14.49, allocations: 1.573 MB / 3.907 GB, free: 34.75 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01865/14.5, allocations: 2.085 MB / 3.909 GB, free: 34.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.528e-05/14.5, allocations: 3.469 kB / 3.909 GB, free: 34.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.02695/14.53, allocations: 4.452 MB / 3.913 GB, free: 34.47 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002448/14.53, allocations: 4.869 MB / 3.918 GB, free: 29.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.512e-05/14.53, allocations: 15.25 kB / 3.918 GB, free: 29.44 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/14.54, allocations: 228.8 kB / 3.918 GB, free: 29.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004932/14.54, allocations: 0.5326 MB / 3.919 GB, free: 29.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002894/14.54, allocations: 2.487 MB / 3.921 GB, free: 27.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005476/14.55, allocations: 309.8 kB / 3.921 GB, free: 27.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009301/14.55, allocations: 105.5 kB / 3.921 GB, free: 27.28 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/14.55, allocations: 3.188 kB / 3.921 GB, free: 27.28 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02164/14.57, allocations: 3.381 MB / 3.925 GB, free: 27.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.163e-05/14.57, allocations: 15.06 kB / 3.925 GB, free: 27.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000968/14.57, allocations: 234.9 kB / 3.925 GB, free: 27.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0046/14.58, allocations: 0.5271 MB / 3.925 GB, free: 27.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002828/14.58, allocations: 2.491 MB / 3.928 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005548/14.59, allocations: 274.2 kB / 3.928 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009949/14.59, allocations: 106.5 kB / 3.928 GB, free: 25.02 MB / 0.5105 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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.001559/14.59, allocations: 231.2 kB / 3.928 GB, free: 24.85 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003937/14.59, allocations: 0.6556 MB / 3.929 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03981/14.63, allocations: 6.747 MB / 3.936 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001282/14.63, allocations: 52.12 kB / 3.936 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.577e-05/14.63, allocations: 7.703 kB / 3.936 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02696/14.66, allocations: 5.806 MB / 3.941 GB, free: 23.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04462/14.7, allocations: 11.01 MB / 3.952 GB, free: 20.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-05/14.7, allocations: 7.906 kB / 3.952 GB, free: 20.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003359/14.71, allocations: 362.9 kB / 3.953 GB, free: 19.77 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001595/14.71, allocations: 327.1 kB / 3.953 GB, free: 19.58 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006349/14.71, allocations: 53.84 kB / 3.953 GB, free: 19.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002739/14.71, allocations: 2.663 MB / 3.955 GB, free: 17.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.341e-05/14.71, allocations: 11.56 kB / 3.956 GB, free: 17.13 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03079/14.74, allocations: 8.031 MB / 3.963 GB, free: 12.1 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03652/14.78, allocations: 10.49 MB / 3.974 GB, free: 5.742 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002579/14.78, allocations: 0.6678 MB / 3.974 GB, free: 5.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008622/14.78, allocations: 33.08 kB / 3.974 GB, free: 5.301 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003702/14.79, allocations: 174.3 kB / 3.974 GB, free: 5.176 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006563/14.79, allocations: 152.9 kB / 3.975 GB, free: 5.102 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003076/14.79, allocations: 84.94 kB / 3.975 GB, free: 5.043 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002777/14.79, allocations: 1.013 MB / 3.976 GB, free: 4.438 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01907/14.81, allocations: 3.13 MB / 3.979 GB, free: 2.262 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 36 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.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,$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,junctionIdeal.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 (186): * Single equations (assignments): 169 * 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.02186/14.83, allocations: 3.09 MB / 3.982 GB, free: 172 kB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.28/15.11, allocations: 5.563 MB / 3.987 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.467e-05/15.11, allocations: 3.906 kB / 3.987 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007438/15.12, allocations: 3.112 MB / 3.99 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009638/15.13, allocations: 0.7973 MB / 3.991 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09133/15.22, allocations: 19.69 MB / 4.01 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006256/15.23, allocations: 2.348 MB / 4.013 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of SimCode: time 2.124e-06/15.23, allocations: 0 / 4.013 GB, free: 104.3 MB / 0.5105 GB