Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_Tanks_EmptyTanks",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(Modelica): time 1.58/1.58, allocations: 171.2 MB / 178.1 MB, free: 6.742 MB / 147.1 MB Notification: Performance of FrontEnd - loaded program: time 0.1392/1.72, allocations: 41.09 MB / 219.2 MB, free: 13.58 MB / 195.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1942/1.914, allocations: 38.77 MB / 258 MB, free: 5.25 MB / 211.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.744/2.658, allocations: 310.4 MB / 0.5551 GB, free: 48.84 MB / 355.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003088/2.658, allocations: 75.33 kB / 0.5551 GB, free: 48.8 MB / 355.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.706/3.364, allocations: 131 MB / 0.683 GB, free: 68.26 MB / 355.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/3.364, allocations: 8 kB / 0.683 GB, free: 68.25 MB / 355.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/3.365, allocations: 103 kB / 0.6831 GB, free: 68.15 MB / 355.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003233/3.369, allocations: 0.6478 MB / 0.6838 GB, free: 67.48 MB / 355.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/3.369, allocations: 84.66 kB / 0.6838 GB, free: 67.38 MB / 355.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002763/3.369, allocations: 39.91 kB / 0.6839 GB, free: 67.34 MB / 355.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00315/3.372, allocations: 0.7717 MB / 0.6846 GB, free: 66.57 MB / 355.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003176/3.376, allocations: 0.8244 MB / 0.6854 GB, free: 65.71 MB / 355.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.642e-05/3.376, allocations: 7.938 kB / 0.6855 GB, free: 65.71 MB / 355.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001864/3.376, allocations: 3.984 kB / 0.6855 GB, free: 65.7 MB / 355.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000122/3.376, allocations: 49.28 kB / 0.6855 GB, free: 65.66 MB / 355.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01424/3.39, allocations: 3.19 MB / 0.6886 GB, free: 62.36 MB / 355.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002028/3.392, allocations: 0.5184 MB / 0.6891 GB, free: 61.83 MB / 355.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/3.394, allocations: 358.2 kB / 0.6895 GB, free: 61.48 MB / 355.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006613/3.401, allocations: 2.035 MB / 0.6915 GB, free: 59.27 MB / 355.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.678e-05/3.401, allocations: 35.06 kB / 0.6915 GB, free: 59.22 MB / 355.1 MB Notification: Performance of pre-optimization done (n=56): time 6.091e-06/3.401, allocations: 4 kB / 0.6915 GB, free: 59.22 MB / 355.1 MB Notification: Performance of matching and sorting (n=66): time 0.01948/3.42, allocations: 2.575 MB / 0.694 GB, free: 56.59 MB / 355.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/3.42, allocations: 85.77 kB / 0.6941 GB, free: 56.49 MB / 355.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/3.421, allocations: 454 kB / 0.6945 GB, free: 56.04 MB / 355.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001947/3.422, allocations: 25.7 kB / 0.6945 GB, free: 56.01 MB / 355.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/3.422, allocations: 275.9 kB / 0.6948 GB, free: 55.73 MB / 355.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003295/3.422, allocations: 216.8 kB / 0.695 GB, free: 55.52 MB / 355.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.688e-05/3.422, allocations: 0 / 0.695 GB, free: 55.52 MB / 355.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/3.422, allocations: 378.8 kB / 0.6954 GB, free: 55.14 MB / 355.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/3.424, allocations: 353.4 kB / 0.6957 GB, free: 54.8 MB / 355.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/3.425, allocations: 499 kB / 0.6962 GB, free: 54.25 MB / 355.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01229/3.437, allocations: 1.06 MB / 0.6972 GB, free: 53.2 MB / 355.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.082e-05/3.437, allocations: 3.984 kB / 0.6972 GB, free: 53.2 MB / 355.1 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.01555/3.453, allocations: 1.745 MB / 0.6989 GB, free: 51.44 MB / 355.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004222/3.454, allocations: 1.578 MB / 0.7005 GB, free: 49.73 MB / 355.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/3.454, allocations: 4 kB / 0.7005 GB, free: 49.73 MB / 355.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001895/3.455, allocations: 372.6 kB / 0.7008 GB, free: 49.36 MB / 355.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/3.457, allocations: 155.8 kB / 0.701 GB, free: 49.21 MB / 355.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006185/3.464, allocations: 1.278 MB / 0.7022 GB, free: 47.91 MB / 355.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/3.465, allocations: 39.81 kB / 0.7023 GB, free: 47.87 MB / 355.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/3.465, allocations: 31.98 kB / 0.7023 GB, free: 47.84 MB / 355.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/3.465, allocations: 4 kB / 0.7023 GB, free: 47.84 MB / 355.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00867/3.474, allocations: 1.369 MB / 0.7036 GB, free: 46.46 MB / 355.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.64e-05/3.474, allocations: 4 kB / 0.7036 GB, free: 46.46 MB / 355.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/3.475, allocations: 240.9 kB / 0.7039 GB, free: 46.22 MB / 355.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/3.476, allocations: 163.8 kB / 0.704 GB, free: 46.06 MB / 355.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/3.478, allocations: 0.8605 MB / 0.7049 GB, free: 45.17 MB / 355.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/3.479, allocations: 27.89 kB / 0.7049 GB, free: 45.14 MB / 355.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/3.479, allocations: 31.98 kB / 0.7049 GB, free: 45.11 MB / 355.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.000335/3.479, allocations: 124.8 kB / 0.705 GB, free: 44.98 MB / 355.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/3.48, allocations: 67.16 kB / 0.7051 GB, free: 44.92 MB / 355.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005428/3.485, allocations: 1.253 MB / 0.7063 GB, free: 43.66 MB / 355.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/3.485, allocations: 12 kB / 0.7063 GB, free: 43.65 MB / 355.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.475e-06/3.485, allocations: 0 / 0.7063 GB, free: 43.65 MB / 355.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/3.485, allocations: 3.984 kB / 0.7063 GB, free: 43.64 MB / 355.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006964/3.492, allocations: 2.083 MB / 0.7084 GB, free: 41.53 MB / 355.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/3.492, allocations: 0 / 0.7084 GB, free: 41.53 MB / 355.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/3.493, allocations: 115.9 kB / 0.7085 GB, free: 41.41 MB / 355.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001416/3.495, allocations: 376.5 kB / 0.7089 GB, free: 41.04 MB / 355.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001842/3.495, allocations: 7.984 kB / 0.7089 GB, free: 41.04 MB / 355.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004029/3.499, allocations: 1.257 MB / 0.7101 GB, free: 39.75 MB / 355.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/3.499, allocations: 0 / 0.7101 GB, free: 39.75 MB / 355.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005792/3.505, allocations: 1.751 MB / 0.7118 GB, free: 37.98 MB / 355.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00694/3.512, allocations: 2.666 MB / 0.7144 GB, free: 35.3 MB / 355.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006639/3.513, allocations: 244.1 kB / 0.7146 GB, free: 35.04 MB / 355.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/3.513, allocations: 0 / 0.7146 GB, free: 35.04 MB / 355.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/3.514, allocations: 43.95 kB / 0.7147 GB, free: 35 MB / 355.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/3.514, allocations: 52.56 kB / 0.7147 GB, free: 34.95 MB / 355.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/3.514, allocations: 27.98 kB / 0.7148 GB, free: 34.92 MB / 355.1 MB Notification: Performance of sort global known variables: time 0.0005902/3.515, allocations: 342.9 kB / 0.7151 GB, free: 34.59 MB / 355.1 MB Notification: Performance of remove unused functions: time 0.004581/3.519, allocations: 0.683 MB / 0.7157 GB, free: 33.91 MB / 355.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001884/3.521, allocations: 0.5845 MB / 0.7163 GB, free: 33.35 MB / 355.1 MB Notification: Performance of simCode: created initialization part: time 0.004039/3.525, allocations: 1.324 MB / 0.7176 GB, free: 32.02 MB / 355.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/3.526, allocations: 0 / 0.7176 GB, free: 32.02 MB / 355.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001511/3.527, allocations: 454.1 kB / 0.718 GB, free: 31.58 MB / 355.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/3.53, allocations: 300 kB / 0.7183 GB, free: 31.29 MB / 355.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0052/3.535, allocations: 1.35 MB / 0.7196 GB, free: 29.91 MB / 355.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/3.536, allocations: 1.112 MB / 0.7207 GB, free: 28.77 MB / 355.1 MB Notification: Performance of SimCode: time 1.313e-06/3.536, allocations: 0 / 0.7207 GB, free: 28.77 MB / 355.1 MB