Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",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.586/2.586, allocations: 235.1 MB / 242 MB, free: 9.746 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1855/2.772, allocations: 57.19 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3685/3.14, allocations: 54.86 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.168/3.308, allocations: 80.56 MB / 434.6 MB, free: 12.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/3.309, allocations: 71.91 kB / 434.7 MB, free: 12.64 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.01121/3.32, allocations: 2.402 MB / 437.1 MB, free: 10.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/3.32, allocations: 12 kB / 437.1 MB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.605e-05/3.32, allocations: 11.81 kB / 437.1 MB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/3.32, allocations: 206.8 kB / 437.3 MB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/3.32, allocations: 4 kB / 437.3 MB, free: 9.926 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.273e-05/3.32, allocations: 8 kB / 437.4 MB, free: 9.918 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002608/3.321, allocations: 63.98 kB / 437.4 MB, free: 9.855 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/3.321, allocations: 109.5 kB / 437.5 MB, free: 9.742 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/3.321, allocations: 0 / 437.5 MB, free: 9.742 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/3.321, allocations: 4 kB / 437.5 MB, free: 9.738 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/3.321, allocations: 4 kB / 437.5 MB, free: 9.734 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/3.322, allocations: 432.7 kB / 438 MB, free: 9.273 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002161/3.322, allocations: 77.69 kB / 438 MB, free: 9.191 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/3.323, allocations: 48.8 kB / 438.1 MB, free: 9.141 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/3.323, allocations: 0 / 438.1 MB, free: 9.141 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/3.323, allocations: 38.56 kB / 438.1 MB, free: 9.094 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.774e-06/3.323, allocations: 3.938 kB / 438.1 MB, free: 9.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001935/3.325, allocations: 0.6852 MB / 438.8 MB, free: 8.309 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/3.325, allocations: 51.41 kB / 438.9 MB, free: 8.246 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/3.325, allocations: 117.9 kB / 439 MB, free: 8.125 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/3.325, allocations: 25.7 kB / 439 MB, free: 8.094 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.948e-05/3.325, allocations: 108.3 kB / 439.1 MB, free: 7.984 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.194e-05/3.325, allocations: 67.03 kB / 439.2 MB, free: 7.918 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.096e-05/3.325, allocations: 4 kB / 439.2 MB, free: 7.914 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/3.325, allocations: 322.8 kB / 439.5 MB, free: 7.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/3.325, allocations: 36.38 kB / 439.5 MB, free: 7.551 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/3.325, allocations: 60 kB / 439.6 MB, free: 7.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001587/3.326, allocations: 47.86 kB / 439.6 MB, free: 7.434 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/3.326, allocations: 3.906 kB / 439.6 MB, free: 7.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006278/3.326, allocations: 182.2 kB / 439.8 MB, free: 7.242 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/3.326, allocations: 4 kB / 439.8 MB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/3.326, allocations: 4 kB / 439.8 MB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002701/3.327, allocations: 36.84 kB / 439.9 MB, free: 7.195 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003603/3.327, allocations: 39.97 kB / 439.9 MB, free: 7.156 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002076/3.329, allocations: 1.474 MB / 441.4 MB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/3.329, allocations: 8.062 kB / 441.4 MB, free: 5.555 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/3.329, allocations: 4 kB / 441.4 MB, free: 5.551 MB / 378.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001236/3.329, allocations: 120.1 kB / 441.5 MB, free: 5.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.458e-05/3.33, allocations: 11.95 kB / 441.5 MB, free: 5.418 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.765e-05/3.33, allocations: 12.55 kB / 441.5 MB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/3.33, allocations: 4 kB / 441.5 MB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/3.33, allocations: 0 / 441.5 MB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/3.33, allocations: 0 / 441.5 MB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/3.331, allocations: 0.4926 MB / 442 MB, free: 4.855 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/3.331, allocations: 3.938 kB / 442 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003858/3.331, allocations: 39.91 kB / 442.1 MB, free: 4.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001993/3.331, allocations: 32.88 kB / 442.1 MB, free: 4.777 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.972e-05/3.332, allocations: 3.906 kB / 442.1 MB, free: 4.773 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001595/3.333, allocations: 1.295 MB / 443.4 MB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/3.333, allocations: 0 / 443.4 MB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007279/3.334, allocations: 327 kB / 443.7 MB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009988/3.335, allocations: 0.7489 MB / 444.5 MB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.026e-05/3.335, allocations: 88.92 kB / 444.5 MB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.039e-05/3.335, allocations: 0 / 444.5 MB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/3.335, allocations: 4.062 kB / 444.5 MB, free: 2.129 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.04e-05/3.335, allocations: 15.98 kB / 444.6 MB, free: 2.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/3.335, allocations: 4.141 kB / 444.6 MB, free: 2.109 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.903e-05/3.335, allocations: 99.77 kB / 444.7 MB, free: 2.012 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001463/3.337, allocations: 35.94 kB / 444.7 MB, free: 1.977 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001813/3.337, allocations: 107.2 kB / 444.8 MB, free: 1.863 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006544/3.338, allocations: 225.9 kB / 445 MB, free: 1.633 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/3.338, allocations: 0 / 445 MB, free: 1.633 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004065/3.338, allocations: 165.6 kB / 445.2 MB, free: 1.461 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/3.339, allocations: 15.98 kB / 445.2 MB, free: 1.445 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/3.34, allocations: 326.1 kB / 445.5 MB, free: 1.098 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004487/3.34, allocations: 0.7465 MB / 446.3 MB, free: 336 kB / 378.7 MB Notification: Performance of SimCode: time 1.282e-06/3.34, allocations: 3.938 kB / 446.3 MB, free: 332 kB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat