Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 1.764/1.764, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.613e-05/3.621e-05, allocations: 4 kB / 225 MB, free: 2.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2508, allocations: 38.76 MB / 263.8 MB, free: 9.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1101/0.3609, allocations: 72.53 MB / 336.3 MB, free: 1.191 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002289/0.3612, allocations: 71.95 kB / 336.4 MB, free: 1.121 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05141/0.4126, allocations: 11.88 MB / 348.3 MB, free: 5.203 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.419e-06/0.4127, allocations: 3.938 kB / 348.3 MB, free: 5.199 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.023e-05/0.4127, allocations: 8 kB / 348.3 MB, free: 5.191 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.001709/0.4145, allocations: 0.7127 MB / 349 MB, free: 4.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.4145, allocations: 12.03 kB / 349 MB, free: 4.418 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004342/0.415, allocations: 63.42 kB / 349.1 MB, free: 4.355 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006437/0.4156, allocations: 333.3 kB / 349.4 MB, free: 3.988 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/0.4158, allocations: 100.1 kB / 349.5 MB, free: 3.879 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.416, allocations: 47.95 kB / 349.5 MB, free: 3.832 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.4172, allocations: 0.5129 MB / 350 MB, free: 3.309 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.853e-05/0.4173, allocations: 4 kB / 350 MB, free: 3.305 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.852e-05/0.4174, allocations: 16 kB / 350.1 MB, free: 3.289 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.4174, allocations: 8 kB / 350.1 MB, free: 3.281 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.4188, allocations: 0.5872 MB / 350.7 MB, free: 2.691 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003868/0.4227, allocations: 1.227 MB / 351.9 MB, free: 1.406 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001874/0.4246, allocations: 0.4885 MB / 352.4 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009682/0.4256, allocations: 290.5 kB / 352.7 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.104e-05/0.4257, allocations: 8.562 kB / 352.7 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.941e-05/0.4257, allocations: 39.25 kB / 352.7 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 5.086e-06/0.4258, allocations: 4 kB / 352.7 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.007435/0.4332, allocations: 2.042 MB / 354.8 MB, free: 14.42 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.106e-05/0.4333, allocations: 89.61 kB / 354.8 MB, free: 14.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000632/0.434, allocations: 271.4 kB / 355.1 MB, free: 14.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000121/0.4341, allocations: 45.64 kB / 355.1 MB, free: 13.99 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.4343, allocations: 157.6 kB / 355.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003681/0.4347, allocations: 236.7 kB / 355.5 MB, free: 13.6 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.431e-05/0.4348, allocations: 8 kB / 355.5 MB, free: 13.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002518/0.4351, allocations: 350.8 kB / 355.9 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009557/0.4361, allocations: 261.5 kB / 356.1 MB, free: 12.99 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/0.4371, allocations: 322.4 kB / 356.5 MB, free: 12.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000855/0.438, allocations: 230 kB / 356.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.326e-06/0.438, allocations: 4 kB / 356.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0031/0.4411, allocations: 0.8333 MB / 357.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.4412, allocations: 8.062 kB / 357.5 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.4412, allocations: 0 / 357.5 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002166/0.4434, allocations: 0.5337 MB / 358.1 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007817/0.4442, allocations: 87.88 kB / 358.1 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.4463, allocations: 1.068 MB / 359.2 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000687/0.447, allocations: 84.02 kB / 359.3 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.4471, allocations: 31.95 kB / 359.3 MB, free: 9.75 MB / 314.7 MB 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.0002349/0.4474, allocations: 137.6 kB / 359.5 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.4475, allocations: 43.44 kB / 359.5 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000171/0.4477, allocations: 67.77 kB / 359.6 MB, free: 9.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.4477, allocations: 8 kB / 359.6 MB, free: 9.492 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.241e-06/0.4478, allocations: 0 / 359.6 MB, free: 9.492 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.4478, allocations: 3.984 kB / 359.6 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004485/0.4523, allocations: 1.757 MB / 361.3 MB, free: 7.668 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.321e-06/0.4523, allocations: 0 / 361.3 MB, free: 7.668 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005605/0.4529, allocations: 87.94 kB / 361.4 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001494/0.4544, allocations: 0.5088 MB / 361.9 MB, free: 7.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.4545, allocations: 19.97 kB / 361.9 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001795/0.4563, allocations: 1.036 MB / 363 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.979e-06/0.4564, allocations: 0 / 363 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003054/0.4594, allocations: 1.265 MB / 364.3 MB, free: 4.695 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003967/0.4599, allocations: 176.5 kB / 364.4 MB, free: 4.504 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001442/0.46, allocations: 27.94 kB / 364.5 MB, free: 4.477 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006185/0.4607, allocations: 72 kB / 364.5 MB, free: 4.406 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002698/0.4609, allocations: 100.4 kB / 364.6 MB, free: 4.309 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.158e-05/0.461, allocations: 23.98 kB / 364.6 MB, free: 4.285 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003462/0.4614, allocations: 223.1 kB / 364.9 MB, free: 4.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.77e-07/0.4614, allocations: 0 / 364.9 MB, free: 4.07 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007723/0.4622, allocations: 163.9 kB / 365 MB, free: 3.91 MB / 314.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.0003923/0.4626, allocations: 178.8 kB / 365.2 MB, free: 3.723 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.4643, allocations: 0.6192 MB / 365.8 MB, free: 3.102 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.193e-06/0.4644, allocations: 0 / 365.8 MB, free: 3.102 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009387/0.4653, allocations: 350 kB / 366.2 MB, free: 2.762 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004828/0.4658, allocations: 40.86 kB / 366.2 MB, free: 2.719 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003003/0.4688, allocations: 0.9749 MB / 367.2 MB, free: 1.719 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005862/0.4694, allocations: 0.8249 MB / 368 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003799/0.4698, allocations: 71.27 kB / 368.1 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002302/0.4701, allocations: 47.41 kB / 368.1 MB, free: 0.75 MB / 314.7 MB Notification: Performance of SimCode: time 2.043e-06/0.4701, allocations: 0 / 368.1 MB, free: 0.75 MB / 314.7 MB Notification: Performance of Templates: time 0.2045/0.6746, allocations: 8.521 MB / 376.6 MB, free: 92.61 MB / 314.7 MB "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.flange.phi,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi