Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_TestBearingConversion",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(ModelicaTest): time 2.324/2.324, allocations: 235 MB / 241.9 MB, free: 9.793 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1965/2.521, allocations: 57.18 MB / 299.1 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/2.798, allocations: 54.87 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4182/3.216, allocations: 95.55 MB / 449.5 MB, free: 32.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/3.216, allocations: 63.59 kB / 449.6 MB, free: 32.6 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.3377/3.554, allocations: 66.11 MB / 0.5036 GB, free: 17.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.252e-05/3.554, allocations: 9.156 kB / 0.5036 GB, free: 17.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004965/3.559, allocations: 414.5 kB / 0.504 GB, free: 17.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006663/3.566, allocations: 1.294 MB / 0.5053 GB, free: 16.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001808/3.568, allocations: 0.4934 MB / 0.5058 GB, free: 16.37 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001962/3.57, allocations: 198.6 kB / 0.5059 GB, free: 16.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01203/3.582, allocations: 2.92 MB / 0.5088 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01374/3.596, allocations: 2.782 MB / 0.5115 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003544/3.596, allocations: 39.61 kB / 0.5115 GB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001337/3.597, allocations: 4 kB / 0.5116 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.978e-05/3.597, allocations: 68 kB / 0.5116 GB, free: 11.19 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03061/3.628, allocations: 9.204 MB / 0.5206 GB, free: 1.773 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007261/3.635, allocations: 2.245 MB / 0.5228 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005779/3.641, allocations: 1.47 MB / 0.5242 GB, free: 13.92 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008288/3.642, allocations: 224.9 kB / 0.5244 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001101/3.642, allocations: 87.86 kB / 0.5245 GB, free: 13.57 MB / 394.7 MB Notification: Performance of pre-optimization done (n=366): time 9.739e-06/3.642, allocations: 0 / 0.5245 GB, free: 13.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=429): time 0.05652/3.699, allocations: 16.02 MB / 0.5402 GB, free: 12.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003066/3.699, allocations: 0.5582 MB / 0.5407 GB, free: 11.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003398/3.703, allocations: 1.038 MB / 0.5417 GB, free: 10.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001237/3.704, allocations: 57.62 kB / 0.5418 GB, free: 10.67 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/3.705, allocations: 0.6987 MB / 0.5425 GB, free: 9.957 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003276/3.708, allocations: 1.386 MB / 0.5438 GB, free: 8.551 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001464/3.71, allocations: 4 kB / 0.5438 GB, free: 8.547 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006338/3.71, allocations: 475 kB / 0.5443 GB, free: 8.074 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005862/3.716, allocations: 1.267 MB / 0.5455 GB, free: 6.801 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006812/3.723, allocations: 1.977 MB / 0.5475 GB, free: 4.551 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006024/3.729, allocations: 1.322 MB / 0.5487 GB, free: 3.234 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.084e-05/3.729, allocations: 7.906 kB / 0.5488 GB, free: 3.227 MB / 410.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.02092/3.75, allocations: 4.245 MB / 0.5529 GB, free: 14.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/3.75, allocations: 8.031 kB / 0.5529 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.174e-05/3.751, allocations: 23.98 kB / 0.5529 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009975/3.761, allocations: 1.696 MB / 0.5546 GB, free: 13.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009965/3.771, allocations: 0.8308 MB / 0.5554 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03293/3.804, allocations: 15.16 MB / 0.5702 GB, free: 12.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006355/3.81, allocations: 323.7 kB / 0.5705 GB, free: 12.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001637/3.812, allocations: 179.9 kB / 0.5707 GB, free: 11.91 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear1.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_2.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_2.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {1 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.002707/3.814, allocations: 252.8 kB / 0.5709 GB, free: 11.65 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001943/3.816, allocations: 268.8 kB / 0.5712 GB, free: 11.39 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007813/3.824, allocations: 1.475 MB / 0.5726 GB, free: 9.871 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001278/3.824, allocations: 44 kB / 0.5727 GB, free: 9.828 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.001e-05/3.825, allocations: 8 kB / 0.5727 GB, free: 9.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001435/3.825, allocations: 27.83 kB / 0.5727 GB, free: 9.793 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03785/3.863, allocations: 9.54 MB / 0.582 GB, free: 44 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.508e-05/3.863, allocations: 15.94 kB / 0.582 GB, free: 28 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009616/3.872, allocations: 0.7655 MB / 0.5828 GB, free: 15.26 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01106/3.883, allocations: 1.558 MB / 0.5843 GB, free: 13.67 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001326/3.885, allocations: 87.86 kB / 0.5844 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03102/3.916, allocations: 14.66 MB / 0.5987 GB, free: 14.13 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.792e-05/3.916, allocations: 11.94 kB / 0.5987 GB, free: 14.12 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02472/3.941, allocations: 7.362 MB / 0.6059 GB, free: 6.301 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2387/4.179, allocations: 9.534 MB / 0.6152 GB, free: 161.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00412/4.184, allocations: 0.6735 MB / 0.6159 GB, free: 161 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002439/4.186, allocations: 42.53 kB / 0.6159 GB, free: 161 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008985/4.195, allocations: 319.3 kB / 0.6162 GB, free: 161 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002416/4.198, allocations: 0.4893 MB / 0.6167 GB, free: 161 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001107/4.199, allocations: 162.5 kB / 0.6168 GB, free: 161 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001842/4.201, allocations: 0.7665 MB / 0.6176 GB, free: 160.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01299/4.214, allocations: 0.7866 MB / 0.6184 GB, free: 160.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 293 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002268/4.216, allocations: 248.1 kB / 0.6186 GB, free: 160.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01303/4.229, allocations: 4.184 MB / 0.6227 GB, free: 160.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.779e-05/4.229, allocations: 0 / 0.6227 GB, free: 160.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01607/4.245, allocations: 3.208 MB / 0.6258 GB, free: 159.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006806/4.252, allocations: 270.2 kB / 0.6261 GB, free: 159.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0308/4.283, allocations: 6.73 MB / 0.6326 GB, free: 157.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006674/4.29, allocations: 2.155 MB / 0.6348 GB, free: 156.5 MB / 474.7 MB Notification: Performance of SimCode: time 2.665e-06/4.29, allocations: 0 / 0.6348 GB, free: 156.5 MB / 474.7 MB