Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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 1.741/1.741, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.237/1.978, allocations: 46.82 MB / 249.4 MB, free: 5.328 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/2.095, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2928/2.388, allocations: 75.2 MB / 369.1 MB, free: 7.113 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/2.388, allocations: 65.69 kB / 369.2 MB, free: 7.113 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.03531/2.424, allocations: 6.992 MB / 376.2 MB, free: 6.238 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/2.424, allocations: 8.281 kB / 376.2 MB, free: 6.238 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001565/2.424, allocations: 43.03 kB / 376.2 MB, free: 6.215 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005047/2.425, allocations: 297 kB / 376.5 MB, free: 5.973 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/2.425, allocations: 11.62 kB / 376.5 MB, free: 5.973 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/2.425, allocations: 27.44 kB / 376.5 MB, free: 5.965 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001137/2.426, allocations: 356.5 kB / 376.9 MB, free: 5.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000989/2.427, allocations: 340.1 kB / 377.2 MB, free: 5.824 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.135e-05/2.427, allocations: 7.438 kB / 377.2 MB, free: 5.824 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.056e-05/2.427, allocations: 0 / 377.2 MB, free: 5.824 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/2.427, allocations: 7.75 kB / 377.2 MB, free: 5.824 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00437/2.431, allocations: 1.24 MB / 378.5 MB, free: 5.148 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000763/2.432, allocations: 247.6 kB / 378.7 MB, free: 5.113 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000536/2.433, allocations: 205.7 kB / 378.9 MB, free: 5.098 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.071e-05/2.433, allocations: 11.98 kB / 378.9 MB, free: 5.094 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/2.433, allocations: 38 kB / 379 MB, free: 5.055 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 3.537e-06/2.433, allocations: 4 kB / 379 MB, free: 5.051 MB / 298.7 MB Notification: Performance of matching and sorting (n=51): time 0.008149/2.441, allocations: 1.504 MB / 380.5 MB, free: 4.324 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/2.441, allocations: 55.69 kB / 380.5 MB, free: 4.262 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003304/2.441, allocations: 186.4 kB / 380.7 MB, free: 4.152 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001591/2.442, allocations: 32.73 kB / 380.7 MB, free: 4.121 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001926/2.442, allocations: 150.9 kB / 380.9 MB, free: 19.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002466/2.442, allocations: 164.5 kB / 381.1 MB, free: 19.86 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.451e-05/2.442, allocations: 4 kB / 381.1 MB, free: 19.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000211/2.442, allocations: 340.6 kB / 381.4 MB, free: 19.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000804/2.443, allocations: 188.6 kB / 381.6 MB, free: 19.53 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000867/2.444, allocations: 238.2 kB / 381.8 MB, free: 19.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/2.445, allocations: 154.3 kB / 382 MB, free: 19.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/2.445, allocations: 0 / 382 MB, free: 19.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004147/2.449, allocations: 0.6597 MB / 382.6 MB, free: 19.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/2.449, allocations: 7.797 kB / 382.6 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.916e-05/2.449, allocations: 3.812 kB / 382.6 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002259/2.452, allocations: 424.7 kB / 383 MB, free: 19.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008156/2.453, allocations: 73.12 kB / 383.1 MB, free: 19.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006143/2.459, allocations: 3.354 MB / 386.5 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/2.46, allocations: 113.2 kB / 386.6 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/2.461, allocations: 22.31 kB / 386.6 MB, free: 16.07 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.000396/2.461, allocations: 128.5 kB / 386.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002052/2.461, allocations: 38.81 kB / 386.8 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003968/2.465, allocations: 0.6768 MB / 387.4 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/2.465, allocations: 3.781 kB / 387.4 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/2.465, allocations: 7.906 kB / 387.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/2.465, allocations: 0 / 387.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004501/2.47, allocations: 1.067 MB / 388.5 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/2.47, allocations: 3.938 kB / 388.5 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008805/2.471, allocations: 58.72 kB / 388.6 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002166/2.473, allocations: 415.6 kB / 389 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/2.473, allocations: 19.09 kB / 389 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005991/2.479, allocations: 3.306 MB / 392.3 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/2.479, allocations: 15.86 kB / 392.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003848/2.483, allocations: 0.8549 MB / 393.2 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006945/2.49, allocations: 1.943 MB / 395.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004868/2.49, allocations: 158.1 kB / 395.3 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002327/2.491, allocations: 7.5 kB / 395.3 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001618/2.492, allocations: 106.3 kB / 395.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000487/2.493, allocations: 98.91 kB / 395.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001445/2.493, allocations: 23.53 kB / 395.5 MB, free: 10.9 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003031/2.493, allocations: 151.9 kB / 395.7 MB, free: 10.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003203/2.497, allocations: 123.5 kB / 395.8 MB, free: 10.8 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004638/2.497, allocations: 137 kB / 395.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00275/2.5, allocations: 0.7175 MB / 396.6 MB, free: 10.39 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/2.5, allocations: 0 / 396.6 MB, free: 10.39 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00167/2.502, allocations: 468.9 kB / 397.1 MB, free: 10.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009893/2.503, allocations: 51.08 kB / 397.1 MB, free: 10.14 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004556/2.507, allocations: 0.7873 MB / 397.9 MB, free: 9.699 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009051/2.508, allocations: 0.8479 MB / 398.8 MB, free: 8.934 MB / 314.7 MB Notification: Performance of SimCode: time 1.393e-06/2.508, allocations: 0 / 398.8 MB, free: 8.934 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat