Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",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.104/2.104, allocations: 209.3 MB / 216.3 MB, free: 6.797 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2224/2.327, allocations: 51.04 MB / 267.3 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/2.434, allocations: 48.69 MB / 316 MB, free: 4.367 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.2/8.634, allocations: 2.566 GB / 2.875 GB, free: 33.95 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004204/8.634, allocations: 84.45 kB / 2.875 GB, free: 33.91 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: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 5.516/14.15, allocations: 0.9819 GB / 3.857 GB, free: 27.08 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/14.15, allocations: 11.72 kB / 3.857 GB, free: 27.08 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01129/14.16, allocations: 0.947 MB / 3.858 GB, free: 26.93 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009733/14.17, allocations: 2.206 MB / 3.86 GB, free: 26.46 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002873/14.17, allocations: 102.5 kB / 3.86 GB, free: 26.46 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001124/14.17, allocations: 131.2 kB / 3.86 GB, free: 26.46 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009474/14.18, allocations: 2.857 MB / 3.863 GB, free: 26.45 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/14.19, allocations: 3.072 MB / 3.866 GB, free: 25.85 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.557e-05/14.19, allocations: 7.719 kB / 3.866 GB, free: 25.84 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004433/14.19, allocations: 6.062 kB / 3.866 GB, free: 25.84 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002491/14.19, allocations: 180.5 kB / 3.866 GB, free: 25.84 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2105/14.4, allocations: 50.89 MB / 3.916 GB, free: 13.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005611/14.41, allocations: 1.247 MB / 3.917 GB, free: 13.28 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004978/14.41, allocations: 1.182 MB / 3.918 GB, free: 13.27 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08878/14.5, allocations: 17.21 MB / 3.935 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005735/14.51, allocations: 1.38 MB / 3.936 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=182): time 9.237e-06/14.51, allocations: 0 / 3.936 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of matching and sorting (n=202): time 0.112/14.62, allocations: 10.63 MB / 3.947 GB, free: 4.766 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003526/14.62, allocations: 364.1 kB / 3.947 GB, free: 4.332 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005993/14.63, allocations: 1.156 MB / 3.948 GB, free: 3.297 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001196/14.63, allocations: 29.7 kB / 3.948 GB, free: 3.262 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002333/14.63, allocations: 0.823 MB / 3.949 GB, free: 2.535 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002797/14.63, allocations: 0.656 MB / 3.95 GB, free: 1.93 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006503/14.63, allocations: 0 / 3.95 GB, free: 1.93 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004211/14.64, allocations: 406 kB / 3.95 GB, free: 1.559 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007977/14.64, allocations: 1.197 MB / 3.951 GB, free: 488 kB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2521/14.9, allocations: 1.974 MB / 3.953 GB, free: 90.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01741/14.91, allocations: 2.23 MB / 3.955 GB, free: 90.59 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.232e-05/14.91, allocations: 3.344 kB / 3.955 GB, free: 90.59 MB / 0.4948 GB Notification: Performance of matching and sorting (n=305) (initialization): time 0.02725/14.94, allocations: 4.802 MB / 3.96 GB, free: 90.48 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001222/14.94, allocations: 5.514 MB / 3.966 GB, free: 84.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.11e-05/14.94, allocations: 17.3 kB / 3.966 GB, free: 84.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001572/14.94, allocations: 329.5 kB / 3.966 GB, free: 84.87 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005411/14.95, allocations: 0.6036 MB / 3.966 GB, free: 84.87 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003182/14.95, allocations: 3.195 MB / 3.97 GB, free: 82.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006087/14.96, allocations: 325.1 kB / 3.97 GB, free: 82.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009206/14.96, allocations: 126.9 kB / 3.97 GB, free: 82.29 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/14.96, allocations: 5.844 kB / 3.97 GB, free: 82.29 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02271/14.98, allocations: 3.715 MB / 3.974 GB, free: 82.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.519e-05/14.98, allocations: 19.53 kB / 3.974 GB, free: 82.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/14.98, allocations: 323.8 kB / 3.974 GB, free: 82.17 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005249/14.99, allocations: 0.5953 MB / 3.975 GB, free: 82.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003123/14.99, allocations: 3.19 MB / 3.978 GB, free: 79.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005422/15, allocations: 301.3 kB / 3.978 GB, free: 79.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009053/15, allocations: 126.7 kB / 3.978 GB, free: 79.59 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 29 (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,junctionVolume.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 (287): * Single equations (assignments): 280 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001019/15, allocations: 241.1 kB / 3.978 GB, free: 79.42 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00313/15, allocations: 0.7065 MB / 3.979 GB, free: 79.42 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03472/15.04, allocations: 7.724 MB / 3.987 GB, free: 79.02 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000143/15.04, allocations: 62.17 kB / 3.987 GB, free: 79.02 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.02e-05/15.04, allocations: 0 / 3.987 GB, free: 79.02 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06243/15.1, allocations: 6.625 MB / 3.993 GB, free: 78.29 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06085/15.16, allocations: 12.44 MB / 4.005 GB, free: 76.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.444e-05/15.16, allocations: 6.125 kB / 4.005 GB, free: 76.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004891/15.17, allocations: 420.3 kB / 4.006 GB, free: 76.44 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00273/15.17, allocations: 435.4 kB / 4.006 GB, free: 76.39 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007523/15.17, allocations: 56.66 kB / 4.006 GB, free: 76.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004062/15.17, allocations: 3.418 MB / 4.009 GB, free: 73.78 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.072e-05/15.17, allocations: 18.02 kB / 4.009 GB, free: 73.78 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0428/15.22, allocations: 9.035 MB / 4.018 GB, free: 72.39 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04457/15.26, allocations: 11.79 MB / 4.03 GB, free: 70.61 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002725/15.26, allocations: 0.7184 MB / 4.03 GB, free: 70.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001036/15.26, allocations: 28.78 kB / 4.031 GB, free: 70.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003881/15.27, allocations: 197.9 kB / 4.031 GB, free: 70.36 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005964/15.27, allocations: 173 kB / 4.031 GB, free: 70.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003278/15.27, allocations: 90.62 kB / 4.031 GB, free: 70.36 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002598/15.27, allocations: 1.073 MB / 4.032 GB, free: 70.21 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01821/15.29, allocations: 3.341 MB / 4.035 GB, free: 70.21 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 41 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.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,junctionVolume.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 (218): * Single equations (assignments): 198 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01738/15.31, allocations: 3.284 MB / 4.038 GB, free: 70 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01608/15.32, allocations: 5.91 MB / 4.044 GB, free: 69.82 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-05/15.32, allocations: 0 / 4.044 GB, free: 69.82 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008435/15.33, allocations: 3.588 MB / 4.048 GB, free: 69.74 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009647/15.34, allocations: 0.949 MB / 4.049 GB, free: 69.72 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08958/15.43, allocations: 20.33 MB / 4.069 GB, free: 68.44 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006221/15.44, allocations: 2.484 MB / 4.071 GB, free: 67.67 MB / 0.4948 GB Notification: Performance of SimCode: time 2.695e-06/15.44, allocations: 0 / 4.071 GB, free: 67.67 MB / 0.4948 GB