Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_2_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.421/2.421, allocations: 235 MB / 241.9 MB, free: 9.785 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.228/2.649, allocations: 57.2 MB / 299.1 MB, free: 480 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/2.999, allocations: 54.85 MB / 354 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.881/9.88, allocations: 2.677 GB / 3.022 GB, free: 92.07 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/9.88, allocations: 80.52 kB / 3.023 GB, free: 92.04 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 5.236/15.12, allocations: 1.007 GB / 4.03 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/15.12, allocations: 7 kB / 4.03 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01196/15.13, allocations: 0.9794 MB / 4.031 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0102/15.14, allocations: 2.213 MB / 4.033 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003138/15.14, allocations: 98.47 kB / 4.033 GB, free: 23.4 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001285/15.14, allocations: 137.8 kB / 4.033 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01112/15.15, allocations: 2.868 MB / 4.036 GB, free: 22.42 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/15.16, allocations: 3.074 MB / 4.039 GB, free: 21 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001079/15.16, allocations: 7.156 kB / 4.039 GB, free: 21 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005011/15.16, allocations: 7.5 kB / 4.039 GB, free: 21 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003077/15.16, allocations: 185 kB / 4.039 GB, free: 20.96 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4503/15.61, allocations: 50.98 MB / 4.089 GB, free: 67.18 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004956/15.62, allocations: 1.265 MB / 4.09 GB, free: 67.16 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003056/15.62, allocations: 1.202 MB / 4.091 GB, free: 67.15 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0591/15.68, allocations: 17.21 MB / 4.108 GB, free: 56.45 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003528/15.69, allocations: 1.383 MB / 4.11 GB, free: 56.28 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=186): time 5.541e-06/15.69, allocations: 1.656 kB / 4.11 GB, free: 56.28 MB / 0.5261 GB Notification: Performance of matching and sorting (n=206): time 0.07062/15.76, allocations: 10.67 MB / 4.12 GB, free: 54.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001384/15.76, allocations: 368.3 kB / 4.12 GB, free: 54.29 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002709/15.76, allocations: 1.169 MB / 4.121 GB, free: 54.12 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006592/15.76, allocations: 25.7 kB / 4.122 GB, free: 54.09 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008898/15.76, allocations: 0.8208 MB / 4.122 GB, free: 53.72 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001191/15.76, allocations: 0.6629 MB / 4.123 GB, free: 53.36 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002664/15.76, allocations: 0 / 4.123 GB, free: 53.36 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001831/15.76, allocations: 399.6 kB / 4.123 GB, free: 53.06 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003211/15.77, allocations: 1.211 MB / 4.125 GB, free: 53.05 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004167/15.77, allocations: 1.748 MB / 4.126 GB, free: 52.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01781/15.79, allocations: 2.24 MB / 4.128 GB, free: 52.48 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.759e-05/15.79, allocations: 3.594 kB / 4.128 GB, free: 52.48 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.03338/15.82, allocations: 4.853 MB / 4.133 GB, free: 52.26 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001311/15.82, allocations: 5.51 MB / 4.139 GB, free: 46.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.347e-05/15.82, allocations: 16.72 kB / 4.139 GB, free: 46.64 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001588/15.82, allocations: 326.8 kB / 4.139 GB, free: 46.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005437/15.83, allocations: 0.6153 MB / 4.139 GB, free: 46.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003156/15.83, allocations: 3.187 MB / 4.143 GB, free: 44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005727/15.84, allocations: 329.4 kB / 4.143 GB, free: 43.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005321/15.84, allocations: 122.3 kB / 4.143 GB, free: 43.98 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/15.84, allocations: 3.812 kB / 4.143 GB, free: 43.98 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02237/15.86, allocations: 3.742 MB / 4.147 GB, free: 43.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.107e-05/15.86, allocations: 14.47 kB / 4.147 GB, free: 43.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/15.86, allocations: 323.2 kB / 4.147 GB, free: 43.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005287/15.87, allocations: 0.6038 MB / 4.148 GB, free: 43.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003116/15.87, allocations: 3.191 MB / 4.151 GB, free: 41.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005401/15.88, allocations: 296.8 kB / 4.151 GB, free: 41.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007915/15.88, allocations: 129.4 kB / 4.151 GB, free: 41.24 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real 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: 31 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.001191/15.88, allocations: 242.2 kB / 4.151 GB, free: 41.06 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003565/15.88, allocations: 0.7123 MB / 4.152 GB, free: 40.95 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03347/15.92, allocations: 7.768 MB / 4.16 GB, free: 40.45 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.709e-05/15.92, allocations: 56.91 kB / 4.16 GB, free: 40.45 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-05/15.92, allocations: 3.062 kB / 4.16 GB, free: 40.45 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02736/15.94, allocations: 6.652 MB / 4.166 GB, free: 39.71 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04457/15.99, allocations: 12.49 MB / 4.178 GB, free: 37.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.838e-05/15.99, allocations: 8.578 kB / 4.178 GB, free: 37.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003704/15.99, allocations: 416 kB / 4.179 GB, free: 37.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002046/15.99, allocations: 439.8 kB / 4.179 GB, free: 37.77 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006205/16, allocations: 61.92 kB / 4.179 GB, free: 37.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003224/16, allocations: 3.415 MB / 4.183 GB, free: 35.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.364e-05/16, allocations: 13.53 kB / 4.183 GB, free: 35.16 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03932/16.04, allocations: 9.093 MB / 4.191 GB, free: 33.77 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04026/16.08, allocations: 11.88 MB / 4.203 GB, free: 31.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002821/16.08, allocations: 0.7264 MB / 4.204 GB, free: 31.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001105/16.08, allocations: 33.38 kB / 4.204 GB, free: 31.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004587/16.09, allocations: 193.6 kB / 4.204 GB, free: 31.72 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000855/16.09, allocations: 178.6 kB / 4.204 GB, free: 31.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003686/16.09, allocations: 99.78 kB / 4.204 GB, free: 31.71 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002666/16.09, allocations: 1.064 MB / 4.205 GB, free: 31.57 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01896/16.11, allocations: 3.363 MB / 4.209 GB, free: 31.46 MB / 0.5261 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: 43 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (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.01801/16.13, allocations: 3.306 MB / 4.212 GB, free: 31.14 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01634/16.14, allocations: 5.952 MB / 4.218 GB, free: 30.95 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.464e-05/16.14, allocations: 4.906 kB / 4.218 GB, free: 30.95 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008075/16.15, allocations: 3.618 MB / 4.221 GB, free: 30.88 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01332/16.17, allocations: 0.9513 MB / 4.222 GB, free: 30.86 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0923/16.26, allocations: 20.81 MB / 4.242 GB, free: 29.08 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00488/16.26, allocations: 2.504 MB / 4.245 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of SimCode: time 1.764e-06/16.26, allocations: 0 / 4.245 GB, free: 28.27 MB / 0.5261 GB