Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",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.704/1.704, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2096/1.914, allocations: 46.82 MB / 249.4 MB, free: 5.266 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08904/2.003, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7415/2.744, allocations: 320.7 MB / 0.6002 GB, free: 31.96 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003095/2.745, allocations: 85.45 kB / 0.6003 GB, free: 31.92 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.6808/3.425, allocations: 142.1 MB / 0.739 GB, free: 42.44 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/3.425, allocations: 12 kB / 0.739 GB, free: 42.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005598/3.426, allocations: 94.95 kB / 0.7391 GB, free: 42.33 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002169/3.428, allocations: 0.6519 MB / 0.7397 GB, free: 41.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.116e-05/3.428, allocations: 80.39 kB / 0.7398 GB, free: 41.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/3.428, allocations: 24 kB / 0.7398 GB, free: 41.53 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001658/3.43, allocations: 0.611 MB / 0.7404 GB, free: 40.92 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/3.432, allocations: 0.7296 MB / 0.7412 GB, free: 40.14 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.79e-05/3.432, allocations: 3.938 kB / 0.7412 GB, free: 40.14 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001155/3.432, allocations: 4 kB / 0.7412 GB, free: 40.13 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-05/3.432, allocations: 40.97 kB / 0.7412 GB, free: 40.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007245/3.439, allocations: 3.333 MB / 0.7445 GB, free: 36.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007453/3.44, allocations: 310.2 kB / 0.7448 GB, free: 36.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005505/3.441, allocations: 237.2 kB / 0.745 GB, free: 36.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00264/3.443, allocations: 1.341 MB / 0.7463 GB, free: 34.57 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005771/3.444, allocations: 289.5 kB / 0.7466 GB, free: 34.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 2.605e-06/3.444, allocations: 0 / 0.7466 GB, free: 34.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.004597/3.449, allocations: 1.309 MB / 0.7478 GB, free: 32.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/3.449, allocations: 162.5 kB / 0.748 GB, free: 32.71 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009483/3.45, allocations: 0.5423 MB / 0.7485 GB, free: 32.16 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.714e-05/3.45, allocations: 33.69 kB / 0.7486 GB, free: 32.12 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002234/3.45, allocations: 323.2 kB / 0.7489 GB, free: 31.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001488/3.45, allocations: 138.1 kB / 0.749 GB, free: 31.66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.934e-05/3.45, allocations: 4 kB / 0.749 GB, free: 31.66 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/3.45, allocations: 374.8 kB / 0.7494 GB, free: 31.28 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000632/3.451, allocations: 241.5 kB / 0.7496 GB, free: 31.05 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007775/3.452, allocations: 0.5112 MB / 0.7501 GB, free: 30.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006498/3.458, allocations: 0.813 MB / 0.7509 GB, free: 29.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/3.458, allocations: 0 / 0.7509 GB, free: 29.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.008252/3.467, allocations: 1.33 MB / 0.7522 GB, free: 28.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006059/3.467, allocations: 3.474 MB / 0.7556 GB, free: 24.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/3.467, allocations: 12 kB / 0.7556 GB, free: 24.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006594/3.468, allocations: 112.8 kB / 0.7557 GB, free: 24.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/3.469, allocations: 143.8 kB / 0.7558 GB, free: 24.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001046/3.47, allocations: 0.7239 MB / 0.7565 GB, free: 23.49 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/3.471, allocations: 31.95 kB / 0.7566 GB, free: 23.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/3.471, allocations: 43.94 kB / 0.7566 GB, free: 23.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.694e-06/3.471, allocations: 0 / 0.7566 GB, free: 23.41 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008189/3.479, allocations: 1.209 MB / 0.7578 GB, free: 22.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/3.48, allocations: 11.98 kB / 0.7578 GB, free: 22.19 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006335/3.48, allocations: 108.7 kB / 0.7579 GB, free: 22.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/3.481, allocations: 147.7 kB / 0.7581 GB, free: 21.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007069/3.482, allocations: 0.6694 MB / 0.7587 GB, free: 21.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/3.483, allocations: 28.03 kB / 0.7587 GB, free: 21.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.5e-05/3.483, allocations: 43.98 kB / 0.7588 GB, free: 21.17 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003545/3.483, allocations: 193.5 kB / 0.759 GB, free: 20.97 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/3.484, allocations: 71.16 kB / 0.759 GB, free: 20.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002308/3.486, allocations: 0.6119 MB / 0.7596 GB, free: 20.28 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.198e-06/3.486, allocations: 11.91 kB / 0.7596 GB, free: 20.27 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/3.486, allocations: 0 / 0.7596 GB, free: 20.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/3.486, allocations: 7.922 kB / 0.7596 GB, free: 20.26 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003303/3.489, allocations: 1.243 MB / 0.7609 GB, free: 18.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.738e-06/3.489, allocations: 0 / 0.7609 GB, free: 18.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005873/3.49, allocations: 55.97 kB / 0.7609 GB, free: 18.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006051/3.491, allocations: 96.78 kB / 0.761 GB, free: 18.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.662e-05/3.491, allocations: 12.03 kB / 0.761 GB, free: 18.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008708/3.492, allocations: 0.6888 MB / 0.7617 GB, free: 18.09 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/3.492, allocations: 4 kB / 0.7617 GB, free: 18.09 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002267/3.494, allocations: 0.9439 MB / 0.7626 GB, free: 17.12 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003136/3.497, allocations: 1.643 MB / 0.7642 GB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002447/3.497, allocations: 144.2 kB / 0.7644 GB, free: 15.28 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002187/3.497, allocations: 12.12 kB / 0.7644 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008352/3.498, allocations: 27.88 kB / 0.7644 GB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/3.498, allocations: 35.81 kB / 0.7644 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.803e-05/3.499, allocations: 27.92 kB / 0.7645 GB, free: 15.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0007406/3.499, allocations: 407.1 kB / 0.7648 GB, free: 14.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004654/3.504, allocations: 0.5972 MB / 0.7654 GB, free: 14.19 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001711/3.506, allocations: 0.5775 MB / 0.766 GB, free: 13.64 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002662/3.508, allocations: 0.993 MB / 0.767 GB, free: 12.64 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/3.508, allocations: 0 / 0.767 GB, free: 12.64 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007533/3.509, allocations: 286.1 kB / 0.7672 GB, free: 12.36 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00211/3.511, allocations: 226.9 kB / 0.7674 GB, free: 12.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00328/3.515, allocations: 1.091 MB / 0.7685 GB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008172/3.515, allocations: 1.045 MB / 0.7695 GB, free: 9.938 MB / 394.7 MB Notification: Performance of SimCode: time 1.242e-06/3.515, allocations: 0 / 0.7695 GB, free: 9.938 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat