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.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 1.774/1.774, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.767e-05/2.786e-05, allocations: 0 / 255.4 MB, free: 2.742 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0771/0.07715, allocations: 44.51 MB / 299.9 MB, free: 6.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3355/0.4127, allocations: 77.67 MB / 377.6 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.4129, allocations: 69.38 kB / 377.6 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04583/0.4588, allocations: 11.53 MB / 389.1 MB, free: 20.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.4588, allocations: 0 / 389.1 MB, free: 20.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.59e-05/0.4589, allocations: 11.8 kB / 389.2 MB, free: 20.82 MB / 314.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.001364/0.4603, allocations: 0.697 MB / 389.9 MB, free: 20.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.4603, allocations: 11.59 kB / 389.9 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004201/0.4607, allocations: 66.19 kB / 389.9 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005351/0.4613, allocations: 329.6 kB / 390.3 MB, free: 20.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001431/0.4615, allocations: 102.2 kB / 390.4 MB, free: 20.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.4616, allocations: 37.72 kB / 390.4 MB, free: 20.01 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.4626, allocations: 0.5013 MB / 390.9 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.687e-05/0.4627, allocations: 7.812 kB / 390.9 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.201e-05/0.4628, allocations: 14.22 kB / 390.9 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.4628, allocations: 7.812 kB / 390.9 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.464, allocations: 0.5423 MB / 391.5 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002434/0.4665, allocations: 1.157 MB / 392.6 MB, free: 19.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.4675, allocations: 465.2 kB / 393.1 MB, free: 19.51 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000606/0.4681, allocations: 285.8 kB / 393.4 MB, free: 19.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.584e-05/0.4682, allocations: 12.39 kB / 393.4 MB, free: 19.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.4683, allocations: 34.88 kB / 393.4 MB, free: 19.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 3.4e-06/0.4683, allocations: 0 / 393.4 MB, free: 19.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.004678/0.473, allocations: 1.979 MB / 395.4 MB, free: 18.85 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.473, allocations: 89.33 kB / 395.5 MB, free: 18.76 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000331/0.4734, allocations: 250.1 kB / 395.7 MB, free: 18.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.936e-05/0.4735, allocations: 55.19 kB / 395.8 MB, free: 18.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.914e-05/0.4736, allocations: 153.7 kB / 395.9 MB, free: 18.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.4738, allocations: 236.8 kB / 396.1 MB, free: 18.37 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.758e-05/0.4738, allocations: 10.88 kB / 396.2 MB, free: 18.37 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.274e-05/0.4739, allocations: 355.1 kB / 396.5 MB, free: 18.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005626/0.4745, allocations: 236.2 kB / 396.7 MB, free: 18.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005783/0.4751, allocations: 299.2 kB / 397 MB, free: 18.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005181/0.4756, allocations: 224.2 kB / 397.2 MB, free: 17.99 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.4757, allocations: 0 / 397.2 MB, free: 17.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001963/0.4776, allocations: 0.7878 MB / 398 MB, free: 17.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.4777, allocations: 9.5 kB / 398 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.4777, allocations: 32 / 398 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/0.479, allocations: 432.1 kB / 398.5 MB, free: 17.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000508/0.4795, allocations: 89.73 kB / 398.6 MB, free: 17.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001473/0.481, allocations: 1.001 MB / 399.6 MB, free: 17.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000704/0.4817, allocations: 78.75 kB / 399.6 MB, free: 17.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.4819, allocations: 33.42 kB / 399.7 MB, free: 17.32 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): 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.0001991/0.4821, allocations: 143.9 kB / 399.8 MB, free: 17.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.4822, allocations: 39 kB / 399.8 MB, free: 17.19 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.4841, allocations: 0.8252 MB / 400.7 MB, free: 17.1 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.4842, allocations: 7.75 kB / 400.7 MB, free: 17.1 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.307e-06/0.4842, allocations: 0 / 400.7 MB, free: 17.1 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.4842, allocations: 7.547 kB / 400.7 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003736/0.4879, allocations: 1.654 MB / 402.3 MB, free: 16.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.524e-06/0.488, allocations: 0 / 402.3 MB, free: 16.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004957/0.4885, allocations: 85.23 kB / 402.4 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001106/0.4896, allocations: 389.8 kB / 402.8 MB, free: 16.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.386e-05/0.4897, allocations: 32.59 kB / 402.8 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001365/0.4911, allocations: 0.9773 MB / 403.8 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.56e-06/0.4911, allocations: 3.938 kB / 403.8 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00278/0.4939, allocations: 1.191 MB / 405 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003514/0.4943, allocations: 185.8 kB / 405.2 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.4944, allocations: 18.53 kB / 405.2 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005785/0.495, allocations: 71.91 kB / 405.3 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/0.4953, allocations: 107.9 kB / 405.4 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.342e-05/0.4954, allocations: 30.34 kB / 405.4 MB, free: 15.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002542/0.4956, allocations: 208.4 kB / 405.6 MB, free: 15.61 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.8e-07/0.4957, allocations: 0 / 405.6 MB, free: 15.61 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007/0.4964, allocations: 150.2 kB / 405.8 MB, free: 15.6 MB / 314.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.0002907/0.4967, allocations: 164 kB / 405.9 MB, free: 15.49 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.4982, allocations: 0.6405 MB / 406.6 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.698e-06/0.4982, allocations: 0 / 406.6 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008896/0.4991, allocations: 339.6 kB / 406.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000505/0.4996, allocations: 42.41 kB / 406.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.5025, allocations: 0.9658 MB / 407.9 MB, free: 15.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002826/0.5028, allocations: 0.8331 MB / 408.7 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003702/0.5032, allocations: 61.7 kB / 408.8 MB, free: 14.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002141/0.5034, allocations: 38.38 kB / 408.8 MB, free: 14.39 MB / 314.7 MB Notification: Performance of SimCode: time 1.811e-06/0.5034, allocations: 0 / 408.8 MB, free: 14.39 MB / 314.7 MB Notification: Performance of Templates: time 0.01865/0.5221, allocations: 8.626 MB / 417.5 MB, free: 11.29 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