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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 2.121/2.121, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.72e-05/2.73e-05, allocations: 5.406 kB / 292.7 MB, free: 8.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09109/0.09114, allocations: 50.42 MB / 343.1 MB, free: 5.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4385/0.5297, allocations: 83.51 MB / 426.6 MB, free: 10.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.5299, allocations: 73.2 kB / 426.7 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05058/0.5805, allocations: 12.01 MB / 438.7 MB, free: 488 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.177e-06/0.5806, allocations: 0 / 438.7 MB, free: 488 kB / 346.7 MB Notification: Performance of Transformations before backend: time 2.618e-05/0.5806, allocations: 8 kB / 438.7 MB, free: 480 kB / 346.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.0016/0.5822, allocations: 0.7012 MB / 439.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.5823, allocations: 8.031 kB / 439.4 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004281/0.5827, allocations: 63.42 kB / 439.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006096/0.5834, allocations: 325 kB / 439.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/0.5836, allocations: 102.9 kB / 439.9 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.5837, allocations: 38.19 kB / 439.9 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.5848, allocations: 0.5027 MB / 440.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.061e-05/0.5849, allocations: 3.906 kB / 440.4 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.592e-05/0.585, allocations: 20.08 kB / 440.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.585, allocations: 8 kB / 440.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.5863, allocations: 0.5393 MB / 441 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002689/0.589, allocations: 1.153 MB / 442.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.5901, allocations: 463.6 kB / 442.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006211/0.5907, allocations: 290.7 kB / 442.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.259e-05/0.5908, allocations: 12.55 kB / 442.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.5909, allocations: 38.88 kB / 442.9 MB, free: 12.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 3.841e-06/0.5909, allocations: 0 / 442.9 MB, free: 12.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.004987/0.5959, allocations: 1.985 MB / 444.9 MB, free: 11.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.569e-05/0.596, allocations: 85.89 kB / 445 MB, free: 11.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000409/0.5964, allocations: 250.2 kB / 445.2 MB, free: 11.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.801e-05/0.5965, allocations: 43.94 kB / 445.3 MB, free: 11.01 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.5967, allocations: 156 kB / 445.4 MB, free: 10.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002683/0.597, allocations: 234.1 kB / 445.7 MB, free: 10.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.97e-05/0.597, allocations: 14.31 kB / 445.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.5972, allocations: 347.8 kB / 446 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005821/0.5978, allocations: 236.5 kB / 446.2 MB, free: 10.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006467/0.5985, allocations: 297.6 kB / 446.5 MB, free: 10.01 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005541/0.5991, allocations: 216.3 kB / 446.7 MB, free: 9.859 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.594e-06/0.5991, allocations: 4 kB / 446.7 MB, free: 9.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002058/0.6012, allocations: 0.7863 MB / 447.5 MB, free: 9.289 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.6012, allocations: 8 kB / 447.5 MB, free: 9.281 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.364e-05/0.6012, allocations: 3.984 kB / 447.5 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.6026, allocations: 431.9 kB / 448 MB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005295/0.6032, allocations: 87.62 kB / 448 MB, free: 8.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001678/0.6049, allocations: 1.006 MB / 449.1 MB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006596/0.6056, allocations: 82.19 kB / 449.1 MB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.6057, allocations: 35.16 kB / 449.2 MB, free: 7.926 MB / 362.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.0002432/0.6059, allocations: 146.1 kB / 449.3 MB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.6061, allocations: 43.47 kB / 449.4 MB, free: 7.754 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/0.6083, allocations: 0.828 MB / 450.2 MB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/0.6083, allocations: 8 kB / 450.2 MB, free: 7.172 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.6083, allocations: 3.953 kB / 450.2 MB, free: 7.168 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.6083, allocations: 4.047 kB / 450.2 MB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00409/0.6124, allocations: 1.642 MB / 451.8 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.895e-06/0.6125, allocations: 0 / 451.8 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005313/0.613, allocations: 83.88 kB / 451.9 MB, free: 5.512 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001268/0.6143, allocations: 409.1 kB / 452.3 MB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.382e-05/0.6144, allocations: 23.98 kB / 452.3 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001656/0.6161, allocations: 0.9665 MB / 453.3 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.6161, allocations: 0 / 453.3 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003004/0.6191, allocations: 1.205 MB / 454.5 MB, free: 2.852 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004113/0.6196, allocations: 180.6 kB / 454.7 MB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.6197, allocations: 23.98 kB / 454.7 MB, free: 2.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006103/0.6203, allocations: 68 kB / 454.8 MB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000273/0.6206, allocations: 100.4 kB / 454.9 MB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.563e-05/0.6207, allocations: 35.97 kB / 454.9 MB, free: 2.434 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003268/0.6211, allocations: 203.1 kB / 455.1 MB, free: 2.234 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.97e-07/0.6211, allocations: 0 / 455.1 MB, free: 2.234 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007194/0.6218, allocations: 151.9 kB / 455.3 MB, free: 2.086 MB / 362.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.0003496/0.6222, allocations: 163.1 kB / 455.4 MB, free: 1.914 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.6239, allocations: 0.6287 MB / 456.1 MB, free: 1.277 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.343e-06/0.6239, allocations: 4.062 kB / 456.1 MB, free: 1.273 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009747/0.6249, allocations: 349.9 kB / 456.4 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005044/0.6255, allocations: 40.83 kB / 456.4 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.6285, allocations: 0.9718 MB / 457.4 MB, free: 15.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000564/0.629, allocations: 0.8329 MB / 458.2 MB, free: 15.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005999/0.6297, allocations: 67.33 kB / 458.3 MB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002555/0.6299, allocations: 43.41 kB / 458.3 MB, free: 14.92 MB / 378.7 MB Notification: Performance of SimCode: time 1.714e-06/0.63, allocations: 0 / 458.3 MB, free: 14.92 MB / 378.7 MB Notification: Performance of Templates: time 0.0219/0.6519, allocations: 8.623 MB / 467 MB, free: 6.316 MB / 378.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.f,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