Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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(Modelica): time 1.622/1.622, allocations: 194.9 MB / 202.5 MB, free: 6.926 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2387/1.86, allocations: 46.83 MB / 249.3 MB, free: 5.355 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08711/1.947, allocations: 44.51 MB / 293.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2714/2.219, allocations: 75.56 MB / 369.4 MB, free: 7.199 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/2.219, allocations: 68.62 kB / 369.5 MB, free: 7.199 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.04361/2.263, allocations: 10.15 MB / 379.6 MB, free: 5.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/2.263, allocations: 11.69 kB / 379.6 MB, free: 5.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004729/2.263, allocations: 53.97 kB / 379.7 MB, free: 5.242 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004596/2.264, allocations: 283.6 kB / 380 MB, free: 4.996 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001343/2.264, allocations: 75.48 kB / 380 MB, free: 4.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.029e-05/2.264, allocations: 19.25 kB / 380.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009785/2.265, allocations: 408.6 kB / 380.4 MB, free: 4.863 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007636/2.266, allocations: 344.1 kB / 380.8 MB, free: 4.742 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/2.266, allocations: 3.938 kB / 380.8 MB, free: 4.738 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.362e-05/2.266, allocations: 0 / 380.8 MB, free: 4.738 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/2.266, allocations: 7.812 kB / 380.8 MB, free: 4.738 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/2.268, allocations: 0.8319 MB / 381.6 MB, free: 4.262 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006467/2.269, allocations: 288.9 kB / 381.9 MB, free: 4.227 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004248/2.269, allocations: 187.3 kB / 382.1 MB, free: 4.211 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.435e-05/2.269, allocations: 12.05 kB / 382.1 MB, free: 4.207 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/2.269, allocations: 38.56 kB / 382.1 MB, free: 4.168 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.267e-06/2.269, allocations: 3.984 kB / 382.1 MB, free: 4.164 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004009/2.273, allocations: 1.41 MB / 383.6 MB, free: 3.508 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/2.273, allocations: 89.38 kB / 383.6 MB, free: 3.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/2.273, allocations: 187.5 kB / 383.8 MB, free: 3.297 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.384e-05/2.274, allocations: 29.52 kB / 383.9 MB, free: 3.266 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/2.274, allocations: 124.1 kB / 384 MB, free: 19.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/2.274, allocations: 171.4 kB / 384.1 MB, free: 19.03 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/2.274, allocations: 0 / 384.1 MB, free: 19.03 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001572/2.274, allocations: 346.1 kB / 384.5 MB, free: 18.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004085/2.274, allocations: 155.7 kB / 384.6 MB, free: 18.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004392/2.275, allocations: 196.9 kB / 384.8 MB, free: 18.65 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005462/2.275, allocations: 152 kB / 385 MB, free: 18.63 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/2.275, allocations: 3.75 kB / 385 MB, free: 18.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001426/2.277, allocations: 0.5091 MB / 385.5 MB, free: 18.53 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/2.277, allocations: 3.875 kB / 385.5 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/2.277, allocations: 7.859 kB / 385.5 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/2.278, allocations: 240.4 kB / 385.7 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000613/2.279, allocations: 69.27 kB / 385.8 MB, free: 18.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004671/2.283, allocations: 2.429 MB / 388.2 MB, free: 16.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006215/2.284, allocations: 31.62 kB / 388.3 MB, free: 16.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.663e-05/2.284, allocations: 23.11 kB / 388.3 MB, free: 16.95 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002558/2.284, allocations: 133.5 kB / 388.4 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/2.284, allocations: 27.31 kB / 388.4 MB, free: 16.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/2.285, allocations: 39.58 kB / 388.5 MB, free: 16.79 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/2.285, allocations: 7.719 kB / 388.5 MB, free: 16.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/2.285, allocations: 0 / 388.5 MB, free: 16.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/2.285, allocations: 3.984 kB / 388.5 MB, free: 16.79 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002679/2.287, allocations: 1.091 MB / 389.6 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/2.287, allocations: 3.938 kB / 389.6 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006352/2.288, allocations: 65.33 kB / 389.7 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009826/2.289, allocations: 235.5 kB / 389.9 MB, free: 16.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.105e-05/2.289, allocations: 6.797 kB / 389.9 MB, free: 16.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004441/2.294, allocations: 2.354 MB / 392.2 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/2.294, allocations: 0 / 392.2 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00193/2.296, allocations: 0.8283 MB / 393.1 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002517/2.298, allocations: 1.437 MB / 394.5 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002773/2.298, allocations: 153.2 kB / 394.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/2.298, allocations: 0 / 394.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006095/2.299, allocations: 38.59 kB / 394.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/2.299, allocations: 49.91 kB / 394.7 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.214e-05/2.299, allocations: 18.48 kB / 394.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001874/2.3, allocations: 149.4 kB / 394.9 MB, free: 13.63 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001708/2.301, allocations: 135.8 kB / 395 MB, free: 13.61 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004123/2.302, allocations: 140.5 kB / 395.2 MB, free: 13.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001424/2.303, allocations: 0.5371 MB / 395.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/2.303, allocations: 4 kB / 395.7 MB, free: 13.35 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008718/2.304, allocations: 361.6 kB / 396.1 MB, free: 13.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004595/2.305, allocations: 21.8 kB / 396.1 MB, free: 13.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/2.307, allocations: 0.6094 MB / 396.7 MB, free: 12.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007247/2.307, allocations: 0.8369 MB / 397.5 MB, free: 12.15 MB / 314.7 MB Notification: Performance of SimCode: time 1.082e-06/2.307, allocations: 0 / 397.5 MB, free: 12.15 MB / 314.7 MB