Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.664/1.664, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2541/1.918, allocations: 46.82 MB / 249.4 MB, free: 5.301 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09025/2.008, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7249/2.733, allocations: 315.9 MB / 0.5955 GB, free: 38.2 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/2.734, allocations: 75.91 kB / 0.5956 GB, free: 38.17 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 1.286/4.02, allocations: 268.2 MB / 0.8575 GB, free: 59.64 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/4.02, allocations: 7.281 kB / 0.8575 GB, free: 59.64 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001261/4.022, allocations: 177.5 kB / 0.8577 GB, free: 59.55 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004316/4.026, allocations: 1.117 MB / 0.8588 GB, free: 59.22 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/4.026, allocations: 143.6 kB / 0.8589 GB, free: 59.12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003768/4.026, allocations: 58.28 kB / 0.859 GB, free: 59.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004686/4.031, allocations: 1.636 MB / 0.8606 GB, free: 59.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004596/4.036, allocations: 1.637 MB / 0.8622 GB, free: 58.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.283e-05/4.036, allocations: 3.375 kB / 0.8622 GB, free: 58.94 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002563/4.036, allocations: 5.625 kB / 0.8622 GB, free: 58.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001745/4.036, allocations: 117.8 kB / 0.8623 GB, free: 58.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02047/4.057, allocations: 6.215 MB / 0.8683 GB, free: 56.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002223/4.059, allocations: 0.8891 MB / 0.8692 GB, free: 56.96 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001711/4.061, allocations: 0.6986 MB / 0.8699 GB, free: 56.95 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009375/4.07, allocations: 4.178 MB / 0.874 GB, free: 54.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.05e-05/4.07, allocations: 46.12 kB / 0.874 GB, free: 54.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 4.569e-06/4.07, allocations: 1.375 kB / 0.874 GB, free: 54.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=112): time 0.0238/4.094, allocations: 4.29 MB / 0.8782 GB, free: 52.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/4.094, allocations: 142.5 kB / 0.8783 GB, free: 52.65 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001986/4.096, allocations: 0.8188 MB / 0.8791 GB, free: 52.27 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003792/4.097, allocations: 26.8 kB / 0.8792 GB, free: 52.24 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004935/4.097, allocations: 475.9 kB / 0.8796 GB, free: 51.89 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007719/4.098, allocations: 375.1 kB / 0.88 GB, free: 51.6 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002117/4.098, allocations: 0 / 0.88 GB, free: 51.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001761/4.098, allocations: 365.8 kB / 0.8803 GB, free: 51.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002625/4.101, allocations: 0.6267 MB / 0.8809 GB, free: 51.04 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003369/4.104, allocations: 0.9466 MB / 0.8819 GB, free: 50.42 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03145/4.136, allocations: 2.478 MB / 0.8843 GB, free: 49.93 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.11e-05/4.136, allocations: 4 kB / 0.8843 GB, free: 49.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.03774/4.174, allocations: 3.748 MB / 0.888 GB, free: 46.55 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009296/4.175, allocations: 3.478 MB / 0.8913 GB, free: 42.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.342e-05/4.175, allocations: 8 kB / 0.8914 GB, free: 42.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01526/4.19, allocations: 1.126 MB / 0.8925 GB, free: 41.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002944/4.193, allocations: 295.9 kB / 0.8927 GB, free: 41.47 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008173/4.201, allocations: 1.979 MB / 0.8947 GB, free: 39.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003092/4.205, allocations: 59.67 kB / 0.8947 GB, free: 39.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004296/4.205, allocations: 71.91 kB / 0.8948 GB, free: 39.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/4.205, allocations: 10.41 kB / 0.8948 GB, free: 39.36 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02267/4.228, allocations: 3.109 MB / 0.8978 GB, free: 36.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.482e-05/4.228, allocations: 8 kB / 0.8979 GB, free: 36.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01289/4.241, allocations: 0.9502 MB / 0.8988 GB, free: 35.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002818/4.244, allocations: 306.1 kB / 0.8991 GB, free: 35.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003076/4.247, allocations: 1.324 MB / 0.9004 GB, free: 33.74 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002612/4.249, allocations: 58.05 kB / 0.9004 GB, free: 33.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003664/4.25, allocations: 71.03 kB / 0.9005 GB, free: 33.62 MB / 394.7 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.0005962/4.25, allocations: 148.2 kB / 0.9006 GB, free: 33.47 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005066/4.251, allocations: 126.5 kB / 0.9007 GB, free: 33.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/4.262, allocations: 2.262 MB / 0.903 GB, free: 31.13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.92e-05/4.262, allocations: 18.06 kB / 0.903 GB, free: 31.11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/4.262, allocations: 0 / 0.903 GB, free: 31.11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/4.262, allocations: 11.86 kB / 0.903 GB, free: 31.11 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/4.276, allocations: 3.545 MB / 0.9064 GB, free: 27.56 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/4.276, allocations: 3.688 kB / 0.9065 GB, free: 27.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002055/4.278, allocations: 195.7 kB / 0.9066 GB, free: 27.37 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006065/4.284, allocations: 0.8109 MB / 0.9074 GB, free: 26.59 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003224/4.284, allocations: 19.97 kB / 0.9074 GB, free: 26.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006825/4.291, allocations: 1.968 MB / 0.9094 GB, free: 24.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.355e-06/4.291, allocations: 3.906 kB / 0.9094 GB, free: 24.58 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0108/4.302, allocations: 2.977 MB / 0.9123 GB, free: 21.6 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0135/4.316, allocations: 4.308 MB / 0.9165 GB, free: 17.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001411/4.317, allocations: 375.2 kB / 0.9168 GB, free: 16.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005126/4.318, allocations: 4 kB / 0.9169 GB, free: 16.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002402/4.32, allocations: 70.56 kB / 0.9169 GB, free: 16.83 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003743/4.32, allocations: 93.16 kB / 0.917 GB, free: 16.74 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002249/4.321, allocations: 47.97 kB / 0.9171 GB, free: 16.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001313/4.322, allocations: 0.6083 MB / 0.9176 GB, free: 16.08 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008273/4.33, allocations: 1.347 MB / 0.919 GB, free: 14.73 MB / 394.7 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.003958/4.334, allocations: 1.061 MB / 0.92 GB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009245/4.344, allocations: 2.488 MB / 0.9224 GB, free: 11.28 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/4.344, allocations: 6.062 kB / 0.9224 GB, free: 11.28 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003103/4.347, allocations: 0.8165 MB / 0.9232 GB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005022/4.352, allocations: 0.5092 MB / 0.9237 GB, free: 9.965 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009385/4.361, allocations: 2.464 MB / 0.9261 GB, free: 7.508 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001801/4.363, allocations: 1.491 MB / 0.9276 GB, free: 5.992 MB / 394.7 MB Notification: Performance of SimCode: time 1.413e-06/4.363, allocations: 0 / 0.9276 GB, free: 5.992 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat