Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Rotational_TestBraking",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.685/2.685, allocations: 235.1 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2204/2.906, allocations: 57.19 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/3.209, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1917/3.401, allocations: 81.75 MB / 435.8 MB, free: 11.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/3.402, allocations: 63.91 kB / 435.9 MB, free: 11.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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.02666/3.428, allocations: 4.248 MB / 440.1 MB, free: 7.168 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/3.428, allocations: 8 kB / 440.1 MB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/3.428, allocations: 31.62 kB / 440.2 MB, free: 7.129 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005312/3.429, allocations: 227.2 kB / 440.4 MB, free: 6.863 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.549e-05/3.429, allocations: 8 kB / 440.4 MB, free: 6.855 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.638e-05/3.429, allocations: 19.91 kB / 440.4 MB, free: 6.836 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005585/3.43, allocations: 100.8 kB / 440.5 MB, free: 6.738 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007226/3.43, allocations: 185.9 kB / 440.7 MB, free: 6.539 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.582e-05/3.431, allocations: 0 / 440.7 MB, free: 6.539 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.856e-05/3.431, allocations: 0 / 440.7 MB, free: 6.539 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.178e-05/3.431, allocations: 8 kB / 440.7 MB, free: 6.531 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003037/3.434, allocations: 0.9825 MB / 441.7 MB, free: 5.469 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005096/3.434, allocations: 150.6 kB / 441.8 MB, free: 5.285 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/3.434, allocations: 43.47 kB / 441.9 MB, free: 5.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/3.434, allocations: 7.922 kB / 441.9 MB, free: 5.223 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.919e-05/3.435, allocations: 50.59 kB / 441.9 MB, free: 5.164 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 3.797e-06/3.435, allocations: 3.938 kB / 441.9 MB, free: 5.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007345/3.435, allocations: 105.4 kB / 442 MB, free: 5.051 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/3.435, allocations: 132.5 kB / 442.2 MB, free: 4.891 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002991/3.436, allocations: 141.6 kB / 442.3 MB, free: 4.742 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/3.436, allocations: 25.7 kB / 442.3 MB, free: 4.711 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/3.436, allocations: 155.9 kB / 442.5 MB, free: 4.555 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/3.436, allocations: 67.09 kB / 442.6 MB, free: 4.488 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.837e-05/3.436, allocations: 0 / 442.6 MB, free: 4.488 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002187/3.436, allocations: 322.8 kB / 442.9 MB, free: 4.164 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002057/3.437, allocations: 39.94 kB / 442.9 MB, free: 4.125 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003475/3.437, allocations: 142.6 kB / 443 MB, free: 3.934 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/3.437, allocations: 59.91 kB / 443.1 MB, free: 3.875 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/3.437, allocations: 4 kB / 443.1 MB, free: 3.871 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008479/3.438, allocations: 197.1 kB / 443.3 MB, free: 3.672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/3.438, allocations: 8 kB / 443.3 MB, free: 3.664 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/3.438, allocations: 4 kB / 443.3 MB, free: 3.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.012e-05/3.438, allocations: 4 kB / 443.3 MB, free: 3.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006753/3.439, allocations: 63.84 kB / 443.4 MB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.205e-05/3.439, allocations: 7.984 kB / 443.4 MB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003882/3.439, allocations: 24.12 kB / 443.4 MB, free: 3.562 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.205e-05/3.44, allocations: 16 kB / 443.4 MB, free: 3.547 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001692/3.44, allocations: 112.9 kB / 443.5 MB, free: 3.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002555/3.44, allocations: 16 kB / 443.6 MB, free: 3.414 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005355/3.441, allocations: 78.64 kB / 443.6 MB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/3.441, allocations: 4 kB / 443.6 MB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/3.441, allocations: 0 / 443.6 MB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/3.441, allocations: 0 / 443.6 MB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/3.442, allocations: 226 kB / 443.9 MB, free: 3.066 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/3.442, allocations: 4 kB / 443.9 MB, free: 3.062 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007966/3.443, allocations: 43.97 kB / 443.9 MB, free: 3.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.375e-06/3.443, allocations: 0 / 443.9 MB, free: 3.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.826e-05/3.443, allocations: 4 kB / 443.9 MB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/3.443, allocations: 0 / 443.9 MB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.585e-06/3.443, allocations: 7.938 kB / 443.9 MB, free: 3.008 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008978/3.444, allocations: 0.5063 MB / 444.4 MB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001202/3.445, allocations: 0.9111 MB / 445.3 MB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/3.445, allocations: 93.14 kB / 445.4 MB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.583e-05/3.445, allocations: 0 / 445.4 MB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006902/3.446, allocations: 7.906 kB / 445.4 MB, free: 1.398 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/3.446, allocations: 11.98 kB / 445.4 MB, free: 1.387 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.981e-05/3.446, allocations: 4 kB / 445.4 MB, free: 1.383 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002416/3.446, allocations: 124.8 kB / 445.6 MB, free: 1.262 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003338/3.45, allocations: 51.84 kB / 445.6 MB, free: 1.211 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.0003419/3.45, allocations: 107.7 kB / 445.7 MB, free: 1.098 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005952/3.451, allocations: 107.8 kB / 445.8 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/3.451, allocations: 0.875 kB / 445.8 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/3.451, allocations: 43.94 kB / 445.9 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/3.452, allocations: 40.2 kB / 445.9 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00307/3.455, allocations: 0.7097 MB / 446.6 MB, free: 164 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1759/3.631, allocations: 0.7797 MB / 447.4 MB, free: 130.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.984e-06/3.631, allocations: 0 / 447.4 MB, free: 130.8 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat