Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",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.723/1.723, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2486/1.971, allocations: 46.83 MB / 249.4 MB, free: 5.344 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09369/2.065, allocations: 44.51 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7701/2.835, allocations: 318.9 MB / 0.5985 GB, free: 35.27 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003203/2.836, allocations: 87.33 kB / 0.5985 GB, free: 35.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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 1.409/4.245, allocations: 280.5 MB / 0.8725 GB, free: 59.68 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/4.245, allocations: 9.609 kB / 0.8725 GB, free: 59.68 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001511/4.247, allocations: 167.3 kB / 0.8726 GB, free: 59.61 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005072/4.252, allocations: 1.099 MB / 0.8737 GB, free: 59.03 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/4.252, allocations: 35.81 kB / 0.8737 GB, free: 59.03 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004661/4.252, allocations: 55.53 kB / 0.8738 GB, free: 59.03 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005524/4.258, allocations: 1.468 MB / 0.8752 GB, free: 58.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004931/4.263, allocations: 1.493 MB / 0.8767 GB, free: 57.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.336e-05/4.263, allocations: 5.125 kB / 0.8767 GB, free: 57.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002608/4.263, allocations: 7.375 kB / 0.8767 GB, free: 57.86 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002534/4.264, allocations: 109.4 kB / 0.8768 GB, free: 57.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01811/4.282, allocations: 6.329 MB / 0.883 GB, free: 52.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/4.284, allocations: 0.6377 MB / 0.8836 GB, free: 52.29 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/4.285, allocations: 0.5292 MB / 0.8841 GB, free: 51.76 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006302/4.291, allocations: 2.734 MB / 0.8868 GB, free: 48.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/4.291, allocations: 50.52 kB / 0.8868 GB, free: 48.74 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 3.767e-06/4.291, allocations: 0 / 0.8868 GB, free: 48.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=90): time 0.01895/4.31, allocations: 3.212 MB / 0.89 GB, free: 45.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.902e-05/4.311, allocations: 191.9 kB / 0.8902 GB, free: 45.26 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/4.312, allocations: 0.8577 MB / 0.891 GB, free: 44.39 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002498/4.313, allocations: 29.7 kB / 0.891 GB, free: 44.35 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004219/4.313, allocations: 0.5248 MB / 0.8915 GB, free: 43.82 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000374/4.313, allocations: 306.3 kB / 0.8918 GB, free: 43.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/4.314, allocations: 0 / 0.8918 GB, free: 43.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/4.314, allocations: 368.5 kB / 0.8922 GB, free: 43.15 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001559/4.315, allocations: 0.5388 MB / 0.8927 GB, free: 42.62 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001772/4.317, allocations: 0.9958 MB / 0.8937 GB, free: 41.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02161/4.339, allocations: 2.324 MB / 0.8959 GB, free: 39.16 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-05/4.339, allocations: 4 kB / 0.8959 GB, free: 39.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.02556/4.364, allocations: 3.39 MB / 0.8993 GB, free: 35.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001072/4.366, allocations: 5.567 MB / 0.9047 GB, free: 29.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-05/4.366, allocations: 19.94 kB / 0.9047 GB, free: 29.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002093/4.368, allocations: 333.9 kB / 0.905 GB, free: 29.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002637/4.37, allocations: 295.5 kB / 0.9053 GB, free: 29.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00639/4.377, allocations: 2.499 MB / 0.9078 GB, free: 26.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002845/4.38, allocations: 83 kB / 0.9078 GB, free: 26.56 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002961/4.38, allocations: 73.7 kB / 0.9079 GB, free: 26.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/4.38, allocations: 8.562 kB / 0.9079 GB, free: 26.48 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02479/4.405, allocations: 3.109 MB / 0.9109 GB, free: 23.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.767e-05/4.405, allocations: 15.91 kB / 0.911 GB, free: 23.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00186/4.407, allocations: 261.1 kB / 0.9112 GB, free: 23.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002665/4.409, allocations: 303.5 kB / 0.9115 GB, free: 22.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004961/4.414, allocations: 2.254 MB / 0.9137 GB, free: 20.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002539/4.417, allocations: 71.67 kB / 0.9138 GB, free: 20.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002862/4.417, allocations: 79.28 kB / 0.9138 GB, free: 20.38 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006334/4.418, allocations: 156.2 kB / 0.914 GB, free: 20.22 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004759/4.419, allocations: 126.5 kB / 0.9141 GB, free: 20.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008337/4.427, allocations: 1.596 MB / 0.9157 GB, free: 18.52 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/4.427, allocations: 8 kB / 0.9157 GB, free: 18.51 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/4.427, allocations: 3.75 kB / 0.9157 GB, free: 18.51 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/4.427, allocations: 3.984 kB / 0.9157 GB, free: 18.51 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/4.438, allocations: 2.712 MB / 0.9183 GB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/4.438, allocations: 7.812 kB / 0.9183 GB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/4.439, allocations: 154.5 kB / 0.9185 GB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002006/4.441, allocations: 322.1 kB / 0.9188 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001152/4.441, allocations: 15.98 kB / 0.9188 GB, free: 15.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004327/4.446, allocations: 2.303 MB / 0.9211 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/4.446, allocations: 0 / 0.9211 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007087/4.453, allocations: 2.195 MB / 0.9232 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008827/4.462, allocations: 3.286 MB / 0.9264 GB, free: 7.328 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006139/4.462, allocations: 215.3 kB / 0.9266 GB, free: 7.098 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004028/4.463, allocations: 11.98 kB / 0.9266 GB, free: 7.086 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001675/4.465, allocations: 59.89 kB / 0.9267 GB, free: 7.027 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002884/4.465, allocations: 88.77 kB / 0.9268 GB, free: 6.941 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/4.465, allocations: 39.98 kB / 0.9268 GB, free: 6.902 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001337/4.466, allocations: 0.6342 MB / 0.9274 GB, free: 6.262 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007469/4.474, allocations: 1.288 MB / 0.9287 GB, free: 4.973 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003814/4.478, allocations: 1.073 MB / 0.9297 GB, free: 3.992 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006529/4.484, allocations: 2.147 MB / 0.9318 GB, free: 1.852 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/4.484, allocations: 4.25 kB / 0.9318 GB, free: 1.848 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002208/4.487, allocations: 0.6672 MB / 0.9325 GB, free: 1.18 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004398/4.491, allocations: 458 kB / 0.9329 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007911/4.499, allocations: 2.201 MB / 0.9351 GB, free: 14.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002127/4.501, allocations: 1.418 MB / 0.9365 GB, free: 13.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.223e-06/4.501, allocations: 0 / 0.9365 GB, free: 13.07 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat