Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",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.793/1.793, allocations: 194.9 MB / 202.5 MB, free: 13.91 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1332/1.926, allocations: 46.83 MB / 249.3 MB, free: 15 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/2.144, allocations: 44.49 MB / 293.8 MB, free: 14.46 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7963/2.94, allocations: 404.2 MB / 0.6817 GB, free: 19.26 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/2.941, allocations: 77.97 kB / 0.6817 GB, free: 19.22 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 1.066/4.006, allocations: 211.3 MB / 0.8881 GB, free: 67.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/4.006, allocations: 7.031 kB / 0.8881 GB, free: 67.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001241/4.008, allocations: 169.3 kB / 0.8883 GB, free: 67.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003627/4.011, allocations: 0.9995 MB / 0.8893 GB, free: 66.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000257/4.012, allocations: 195.3 kB / 0.8895 GB, free: 66.63 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005534/4.012, allocations: 60.17 kB / 0.8895 GB, free: 66.63 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004982/4.017, allocations: 1.657 MB / 0.8911 GB, free: 66.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004766/4.022, allocations: 1.687 MB / 0.8928 GB, free: 66.42 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.6e-05/4.022, allocations: 7.516 kB / 0.8928 GB, free: 66.42 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002476/4.022, allocations: 0 / 0.8928 GB, free: 66.42 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001471/4.023, allocations: 104.7 kB / 0.8929 GB, free: 66.42 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02011/4.043, allocations: 6.651 MB / 0.8994 GB, free: 64.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00247/4.045, allocations: 0.9704 MB / 0.9003 GB, free: 64.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001975/4.047, allocations: 0.8392 MB / 0.9011 GB, free: 64.38 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009126/4.056, allocations: 3.924 MB / 0.905 GB, free: 62.77 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/4.056, allocations: 47 kB / 0.905 GB, free: 62.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=110): time 4.398e-06/4.056, allocations: 0 / 0.905 GB, free: 62.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.03424/4.091, allocations: 6.48 MB / 0.9114 GB, free: 62.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.755e-05/4.091, allocations: 171.2 kB / 0.9115 GB, free: 61.95 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/4.092, allocations: 0.6633 MB / 0.9122 GB, free: 61.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004166/4.093, allocations: 28.52 kB / 0.9122 GB, free: 61.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00034/4.093, allocations: 428.5 kB / 0.9126 GB, free: 61.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005715/4.094, allocations: 398.8 kB / 0.913 GB, free: 61.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/4.094, allocations: 3.844 kB / 0.913 GB, free: 61.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/4.094, allocations: 364.7 kB / 0.9133 GB, free: 60.96 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002086/4.096, allocations: 0.7526 MB / 0.9141 GB, free: 60.95 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002448/4.099, allocations: 1.012 MB / 0.9151 GB, free: 60.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01788/4.116, allocations: 2.439 MB / 0.9174 GB, free: 60.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.775e-05/4.117, allocations: 0 / 0.9174 GB, free: 60.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.02319/4.14, allocations: 3.986 MB / 0.9213 GB, free: 60.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004883/4.14, allocations: 2.347 MB / 0.9236 GB, free: 58.08 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/4.14, allocations: 7.219 kB / 0.9236 GB, free: 58.08 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004119/4.144, allocations: 1.003 MB / 0.9246 GB, free: 58.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002132/4.147, allocations: 225.6 kB / 0.9248 GB, free: 58.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01314/4.16, allocations: 6.667 MB / 0.9313 GB, free: 53.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002666/4.163, allocations: 71.03 kB / 0.9314 GB, free: 53.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003742/4.163, allocations: 60.72 kB / 0.9315 GB, free: 53.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/4.163, allocations: 6.688 kB / 0.9315 GB, free: 53.89 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01836/4.181, allocations: 3.107 MB / 0.9345 GB, free: 53.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.067e-05/4.181, allocations: 7.719 kB / 0.9345 GB, free: 53.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003173/4.185, allocations: 0.7147 MB / 0.9352 GB, free: 53.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002799/4.187, allocations: 237.9 kB / 0.9354 GB, free: 53.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008101/4.196, allocations: 6.428 MB / 0.9417 GB, free: 48.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002325/4.198, allocations: 65 kB / 0.9418 GB, free: 48.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002757/4.198, allocations: 63.28 kB / 0.9418 GB, free: 48.97 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.0005835/4.199, allocations: 141 kB / 0.942 GB, free: 48.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003892/4.199, allocations: 117.7 kB / 0.9421 GB, free: 48.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01441/4.214, allocations: 3.269 MB / 0.9453 GB, free: 48.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.195e-05/4.214, allocations: 14.38 kB / 0.9453 GB, free: 48.06 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/4.214, allocations: 3.719 kB / 0.9453 GB, free: 48.06 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.012e-05/4.214, allocations: 11.28 kB / 0.9453 GB, free: 48.06 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01836/4.232, allocations: 4.668 MB / 0.9499 GB, free: 46.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/4.232, allocations: 0.5938 kB / 0.9499 GB, free: 46.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001747/4.234, allocations: 149.8 kB / 0.95 GB, free: 46.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004397/4.238, allocations: 1.013 MB / 0.951 GB, free: 46.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004098/4.239, allocations: 24.78 kB / 0.951 GB, free: 46.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01338/4.252, allocations: 6.657 MB / 0.9575 GB, free: 41.03 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/4.252, allocations: 0 / 0.9575 GB, free: 41.03 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0149/4.267, allocations: 4.21 MB / 0.9616 GB, free: 37.46 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01782/4.285, allocations: 5.862 MB / 0.9674 GB, free: 32.38 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/4.287, allocations: 399.6 kB / 0.9677 GB, free: 32.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003825/4.287, allocations: 7.938 kB / 0.9677 GB, free: 32.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002117/4.289, allocations: 83.61 kB / 0.9678 GB, free: 31.97 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004784/4.29, allocations: 131 kB / 0.9679 GB, free: 31.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002245/4.29, allocations: 51.39 kB / 0.968 GB, free: 31.86 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0009411/4.291, allocations: 0.4894 MB / 0.9685 GB, free: 31.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007312/4.298, allocations: 1.164 MB / 0.9696 GB, free: 30.27 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.003061/4.301, allocations: 0.789 MB / 0.9704 GB, free: 29.65 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01039/4.312, allocations: 3.442 MB / 0.9737 GB, free: 26.52 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/4.312, allocations: 0 / 0.9737 GB, free: 26.52 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004392/4.316, allocations: 1.266 MB / 0.975 GB, free: 25.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004292/4.321, allocations: 469 kB / 0.9754 GB, free: 25.06 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/4.333, allocations: 2.585 MB / 0.9779 GB, free: 22.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001717/4.334, allocations: 1.44 MB / 0.9794 GB, free: 21.76 MB / 394.7 MB Notification: Performance of SimCode: time 1.222e-06/4.334, allocations: 4 kB / 0.9794 GB, free: 21.76 MB / 394.7 MB