Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",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.19/2.19, allocations: 209.3 MB / 216.3 MB, free: 6.801 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3007/2.491, allocations: 51.04 MB / 267.3 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/2.611, allocations: 48.69 MB / 316 MB, free: 4.363 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.317/8.928, allocations: 2.553 GB / 2.861 GB, free: 47.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002839/8.929, allocations: 80.7 kB / 2.861 GB, free: 47.75 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 2.456/11.38, allocations: 489.2 MB / 3.339 GB, free: 36.17 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/11.38, allocations: 13.69 kB / 3.339 GB, free: 36.16 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008965/11.39, allocations: 0.7205 MB / 3.34 GB, free: 35.99 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008035/11.4, allocations: 1.58 MB / 3.341 GB, free: 35.24 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003249/11.4, allocations: 92.19 kB / 3.341 GB, free: 35.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001443/11.4, allocations: 110.6 kB / 3.342 GB, free: 35.22 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01068/11.41, allocations: 2.916 MB / 3.344 GB, free: 34.22 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01029/11.42, allocations: 2.948 MB / 3.347 GB, free: 32.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.35e-05/11.43, allocations: 7.094 kB / 3.347 GB, free: 32.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004131/11.43, allocations: 6.906 kB / 3.347 GB, free: 32.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000215/11.43, allocations: 186.4 kB / 3.347 GB, free: 32.92 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7547/12.18, allocations: 140.9 MB / 3.485 GB, free: 46.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003624/12.18, allocations: 1.16 MB / 3.486 GB, free: 46.54 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002879/12.19, allocations: 1.016 MB / 3.487 GB, free: 46.53 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06493/12.25, allocations: 16.72 MB / 3.504 GB, free: 35.62 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003603/12.26, allocations: 1.175 MB / 3.505 GB, free: 35.52 MB / 458.7 MB Notification: Performance of pre-optimization done (n=139): time 6.332e-06/12.26, allocations: 0 / 3.505 GB, free: 35.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=159): time 0.0426/12.3, allocations: 7.663 MB / 3.512 GB, free: 34.62 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.928e-05/12.3, allocations: 230.9 kB / 3.512 GB, free: 34.37 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002361/12.3, allocations: 0.958 MB / 3.513 GB, free: 34.21 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006841/12.3, allocations: 29.33 kB / 3.513 GB, free: 34.18 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009299/12.3, allocations: 0.7691 MB / 3.514 GB, free: 33.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001075/12.3, allocations: 0.5339 MB / 3.515 GB, free: 33.53 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002995/12.3, allocations: 0 / 3.515 GB, free: 33.53 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003226/12.3, allocations: 446.4 kB / 3.515 GB, free: 33.22 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003495/12.31, allocations: 1.241 MB / 3.516 GB, free: 33.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004209/12.31, allocations: 1.779 MB / 3.518 GB, free: 32.59 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01249/12.32, allocations: 2.157 MB / 3.52 GB, free: 32.53 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.364e-05/12.32, allocations: 3.438 kB / 3.52 GB, free: 32.53 MB / 458.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.02539/12.35, allocations: 5.309 MB / 3.525 GB, free: 32.35 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001688/12.35, allocations: 6.261 MB / 3.531 GB, free: 25.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.32e-05/12.35, allocations: 17.59 kB / 3.531 GB, free: 25.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02215/12.37, allocations: 2.846 MB / 3.534 GB, free: 25.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002901/12.38, allocations: 336.9 kB / 3.535 GB, free: 25.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01904/12.4, allocations: 4.836 MB / 3.539 GB, free: 25.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007977/12.4, allocations: 253.4 kB / 3.54 GB, free: 25.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001319/12.41, allocations: 108.4 kB / 3.54 GB, free: 25.04 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/12.41, allocations: 7.125 kB / 3.54 GB, free: 25.04 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02001/12.43, allocations: 4.195 MB / 3.544 GB, free: 24.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.345e-05/12.43, allocations: 15.62 kB / 3.544 GB, free: 24.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0201/12.45, allocations: 2.19 MB / 3.546 GB, free: 24.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003017/12.45, allocations: 370.1 kB / 3.546 GB, free: 24.87 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009116/12.46, allocations: 3.635 MB / 3.55 GB, free: 24.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004699/12.46, allocations: 233.5 kB / 3.55 GB, free: 24.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000745/12.46, allocations: 107.5 kB / 3.55 GB, free: 24.27 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.000877/12.46, allocations: 160.8 kB / 3.55 GB, free: 24.15 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002501/12.47, allocations: 0.5085 MB / 3.551 GB, free: 24.08 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01635/12.48, allocations: 5.191 MB / 3.556 GB, free: 23.73 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.78e-05/12.48, allocations: 38.91 kB / 3.556 GB, free: 23.73 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.005e-05/12.48, allocations: 1.156 kB / 3.556 GB, free: 23.73 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01219/12.5, allocations: 4.664 MB / 3.56 GB, free: 21.89 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02125/12.52, allocations: 7.678 MB / 3.568 GB, free: 17.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-05/12.52, allocations: 4.062 kB / 3.568 GB, free: 17.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005828/12.52, allocations: 359 kB / 3.568 GB, free: 17.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003236/12.53, allocations: 429.7 kB / 3.569 GB, free: 17.33 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009126/12.53, allocations: 43.14 kB / 3.569 GB, free: 17.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003383/12.53, allocations: 3.39 MB / 3.572 GB, free: 14.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/12.53, allocations: 0 / 3.572 GB, free: 14.27 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01772/12.55, allocations: 6.401 MB / 3.578 GB, free: 9.473 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02483/12.57, allocations: 8.871 MB / 3.587 GB, free: 1.539 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00403/12.58, allocations: 0.5525 MB / 3.587 GB, free: 1.055 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001685/12.58, allocations: 15.84 kB / 3.587 GB, free: 1.043 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005819/12.59, allocations: 168.6 kB / 3.588 GB, free: 0.9258 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001255/12.59, allocations: 149.4 kB / 3.588 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004015/12.59, allocations: 64.23 kB / 3.588 GB, free: 0.793 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.00166/12.59, allocations: 0.6857 MB / 3.589 GB, free: 164 kB / 458.7 MB Notification: Performance of remove unused functions: time 0.2532/12.84, allocations: 2.555 MB / 3.591 GB, free: 94.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 1 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02006/12.86, allocations: 2.139 MB / 3.593 GB, free: 94.79 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02445/12.89, allocations: 5.352 MB / 3.598 GB, free: 94.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/12.89, allocations: 5.969 kB / 3.598 GB, free: 94.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008447/12.9, allocations: 2.395 MB / 3.601 GB, free: 94.69 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006275/12.9, allocations: 0.5305 MB / 3.601 GB, free: 94.68 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/12.92, allocations: 5.029 MB / 3.606 GB, free: 93.96 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003892/12.92, allocations: 1.998 MB / 3.608 GB, free: 93.22 MB / 458.7 MB Notification: Performance of SimCode: time 1.653e-06/12.92, allocations: 0 / 3.608 GB, free: 93.22 MB / 458.7 MB