Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",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.979/1.979, allocations: 209.3 MB / 216.3 MB, free: 6.797 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2684/2.248, allocations: 51.04 MB / 267.3 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/2.378, allocations: 48.68 MB / 316 MB, free: 4.363 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.173/8.551, allocations: 2.476 GB / 2.785 GB, free: 101.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003126/8.552, allocations: 82.33 kB / 2.785 GB, free: 101.4 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 1.186/9.738, allocations: 209.4 MB / 2.99 GB, free: 61.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/9.738, allocations: 7.812 kB / 2.99 GB, free: 61.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002924/9.741, allocations: 220.9 kB / 2.99 GB, free: 61.26 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009951/9.742, allocations: 389 kB / 2.99 GB, free: 60.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.745e-05/9.742, allocations: 15.28 kB / 2.99 GB, free: 60.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.787e-05/9.742, allocations: 19.66 kB / 2.99 GB, free: 60.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008439/9.743, allocations: 299.3 kB / 2.99 GB, free: 60.86 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008511/9.744, allocations: 383.6 kB / 2.991 GB, free: 60.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/9.744, allocations: 3.75 kB / 2.991 GB, free: 60.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.27e-05/9.744, allocations: 0 / 2.991 GB, free: 60.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/9.744, allocations: 7.562 kB / 2.991 GB, free: 60.63 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009083/9.753, allocations: 3.92 MB / 2.995 GB, free: 57.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004902/9.753, allocations: 210.5 kB / 2.995 GB, free: 57.48 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002724/9.754, allocations: 126.4 kB / 2.995 GB, free: 57.43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2394/9.993, allocations: 50.36 MB / 3.044 GB, free: 27.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/9.993, allocations: 30.56 kB / 3.044 GB, free: 27.36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 2.795e-06/9.993, allocations: 0 / 3.044 GB, free: 27.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=24): time 0.002584/9.996, allocations: 494.6 kB / 3.045 GB, free: 26.97 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.545e-05/9.996, allocations: 110.7 kB / 3.045 GB, free: 26.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000401/9.996, allocations: 242.8 kB / 3.045 GB, free: 26.61 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.082e-05/9.997, allocations: 25.7 kB / 3.045 GB, free: 26.58 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/9.997, allocations: 195.8 kB / 3.045 GB, free: 26.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.086e-05/9.997, allocations: 76.2 kB / 3.045 GB, free: 26.33 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-05/9.997, allocations: 0 / 3.045 GB, free: 26.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.383e-05/9.997, allocations: 345.2 kB / 3.046 GB, free: 26 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/9.997, allocations: 108.3 kB / 3.046 GB, free: 25.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/9.998, allocations: 223.8 kB / 3.046 GB, free: 25.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/9.999, allocations: 189.9 kB / 3.046 GB, free: 25.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/9.999, allocations: 0 / 3.046 GB, free: 25.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002644/10, allocations: 0.5755 MB / 3.047 GB, free: 25.01 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/10, allocations: 8 kB / 3.047 GB, free: 25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/10, allocations: 0 / 3.047 GB, free: 25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.894e-05/10, allocations: 11.84 kB / 3.047 GB, free: 25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007445/10, allocations: 103.7 kB / 3.047 GB, free: 24.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/10, allocations: 11.91 kB / 3.047 GB, free: 24.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006795/10, allocations: 59.47 kB / 3.047 GB, free: 24.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.884e-05/10, allocations: 19.42 kB / 3.047 GB, free: 24.83 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001408/10, allocations: 120.9 kB / 3.047 GB, free: 24.71 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008598/10, allocations: 184.5 kB / 3.047 GB, free: 24.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003232/10.01, allocations: 1.687 MB / 3.049 GB, free: 23.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.551e-05/10.01, allocations: 23.64 kB / 3.049 GB, free: 23.03 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/10.01, allocations: 0 / 3.049 GB, free: 23.03 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.487e-06/10.01, allocations: 0 / 3.049 GB, free: 23.03 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003638/10.01, allocations: 2.21 MB / 3.051 GB, free: 21.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/10.01, allocations: 0.7031 kB / 3.051 GB, free: 21.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006672/10.01, allocations: 75.77 kB / 3.051 GB, free: 20.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.108e-05/10.01, allocations: 0 / 3.051 GB, free: 20.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.835e-05/10.01, allocations: 6.062 kB / 3.051 GB, free: 20.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/10.01, allocations: 4 kB / 3.051 GB, free: 20.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/10.01, allocations: 4 kB / 3.051 GB, free: 20.95 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002924/10.01, allocations: 1.388 MB / 3.052 GB, free: 19.68 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003154/10.02, allocations: 1.792 MB / 3.054 GB, free: 17.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/10.02, allocations: 151.2 kB / 3.054 GB, free: 17.83 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/10.02, allocations: 0.7031 kB / 3.054 GB, free: 17.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006446/10.02, allocations: 40.19 kB / 3.054 GB, free: 17.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/10.02, allocations: 39.14 kB / 3.054 GB, free: 17.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-05/10.02, allocations: 13.59 kB / 3.054 GB, free: 17.77 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003731/10.02, allocations: 231 kB / 3.055 GB, free: 17.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007194/10.03, allocations: 1.087 MB / 3.056 GB, free: 16.49 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SinkP1.medium.phase,Opening.y,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01272/10.04, allocations: 1.515 MB / 3.057 GB, free: 15.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001341/10.04, allocations: 0.7029 MB / 3.058 GB, free: 14.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/10.04, allocations: 0 / 3.058 GB, free: 14.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000894/10.04, allocations: 0.6788 MB / 3.059 GB, free: 13.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/10.04, allocations: 151.3 kB / 3.059 GB, free: 13.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06966/10.11, allocations: 13.99 MB / 3.072 GB, free: 1.445 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006387/10.11, allocations: 0.9664 MB / 3.073 GB, free: 468 kB / 426.7 MB Notification: Performance of SimCode: time 1.703e-06/10.11, allocations: 0 / 3.073 GB, free: 468 kB / 426.7 MB