Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_2_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.549/1.549, allocations: 194.9 MB / 202.5 MB, free: 6.926 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2058/1.755, allocations: 46.83 MB / 249.3 MB, free: 5.324 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08816/1.843, allocations: 44.51 MB / 293.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6741/2.518, allocations: 315.7 MB / 0.5952 GB, free: 38.62 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/2.518, allocations: 80 kB / 0.5953 GB, free: 38.58 MB / 394.7 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.633/3.151, allocations: 131 MB / 0.7232 GB, free: 69.92 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/3.151, allocations: 12 kB / 0.7232 GB, free: 69.91 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000458/3.151, allocations: 91.05 kB / 0.7233 GB, free: 69.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001788/3.153, allocations: 0.6629 MB / 0.724 GB, free: 69.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/3.153, allocations: 84.7 kB / 0.7241 GB, free: 69.03 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/3.153, allocations: 32 kB / 0.7241 GB, free: 69 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001973/3.155, allocations: 0.7757 MB / 0.7248 GB, free: 68.22 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001895/3.157, allocations: 0.8243 MB / 0.7256 GB, free: 67.37 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.728e-05/3.157, allocations: 0 / 0.7256 GB, free: 67.37 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/3.158, allocations: 4 kB / 0.7257 GB, free: 67.36 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.943e-05/3.158, allocations: 53.27 kB / 0.7257 GB, free: 67.31 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008016/3.166, allocations: 3.194 MB / 0.7288 GB, free: 64.01 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/3.167, allocations: 0.5144 MB / 0.7293 GB, free: 63.49 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007669/3.168, allocations: 362.2 kB / 0.7297 GB, free: 63.13 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004/3.172, allocations: 2.039 MB / 0.7317 GB, free: 60.91 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.89e-05/3.172, allocations: 39.06 kB / 0.7317 GB, free: 60.87 MB / 394.7 MB Notification: Performance of pre-optimization done (n=56): time 2.475e-06/3.172, allocations: 0 / 0.7317 GB, free: 60.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.01165/3.183, allocations: 2.571 MB / 0.7342 GB, free: 58.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/3.184, allocations: 85.77 kB / 0.7343 GB, free: 58.14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007717/3.184, allocations: 458.1 kB / 0.7347 GB, free: 57.69 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.413e-05/3.184, allocations: 25.7 kB / 0.7348 GB, free: 57.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/3.185, allocations: 272 kB / 0.735 GB, free: 57.39 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002057/3.185, allocations: 212.8 kB / 0.7352 GB, free: 57.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.018e-05/3.185, allocations: 0 / 0.7352 GB, free: 57.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/3.185, allocations: 374.8 kB / 0.7356 GB, free: 56.8 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008383/3.186, allocations: 357.4 kB / 0.7359 GB, free: 56.46 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009212/3.187, allocations: 495.1 kB / 0.7364 GB, free: 55.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007824/3.195, allocations: 1.061 MB / 0.7374 GB, free: 54.85 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/3.195, allocations: 0 / 0.7374 GB, free: 54.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.009933/3.205, allocations: 1.753 MB / 0.7391 GB, free: 53.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002831/3.205, allocations: 1.575 MB / 0.7407 GB, free: 51.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/3.205, allocations: 4 kB / 0.7407 GB, free: 51.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001355/3.206, allocations: 384.4 kB / 0.741 GB, free: 51.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/3.208, allocations: 155.8 kB / 0.7412 GB, free: 50.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00339/3.211, allocations: 1.274 MB / 0.7424 GB, free: 49.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/3.212, allocations: 27.92 kB / 0.7425 GB, free: 49.53 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/3.212, allocations: 35.92 kB / 0.7425 GB, free: 49.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.878e-06/3.212, allocations: 4 kB / 0.7425 GB, free: 49.49 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007745/3.22, allocations: 1.369 MB / 0.7438 GB, free: 48.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/3.22, allocations: 4 kB / 0.7438 GB, free: 48.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000983/3.221, allocations: 248.9 kB / 0.7441 GB, free: 47.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/3.222, allocations: 159.8 kB / 0.7442 GB, free: 47.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001063/3.223, allocations: 0.8566 MB / 0.7451 GB, free: 46.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/3.225, allocations: 23.98 kB / 0.7451 GB, free: 46.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.793e-05/3.225, allocations: 35.98 kB / 0.7451 GB, free: 46.77 MB / 394.7 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.0002987/3.225, allocations: 132.5 kB / 0.7452 GB, free: 46.63 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/3.225, allocations: 67.25 kB / 0.7453 GB, free: 46.57 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004984/3.23, allocations: 1.253 MB / 0.7465 GB, free: 45.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/3.23, allocations: 8 kB / 0.7465 GB, free: 45.29 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/3.23, allocations: 0 / 0.7465 GB, free: 45.29 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/3.23, allocations: 4.078 kB / 0.7465 GB, free: 45.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006327/3.237, allocations: 2.094 MB / 0.7486 GB, free: 43.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/3.237, allocations: 0 / 0.7486 GB, free: 43.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/3.238, allocations: 119.9 kB / 0.7487 GB, free: 43.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001318/3.239, allocations: 368.5 kB / 0.7491 GB, free: 42.68 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-05/3.239, allocations: 7.984 kB / 0.7491 GB, free: 42.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003283/3.242, allocations: 1.259 MB / 0.7503 GB, free: 41.39 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/3.242, allocations: 0 / 0.7503 GB, free: 41.39 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005431/3.248, allocations: 1.759 MB / 0.752 GB, free: 39.61 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006585/3.255, allocations: 2.658 MB / 0.7546 GB, free: 36.93 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005648/3.255, allocations: 240.1 kB / 0.7548 GB, free: 36.68 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001992/3.255, allocations: 0 / 0.7548 GB, free: 36.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/3.256, allocations: 39.95 kB / 0.7549 GB, free: 36.64 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/3.257, allocations: 52.58 kB / 0.7549 GB, free: 36.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/3.257, allocations: 35.97 kB / 0.755 GB, free: 36.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0005526/3.257, allocations: 338.9 kB / 0.7553 GB, free: 36.22 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004361/3.262, allocations: 0.6829 MB / 0.756 GB, free: 35.54 MB / 394.7 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.00177/3.263, allocations: 0.5751 MB / 0.7565 GB, free: 34.99 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003874/3.267, allocations: 1.333 MB / 0.7578 GB, free: 33.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/3.267, allocations: 0 / 0.7578 GB, free: 33.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001506/3.269, allocations: 458.1 kB / 0.7583 GB, free: 33.22 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002693/3.272, allocations: 298.4 kB / 0.7585 GB, free: 32.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004955/3.277, allocations: 1.342 MB / 0.7598 GB, free: 31.55 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009394/3.278, allocations: 1.108 MB / 0.7609 GB, free: 30.41 MB / 394.7 MB Notification: Performance of SimCode: time 1.172e-06/3.278, allocations: 0 / 0.7609 GB, free: 30.41 MB / 394.7 MB