Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",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.84/1.84, allocations: 209.3 MB / 216.3 MB, free: 6.797 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3319/2.172, allocations: 51.04 MB / 267.3 MB, free: 5.129 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/2.326, allocations: 48.68 MB / 316 MB, free: 4.352 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.173/8.5, allocations: 2.544 GB / 2.853 GB, free: 72.07 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/8.5, allocations: 77.47 kB / 2.853 GB, free: 72.04 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 2.299/10.8, allocations: 451.8 MB / 3.294 GB, free: 35.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/10.8, allocations: 8.812 kB / 3.294 GB, free: 35.93 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004469/10.8, allocations: 378.7 kB / 3.294 GB, free: 35.88 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003557/10.81, allocations: 0.8842 MB / 3.295 GB, free: 35.59 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.806e-05/10.81, allocations: 39.56 kB / 3.295 GB, free: 35.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000201/10.81, allocations: 46.19 kB / 3.295 GB, free: 35.59 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002679/10.81, allocations: 0.9457 MB / 3.296 GB, free: 35.58 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00257/10.81, allocations: 1.105 MB / 3.297 GB, free: 35.31 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.108e-05/10.81, allocations: 3.375 kB / 3.297 GB, free: 35.31 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001392/10.81, allocations: 4.25 kB / 3.297 GB, free: 35.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.294e-05/10.81, allocations: 59.67 kB / 3.297 GB, free: 35.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3589/11.17, allocations: 101 MB / 3.396 GB, free: 18.96 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/11.17, allocations: 351.7 kB / 3.396 GB, free: 18.94 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007316/11.17, allocations: 288.5 kB / 3.397 GB, free: 18.93 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06327/11.24, allocations: 16.78 MB / 3.413 GB, free: 23.72 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.002e-05/11.24, allocations: 36.5 kB / 3.413 GB, free: 23.68 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=42): time 2.905e-06/11.24, allocations: 0 / 3.413 GB, free: 23.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=46): time 0.01164/11.25, allocations: 2.346 MB / 3.415 GB, free: 22.18 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/11.25, allocations: 136.5 kB / 3.415 GB, free: 22.02 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001281/11.25, allocations: 0.5791 MB / 3.416 GB, free: 21.63 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000165/11.25, allocations: 29.7 kB / 3.416 GB, free: 21.59 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000267/11.25, allocations: 390.5 kB / 3.416 GB, free: 21.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/11.25, allocations: 160.2 kB / 3.417 GB, free: 21.18 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.179e-05/11.25, allocations: 0 / 3.417 GB, free: 21.18 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000211/11.25, allocations: 380.1 kB / 3.417 GB, free: 20.84 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009535/11.25, allocations: 365.1 kB / 3.417 GB, free: 20.66 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/11.25, allocations: 0.566 MB / 3.418 GB, free: 20.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007794/11.26, allocations: 1.035 MB / 3.419 GB, free: 19.66 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.258e-05/11.26, allocations: 0 / 3.419 GB, free: 19.66 MB / 0.4948 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.01237/11.27, allocations: 2.225 MB / 3.421 GB, free: 18.41 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009857/11.27, allocations: 2.275 MB / 3.423 GB, free: 16.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.283e-05/11.27, allocations: 4 kB / 3.423 GB, free: 16.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003252/11.28, allocations: 0.4957 MB / 3.424 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/11.28, allocations: 165.7 kB / 3.424 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003957/11.28, allocations: 1.544 MB / 3.425 GB, free: 14.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002108/11.28, allocations: 130.6 kB / 3.426 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001466/11.29, allocations: 39.22 kB / 3.426 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/11.29, allocations: 9.969 kB / 3.426 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009911/11.3, allocations: 1.628 MB / 3.427 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/11.3, allocations: 8 kB / 3.427 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002744/11.3, allocations: 400.3 kB / 3.428 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/11.3, allocations: 180.7 kB / 3.428 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002334/11.3, allocations: 1.168 MB / 3.429 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/11.3, allocations: 105.1 kB / 3.429 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/11.3, allocations: 38.19 kB / 3.429 GB, free: 12.13 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,sink.medium.phase,source.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0004094/11.3, allocations: 131.7 kB / 3.429 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001447/11.31, allocations: 327.6 kB / 3.429 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004884/11.31, allocations: 1.859 MB / 3.431 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-05/11.31, allocations: 21.3 kB / 3.431 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/11.31, allocations: 0 / 3.431 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003528/11.31, allocations: 1.77 MB / 3.433 GB, free: 9.555 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006592/11.32, allocations: 2.803 MB / 3.436 GB, free: 8.023 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/11.32, allocations: 7.469 kB / 3.436 GB, free: 8.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009894/11.32, allocations: 115.3 kB / 3.436 GB, free: 7.934 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004315/11.32, allocations: 84.31 kB / 3.436 GB, free: 7.887 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-05/11.32, allocations: 19.02 kB / 3.436 GB, free: 7.875 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006968/11.32, allocations: 0.6781 MB / 3.437 GB, free: 7.262 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/11.32, allocations: 4.875 kB / 3.437 GB, free: 7.258 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006064/11.33, allocations: 2.318 MB / 3.439 GB, free: 5.859 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008226/11.34, allocations: 3.368 MB / 3.442 GB, free: 3.805 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009629/11.34, allocations: 274.4 kB / 3.442 GB, free: 3.605 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002495/11.34, allocations: 7.188 kB / 3.442 GB, free: 3.602 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/11.34, allocations: 64.33 kB / 3.442 GB, free: 3.559 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/11.34, allocations: 46.67 kB / 3.443 GB, free: 3.531 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.472e-05/11.34, allocations: 21.86 kB / 3.443 GB, free: 3.52 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001057/11.34, allocations: 440.7 kB / 3.443 GB, free: 3.242 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01268/11.35, allocations: 1.975 MB / 3.445 GB, free: 1.629 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 9 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.2318/11.59, allocations: 2.105 MB / 3.447 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005664/11.59, allocations: 1.669 MB / 3.449 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/11.59, allocations: 0 / 3.449 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002422/11.59, allocations: 0.8042 MB / 3.449 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0042/11.6, allocations: 311.8 kB / 3.45 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006595/11.6, allocations: 1.823 MB / 3.451 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001734/11.61, allocations: 1.246 MB / 3.453 GB, free: 135.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.302e-06/11.61, allocations: 0 / 3.453 GB, free: 135.5 MB / 0.4948 GB