Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",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.627/1.627, allocations: 194.9 MB / 202.5 MB, free: 6.922 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2313/1.858, allocations: 46.83 MB / 249.3 MB, free: 5.324 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08779/1.946, allocations: 44.51 MB / 293.8 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2768/2.223, allocations: 76.93 MB / 370.8 MB, free: 7.129 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/2.223, allocations: 65.28 kB / 370.8 MB, free: 7.129 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.05079/2.274, allocations: 11.93 MB / 382.8 MB, free: 4.125 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/2.274, allocations: 11.91 kB / 382.8 MB, free: 4.121 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005059/2.275, allocations: 62.48 kB / 382.8 MB, free: 4.094 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005833/2.275, allocations: 332.5 kB / 383.2 MB, free: 3.824 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001434/2.275, allocations: 79.3 kB / 383.2 MB, free: 3.754 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/2.275, allocations: 25.78 kB / 383.3 MB, free: 3.754 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001348/2.277, allocations: 0.5228 MB / 383.8 MB, free: 3.684 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/2.278, allocations: 463.3 kB / 384.2 MB, free: 3.535 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.851e-05/2.278, allocations: 6.781 kB / 384.3 MB, free: 3.531 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.596e-05/2.278, allocations: 4 kB / 384.3 MB, free: 3.527 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/2.278, allocations: 11.66 kB / 384.3 MB, free: 3.527 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00288/2.281, allocations: 1.084 MB / 385.4 MB, free: 2.969 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000876/2.282, allocations: 374 kB / 385.7 MB, free: 2.922 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006201/2.282, allocations: 267.5 kB / 386 MB, free: 2.902 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.019e-05/2.283, allocations: 8.562 kB / 386 MB, free: 2.898 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.218e-05/2.283, allocations: 45.42 kB / 386 MB, free: 2.855 MB / 298.7 MB Notification: Performance of pre-optimization done (n=63): time 3.105e-06/2.283, allocations: 0 / 386 MB, free: 2.855 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.005632/2.288, allocations: 1.85 MB / 387.9 MB, free: 2.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/2.288, allocations: 89.42 kB / 388 MB, free: 1.992 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003492/2.289, allocations: 216.7 kB / 388.2 MB, free: 17.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.151e-05/2.289, allocations: 33.31 kB / 388.2 MB, free: 17.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.259e-05/2.289, allocations: 136 kB / 388.3 MB, free: 17.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/2.289, allocations: 227.5 kB / 388.6 MB, free: 17.56 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.048e-05/2.289, allocations: 3.906 kB / 388.6 MB, free: 17.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/2.289, allocations: 350.8 kB / 388.9 MB, free: 17.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006013/2.29, allocations: 223.4 kB / 389.1 MB, free: 17.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000639/2.291, allocations: 291.1 kB / 389.4 MB, free: 17.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007504/2.291, allocations: 211.9 kB / 389.6 MB, free: 17.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/2.291, allocations: 0 / 389.6 MB, free: 17.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002389/2.294, allocations: 0.7537 MB / 390.4 MB, free: 16.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/2.294, allocations: 7.625 kB / 390.4 MB, free: 16.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.056e-05/2.294, allocations: 4.062 kB / 390.4 MB, free: 16.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001544/2.295, allocations: 424.9 kB / 390.8 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007414/2.296, allocations: 88.66 kB / 390.9 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/2.298, allocations: 1.072 MB / 392 MB, free: 16.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/2.299, allocations: 81.08 kB / 392 MB, free: 16.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/2.299, allocations: 27.17 kB / 392.1 MB, free: 16.25 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" 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: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002943/2.3, allocations: 128.1 kB / 392.2 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001331/2.3, allocations: 38.78 kB / 392.2 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002403/2.302, allocations: 0.7676 MB / 393 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/2.302, allocations: 6.438 kB / 393 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/2.302, allocations: 1.25 kB / 393 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/2.302, allocations: 7.984 kB / 393 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004585/2.307, allocations: 1.551 MB / 394.6 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/2.307, allocations: 1.25 kB / 394.6 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007722/2.308, allocations: 86.5 kB / 394.7 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001516/2.309, allocations: 386.2 kB / 395 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-05/2.309, allocations: 24.06 kB / 395.1 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002005/2.311, allocations: 1.03 MB / 396.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/2.311, allocations: 1.312 kB / 396.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003387/2.315, allocations: 1.161 MB / 397.2 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004378/2.319, allocations: 1.848 MB / 399.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004462/2.32, allocations: 179.8 kB / 399.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001592/2.32, allocations: 8.188 kB / 399.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009343/2.321, allocations: 68.97 kB / 399.3 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000326/2.321, allocations: 105.8 kB / 399.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/2.321, allocations: 30.81 kB / 399.5 MB, free: 13.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002761/2.322, allocations: 178.2 kB / 399.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00175/2.323, allocations: 121.3 kB / 399.8 MB, free: 13.17 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005184/2.324, allocations: 147.7 kB / 399.9 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001918/2.326, allocations: 0.606 MB / 400.5 MB, free: 12.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/2.326, allocations: 0 / 400.5 MB, free: 12.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/2.327, allocations: 341 kB / 400.9 MB, free: 12.94 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006038/2.328, allocations: 22.89 kB / 400.9 MB, free: 12.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/2.33, allocations: 0.7245 MB / 401.6 MB, free: 12.6 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008499/2.331, allocations: 0.884 MB / 402.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of SimCode: time 1.202e-06/2.331, allocations: 0 / 402.5 MB, free: 11.8 MB / 314.7 MB