Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_1_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.739/1.739, allocations: 171.2 MB / 178.2 MB, free: 8.277 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2318/1.971, allocations: 41.1 MB / 219.3 MB, free: 11.17 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.099/2.07, allocations: 38.76 MB / 258 MB, free: 4.34 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2991/2.369, allocations: 72.1 MB / 330.1 MB, free: 15.98 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004001/2.37, allocations: 72.89 kB / 330.2 MB, free: 15.95 MB / 282.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.08909/2.459, allocations: 12.31 MB / 342.5 MB, free: 5.488 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/2.459, allocations: 8 kB / 342.5 MB, free: 5.48 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005879/2.459, allocations: 71.31 kB / 342.6 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007528/2.46, allocations: 326.2 kB / 342.9 MB, free: 5.086 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/2.46, allocations: 84.17 kB / 343 MB, free: 4.992 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/2.46, allocations: 35.28 kB / 343 MB, free: 4.961 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002158/2.463, allocations: 0.5604 MB / 343.6 MB, free: 4.555 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/2.464, allocations: 485.5 kB / 344 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.052e-05/2.464, allocations: 0 / 344 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.808e-05/2.464, allocations: 0 / 344 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/2.464, allocations: 12 kB / 344.1 MB, free: 4.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004219/2.468, allocations: 1.162 MB / 345.2 MB, free: 3.23 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009775/2.469, allocations: 370.5 kB / 345.6 MB, free: 2.977 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/2.47, allocations: 275.2 kB / 345.8 MB, free: 2.805 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.09e-05/2.471, allocations: 4.5 kB / 345.9 MB, free: 2.801 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.969e-05/2.471, allocations: 42.94 kB / 345.9 MB, free: 2.754 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 5.53e-06/2.471, allocations: 0 / 345.9 MB, free: 2.754 MB / 282.7 MB Notification: Performance of matching and sorting (n=69): time 0.007933/2.479, allocations: 1.898 MB / 347.8 MB, free: 1.145 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.163e-05/2.479, allocations: 81.77 kB / 347.9 MB, free: 1.047 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004687/2.479, allocations: 238.9 kB / 348.1 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001554/2.479, allocations: 33.69 kB / 348.1 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/2.48, allocations: 140.4 kB / 348.3 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002771/2.48, allocations: 219.7 kB / 348.5 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.226e-05/2.48, allocations: 3.938 kB / 348.5 MB, free: 500 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002012/2.48, allocations: 354.7 kB / 348.8 MB, free: 152 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008478/2.481, allocations: 245.9 kB / 349.1 MB, free: 15.99 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009256/2.482, allocations: 303.2 kB / 349.4 MB, free: 15.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/2.483, allocations: 233.2 kB / 349.6 MB, free: 15.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/2.483, allocations: 0 / 349.6 MB, free: 15.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002726/2.486, allocations: 0.777 MB / 350.4 MB, free: 15.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/2.486, allocations: 7.906 kB / 350.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/2.486, allocations: 4 kB / 350.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003014/2.489, allocations: 0.5101 MB / 350.9 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/2.49, allocations: 95.81 kB / 351 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004478/2.495, allocations: 1.146 MB / 352.1 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001869/2.497, allocations: 75.98 kB / 352.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002624/2.497, allocations: 30.42 kB / 352.2 MB, free: 13.5 MB / 298.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): 45 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0005023/2.498, allocations: 121.4 kB / 352.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003715/2.498, allocations: 39.53 kB / 352.4 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003528/2.498, allocations: 53.83 kB / 352.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.747e-05/2.498, allocations: 8 kB / 352.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.711e-05/2.498, allocations: 0 / 352.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-05/2.499, allocations: 7.922 kB / 352.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009365/2.508, allocations: 1.655 MB / 354.1 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.502e-05/2.508, allocations: 0 / 354.1 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/2.509, allocations: 90.84 kB / 354.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00199/2.511, allocations: 495.2 kB / 354.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/2.511, allocations: 11.8 kB / 354.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002815/2.514, allocations: 1.095 MB / 355.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.518e-06/2.514, allocations: 0 / 355.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003925/2.518, allocations: 1.226 MB / 357 MB, free: 9.66 MB / 298.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008294/2.527, allocations: 1.938 MB / 359 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/2.528, allocations: 180.5 kB / 359.1 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003873/2.528, allocations: 8 kB / 359.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/2.53, allocations: 68 kB / 359.2 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004527/2.53, allocations: 96.45 kB / 359.3 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001746/2.531, allocations: 31.97 kB / 359.3 MB, free: 7.652 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.000523/2.531, allocations: 185.2 kB / 359.5 MB, free: 7.473 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00286/2.534, allocations: 139.9 kB / 359.7 MB, free: 7.336 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: 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 (39): * Single equations (assignments): 38 * 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.0005996/2.535, allocations: 175 kB / 359.8 MB, free: 7.152 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00214/2.537, allocations: 0.5888 MB / 360.4 MB, free: 6.562 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/2.537, allocations: 0 / 360.4 MB, free: 6.562 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/2.538, allocations: 334.2 kB / 360.7 MB, free: 6.238 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006245/2.539, allocations: 24.39 kB / 360.8 MB, free: 6.215 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003147/2.542, allocations: 0.7301 MB / 361.5 MB, free: 5.461 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001047/2.543, allocations: 0.8791 MB / 362.4 MB, free: 4.551 MB / 298.7 MB Notification: Performance of SimCode: time 1.312e-06/2.543, allocations: 0 / 362.4 MB, free: 4.551 MB / 298.7 MB