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.828/1.828, allocations: 194.9 MB / 210.6 MB, free: 8.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.863e-05/4.864e-05, allocations: 7.906 kB / 258.8 MB, free: 7.859 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2922, allocations: 44.49 MB / 303.3 MB, free: 12.97 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003391/0.2956, allocations: 2.13 MB / 305.4 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00232/0.298, allocations: 1.004 MB / 306.4 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001946/0.2982, allocations: 7.938 kB / 306.5 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.2984, allocations: 55.66 kB / 306.5 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005951/0.299, allocations: 163.4 kB / 306.7 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005182/0.2996, allocations: 179.7 kB / 306.8 MB, free: 10.03 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005029/0.3001, allocations: 307.8 kB / 307.1 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.3002, allocations: 52.97 kB / 307.2 MB, free: 9.68 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000399/0.3007, allocations: 231.4 kB / 307.4 MB, free: 9.453 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004656/0.3011, allocations: 275.3 kB / 307.7 MB, free: 9.184 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002832/0.3014, allocations: 91.88 kB / 307.8 MB, free: 9.094 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.3016, allocations: 32 kB / 307.8 MB, free: 9.062 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002944/0.3019, allocations: 111.7 kB / 307.9 MB, free: 8.953 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.302, allocations: 36 kB / 308 MB, free: 8.918 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006779/0.3027, allocations: 465.2 kB / 308.4 MB, free: 8.465 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.3027, allocations: 0 / 308.4 MB, free: 8.465 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.3027, allocations: 0 / 308.4 MB, free: 8.465 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.3028, allocations: 4 kB / 308.4 MB, free: 8.461 MB / 250.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.002015/0.3048, allocations: 0.6983 MB / 309.1 MB, free: 7.711 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.3048, allocations: 8.031 kB / 309.1 MB, free: 7.703 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005057/0.3053, allocations: 63.42 kB / 309.2 MB, free: 7.641 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007038/0.3061, allocations: 349.3 kB / 309.5 MB, free: 7.258 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.3062, allocations: 100.4 kB / 309.6 MB, free: 7.148 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.3064, allocations: 39.91 kB / 309.7 MB, free: 7.109 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.3081, allocations: 0.5682 MB / 310.2 MB, free: 6.531 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.3082, allocations: 0 / 310.2 MB, free: 6.531 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-05/0.3083, allocations: 16 kB / 310.2 MB, free: 6.516 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.3083, allocations: 8 kB / 310.3 MB, free: 6.508 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002427/0.3107, allocations: 0.648 MB / 310.9 MB, free: 5.855 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004456/0.3152, allocations: 1.326 MB / 312.2 MB, free: 4.473 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002393/0.3176, allocations: 0.5445 MB / 312.8 MB, free: 3.918 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.311e-05/0.3177, allocations: 12.56 kB / 312.8 MB, free: 3.906 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.3178, allocations: 39.12 kB / 312.8 MB, free: 3.859 MB / 250.7 MB Notification: Performance of pre-optimization done (n=61): time 3.256e-06/0.3178, allocations: 192 / 312.8 MB, free: 3.859 MB / 250.7 MB Notification: Performance of matching and sorting (n=69): time 0.01181/0.3296, allocations: 2.951 MB / 315.8 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.3297, allocations: 89.61 kB / 315.9 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005497/0.3303, allocations: 298.2 kB / 316.2 MB, free: 392 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.624e-05/0.3304, allocations: 49.69 kB / 316.2 MB, free: 336 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.3305, allocations: 153.6 kB / 316.4 MB, free: 176 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002685/0.3308, allocations: 225 kB / 316.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.377e-05/0.3309, allocations: 19.94 kB / 316.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.331, allocations: 350.8 kB / 316.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.3322, allocations: 289.2 kB / 317.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.3333, allocations: 366.4 kB / 317.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000955/0.3343, allocations: 259.2 kB / 317.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3343, allocations: 0 / 317.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003191/0.3375, allocations: 0.916 MB / 318.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.3375, allocations: 4.938 kB / 318.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3376, allocations: 12.09 kB / 318.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001727/0.3393, allocations: 461.9 kB / 319.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007183/0.34, allocations: 91.88 kB / 319.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002026/0.3421, allocations: 1.083 MB / 320.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009836/0.3431, allocations: 79.98 kB / 320.5 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.926e-05/0.3432, allocations: 27.98 kB / 320.5 MB, free: 11.97 MB / 266.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.0003255/0.3435, allocations: 181.7 kB / 320.7 MB, free: 11.78 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.3437, allocations: 39.53 kB / 320.7 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002011/0.3439, allocations: 71.72 kB / 320.8 MB, free: 11.67 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.3439, allocations: 4 kB / 320.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3439, allocations: 4 kB / 320.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.3439, allocations: 7.984 kB / 320.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005272/0.3492, allocations: 1.777 MB / 322.6 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.3493, allocations: 0 / 322.6 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007026/0.35, allocations: 79.89 kB / 322.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001587/0.3516, allocations: 444.5 kB / 323.1 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-05/0.3517, allocations: 23.97 kB / 323.1 MB, free: 9.262 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001981/0.3537, allocations: 1.04 MB / 324.1 MB, free: 8.195 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3537, allocations: 0 / 324.1 MB, free: 8.195 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00415/0.3578, allocations: 1.33 MB / 325.5 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003418/0.3582, allocations: 180.6 kB / 325.6 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.3584, allocations: 16 kB / 325.7 MB, free: 6.629 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008321/0.3592, allocations: 75.98 kB / 325.7 MB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003194/0.3595, allocations: 100.3 kB / 325.8 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-05/0.3596, allocations: 27.98 kB / 325.9 MB, free: 6.426 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004348/0.3601, allocations: 245.9 kB / 326.1 MB, free: 6.188 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3601, allocations: 0 / 326.1 MB, free: 6.188 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006564/0.3608, allocations: 148 kB / 326.2 MB, free: 6.043 MB / 266.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.0003231/0.3611, allocations: 147.2 kB / 326.4 MB, free: 5.891 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002528/0.3637, allocations: 0.7158 MB / 327.1 MB, free: 5.172 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3637, allocations: 3.938 kB / 327.1 MB, free: 5.168 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001479/0.3652, allocations: 396.2 kB / 327.5 MB, free: 4.785 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005045/0.3657, allocations: 41.64 kB / 327.5 MB, free: 4.742 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004377/0.3701, allocations: 1.357 MB / 328.9 MB, free: 3.352 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.3705, allocations: 0.8251 MB / 329.7 MB, free: 2.504 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003888/0.3709, allocations: 71.25 kB / 329.8 MB, free: 2.434 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002055/0.3712, allocations: 39.42 kB / 329.8 MB, free: 2.398 MB / 266.7 MB Notification: Performance of SimCode: time 9.12e-07/0.3712, allocations: 0 / 329.8 MB, free: 2.398 MB / 266.7 MB Notification: Performance of Templates: time 0.02451/0.3957, allocations: 8.918 MB / 338.7 MB, free: 9.492 MB / 282.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