Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_1_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.097/2.097, allocations: 209.3 MB / 216.3 MB, free: 6.855 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 0.249/2.346, allocations: 51.02 MB / 267.3 MB, free: 5.23 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/2.486, allocations: 48.69 MB / 316 MB, free: 4.449 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3713/2.858, allocations: 89.48 MB / 405.5 MB, free: 3.484 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/2.858, allocations: 62.98 kB / 405.5 MB, free: 3.453 MB / 330.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 717 * Number of variables: 717 Notification: Performance of Generate backend data structure: time 0.3908/3.249, allocations: 66.23 MB / 471.7 MB, free: 4.727 MB / 394.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/3.249, allocations: 8 kB / 471.8 MB, free: 4.719 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003494/3.253, allocations: 415.8 kB / 472.2 MB, free: 4.309 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005398/3.258, allocations: 1.299 MB / 473.5 MB, free: 2.957 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001492/3.26, allocations: 0.4986 MB / 474 MB, free: 2.395 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002101/3.262, allocations: 191.7 kB / 474.1 MB, free: 2.207 MB / 394.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01666/3.278, allocations: 2.99 MB / 477.1 MB, free: 15.21 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01167/3.29, allocations: 2.805 MB / 479.9 MB, free: 12.3 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002697/3.291, allocations: 39.61 kB / 480 MB, free: 12.26 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006151/3.291, allocations: 4 kB / 480 MB, free: 12.25 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.845e-05/3.291, allocations: 68 kB / 480 MB, free: 12.19 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03431/3.326, allocations: 9.188 MB / 489.2 MB, free: 2.777 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01296/3.339, allocations: 2.255 MB / 491.5 MB, free: 440 kB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1862/3.525, allocations: 1.478 MB / 493 MB, free: 147.2 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004247/3.525, allocations: 57.28 kB / 493 MB, free: 147.2 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.927e-05/3.525, allocations: 101 kB / 493.1 MB, free: 147.2 MB / 410.8 MB Notification: Performance of pre-optimization done (n=359): time 6.863e-06/3.525, allocations: 0 / 493.1 MB, free: 147.2 MB / 410.8 MB Notification: Performance of matching and sorting (n=421): time 0.04765/3.573, allocations: 16.17 MB / 0.4974 GB, free: 138.9 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001765/3.573, allocations: 0.5633 MB / 0.4979 GB, free: 138.3 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002496/3.576, allocations: 1.086 MB / 0.499 GB, free: 138.1 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001086/3.577, allocations: 53.58 kB / 0.499 GB, free: 138.1 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006962/3.578, allocations: 0.7213 MB / 0.4997 GB, free: 137.7 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00221/3.58, allocations: 1.357 MB / 0.5011 GB, free: 137 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007509/3.581, allocations: 3.281 kB / 0.5011 GB, free: 137 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.000329/3.581, allocations: 465 kB / 0.5015 GB, free: 136.6 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006225/3.587, allocations: 1.319 MB / 0.5028 GB, free: 136.6 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008949/3.596, allocations: 2.027 MB / 0.5048 GB, free: 135.9 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008071/3.604, allocations: 1.346 MB / 0.5061 GB, free: 135.9 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.076e-05/3.605, allocations: 11.12 kB / 0.5061 GB, free: 135.9 MB / 410.8 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.02592/3.631, allocations: 4.566 MB / 0.5105 GB, free: 135.5 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.278e-05/3.631, allocations: 10.5 kB / 0.5106 GB, free: 135.5 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.389e-05/3.631, allocations: 18.62 kB / 0.5106 GB, free: 135.5 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01091/3.642, allocations: 1.894 MB / 0.5124 GB, free: 135.5 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01041/3.652, allocations: 0.8428 MB / 0.5132 GB, free: 135.5 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03492/3.687, allocations: 15.27 MB / 0.5282 GB, free: 123.4 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009617/3.697, allocations: 327.2 kB / 0.5285 GB, free: 123.4 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001733/3.699, allocations: 192.4 kB / 0.5287 GB, free: 123.4 MB / 410.8 MB 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 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: 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: 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 (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,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 391 * 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%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {2 22,2 22,2 25,2 24,1 6,1 6,1 12,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.00355/3.702, allocations: 239.1 kB / 0.5289 GB, free: 123.3 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00285/3.705, allocations: 270 kB / 0.5291 GB, free: 123.1 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002381/3.708, allocations: 0.5475 MB / 0.5297 GB, free: 122.8 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.147e-05/3.708, allocations: 42.31 kB / 0.5297 GB, free: 122.8 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-05/3.708, allocations: 7.688 kB / 0.5297 GB, free: 122.8 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001071/3.708, allocations: 23.55 kB / 0.5298 GB, free: 122.8 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03457/3.742, allocations: 9.577 MB / 0.5391 GB, free: 118.4 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.653e-05/3.743, allocations: 8.062 kB / 0.5391 GB, free: 118.4 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007954/3.751, allocations: 0.7486 MB / 0.5398 GB, free: 118.3 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01052/3.761, allocations: 1.775 MB / 0.5416 GB, free: 117.9 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001739/3.763, allocations: 77.94 kB / 0.5416 GB, free: 117.9 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02617/3.789, allocations: 14.77 MB / 0.5561 GB, free: 103.3 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.158e-05/3.789, allocations: 15.94 kB / 0.5561 GB, free: 103.2 MB / 410.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02683/3.816, allocations: 7.52 MB / 0.5634 GB, free: 95.86 MB / 410.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02632/3.842, allocations: 9.73 MB / 0.5729 GB, free: 86.34 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003066/3.846, allocations: 0.6889 MB / 0.5736 GB, free: 85.76 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001966/3.848, allocations: 47.14 kB / 0.5737 GB, free: 85.72 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008694/3.856, allocations: 311.4 kB / 0.5739 GB, free: 85.48 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003505/3.86, allocations: 497.4 kB / 0.5744 GB, free: 85.23 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001537/3.862, allocations: 168.5 kB / 0.5746 GB, free: 85.1 MB / 410.8 MB Notification: Performance of sort global known variables: time 0.00295/3.865, allocations: 0.7863 MB / 0.5754 GB, free: 84.4 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.008511/3.873, allocations: 0.8214 MB / 0.5762 GB, free: 83.6 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (299): * Single equations (assignments): 289 * 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.001531/3.875, allocations: 283.1 kB / 0.5764 GB, free: 83.35 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.01167/3.886, allocations: 4.121 MB / 0.5804 GB, free: 79.34 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.672e-05/3.886, allocations: 8.25 kB / 0.5805 GB, free: 79.33 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01137/3.898, allocations: 3.162 MB / 0.5835 GB, free: 76.27 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005059/3.903, allocations: 275.5 kB / 0.5838 GB, free: 76.06 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02175/3.925, allocations: 6.709 MB / 0.5904 GB, free: 69.95 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004285/3.929, allocations: 2.164 MB / 0.5925 GB, free: 68.2 MB / 410.8 MB Notification: Performance of SimCode: time 1.523e-06/3.929, allocations: 4 kB / 0.5925 GB, free: 68.2 MB / 410.8 MB