Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",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.882/1.882, allocations: 209.3 MB / 216.3 MB, free: 6.863 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2593/2.142, allocations: 51.03 MB / 267.3 MB, free: 5.227 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/2.266, allocations: 48.68 MB / 316 MB, free: 4.445 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.449/8.714, allocations: 2.562 GB / 2.87 GB, free: 39.84 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/8.715, allocations: 82.45 kB / 2.87 GB, free: 39.8 MB / 426.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 4.099/12.81, allocations: 0.7788 GB / 3.649 GB, free: 27.46 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.463e-05/12.81, allocations: 10.31 kB / 3.649 GB, free: 27.46 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0134/12.83, allocations: 0.7879 MB / 3.65 GB, free: 27.33 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008623/12.84, allocations: 1.985 MB / 3.652 GB, free: 26.89 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000239/12.84, allocations: 82.97 kB / 3.652 GB, free: 26.89 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/12.84, allocations: 111.8 kB / 3.652 GB, free: 26.89 MB / 458.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008542/12.85, allocations: 2.578 MB / 3.654 GB, free: 26.88 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009732/12.86, allocations: 2.559 MB / 3.657 GB, free: 26.4 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.807e-05/12.86, allocations: 5.25 kB / 3.657 GB, free: 26.4 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003542/12.86, allocations: 10.38 kB / 3.657 GB, free: 26.4 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002446/12.86, allocations: 155.6 kB / 3.657 GB, free: 26.39 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7542/13.61, allocations: 109.1 MB / 3.764 GB, free: 87.02 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004177/13.61, allocations: 1.016 MB / 3.765 GB, free: 87 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004033/13.62, allocations: 0.9662 MB / 3.766 GB, free: 87 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08343/13.7, allocations: 17.47 MB / 3.783 GB, free: 76.01 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00334/13.71, allocations: 1.15 MB / 3.784 GB, free: 75.84 MB / 490.8 MB Notification: Performance of pre-optimization done (n=141): time 5.441e-06/13.71, allocations: 0 / 3.784 GB, free: 75.84 MB / 490.8 MB Notification: Performance of matching and sorting (n=153): time 0.08707/13.79, allocations: 9.042 MB / 3.793 GB, free: 74.48 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/13.79, allocations: 364.9 kB / 3.793 GB, free: 74.07 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002617/13.8, allocations: 1.029 MB / 3.794 GB, free: 73.91 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006341/13.8, allocations: 33.11 kB / 3.794 GB, free: 73.88 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009718/13.8, allocations: 0.691 MB / 3.795 GB, free: 73.57 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001086/13.8, allocations: 0.5007 MB / 3.795 GB, free: 73.31 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002413/13.8, allocations: 0 / 3.795 GB, free: 73.31 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0001689/13.8, allocations: 376.8 kB / 3.795 GB, free: 73.01 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002717/13.8, allocations: 0.9991 MB / 3.796 GB, free: 73.01 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003389/13.8, allocations: 1.423 MB / 3.798 GB, free: 72.58 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01628/13.82, allocations: 1.958 MB / 3.8 GB, free: 72.56 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.328e-05/13.82, allocations: 3.562 kB / 3.8 GB, free: 72.56 MB / 490.8 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.02585/13.85, allocations: 4.271 MB / 3.804 GB, free: 72.37 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009991/13.85, allocations: 4.24 MB / 3.808 GB, free: 68.01 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.483e-05/13.85, allocations: 8.719 kB / 3.808 GB, free: 68.01 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004227/13.85, allocations: 0.5225 MB / 3.809 GB, free: 67.98 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00405/13.86, allocations: 464.3 kB / 3.809 GB, free: 67.98 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003614/13.86, allocations: 2.912 MB / 3.812 GB, free: 65.9 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004665/13.86, allocations: 256.2 kB / 3.812 GB, free: 65.89 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006735/13.87, allocations: 99.27 kB / 3.812 GB, free: 65.89 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/13.87, allocations: 3.719 kB / 3.812 GB, free: 65.89 MB / 490.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02016/13.89, allocations: 3.148 MB / 3.815 GB, free: 65.82 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-05/13.89, allocations: 16.06 kB / 3.815 GB, free: 65.82 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007551/13.89, allocations: 192.9 kB / 3.815 GB, free: 65.8 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004086/13.89, allocations: 479.2 kB / 3.816 GB, free: 65.8 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/13.89, allocations: 1.913 MB / 3.818 GB, free: 64.24 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004343/13.9, allocations: 235.3 kB / 3.818 GB, free: 64.23 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007313/13.9, allocations: 97.89 kB / 3.818 GB, free: 64.23 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0009456/13.9, allocations: 232.7 kB / 3.818 GB, free: 64.06 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002722/13.9, allocations: 0.607 MB / 3.819 GB, free: 63.97 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03066/13.93, allocations: 6.683 MB / 3.825 GB, free: 63.52 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001339/13.93, allocations: 56.59 kB / 3.826 GB, free: 63.52 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.121e-05/13.93, allocations: 0 / 3.826 GB, free: 63.52 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02316/13.96, allocations: 5.78 MB / 3.831 GB, free: 62.81 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03593/13.99, allocations: 10.06 MB / 3.841 GB, free: 61.57 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.853e-05/13.99, allocations: 6.719 kB / 3.841 GB, free: 61.57 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002939/13.99, allocations: 291.1 kB / 3.841 GB, free: 61.57 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006235/14, allocations: 1.16 MB / 3.842 GB, free: 61.5 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007728/14, allocations: 56.84 kB / 3.842 GB, free: 61.5 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006252/14.01, allocations: 3.412 MB / 3.846 GB, free: 59.39 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.727e-05/14.01, allocations: 6.688 kB / 3.846 GB, free: 59.39 MB / 490.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03003/14.04, allocations: 7.564 MB / 3.853 GB, free: 58.3 MB / 490.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03073/14.07, allocations: 9.881 MB / 3.863 GB, free: 56.82 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002313/14.07, allocations: 0.6345 MB / 3.863 GB, free: 56.6 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001057/14.07, allocations: 24.39 kB / 3.863 GB, free: 56.6 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00329/14.08, allocations: 139.5 kB / 3.864 GB, free: 56.59 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006722/14.08, allocations: 138.8 kB / 3.864 GB, free: 56.59 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002876/14.08, allocations: 70.42 kB / 3.864 GB, free: 56.59 MB / 490.8 MB Notification: Performance of sort global known variables: time 0.002501/14.08, allocations: 0.9675 MB / 3.865 GB, free: 56.48 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.02264/14.1, allocations: 2.922 MB / 3.868 GB, free: 56.39 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 37 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.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) * 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 (153): * Single equations (assignments): 137 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01762/14.12, allocations: 2.886 MB / 3.87 GB, free: 56.12 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01271/14.13, allocations: 4.835 MB / 3.875 GB, free: 55.93 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/14.13, allocations: 0 / 3.875 GB, free: 55.93 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006276/14.14, allocations: 2.91 MB / 3.878 GB, free: 55.85 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00773/14.15, allocations: 0.6714 MB / 3.879 GB, free: 55.84 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07734/14.22, allocations: 19.31 MB / 3.897 GB, free: 53.68 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00514/14.23, allocations: 2.212 MB / 3.9 GB, free: 52.79 MB / 490.8 MB Notification: Performance of SimCode: time 1.873e-06/14.23, allocations: 0 / 3.9 GB, free: 52.79 MB / 490.8 MB