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.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 1.939/1.939, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.978e-05/2.988e-05, allocations: 4 kB / 269.4 MB, free: 6.406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08375/0.0838, allocations: 47.58 MB / 316.9 MB, free: 6.746 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3419/0.4258, allocations: 82.21 MB / 399.1 MB, free: 5.977 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/0.426, allocations: 67.78 kB / 399.2 MB, free: 5.941 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06635/0.4924, allocations: 11.82 MB / 411 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.762e-06/0.4925, allocations: 0 / 411 MB, free: 11.85 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.03e-05/0.4926, allocations: 8 kB / 411 MB, free: 11.84 MB / 330.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.002993/0.4956, allocations: 0.6989 MB / 411.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.524e-05/0.4957, allocations: 8.031 kB / 411.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008406/0.4965, allocations: 63.42 kB / 411.8 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/0.4977, allocations: 333.5 kB / 412.1 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003005/0.498, allocations: 100.2 kB / 412.2 MB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002266/0.4983, allocations: 53.28 kB / 412.3 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/0.5006, allocations: 0.4954 MB / 412.8 MB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.591e-05/0.5007, allocations: 3.375 kB / 412.8 MB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001459/0.5009, allocations: 23.98 kB / 412.8 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.508e-05/0.5009, allocations: 11.98 kB / 412.8 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00262/0.5036, allocations: 0.5336 MB / 413.3 MB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005209/0.5088, allocations: 1.154 MB / 414.5 MB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002155/0.511, allocations: 465.6 kB / 415 MB, free: 8.559 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/0.5123, allocations: 289 kB / 415.2 MB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001172/0.5125, allocations: 16.55 kB / 415.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.368e-05/0.5125, allocations: 34.56 kB / 415.3 MB, free: 8.332 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 7.057e-06/0.5126, allocations: 4 kB / 415.3 MB, free: 8.328 MB / 330.7 MB Notification: Performance of matching and sorting (n=71): time 0.009832/0.5224, allocations: 1.981 MB / 417.3 MB, free: 6.719 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.5226, allocations: 85.89 kB / 417.4 MB, free: 6.617 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007662/0.5234, allocations: 248.6 kB / 417.6 MB, free: 6.406 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001682/0.5236, allocations: 47.89 kB / 417.6 MB, free: 6.367 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002218/0.5238, allocations: 149.9 kB / 417.8 MB, free: 6.246 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004813/0.5243, allocations: 240.6 kB / 418 MB, free: 6.043 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.5245, allocations: 10.5 kB / 418 MB, free: 6.043 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003224/0.5248, allocations: 352.7 kB / 418.4 MB, free: 5.707 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.5261, allocations: 234.6 kB / 418.6 MB, free: 5.566 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/0.5274, allocations: 294.5 kB / 418.9 MB, free: 5.363 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.5286, allocations: 214.5 kB / 419.1 MB, free: 5.223 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.414e-06/0.5286, allocations: 4.031 kB / 419.1 MB, free: 5.219 MB / 330.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.004239/0.5329, allocations: 0.7919 MB / 419.9 MB, free: 4.648 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.49e-05/0.5329, allocations: 4 kB / 419.9 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.014e-05/0.533, allocations: 7.984 kB / 419.9 MB, free: 4.637 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00263/0.5357, allocations: 425.4 kB / 420.3 MB, free: 4.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.5368, allocations: 90.95 kB / 420.4 MB, free: 4.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003286/0.5401, allocations: 1.008 MB / 421.4 MB, free: 3.387 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.5415, allocations: 78.91 kB / 421.5 MB, free: 3.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002017/0.5417, allocations: 31.8 kB / 421.5 MB, free: 3.293 MB / 330.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): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0004744/0.5422, allocations: 145.8 kB / 421.7 MB, free: 3.164 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003405/0.5426, allocations: 47.39 kB / 421.7 MB, free: 3.117 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004021/0.5466, allocations: 0.8235 MB / 422.5 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.5467, allocations: 12 kB / 422.6 MB, free: 2.531 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.5467, allocations: 0 / 422.6 MB, free: 2.531 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.5467, allocations: 3.984 kB / 422.6 MB, free: 2.527 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004264/0.551, allocations: 1.651 MB / 424.2 MB, free: 1.223 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.145e-06/0.551, allocations: 0 / 424.2 MB, free: 1.223 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005824/0.5516, allocations: 83.88 kB / 424.3 MB, free: 1.141 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001325/0.553, allocations: 407 kB / 424.7 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.046e-05/0.5531, allocations: 20.8 kB / 424.7 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001658/0.5548, allocations: 0.9684 MB / 425.7 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.88e-06/0.5548, allocations: 7.953 kB / 425.7 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002994/0.5578, allocations: 1.195 MB / 426.9 MB, free: 15.1 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004601/0.5583, allocations: 185.4 kB / 427.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.5585, allocations: 15.62 kB / 427.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006445/0.5591, allocations: 71.12 kB / 427.1 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002833/0.5594, allocations: 100.9 kB / 427.2 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.163e-05/0.5595, allocations: 30.78 kB / 427.3 MB, free: 14.75 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003292/0.5599, allocations: 209.2 kB / 427.5 MB, free: 14.58 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.19e-07/0.5599, allocations: 4 kB / 427.5 MB, free: 14.58 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007252/0.5606, allocations: 153.1 kB / 427.6 MB, free: 14.45 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (40): * Single equations (assignments): 39 * 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.0003809/0.561, allocations: 161.3 kB / 427.8 MB, free: 14.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.5628, allocations: 0.6325 MB / 428.4 MB, free: 13.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.829e-06/0.5628, allocations: 0 / 428.4 MB, free: 13.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009966/0.5638, allocations: 349.4 kB / 428.8 MB, free: 13.6 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005184/0.5643, allocations: 39.69 kB / 428.8 MB, free: 13.58 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003046/0.5674, allocations: 0.9647 MB / 429.8 MB, free: 12.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005761/0.568, allocations: 0.8321 MB / 430.6 MB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003721/0.5684, allocations: 63.34 kB / 430.7 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.5686, allocations: 50.66 kB / 430.7 MB, free: 11.74 MB / 346.7 MB Notification: Performance of SimCode: time 1.677e-06/0.5686, allocations: 0 / 430.7 MB, free: 11.74 MB / 346.7 MB Notification: Performance of Templates: time 0.02217/0.5908, allocations: 8.629 MB / 439.3 MB, free: 3.129 MB / 346.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