Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_Tanks_EmptyTanks",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.769/1.769, allocations: 194.9 MB / 202.6 MB, free: 6.906 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2463/2.016, allocations: 46.82 MB / 249.4 MB, free: 5.305 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08835/2.104, allocations: 44.51 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7502/2.854, allocations: 315.7 MB / 0.5953 GB, free: 36.61 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/2.855, allocations: 76.89 kB / 0.5954 GB, free: 36.57 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.6513/3.506, allocations: 131 MB / 0.7233 GB, free: 56.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/3.506, allocations: 12 kB / 0.7233 GB, free: 56.28 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007695/3.507, allocations: 91.05 kB / 0.7234 GB, free: 56.19 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002425/3.509, allocations: 0.6669 MB / 0.724 GB, free: 55.49 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/3.51, allocations: 88.7 kB / 0.7241 GB, free: 55.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000266/3.51, allocations: 32 kB / 0.7242 GB, free: 55.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002445/3.512, allocations: 0.7717 MB / 0.7249 GB, free: 54.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00248/3.515, allocations: 0.8204 MB / 0.7257 GB, free: 53.74 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.182e-05/3.515, allocations: 8 kB / 0.7257 GB, free: 53.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/3.515, allocations: 0 / 0.7257 GB, free: 53.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001007/3.515, allocations: 61.27 kB / 0.7258 GB, free: 53.67 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01023/3.525, allocations: 3.187 MB / 0.7289 GB, free: 50.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/3.527, allocations: 0.5067 MB / 0.7294 GB, free: 49.86 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009287/3.528, allocations: 362.2 kB / 0.7297 GB, free: 49.51 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004924/3.533, allocations: 2.035 MB / 0.7317 GB, free: 47.29 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/3.533, allocations: 47 kB / 0.7318 GB, free: 47.24 MB / 394.7 MB Notification: Performance of pre-optimization done (n=56): time 3.697e-06/3.533, allocations: 0 / 0.7318 GB, free: 47.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.01303/3.546, allocations: 2.571 MB / 0.7343 GB, free: 44.62 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/3.546, allocations: 85.77 kB / 0.7344 GB, free: 44.52 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008182/3.547, allocations: 454.1 kB / 0.7348 GB, free: 44.07 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.811e-05/3.547, allocations: 25.7 kB / 0.7348 GB, free: 44.04 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/3.547, allocations: 268 kB / 0.7351 GB, free: 43.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/3.547, allocations: 216.8 kB / 0.7353 GB, free: 43.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-05/3.547, allocations: 0 / 0.7353 GB, free: 43.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/3.548, allocations: 378.8 kB / 0.7356 GB, free: 43.18 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009103/3.548, allocations: 345.4 kB / 0.736 GB, free: 42.84 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009973/3.549, allocations: 0.4989 MB / 0.7365 GB, free: 42.28 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008635/3.558, allocations: 1.06 MB / 0.7375 GB, free: 41.23 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/3.558, allocations: 4 kB / 0.7375 GB, free: 41.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.01084/3.569, allocations: 1.76 MB / 0.7392 GB, free: 39.45 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002957/3.569, allocations: 1.571 MB / 0.7407 GB, free: 37.76 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/3.569, allocations: 4 kB / 0.7407 GB, free: 37.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/3.571, allocations: 376.5 kB / 0.7411 GB, free: 37.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00143/3.572, allocations: 159.7 kB / 0.7413 GB, free: 37.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003791/3.576, allocations: 1.27 MB / 0.7425 GB, free: 35.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001358/3.578, allocations: 27.91 kB / 0.7425 GB, free: 35.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/3.578, allocations: 35.98 kB / 0.7426 GB, free: 35.87 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/3.578, allocations: 8 kB / 0.7426 GB, free: 35.86 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008861/3.587, allocations: 1.361 MB / 0.7439 GB, free: 34.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/3.587, allocations: 4.531 kB / 0.7439 GB, free: 34.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/3.588, allocations: 244.7 kB / 0.7441 GB, free: 34.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/3.589, allocations: 167.7 kB / 0.7443 GB, free: 34.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001292/3.591, allocations: 0.8568 MB / 0.7451 GB, free: 33.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/3.592, allocations: 23.97 kB / 0.7452 GB, free: 33.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/3.592, allocations: 35.98 kB / 0.7452 GB, free: 33.14 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.0003482/3.592, allocations: 128.6 kB / 0.7453 GB, free: 33.01 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/3.593, allocations: 67.25 kB / 0.7454 GB, free: 32.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005938/3.599, allocations: 1.261 MB / 0.7466 GB, free: 31.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/3.599, allocations: 4 kB / 0.7466 GB, free: 31.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/3.599, allocations: 4 kB / 0.7466 GB, free: 31.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/3.599, allocations: 3.984 kB / 0.7466 GB, free: 31.65 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007348/3.606, allocations: 2.082 MB / 0.7487 GB, free: 29.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/3.606, allocations: 0 / 0.7487 GB, free: 29.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/3.607, allocations: 119.8 kB / 0.7488 GB, free: 29.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001458/3.609, allocations: 368.6 kB / 0.7491 GB, free: 29.06 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.528e-05/3.609, allocations: 23.92 kB / 0.7491 GB, free: 29.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003619/3.613, allocations: 1.248 MB / 0.7504 GB, free: 27.77 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/3.613, allocations: 0 / 0.7504 GB, free: 27.77 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005998/3.619, allocations: 1.762 MB / 0.7521 GB, free: 25.98 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007243/3.626, allocations: 2.662 MB / 0.7547 GB, free: 23.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006216/3.627, allocations: 232.1 kB / 0.7549 GB, free: 23.05 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002192/3.627, allocations: 4 kB / 0.7549 GB, free: 23.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/3.628, allocations: 31.97 kB / 0.7549 GB, free: 23.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/3.628, allocations: 56.56 kB / 0.755 GB, free: 22.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001139/3.628, allocations: 27.98 kB / 0.755 GB, free: 22.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0006076/3.629, allocations: 342.9 kB / 0.7553 GB, free: 22.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004724/3.634, allocations: 0.679 MB / 0.756 GB, free: 21.92 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.001861/3.636, allocations: 0.5889 MB / 0.7566 GB, free: 21.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004234/3.64, allocations: 1.329 MB / 0.7579 GB, free: 20.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/3.64, allocations: 384 / 0.7579 GB, free: 20.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/3.642, allocations: 454.1 kB / 0.7583 GB, free: 19.59 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002978/3.645, allocations: 300.9 kB / 0.7586 GB, free: 19.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005607/3.65, allocations: 1.354 MB / 0.7599 GB, free: 17.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001122/3.651, allocations: 1.1 MB / 0.761 GB, free: 16.79 MB / 394.7 MB Notification: Performance of SimCode: time 2.445e-06/3.651, allocations: 0 / 0.761 GB, free: 16.79 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat