Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",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.766/1.766, allocations: 209.3 MB / 216.3 MB, free: 6.809 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.266/2.032, allocations: 51.04 MB / 267.3 MB, free: 5.16 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/2.15, allocations: 48.68 MB / 316 MB, free: 4.375 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.393/8.543, allocations: 2.562 GB / 2.871 GB, free: 38.29 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/8.543, allocations: 78.64 kB / 2.871 GB, free: 38.25 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 4.316/12.86, allocations: 0.8461 GB / 3.717 GB, free: 17.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/12.86, allocations: 9.688 kB / 3.717 GB, free: 17.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009839/12.87, allocations: 0.7828 MB / 3.718 GB, free: 17.62 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009773/12.88, allocations: 1.977 MB / 3.72 GB, free: 16.71 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002947/12.88, allocations: 85.02 kB / 3.72 GB, free: 16.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001094/12.88, allocations: 113.2 kB / 3.72 GB, free: 16.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008938/12.89, allocations: 2.352 MB / 3.722 GB, free: 15.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008835/12.9, allocations: 2.582 MB / 3.725 GB, free: 14.77 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.636e-05/12.9, allocations: 3.938 kB / 3.725 GB, free: 14.76 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003711/12.9, allocations: 7.875 kB / 3.725 GB, free: 14.76 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002259/12.9, allocations: 160.4 kB / 3.725 GB, free: 14.74 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7777/13.68, allocations: 109.3 MB / 3.831 GB, free: 32.15 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00316/13.68, allocations: 1.01 MB / 3.832 GB, free: 32.13 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00261/13.68, allocations: 0.9673 MB / 3.833 GB, free: 32.12 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08025/13.76, allocations: 17.47 MB / 3.85 GB, free: 36.46 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003/13.77, allocations: 1.151 MB / 3.852 GB, free: 36.29 MB / 490.7 MB Notification: Performance of pre-optimization done (n=141): time 4.969e-06/13.77, allocations: 0 / 3.852 GB, free: 36.29 MB / 490.7 MB Notification: Performance of matching and sorting (n=153): time 0.06488/13.83, allocations: 9.068 MB / 3.86 GB, free: 34.86 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002132/13.83, allocations: 360.9 kB / 3.861 GB, free: 34.45 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002673/13.83, allocations: 1.035 MB / 3.862 GB, free: 34.29 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006112/13.84, allocations: 28.3 kB / 3.862 GB, free: 34.25 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008034/13.84, allocations: 0.706 MB / 3.862 GB, free: 33.94 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009918/13.84, allocations: 0.5003 MB / 3.863 GB, free: 33.68 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/13.84, allocations: 2.5 kB / 3.863 GB, free: 33.68 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002272/13.84, allocations: 381.3 kB / 3.863 GB, free: 33.37 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002737/13.84, allocations: 0.9972 MB / 3.864 GB, free: 33.37 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004343/13.84, allocations: 1.423 MB / 3.866 GB, free: 32.93 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02486/13.87, allocations: 1.956 MB / 3.868 GB, free: 32.89 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.085e-05/13.87, allocations: 2.781 kB / 3.868 GB, free: 32.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.03556/13.91, allocations: 4.267 MB / 3.872 GB, free: 32.66 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00197/13.91, allocations: 4.241 MB / 3.876 GB, free: 28.28 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.092e-05/13.91, allocations: 12.25 kB / 3.876 GB, free: 28.28 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006247/13.91, allocations: 0.5231 MB / 3.876 GB, free: 28.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006159/13.92, allocations: 463.6 kB / 3.877 GB, free: 28.22 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005083/13.92, allocations: 2.904 MB / 3.88 GB, free: 26.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004965/13.93, allocations: 276.2 kB / 3.88 GB, free: 26.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007074/13.93, allocations: 96.33 kB / 3.88 GB, free: 26.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/13.93, allocations: 5.938 kB / 3.88 GB, free: 26.1 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02052/13.95, allocations: 3.149 MB / 3.883 GB, free: 26.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.121e-05/13.95, allocations: 10.91 kB / 3.883 GB, free: 26.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007538/13.95, allocations: 192.9 kB / 3.883 GB, free: 25.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004175/13.96, allocations: 476.6 kB / 3.884 GB, free: 25.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002129/13.96, allocations: 1.922 MB / 3.886 GB, free: 24.42 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004439/13.96, allocations: 234.2 kB / 3.886 GB, free: 24.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000679/13.96, allocations: 104.3 kB / 3.886 GB, free: 24.39 MB / 490.7 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.0009335/13.96, allocations: 231.4 kB / 3.886 GB, free: 24.21 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002817/13.97, allocations: 0.6057 MB / 3.887 GB, free: 24.12 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0282/14, allocations: 6.697 MB / 3.893 GB, free: 23.61 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-05/14, allocations: 52.33 kB / 3.893 GB, free: 23.61 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/14, allocations: 11 kB / 3.893 GB, free: 23.61 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03187/14.03, allocations: 5.777 MB / 3.899 GB, free: 22.89 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0409/14.07, allocations: 10.07 MB / 3.909 GB, free: 21.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/14.07, allocations: 7.125 kB / 3.909 GB, free: 21.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002656/14.07, allocations: 293.7 kB / 3.909 GB, free: 21.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003686/14.08, allocations: 1.18 MB / 3.91 GB, free: 21.52 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005329/14.08, allocations: 47.69 kB / 3.91 GB, free: 21.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00469/14.08, allocations: 3.395 MB / 3.914 GB, free: 19.41 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.221e-05/14.08, allocations: 6.438 kB / 3.914 GB, free: 19.41 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02914/14.11, allocations: 7.571 MB / 3.921 GB, free: 18.29 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2792/14.39, allocations: 9.892 MB / 3.931 GB, free: 84.73 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003376/14.39, allocations: 0.6353 MB / 3.931 GB, free: 84.64 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001422/14.39, allocations: 28.41 kB / 3.931 GB, free: 84.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005188/14.4, allocations: 142.6 kB / 3.932 GB, free: 84.64 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008984/14.4, allocations: 134.6 kB / 3.932 GB, free: 84.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004353/14.4, allocations: 74.16 kB / 3.932 GB, free: 84.64 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.003812/14.4, allocations: 0.9682 MB / 3.933 GB, free: 84.53 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.02522/14.43, allocations: 2.984 MB / 3.936 GB, free: 84.53 MB / 490.7 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,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.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.02308/14.45, allocations: 2.994 MB / 3.939 GB, free: 84.38 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01562/14.47, allocations: 4.833 MB / 3.943 GB, free: 84.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.468e-05/14.47, allocations: 3.5 kB / 3.943 GB, free: 84.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01052/14.48, allocations: 2.927 MB / 3.946 GB, free: 84.12 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01147/14.49, allocations: 0.7423 MB / 3.947 GB, free: 84.11 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0978/14.59, allocations: 19.32 MB / 3.966 GB, free: 83.05 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007276/14.6, allocations: 2.233 MB / 3.968 GB, free: 82.29 MB / 490.7 MB Notification: Performance of SimCode: time 2.264e-06/14.6, allocations: 0 / 3.968 GB, free: 82.29 MB / 490.7 MB