Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_2_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 2.381/2.381, allocations: 235 MB / 241.9 MB, free: 9.785 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1736/2.555, allocations: 57.2 MB / 299.1 MB, free: 472 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/2.821, allocations: 54.85 MB / 354 MB, free: 13.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.292/9.112, allocations: 2.673 GB / 3.018 GB, free: 96.58 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/9.113, allocations: 78.45 kB / 3.018 GB, free: 96.54 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 4.66/13.77, allocations: 0.8676 GB / 3.886 GB, free: 30.68 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/13.77, allocations: 10.41 kB / 3.886 GB, free: 30.68 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009039/13.78, allocations: 0.8163 MB / 3.887 GB, free: 30.55 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008877/13.79, allocations: 1.987 MB / 3.889 GB, free: 30.12 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/13.79, allocations: 87.08 kB / 3.889 GB, free: 30.12 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009527/13.79, allocations: 111.3 kB / 3.889 GB, free: 30.12 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007935/13.8, allocations: 2.36 MB / 3.891 GB, free: 30.11 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01032/13.81, allocations: 2.593 MB / 3.894 GB, free: 29.63 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001459/13.81, allocations: 1.688 kB / 3.894 GB, free: 29.63 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008174/13.81, allocations: 7.812 kB / 3.894 GB, free: 29.63 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003393/13.81, allocations: 160.5 kB / 3.894 GB, free: 29.63 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.501/14.31, allocations: 109.4 MB / 4.001 GB, free: 20.55 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002967/14.32, allocations: 1.024 MB / 4.002 GB, free: 20.53 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002526/14.32, allocations: 0.984 MB / 4.003 GB, free: 20.52 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06255/14.38, allocations: 17.47 MB / 4.02 GB, free: 24.85 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002995/14.38, allocations: 1.164 MB / 4.021 GB, free: 24.68 MB / 0.573 GB Notification: Performance of pre-optimization done (n=145): time 4.969e-06/14.38, allocations: 3.938 kB / 4.021 GB, free: 24.68 MB / 0.573 GB Notification: Performance of matching and sorting (n=157): time 0.06206/14.45, allocations: 9.127 MB / 4.03 GB, free: 23.02 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000218/14.45, allocations: 362.9 kB / 4.03 GB, free: 22.61 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002508/14.45, allocations: 1.034 MB / 4.031 GB, free: 22.44 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005896/14.45, allocations: 32.8 kB / 4.031 GB, free: 22.41 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007953/14.45, allocations: 0.7055 MB / 4.032 GB, free: 21.99 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009115/14.45, allocations: 0.5127 MB / 4.032 GB, free: 21.66 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002171/14.45, allocations: 0 / 4.032 GB, free: 21.66 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0003261/14.45, allocations: 382.2 kB / 4.033 GB, free: 21.35 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002875/14.45, allocations: 1.007 MB / 4.034 GB, free: 21.34 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003411/14.46, allocations: 1.428 MB / 4.035 GB, free: 20.89 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01636/14.47, allocations: 1.965 MB / 4.037 GB, free: 20.85 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.128e-05/14.47, allocations: 3.469 kB / 4.037 GB, free: 20.85 MB / 0.573 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.02596/14.5, allocations: 4.297 MB / 4.041 GB, free: 20.62 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001684/14.5, allocations: 4.247 MB / 4.045 GB, free: 16.24 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.253e-05/14.5, allocations: 11.94 kB / 4.045 GB, free: 16.24 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004154/14.51, allocations: 0.525 MB / 4.046 GB, free: 16.19 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003938/14.51, allocations: 456.8 kB / 4.046 GB, free: 16.19 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004/14.51, allocations: 2.913 MB / 4.049 GB, free: 14.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004782/14.52, allocations: 265.8 kB / 4.049 GB, free: 14.06 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005954/14.52, allocations: 99.05 kB / 4.049 GB, free: 14.06 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/14.52, allocations: 5.719 kB / 4.049 GB, free: 14.06 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02028/14.54, allocations: 3.172 MB / 4.053 GB, free: 13.96 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.477e-05/14.54, allocations: 11.38 kB / 4.053 GB, free: 13.96 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007956/14.54, allocations: 190 kB / 4.053 GB, free: 13.94 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004354/14.55, allocations: 476.8 kB / 4.053 GB, free: 13.93 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002119/14.55, allocations: 1.923 MB / 4.055 GB, free: 12.38 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004479/14.55, allocations: 248.6 kB / 4.055 GB, free: 12.33 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000792/14.55, allocations: 90.56 kB / 4.055 GB, free: 12.33 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.001054/14.55, allocations: 232.5 kB / 4.056 GB, free: 12.15 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003022/14.56, allocations: 0.6164 MB / 4.056 GB, free: 12.06 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02774/14.59, allocations: 6.721 MB / 4.063 GB, free: 11.54 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.269e-05/14.59, allocations: 54.36 kB / 4.063 GB, free: 11.54 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/14.59, allocations: 1.094 kB / 4.063 GB, free: 11.54 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02306/14.61, allocations: 5.814 MB / 4.069 GB, free: 9.062 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04917/14.66, allocations: 10.15 MB / 4.078 GB, free: 3.328 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.724e-05/14.66, allocations: 8 kB / 4.078 GB, free: 3.32 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004314/14.66, allocations: 295.6 kB / 4.079 GB, free: 3.102 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006092/14.67, allocations: 1.126 MB / 4.08 GB, free: 2.273 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007439/14.67, allocations: 52.86 kB / 4.08 GB, free: 2.242 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2816/14.95, allocations: 3.4 MB / 4.083 GB, free: 122.4 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.329e-05/14.95, allocations: 6.656 kB / 4.083 GB, free: 122.4 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02703/14.98, allocations: 7.62 MB / 4.091 GB, free: 121.5 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03671/15.01, allocations: 9.963 MB / 4.1 GB, free: 120.1 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002437/15.02, allocations: 0.647 MB / 4.101 GB, free: 120 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007753/15.02, allocations: 27.89 kB / 4.101 GB, free: 120 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003258/15.02, allocations: 148.2 kB / 4.101 GB, free: 120 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006319/15.02, allocations: 132.4 kB / 4.101 GB, free: 120 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002721/15.02, allocations: 82.48 kB / 4.101 GB, free: 120 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.00235/15.02, allocations: 0.9684 MB / 4.102 GB, free: 119.9 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02342/15.05, allocations: 3.007 MB / 4.105 GB, free: 119.9 MB / 0.573 GB 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: 39 ($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,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 (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.02235/15.07, allocations: 3.024 MB / 4.108 GB, free: 119.7 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01753/15.09, allocations: 4.877 MB / 4.113 GB, free: 119.5 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-05/15.09, allocations: 0 / 4.113 GB, free: 119.5 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.009176/15.1, allocations: 2.967 MB / 4.116 GB, free: 119.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01179/15.11, allocations: 0.7402 MB / 4.117 GB, free: 119.4 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0993/15.21, allocations: 19.81 MB / 4.136 GB, free: 118.3 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004455/15.21, allocations: 2.237 MB / 4.138 GB, free: 117.6 MB / 0.573 GB Notification: Performance of SimCode: time 1.543e-06/15.21, allocations: 0 / 4.138 GB, free: 117.6 MB / 0.573 GB