Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_Tanks_ThreeTanks",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.53/1.53, allocations: 194.9 MB / 202.5 MB, free: 14.31 MB / 178.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2232/1.754, allocations: 46.84 MB / 249.3 MB, free: 14.23 MB / 210.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09025/1.844, allocations: 44.5 MB / 293.8 MB, free: 1.668 MB / 242.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7133/2.557, allocations: 315.9 MB / 0.5954 GB, free: 48.05 MB / 402.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/2.558, allocations: 80.42 kB / 0.5955 GB, free: 48.01 MB / 402.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 1.241/3.798, allocations: 268.2 MB / 0.8574 GB, free: 64.75 MB / 402.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/3.798, allocations: 7.844 kB / 0.8574 GB, free: 64.75 MB / 402.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001281/3.8, allocations: 175.1 kB / 0.8576 GB, free: 64.68 MB / 402.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004006/3.804, allocations: 1.119 MB / 0.8587 GB, free: 64.34 MB / 402.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001949/3.804, allocations: 144.7 kB / 0.8588 GB, free: 64.24 MB / 402.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004871/3.805, allocations: 61.09 kB / 0.8589 GB, free: 64.24 MB / 402.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004517/3.809, allocations: 1.637 MB / 0.8605 GB, free: 64.23 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00426/3.813, allocations: 1.632 MB / 0.8621 GB, free: 64.06 MB / 402.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.025e-05/3.814, allocations: 3.891 kB / 0.8621 GB, free: 64.06 MB / 402.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002508/3.814, allocations: 6.969 kB / 0.8621 GB, free: 64.06 MB / 402.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001682/3.814, allocations: 116.5 kB / 0.8622 GB, free: 64.05 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01875/3.833, allocations: 6.208 MB / 0.8683 GB, free: 62.1 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00228/3.835, allocations: 0.8869 MB / 0.8691 GB, free: 62.08 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001664/3.837, allocations: 0.6929 MB / 0.8698 GB, free: 62.07 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008648/3.845, allocations: 4.181 MB / 0.8739 GB, free: 59.73 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/3.846, allocations: 49.84 kB / 0.874 GB, free: 59.69 MB / 402.8 MB Notification: Performance of pre-optimization done (n=97): time 4.499e-06/3.846, allocations: 2.812 kB / 0.874 GB, free: 59.69 MB / 402.8 MB Notification: Performance of matching and sorting (n=112): time 0.02137/3.867, allocations: 4.303 MB / 0.8782 GB, free: 59.11 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.963e-05/3.867, allocations: 141.3 kB / 0.8783 GB, free: 58.96 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/3.869, allocations: 0.819 MB / 0.8791 GB, free: 58.8 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003932/3.869, allocations: 27.27 kB / 0.8791 GB, free: 58.77 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002942/3.87, allocations: 470.9 kB / 0.8796 GB, free: 58.48 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005098/3.87, allocations: 369.2 kB / 0.8799 GB, free: 58.24 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/3.87, allocations: 3.094 kB / 0.8799 GB, free: 58.24 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 0.000131/3.87, allocations: 364.8 kB / 0.8803 GB, free: 57.93 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001735/3.872, allocations: 0.6276 MB / 0.8809 GB, free: 57.75 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001947/3.874, allocations: 0.9492 MB / 0.8818 GB, free: 57.14 MB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02058/3.895, allocations: 2.475 MB / 0.8842 GB, free: 56.71 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.754e-05/3.895, allocations: 2.438 kB / 0.8842 GB, free: 56.71 MB / 402.8 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.02542/3.92, allocations: 3.734 MB / 0.8879 GB, free: 55.87 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007587/3.921, allocations: 3.487 MB / 0.8913 GB, free: 52.18 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.13e-05/3.921, allocations: 9 kB / 0.8913 GB, free: 52.18 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01296/3.934, allocations: 1.119 MB / 0.8924 GB, free: 52.03 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002542/3.937, allocations: 293.3 kB / 0.8927 GB, free: 52.02 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007561/3.944, allocations: 1.974 MB / 0.8946 GB, free: 51.05 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002731/3.947, allocations: 68.75 kB / 0.8947 GB, free: 51.04 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003869/3.948, allocations: 73.05 kB / 0.8947 GB, free: 51.02 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/3.948, allocations: 2.75 kB / 0.8947 GB, free: 51.02 MB / 402.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02118/3.969, allocations: 3.108 MB / 0.8978 GB, free: 48.74 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.443e-05/3.969, allocations: 12.8 kB / 0.8978 GB, free: 48.73 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01231/3.981, allocations: 0.9492 MB / 0.8987 GB, free: 48.11 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002612/3.984, allocations: 303.1 kB / 0.899 GB, free: 47.85 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003006/3.987, allocations: 1.334 MB / 0.9003 GB, free: 46.62 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00238/3.989, allocations: 59.16 kB / 0.9004 GB, free: 46.58 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002135/3.99, allocations: 63.88 kB / 0.9004 GB, free: 46.53 MB / 402.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0005965/3.99, allocations: 154.5 kB / 0.9006 GB, free: 46.37 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004154/3.991, allocations: 126.5 kB / 0.9007 GB, free: 46.25 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01034/4.001, allocations: 2.271 MB / 0.9029 GB, free: 44.44 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.029e-05/4.001, allocations: 12 kB / 0.9029 GB, free: 44.43 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/4.001, allocations: 0 / 0.9029 GB, free: 44.43 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.621e-05/4.001, allocations: 10.8 kB / 0.9029 GB, free: 44.43 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01215/4.013, allocations: 3.538 MB / 0.9064 GB, free: 40.92 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/4.013, allocations: 0 / 0.9064 GB, free: 40.92 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001837/4.015, allocations: 191.8 kB / 0.9066 GB, free: 40.73 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005546/4.021, allocations: 0.8179 MB / 0.9074 GB, free: 39.94 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003111/4.021, allocations: 15.98 kB / 0.9074 GB, free: 39.93 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006443/4.027, allocations: 1.971 MB / 0.9093 GB, free: 37.94 MB / 402.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.824e-06/4.028, allocations: 3.906 kB / 0.9093 GB, free: 37.93 MB / 402.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0102/4.038, allocations: 2.98 MB / 0.9122 GB, free: 34.95 MB / 402.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01249/4.05, allocations: 4.307 MB / 0.9164 GB, free: 30.64 MB / 402.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/4.052, allocations: 379.2 kB / 0.9168 GB, free: 30.25 MB / 402.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003642/4.052, allocations: 3.984 kB / 0.9168 GB, free: 30.24 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002081/4.054, allocations: 67.72 kB / 0.9168 GB, free: 30.18 MB / 402.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003347/4.054, allocations: 96.73 kB / 0.9169 GB, free: 30.09 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001977/4.055, allocations: 55.19 kB / 0.917 GB, free: 30.04 MB / 402.8 MB Notification: Performance of sort global known variables: time 0.001177/4.056, allocations: 0.6006 MB / 0.9176 GB, free: 29.43 MB / 402.8 MB Notification: Performance of remove unused functions: time 0.007213/4.063, allocations: 1.35 MB / 0.9189 GB, free: 28.08 MB / 402.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.003503/4.067, allocations: 1.056 MB / 0.9199 GB, free: 27.14 MB / 402.8 MB Notification: Performance of simCode: created initialization part: time 0.008583/4.075, allocations: 2.496 MB / 0.9224 GB, free: 24.64 MB / 402.8 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/4.075, allocations: 0.7188 kB / 0.9224 GB, free: 24.64 MB / 402.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00308/4.078, allocations: 0.8081 MB / 0.9232 GB, free: 23.84 MB / 402.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004855/4.083, allocations: 0.4977 MB / 0.9236 GB, free: 23.38 MB / 402.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009243/4.093, allocations: 2.466 MB / 0.9261 GB, free: 20.91 MB / 402.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00177/4.094, allocations: 1.487 MB / 0.9275 GB, free: 19.4 MB / 402.8 MB Notification: Performance of SimCode: time 9.82e-07/4.094, allocations: 0 / 0.9275 GB, free: 19.4 MB / 402.8 MB