Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Utilities_TestWriteFile",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(ModelicaTest): time 2.181/2.181, allocations: 235 MB / 241.9 MB, free: 9.762 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.186/2.367, allocations: 57.2 MB / 299.1 MB, free: 452 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/2.643, allocations: 54.83 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1795/2.822, allocations: 78.82 MB / 432.8 MB, free: 14.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003156/2.823, allocations: 59.92 kB / 432.8 MB, free: 14.46 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.009804/2.832, allocations: 1.456 MB / 434.3 MB, free: 12.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.329e-05/2.833, allocations: 12 kB / 434.3 MB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.936e-05/2.833, allocations: 3.906 kB / 434.3 MB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/2.833, allocations: 163.1 kB / 434.5 MB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/2.833, allocations: 0 / 434.5 MB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/2.833, allocations: 0 / 434.5 MB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.906e-05/2.833, allocations: 0 / 434.5 MB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.115e-05/2.833, allocations: 37.69 kB / 434.5 MB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/2.833, allocations: 7.938 kB / 434.5 MB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/2.833, allocations: 0 / 434.5 MB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/2.833, allocations: 0 / 434.5 MB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001848/2.833, allocations: 130.2 kB / 434.6 MB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.953e-05/2.833, allocations: 26.53 kB / 434.7 MB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.645e-05/2.833, allocations: 4.859 kB / 434.7 MB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/2.833, allocations: 4 kB / 434.7 MB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.883e-05/2.834, allocations: 60.33 kB / 434.7 MB, free: 12.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.615e-06/2.834, allocations: 0 / 434.7 MB, free: 12.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002871/2.834, allocations: 29.7 kB / 434.8 MB, free: 12.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.987e-05/2.834, allocations: 81.09 kB / 434.8 MB, free: 12.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.741e-05/2.834, allocations: 85 kB / 434.9 MB, free: 12.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/2.834, allocations: 25.7 kB / 435 MB, free: 12.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.686e-05/2.834, allocations: 84.14 kB / 435 MB, free: 12.06 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.325e-05/2.834, allocations: 4.031 kB / 435 MB, free: 12.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.133e-06/2.834, allocations: 0 / 435 MB, free: 12.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/2.834, allocations: 322.7 kB / 435.4 MB, free: 11.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.494e-05/2.834, allocations: 0 / 435.4 MB, free: 11.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.068e-05/2.834, allocations: 0 / 435.4 MB, free: 11.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.805e-05/2.835, allocations: 4 kB / 435.4 MB, free: 11.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/2.835, allocations: 0 / 435.4 MB, free: 11.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001692/2.835, allocations: 33.69 kB / 435.4 MB, free: 11.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/2.835, allocations: 4.094 kB / 435.4 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/2.835, allocations: 4 kB / 435.4 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/2.835, allocations: 4 kB / 435.4 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.435e-06/2.835, allocations: 0 / 435.4 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/2.835, allocations: 0 / 435.4 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.787e-05/2.835, allocations: 3.938 kB / 435.4 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/2.835, allocations: 0 / 435.4 MB, free: 11.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001626/2.835, allocations: 143.2 kB / 435.6 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/2.835, allocations: 0 / 435.6 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.416e-05/2.835, allocations: 10.95 kB / 435.6 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/2.835, allocations: 4 kB / 435.6 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/2.835, allocations: 0 / 435.6 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/2.835, allocations: 0 / 435.6 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001433/2.835, allocations: 126.2 kB / 435.7 MB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/2.836, allocations: 3.906 kB / 435.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.713e-06/2.836, allocations: 3.938 kB / 435.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/2.836, allocations: 0 / 435.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/2.836, allocations: 3.984 kB / 435.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/2.836, allocations: 0 / 435.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/2.836, allocations: 0 / 435.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001998/2.836, allocations: 61.08 kB / 435.8 MB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003859/2.836, allocations: 445.4 kB / 436.2 MB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.449e-05/2.836, allocations: 81.09 kB / 436.3 MB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/2.836, allocations: 4 kB / 436.3 MB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.849e-05/2.836, allocations: 4.062 kB / 436.3 MB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.768e-05/2.836, allocations: 3.938 kB / 436.3 MB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/2.837, allocations: 0 / 436.3 MB, free: 10.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.996e-05/2.837, allocations: 75.28 kB / 436.4 MB, free: 10.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001476/2.838, allocations: 27.91 kB / 436.4 MB, free: 10.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005958/2.839, allocations: 197.9 kB / 436.6 MB, free: 10.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.649e-05/2.839, allocations: 29.7 kB / 436.6 MB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/2.839, allocations: 4.062 kB / 436.6 MB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.947e-05/2.839, allocations: 33.7 kB / 436.6 MB, free: 10.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001168/2.839, allocations: 3.984 kB / 436.6 MB, free: 10.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001739/2.839, allocations: 44.02 kB / 436.7 MB, free: 10.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003366/2.84, allocations: 0.6841 MB / 437.4 MB, free: 9.559 MB / 378.7 MB Notification: Performance of SimCode: time 7.21e-07/2.84, allocations: 0 / 437.4 MB, free: 9.559 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat