Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",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(ModelicaTest): time 2.496/2.496, allocations: 235.1 MB / 242 MB, free: 9.742 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.188/2.685, allocations: 57.2 MB / 299.2 MB, free: 428 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/3.003, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.018/4.021, allocations: 329.5 MB / 0.6676 GB, free: 110.2 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/4.022, allocations: 79.64 kB / 0.6676 GB, free: 110.2 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.9296/4.951, allocations: 142.1 MB / 0.8064 GB, free: 112.4 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/4.951, allocations: 7.812 kB / 0.8064 GB, free: 112.4 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001408/4.953, allocations: 112.4 kB / 0.8065 GB, free: 112.4 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002994/4.956, allocations: 0.7098 MB / 0.8072 GB, free: 112.1 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/4.956, allocations: 92.77 kB / 0.8073 GB, free: 112.1 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002621/4.956, allocations: 33.94 kB / 0.8074 GB, free: 112.1 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002736/4.959, allocations: 0.8392 MB / 0.8082 GB, free: 112.1 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003428/4.962, allocations: 0.9369 MB / 0.8091 GB, free: 111.9 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.336e-05/4.963, allocations: 3.812 kB / 0.8091 GB, free: 111.9 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002494/4.963, allocations: 0 / 0.8091 GB, free: 111.9 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001272/4.963, allocations: 56.3 kB / 0.8091 GB, free: 111.9 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01144/4.974, allocations: 3.923 MB / 0.813 GB, free: 110.3 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/4.976, allocations: 0.5157 MB / 0.8135 GB, free: 110.2 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009682/4.977, allocations: 388.3 kB / 0.8139 GB, free: 110.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005862/4.983, allocations: 2.383 MB / 0.8162 GB, free: 108.8 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009643/4.984, allocations: 428.1 kB / 0.8166 GB, free: 108.7 MB / 474.7 MB Notification: Performance of pre-optimization done (n=47): time 3.858e-06/4.984, allocations: 0 / 0.8166 GB, free: 108.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=52): time 0.01365/4.997, allocations: 2.471 MB / 0.819 GB, free: 108.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.16e-05/4.998, allocations: 158.2 kB / 0.8191 GB, free: 108.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/4.999, allocations: 0.551 MB / 0.8197 GB, free: 107.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001916/4.999, allocations: 27.39 kB / 0.8197 GB, free: 107.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00029/4.999, allocations: 357.5 kB / 0.8201 GB, free: 107.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002452/4.999, allocations: 171.5 kB / 0.8202 GB, free: 107.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.291e-05/5, allocations: 0 / 0.8202 GB, free: 107.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/5, allocations: 384 kB / 0.8206 GB, free: 107.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000983/5.001, allocations: 351.8 kB / 0.8209 GB, free: 107.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/5.002, allocations: 0.6168 MB / 0.8215 GB, free: 106.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009008/5.011, allocations: 1.104 MB / 0.8226 GB, free: 106.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.305e-05/5.011, allocations: 0 / 0.8226 GB, free: 106.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.01197/5.023, allocations: 1.834 MB / 0.8244 GB, free: 106.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007147/5.024, allocations: 3.393 MB / 0.8277 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/5.024, allocations: 9.406 kB / 0.8277 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001489/5.025, allocations: 332 kB / 0.828 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/5.027, allocations: 158 kB / 0.8282 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003978/5.031, allocations: 1.671 MB / 0.8298 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/5.032, allocations: 32.52 kB / 0.8298 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002021/5.033, allocations: 52.16 kB / 0.8299 GB, free: 102.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/5.033, allocations: 3.969 kB / 0.8299 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009673/5.042, allocations: 1.471 MB / 0.8313 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.265e-05/5.042, allocations: 14.78 kB / 0.8313 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/5.044, allocations: 241.2 kB / 0.8316 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/5.045, allocations: 155.4 kB / 0.8317 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002756/5.048, allocations: 2.173 MB / 0.8338 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/5.049, allocations: 40.39 kB / 0.8339 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/5.05, allocations: 46.56 kB / 0.8339 GB, free: 100.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],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 (89): * Single equations (assignments): 86 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004193/5.05, allocations: 164.9 kB / 0.8341 GB, free: 100.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002174/5.05, allocations: 75.31 kB / 0.8342 GB, free: 100.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006497/5.057, allocations: 1.199 MB / 0.8353 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.584e-05/5.057, allocations: 7.281 kB / 0.8353 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/5.057, allocations: 0 / 0.8353 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/5.057, allocations: 3.938 kB / 0.8353 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007668/5.064, allocations: 1.941 MB / 0.8372 GB, free: 99.89 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/5.065, allocations: 3.344 kB / 0.8372 GB, free: 99.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009261/5.065, allocations: 75.41 kB / 0.8373 GB, free: 99.89 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001355/5.067, allocations: 310.7 kB / 0.8376 GB, free: 99.88 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/5.067, allocations: 11.28 kB / 0.8376 GB, free: 99.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00389/5.071, allocations: 1.641 MB / 0.8392 GB, free: 98.83 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/5.071, allocations: 3.312 kB / 0.8392 GB, free: 98.83 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006429/5.077, allocations: 1.656 MB / 0.8408 GB, free: 98.63 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007818/5.085, allocations: 2.541 MB / 0.8433 GB, free: 98.05 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008552/5.086, allocations: 248.6 kB / 0.8436 GB, free: 97.91 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00026/5.086, allocations: 3.844 kB / 0.8436 GB, free: 97.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/5.088, allocations: 34.42 kB / 0.8436 GB, free: 97.91 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/5.088, allocations: 56.16 kB / 0.8437 GB, free: 97.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/5.088, allocations: 30.33 kB / 0.8437 GB, free: 97.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.000841/5.089, allocations: 414.7 kB / 0.8441 GB, free: 97.81 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006444/5.095, allocations: 0.705 MB / 0.8448 GB, free: 97.71 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002378/5.098, allocations: 0.6165 MB / 0.8454 GB, free: 97.51 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00498/5.103, allocations: 1.456 MB / 0.8468 GB, free: 97.32 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/5.103, allocations: 0 / 0.8468 GB, free: 97.32 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001737/5.105, allocations: 448.6 kB / 0.8472 GB, free: 97.28 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003086/5.108, allocations: 247 kB / 0.8475 GB, free: 97.27 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006265/5.114, allocations: 1.36 MB / 0.8488 GB, free: 96.99 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001871/5.116, allocations: 1.115 MB / 0.8499 GB, free: 96.28 MB / 474.7 MB Notification: Performance of SimCode: time 1.954e-06/5.116, allocations: 0 / 0.8499 GB, free: 96.28 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat does not exist to compare? outputFormat=mat