Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.945/1.945, allocations: 194.9 MB / 202.5 MB, free: 6.918 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2607/2.205, allocations: 46.82 MB / 249.3 MB, free: 5.324 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08671/2.292, allocations: 44.51 MB / 293.8 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2728/2.565, allocations: 74.96 MB / 368.8 MB, free: 7.117 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/2.565, allocations: 70.39 kB / 368.9 MB, free: 7.117 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.04105/2.606, allocations: 9.48 MB / 378.3 MB, free: 5.551 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/2.606, allocations: 11.75 kB / 378.4 MB, free: 5.551 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004873/2.607, allocations: 50.72 kB / 378.4 MB, free: 5.527 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005041/2.607, allocations: 274.7 kB / 378.7 MB, free: 5.285 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/2.608, allocations: 79.3 kB / 378.8 MB, free: 5.215 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.119e-05/2.608, allocations: 15.31 kB / 378.8 MB, free: 5.215 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009211/2.609, allocations: 358.7 kB / 379.1 MB, free: 5.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007028/2.609, allocations: 320.8 kB / 379.4 MB, free: 5.031 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/2.609, allocations: 0 / 379.4 MB, free: 5.031 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.173e-05/2.609, allocations: 7.75 kB / 379.4 MB, free: 5.027 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/2.609, allocations: 7.75 kB / 379.4 MB, free: 5.023 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002621/2.612, allocations: 1.108 MB / 380.6 MB, free: 4.348 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006011/2.613, allocations: 256.8 kB / 380.8 MB, free: 4.309 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003591/2.613, allocations: 155.7 kB / 381 MB, free: 4.293 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.266e-05/2.613, allocations: 7.625 kB / 381 MB, free: 4.293 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/2.613, allocations: 38.31 kB / 381 MB, free: 4.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 3.327e-06/2.613, allocations: 0 / 381 MB, free: 4.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003599/2.617, allocations: 1.225 MB / 382.2 MB, free: 19.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/2.617, allocations: 84.83 kB / 382.3 MB, free: 19.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002777/2.617, allocations: 182.3 kB / 382.5 MB, free: 19.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.902e-05/2.617, allocations: 37.45 kB / 382.5 MB, free: 19.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.381e-05/2.617, allocations: 131.8 kB / 382.7 MB, free: 19.26 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/2.618, allocations: 136.6 kB / 382.8 MB, free: 19.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.577e-05/2.618, allocations: 0 / 382.8 MB, free: 19.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/2.618, allocations: 338.1 kB / 383.1 MB, free: 18.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003719/2.618, allocations: 144.3 kB / 383.3 MB, free: 18.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003962/2.619, allocations: 191.1 kB / 383.4 MB, free: 18.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000481/2.619, allocations: 136.6 kB / 383.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/2.619, allocations: 0 / 383.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001375/2.62, allocations: 489.7 kB / 384.1 MB, free: 18.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/2.62, allocations: 7.859 kB / 384.1 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/2.62, allocations: 7.812 kB / 384.1 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/2.622, allocations: 222.1 kB / 384.3 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004474/2.622, allocations: 58.78 kB / 384.3 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004688/2.627, allocations: 2.401 MB / 386.7 MB, free: 17.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005851/2.627, allocations: 27.38 kB / 386.8 MB, free: 17.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.321e-05/2.627, allocations: 18.83 kB / 386.8 MB, free: 17.06 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: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002262/2.628, allocations: 120.5 kB / 386.9 MB, free: 16.94 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/2.628, allocations: 31.06 kB / 386.9 MB, free: 16.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001045/2.628, allocations: 36.42 kB / 387 MB, free: 16.92 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/2.628, allocations: 3.906 kB / 387 MB, free: 16.92 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/2.628, allocations: 3.984 kB / 387 MB, free: 16.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/2.628, allocations: 0 / 387 MB, free: 16.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002312/2.63, allocations: 0.9488 MB / 387.9 MB, free: 16.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/2.63, allocations: 0 / 387.9 MB, free: 16.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004352/2.631, allocations: 46.34 kB / 388 MB, free: 16.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009914/2.632, allocations: 215 kB / 388.2 MB, free: 16.44 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.646e-05/2.632, allocations: 11.08 kB / 388.2 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004371/2.636, allocations: 2.35 MB / 390.5 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/2.636, allocations: 0 / 390.5 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001653/2.638, allocations: 0.7227 MB / 391.3 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002205/2.64, allocations: 1.277 MB / 392.5 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002373/2.64, allocations: 149.1 kB / 392.7 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.379e-05/2.641, allocations: 128 / 392.7 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005131/2.641, allocations: 23.14 kB / 392.7 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/2.641, allocations: 46.56 kB / 392.8 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.394e-05/2.641, allocations: 18.48 kB / 392.8 MB, free: 13.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001792/2.641, allocations: 150.8 kB / 392.9 MB, free: 13.88 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001652/2.643, allocations: 119.3 kB / 393 MB, free: 13.86 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0003121/2.643, allocations: 144.1 kB / 393.2 MB, free: 13.76 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001252/2.645, allocations: 490.5 kB / 393.7 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/2.645, allocations: 7.719 kB / 393.7 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007373/2.645, allocations: 318.9 kB / 394 MB, free: 13.49 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004472/2.646, allocations: 26.72 kB / 394 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/2.648, allocations: 0.5284 MB / 394.5 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006268/2.648, allocations: 0.8086 MB / 395.3 MB, free: 12.45 MB / 314.7 MB Notification: Performance of SimCode: time 1.332e-06/2.648, allocations: 0 / 395.3 MB, free: 12.45 MB / 314.7 MB