Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_1_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.839/1.839, allocations: 171.2 MB / 178.1 MB, free: 8.289 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2131/2.052, allocations: 41.11 MB / 219.2 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/2.159, allocations: 38.76 MB / 258 MB, free: 4.363 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.322/2.481, allocations: 70.55 MB / 328.6 MB, free: 1.469 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003598/2.481, allocations: 70.95 kB / 328.6 MB, free: 1.434 MB / 266.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.06839/2.55, allocations: 10.14 MB / 338.8 MB, free: 8.93 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.598e-05/2.55, allocations: 15.94 kB / 338.8 MB, free: 8.914 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008467/2.551, allocations: 55.5 kB / 338.8 MB, free: 8.859 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006992/2.551, allocations: 281.3 kB / 339.1 MB, free: 8.57 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/2.552, allocations: 87.42 kB / 339.2 MB, free: 8.477 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/2.552, allocations: 16 kB / 339.2 MB, free: 8.461 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001197/2.553, allocations: 397.8 kB / 339.6 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000955/2.554, allocations: 340.7 kB / 339.9 MB, free: 7.918 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.091e-05/2.554, allocations: 3.906 kB / 339.9 MB, free: 7.914 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.779e-05/2.554, allocations: 0 / 339.9 MB, free: 7.914 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/2.554, allocations: 11.94 kB / 339.9 MB, free: 7.902 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00237/2.556, allocations: 0.8353 MB / 340.8 MB, free: 7.191 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007936/2.557, allocations: 292.2 kB / 341.1 MB, free: 6.992 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005084/2.558, allocations: 183 kB / 341.2 MB, free: 6.879 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.448e-05/2.558, allocations: 12.44 kB / 341.3 MB, free: 6.867 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.947e-05/2.558, allocations: 34.56 kB / 341.3 MB, free: 6.828 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 3.606e-06/2.558, allocations: 0 / 341.3 MB, free: 6.828 MB / 282.7 MB Notification: Performance of matching and sorting (n=55): time 0.00759/2.565, allocations: 1.422 MB / 342.7 MB, free: 5.598 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.749e-05/2.566, allocations: 81.61 kB / 342.8 MB, free: 5.5 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005636/2.566, allocations: 183.7 kB / 343 MB, free: 5.336 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001575/2.566, allocations: 28.64 kB / 343 MB, free: 5.305 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001532/2.567, allocations: 126.4 kB / 343.1 MB, free: 5.184 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000391/2.567, allocations: 173.7 kB / 343.3 MB, free: 5.035 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.52e-05/2.567, allocations: 3.938 kB / 343.3 MB, free: 5.031 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002515/2.567, allocations: 341.5 kB / 343.6 MB, free: 4.699 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009294/2.568, allocations: 162.2 kB / 343.8 MB, free: 4.602 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009188/2.569, allocations: 195.5 kB / 344 MB, free: 4.469 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/2.57, allocations: 156.9 kB / 344.1 MB, free: 4.367 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/2.57, allocations: 0 / 344.1 MB, free: 4.367 MB / 282.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002777/2.573, allocations: 0.5189 MB / 344.7 MB, free: 3.984 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/2.573, allocations: 4 kB / 344.7 MB, free: 3.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/2.573, allocations: 0 / 344.7 MB, free: 3.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001799/2.575, allocations: 241.8 kB / 344.9 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001624/2.577, allocations: 71.25 kB / 345 MB, free: 3.73 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006929/2.584, allocations: 2.444 MB / 347.4 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009195/2.585, allocations: 32.03 kB / 347.4 MB, free: 1.586 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/2.585, allocations: 14.38 kB / 347.5 MB, free: 1.574 MB / 282.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.0002859/2.585, allocations: 115.7 kB / 347.6 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/2.585, allocations: 35.62 kB / 347.6 MB, free: 1.422 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001451/2.586, allocations: 40.47 kB / 347.6 MB, free: 1.41 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/2.586, allocations: 4 kB / 347.6 MB, free: 1.406 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/2.586, allocations: 3.906 kB / 347.6 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/2.586, allocations: 7.984 kB / 347.7 MB, free: 1.395 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003805/2.589, allocations: 1.097 MB / 348.8 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/2.589, allocations: 0 / 348.8 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007607/2.59, allocations: 67.89 kB / 348.8 MB, free: 468 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/2.591, allocations: 227.8 kB / 349 MB, free: 288 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-05/2.592, allocations: 10.86 kB / 349.1 MB, free: 280 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005827/2.597, allocations: 2.347 MB / 351.4 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/2.597, allocations: 0 / 351.4 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002546/2.6, allocations: 0.8347 MB / 352.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003027/2.603, allocations: 1.43 MB / 353.7 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003915/2.604, allocations: 153.9 kB / 353.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/2.604, allocations: 4 kB / 353.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006696/2.604, allocations: 32.03 kB / 353.8 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/2.605, allocations: 47.28 kB / 353.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.512e-05/2.605, allocations: 26.48 kB / 353.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0002545/2.605, allocations: 148.5 kB / 354.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001976/2.607, allocations: 131.9 kB / 354.2 MB, free: 11.99 MB / 298.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.0004661/2.607, allocations: 138.8 kB / 354.3 MB, free: 11.85 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001816/2.609, allocations: 0.5422 MB / 354.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/2.609, allocations: 4 kB / 354.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/2.61, allocations: 365.5 kB / 355.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005484/2.611, allocations: 23.33 kB / 355.3 MB, free: 11.13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002397/2.613, allocations: 0.6044 MB / 355.9 MB, free: 10.58 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009191/2.614, allocations: 0.838 MB / 356.7 MB, free: 9.719 MB / 298.7 MB Notification: Performance of SimCode: time 1.513e-06/2.614, allocations: 4 kB / 356.7 MB, free: 9.715 MB / 298.7 MB