Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",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.296/2.296, allocations: 235 MB / 241.9 MB, free: 9.742 MB / 194.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1819/2.478, allocations: 57.2 MB / 299.1 MB, free: 0.9258 MB / 242.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/2.811, allocations: 54.84 MB / 354 MB, free: 1.574 MB / 290.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.272/9.083, allocations: 2.655 GB / 3.001 GB, free: 47.8 MB / 482.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/9.084, allocations: 83.38 kB / 3.001 GB, free: 47.76 MB / 482.8 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.29/13.37, allocations: 0.8018 GB / 3.803 GB, free: 31.88 MB / 0.5027 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/13.37, allocations: 9.625 kB / 3.803 GB, free: 31.88 MB / 0.5027 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009641/13.38, allocations: 0.867 MB / 3.804 GB, free: 31.74 MB / 0.5027 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008984/13.39, allocations: 2.184 MB / 3.806 GB, free: 31.29 MB / 0.5027 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000261/13.39, allocations: 89.08 kB / 3.806 GB, free: 31.29 MB / 0.5027 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001115/13.39, allocations: 120.2 kB / 3.806 GB, free: 31.28 MB / 0.5027 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009145/13.4, allocations: 2.932 MB / 3.809 GB, free: 31.27 MB / 0.5027 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009751/13.41, allocations: 2.933 MB / 3.812 GB, free: 30.73 MB / 0.5027 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.407e-05/13.41, allocations: 4.719 kB / 3.812 GB, free: 30.73 MB / 0.5027 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004397/13.41, allocations: 5.656 kB / 3.812 GB, free: 30.73 MB / 0.5027 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002445/13.41, allocations: 181.8 kB / 3.812 GB, free: 30.72 MB / 0.5027 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.566/13.98, allocations: 110 MB / 3.919 GB, free: 21.66 MB / 0.5496 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003207/13.98, allocations: 1.166 MB / 3.92 GB, free: 21.64 MB / 0.5496 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002623/13.99, allocations: 1.028 MB / 3.921 GB, free: 21.62 MB / 0.5496 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06248/14.05, allocations: 17.52 MB / 3.938 GB, free: 9.953 MB / 0.5496 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003261/14.05, allocations: 1.247 MB / 3.94 GB, free: 9.789 MB / 0.5496 GB Notification: Performance of pre-optimization done (n=152): time 6.332e-06/14.05, allocations: 4.75 kB / 3.94 GB, free: 9.785 MB / 0.5496 GB Notification: Performance of matching and sorting (n=164): time 0.04504/14.1, allocations: 8.252 MB / 3.948 GB, free: 24.05 MB / 0.5652 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003048/14.1, allocations: 0.5042 MB / 3.948 GB, free: 23.45 MB / 0.5652 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002859/14.1, allocations: 1.21 MB / 3.949 GB, free: 23.27 MB / 0.5652 GB Notification: Performance of collectPreVariables (initialization): time 0.00063/14.1, allocations: 31.42 kB / 3.949 GB, free: 23.24 MB / 0.5652 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009384/14.1, allocations: 0.782 MB / 3.95 GB, free: 22.78 MB / 0.5652 GB Notification: Performance of collectInitialBindings (initialization): time 0.001028/14.1, allocations: 0.5346 MB / 3.951 GB, free: 22.43 MB / 0.5652 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002585/14.1, allocations: 3.656 kB / 3.951 GB, free: 22.43 MB / 0.5652 GB Notification: Performance of setup shared object (initialization): time 0.0002646/14.1, allocations: 387 kB / 3.951 GB, free: 22.12 MB / 0.5652 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003006/14.11, allocations: 1.155 MB / 3.952 GB, free: 22.12 MB / 0.5652 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003761/14.11, allocations: 1.611 MB / 3.954 GB, free: 21.6 MB / 0.5652 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.024/14.13, allocations: 3.107 MB / 3.957 GB, free: 21.53 MB / 0.5652 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.923e-05/14.13, allocations: 2.656 kB / 3.957 GB, free: 21.53 MB / 0.5652 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.04139/14.18, allocations: 5.684 MB / 3.962 GB, free: 21.28 MB / 0.5652 GB Notification: Performance of prepare postOptimizeDAE: time 0.002113/14.18, allocations: 4.45 MB / 3.967 GB, free: 16.7 MB / 0.5652 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001175/14.18, allocations: 16.62 kB / 3.967 GB, free: 16.7 MB / 0.5652 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01155/14.19, allocations: 0.866 MB / 3.968 GB, free: 16.64 MB / 0.5652 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005815/14.19, allocations: 481.2 kB / 3.968 GB, free: 16.64 MB / 0.5652 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006976/14.2, allocations: 3.527 MB / 3.971 GB, free: 14.54 MB / 0.5652 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004533/14.21, allocations: 238.8 kB / 3.972 GB, free: 14.49 MB / 0.5652 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006012/14.21, allocations: 108.7 kB / 3.972 GB, free: 14.49 MB / 0.5652 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/14.21, allocations: 5.312 kB / 3.972 GB, free: 14.49 MB / 0.5652 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03165/14.24, allocations: 4.563 MB / 3.976 GB, free: 14.37 MB / 0.5652 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001425/14.24, allocations: 18.7 kB / 3.976 GB, free: 14.37 MB / 0.5652 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003281/14.24, allocations: 355.8 kB / 3.977 GB, free: 14.33 MB / 0.5652 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006878/14.25, allocations: 0.4901 MB / 3.977 GB, free: 14.32 MB / 0.5652 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009553/14.26, allocations: 3.991 MB / 3.981 GB, free: 11.11 MB / 0.5652 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006055/14.27, allocations: 207.3 kB / 3.981 GB, free: 10.95 MB / 0.5652 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001057/14.27, allocations: 102.7 kB / 3.981 GB, free: 10.88 MB / 0.5652 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,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,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.00153/14.27, allocations: 247.3 kB / 3.982 GB, free: 10.66 MB / 0.5652 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004891/14.27, allocations: 0.6323 MB / 3.982 GB, free: 10.27 MB / 0.5652 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02625/14.3, allocations: 6.764 MB / 3.989 GB, free: 6.461 MB / 0.5652 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001212/14.3, allocations: 50 kB / 3.989 GB, free: 6.438 MB / 0.5652 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/14.3, allocations: 0 / 3.989 GB, free: 6.438 MB / 0.5652 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02112/14.32, allocations: 5.722 MB / 3.994 GB, free: 2.992 MB / 0.5652 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2908/14.61, allocations: 9.348 MB / 4.004 GB, free: 133.2 MB / 0.5652 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.861e-05/14.61, allocations: 0 / 4.004 GB, free: 133.2 MB / 0.5652 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002799/14.61, allocations: 269.7 kB / 4.004 GB, free: 133.2 MB / 0.5652 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006985/14.62, allocations: 2.064 MB / 4.006 GB, free: 133.1 MB / 0.5652 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008071/14.62, allocations: 54.55 kB / 4.006 GB, free: 133.1 MB / 0.5652 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/14.63, allocations: 4.275 MB / 4.01 GB, free: 131 MB / 0.5652 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.371e-05/14.63, allocations: 3.938 kB / 4.01 GB, free: 131 MB / 0.5652 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0291/14.66, allocations: 7.206 MB / 4.017 GB, free: 130.6 MB / 0.5652 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02343/14.69, allocations: 9.691 MB / 4.027 GB, free: 129.7 MB / 0.5652 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002468/14.69, allocations: 0.694 MB / 4.027 GB, free: 129.6 MB / 0.5652 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009131/14.69, allocations: 22.86 kB / 4.027 GB, free: 129.6 MB / 0.5652 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003122/14.69, allocations: 152.6 kB / 4.027 GB, free: 129.6 MB / 0.5652 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004285/14.69, allocations: 125.3 kB / 4.027 GB, free: 129.6 MB / 0.5652 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002585/14.69, allocations: 69.03 kB / 4.028 GB, free: 129.6 MB / 0.5652 GB Notification: Performance of sort global known variables: time 0.003053/14.7, allocations: 1.099 MB / 4.029 GB, free: 129.5 MB / 0.5652 GB Notification: Performance of remove unused functions: time 0.01962/14.72, allocations: 3.237 MB / 4.032 GB, free: 129.5 MB / 0.5652 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.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.02353/14.74, allocations: 3.067 MB / 4.035 GB, free: 129.3 MB / 0.5652 GB Notification: Performance of simCode: created initialization part: time 0.02078/14.76, allocations: 5.594 MB / 4.04 GB, free: 128.9 MB / 0.5652 GB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/14.76, allocations: 3.906 kB / 4.04 GB, free: 128.9 MB / 0.5652 GB Notification: Performance of simCode: created simulation system equations: time 0.00829/14.77, allocations: 2.697 MB / 4.043 GB, free: 128.8 MB / 0.5652 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0109/14.78, allocations: 0.7407 MB / 4.044 GB, free: 128.8 MB / 0.5652 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1167/14.9, allocations: 20.09 MB / 4.063 GB, free: 127.7 MB / 0.5652 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006133/14.9, allocations: 2.358 MB / 4.066 GB, free: 126.9 MB / 0.5652 GB Notification: Performance of SimCode: time 1.984e-06/14.9, allocations: 3.25 kB / 4.066 GB, free: 126.9 MB / 0.5652 GB