Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",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.69/1.69, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2474/1.937, allocations: 46.83 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09231/2.03, allocations: 44.5 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.008/3.038, allocations: 404.2 MB / 0.6817 GB, free: 89.72 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003284/3.038, allocations: 81.03 kB / 0.6818 GB, free: 89.72 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.9992/4.037, allocations: 211.3 MB / 0.8882 GB, free: 43.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/4.037, allocations: 8 kB / 0.8882 GB, free: 43.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009858/4.038, allocations: 166.2 kB / 0.8884 GB, free: 43.21 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003534/4.042, allocations: 0.9984 MB / 0.8893 GB, free: 42.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002181/4.042, allocations: 202.5 kB / 0.8895 GB, free: 41.96 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003499/4.043, allocations: 63.84 kB / 0.8896 GB, free: 41.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005009/4.048, allocations: 1.652 MB / 0.8912 GB, free: 40.24 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004688/4.052, allocations: 1.681 MB / 0.8928 GB, free: 38.49 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.71e-05/4.052, allocations: 11.92 kB / 0.8928 GB, free: 38.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002602/4.053, allocations: 4 kB / 0.8929 GB, free: 38.47 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001529/4.053, allocations: 106 kB / 0.893 GB, free: 38.37 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02183/4.075, allocations: 6.64 MB / 0.8994 GB, free: 31.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002696/4.077, allocations: 0.9741 MB / 0.9004 GB, free: 30.56 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002209/4.08, allocations: 0.8358 MB / 0.9012 GB, free: 29.73 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01001/4.09, allocations: 3.919 MB / 0.905 GB, free: 25.57 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/4.09, allocations: 43.56 kB / 0.9051 GB, free: 25.52 MB / 394.7 MB Notification: Performance of pre-optimization done (n=110): time 4.669e-06/4.09, allocations: 0 / 0.9051 GB, free: 25.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.03547/4.125, allocations: 6.51 MB / 0.9114 GB, free: 18.95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/4.125, allocations: 171.2 kB / 0.9116 GB, free: 18.75 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/4.127, allocations: 0.6605 MB / 0.9122 GB, free: 18.08 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002835/4.127, allocations: 29.64 kB / 0.9123 GB, free: 18.05 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003468/4.127, allocations: 431.4 kB / 0.9127 GB, free: 17.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005163/4.128, allocations: 394.2 kB / 0.9131 GB, free: 17.23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001797/4.128, allocations: 4 kB / 0.9131 GB, free: 17.22 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/4.128, allocations: 353.9 kB / 0.9134 GB, free: 16.87 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002157/4.13, allocations: 0.7614 MB / 0.9141 GB, free: 16.11 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002295/4.133, allocations: 1.004 MB / 0.9151 GB, free: 15.02 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01973/4.152, allocations: 2.448 MB / 0.9175 GB, free: 12.57 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.622e-05/4.153, allocations: 0 / 0.9175 GB, free: 12.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.02607/4.179, allocations: 3.989 MB / 0.9214 GB, free: 8.559 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000477/4.179, allocations: 2.359 MB / 0.9237 GB, free: 6.016 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.41e-05/4.179, allocations: 4 kB / 0.9237 GB, free: 6.012 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004621/4.184, allocations: 0.9917 MB / 0.9247 GB, free: 5.004 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002328/4.186, allocations: 227.6 kB / 0.9249 GB, free: 4.781 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1537/4.34, allocations: 6.654 MB / 0.9314 GB, free: 96.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002771/4.343, allocations: 70.94 kB / 0.9315 GB, free: 96.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002724/4.343, allocations: 61.42 kB / 0.9315 GB, free: 96.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.157e-06/4.343, allocations: 3.656 kB / 0.9315 GB, free: 96.5 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01895/4.362, allocations: 3.114 MB / 0.9346 GB, free: 96.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.917e-05/4.362, allocations: 7.125 kB / 0.9346 GB, free: 96.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003341/4.365, allocations: 0.7169 MB / 0.9353 GB, free: 96.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002311/4.368, allocations: 232 kB / 0.9355 GB, free: 96.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008279/4.376, allocations: 6.437 MB / 0.9418 GB, free: 91.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002462/4.379, allocations: 63.41 kB / 0.9418 GB, free: 91.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003404/4.379, allocations: 61.81 kB / 0.9419 GB, free: 91.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 125 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006144/4.38, allocations: 146.1 kB / 0.942 GB, free: 91.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004097/4.38, allocations: 115.9 kB / 0.9422 GB, free: 91.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01425/4.394, allocations: 3.261 MB / 0.9453 GB, free: 91.47 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-05/4.394, allocations: 11.66 kB / 0.9453 GB, free: 91.47 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/4.394, allocations: 7.469 kB / 0.9454 GB, free: 91.47 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.966e-05/4.394, allocations: 6.562 kB / 0.9454 GB, free: 91.47 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/4.412, allocations: 4.656 MB / 0.9499 GB, free: 91.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/4.412, allocations: 0 / 0.9499 GB, free: 91.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/4.413, allocations: 154.5 kB / 0.9501 GB, free: 91.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004245/4.418, allocations: 1.004 MB / 0.951 GB, free: 91.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001912/4.418, allocations: 34.11 kB / 0.9511 GB, free: 91.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0131/4.431, allocations: 6.664 MB / 0.9576 GB, free: 86.98 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/4.431, allocations: 0 / 0.9576 GB, free: 86.98 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01563/4.447, allocations: 4.2 MB / 0.9617 GB, free: 86.7 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01877/4.465, allocations: 5.87 MB / 0.9674 GB, free: 86.05 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001349/4.467, allocations: 395.1 kB / 0.9678 GB, free: 85.89 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004071/4.467, allocations: 3.688 kB / 0.9678 GB, free: 85.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002256/4.469, allocations: 79.38 kB / 0.9679 GB, free: 85.89 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004829/4.47, allocations: 132.6 kB / 0.968 GB, free: 85.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002318/4.47, allocations: 48.69 kB / 0.968 GB, free: 85.89 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0009865/4.471, allocations: 0.4912 MB / 0.9685 GB, free: 85.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006876/4.478, allocations: 1.161 MB / 0.9697 GB, free: 85.79 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002955/4.481, allocations: 0.8102 MB / 0.9704 GB, free: 85.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01129/4.492, allocations: 3.448 MB / 0.9738 GB, free: 85.15 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/4.492, allocations: 0 / 0.9738 GB, free: 85.15 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004874/4.497, allocations: 1.259 MB / 0.975 GB, free: 84.94 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004773/4.502, allocations: 468.9 kB / 0.9755 GB, free: 84.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01264/4.515, allocations: 2.591 MB / 0.978 GB, free: 84.49 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001839/4.517, allocations: 1.44 MB / 0.9794 GB, free: 83.77 MB / 394.7 MB Notification: Performance of SimCode: time 1.422e-06/4.517, allocations: 0 / 0.9794 GB, free: 83.77 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat