Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Utilities_Examples_WriteRealMatrixToFile",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 2.703/2.703, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3509/3.054, allocations: 46.81 MB / 249.4 MB, free: 5.355 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/3.203, allocations: 44.5 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4585/3.661, allocations: 68.96 MB / 362.9 MB, free: 7.078 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/3.662, allocations: 63.17 kB / 362.9 MB, free: 7.074 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.004691/3.667, allocations: 0.8353 MB / 363.8 MB, free: 6.715 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.414e-05/3.667, allocations: 7.75 kB / 363.8 MB, free: 6.715 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.63e-05/3.667, allocations: 7.844 kB / 363.8 MB, free: 6.707 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/3.667, allocations: 165.4 kB / 363.9 MB, free: 6.512 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/3.667, allocations: 8.781 kB / 363.9 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.808e-05/3.667, allocations: 3.875 kB / 363.9 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000174/3.667, allocations: 37.42 kB / 364 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/3.667, allocations: 93.98 kB / 364.1 MB, free: 6.441 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/3.667, allocations: 3.938 kB / 364.1 MB, free: 6.438 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.014e-05/3.668, allocations: 5.344 kB / 364.1 MB, free: 6.438 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.455e-06/3.668, allocations: 0 / 364.1 MB, free: 6.438 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002662/3.668, allocations: 156.4 kB / 364.2 MB, free: 6.254 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002123/3.668, allocations: 102.2 kB / 364.3 MB, free: 6.156 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/3.668, allocations: 64.53 kB / 364.4 MB, free: 6.121 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/3.668, allocations: 0 / 364.4 MB, free: 6.121 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.142e-05/3.668, allocations: 44.61 kB / 364.4 MB, free: 6.078 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 3.206e-06/3.668, allocations: 0 / 364.4 MB, free: 6.078 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005228/3.669, allocations: 120.1 kB / 364.6 MB, free: 6.039 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/3.669, allocations: 138.1 kB / 364.7 MB, free: 5.879 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/3.669, allocations: 97.62 kB / 364.8 MB, free: 5.789 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/3.669, allocations: 25.7 kB / 364.8 MB, free: 5.758 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.48e-05/3.669, allocations: 87.89 kB / 364.9 MB, free: 5.676 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.348e-05/3.669, allocations: 6.062 kB / 364.9 MB, free: 5.672 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.578e-05/3.669, allocations: 0 / 364.9 MB, free: 5.672 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.922e-05/3.669, allocations: 318 kB / 365.2 MB, free: 5.359 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/3.67, allocations: 39.56 kB / 365.3 MB, free: 5.355 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/3.67, allocations: 54.75 kB / 365.3 MB, free: 5.324 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/3.67, allocations: 43.06 kB / 365.4 MB, free: 5.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/3.67, allocations: 0 / 365.4 MB, free: 5.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000445/3.67, allocations: 129.3 kB / 365.5 MB, free: 5.277 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/3.67, allocations: 7.688 kB / 365.5 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/3.67, allocations: 1.688 kB / 365.5 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.73e-05/3.67, allocations: 3.812 kB / 365.5 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.358e-05/3.671, allocations: 6.984 kB / 365.5 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/3.671, allocations: 0 / 365.5 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.479e-05/3.671, allocations: 0 / 365.5 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.236e-05/3.671, allocations: 11.44 kB / 365.5 MB, free: 5.27 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (success4,success3,success2,success1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002048/3.671, allocations: 112.5 kB / 365.6 MB, free: 21.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.444e-05/3.671, allocations: 3.062 kB / 365.6 MB, free: 21.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.373e-05/3.671, allocations: 11.44 kB / 365.6 MB, free: 21.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/3.671, allocations: 3.906 kB / 365.6 MB, free: 21.15 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/3.671, allocations: 3.844 kB / 365.6 MB, free: 21.15 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/3.671, allocations: 0 / 365.6 MB, free: 21.15 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002148/3.671, allocations: 140.6 kB / 365.8 MB, free: 21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.331e-06/3.671, allocations: 4.625 kB / 365.8 MB, free: 21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.987e-06/3.671, allocations: 0 / 365.8 MB, free: 21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/3.671, allocations: 3.938 kB / 365.8 MB, free: 20.99 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.077e-05/3.671, allocations: 6.875 kB / 365.8 MB, free: 20.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.092e-06/3.671, allocations: 3.906 kB / 365.8 MB, free: 20.99 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/3.672, allocations: 4.25 kB / 365.8 MB, free: 20.99 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004889/3.672, allocations: 194.2 kB / 366 MB, free: 20.85 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001003/3.673, allocations: 0.6959 MB / 366.7 MB, free: 20.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.004e-05/3.673, allocations: 81.02 kB / 366.8 MB, free: 20.22 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.141e-05/3.673, allocations: 6.25 kB / 366.8 MB, free: 20.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.416e-05/3.673, allocations: 3.938 kB / 366.8 MB, free: 20.22 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.182e-05/3.673, allocations: 3.875 kB / 366.8 MB, free: 20.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.946e-05/3.673, allocations: 6.422 kB / 366.8 MB, free: 20.22 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.000104/3.674, allocations: 86.94 kB / 366.9 MB, free: 20.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002448/3.676, allocations: 10.14 kB / 366.9 MB, free: 20.14 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (success4,success3,success2,success1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0006242/3.677, allocations: 137.9 kB / 367 MB, free: 20.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000265/3.677, allocations: 61.94 kB / 367.1 MB, free: 20.03 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-05/3.677, allocations: 3.844 kB / 367.1 MB, free: 20.03 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.422e-05/3.677, allocations: 29.83 kB / 367.1 MB, free: 20.03 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/3.677, allocations: 8.281 kB / 367.1 MB, free: 20.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004805/3.678, allocations: 123.2 kB / 367.2 MB, free: 19.93 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005083/3.679, allocations: 0.704 MB / 367.9 MB, free: 19.22 MB / 314.7 MB Notification: Performance of SimCode: time 1.804e-06/3.679, allocations: 0 / 367.9 MB, free: 19.22 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat