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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 2.083/2.083, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.907e-05/2.912e-05, allocations: 4 kB / 292.1 MB, free: 8.363 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08981/0.08987, allocations: 50.41 MB / 342.6 MB, free: 5.934 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3627/0.4526, allocations: 83.52 MB / 426.1 MB, free: 10.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.4529, allocations: 69.45 kB / 426.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05079/0.5037, allocations: 12.02 MB / 438.2 MB, free: 500 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.991e-06/0.5037, allocations: 0 / 438.2 MB, free: 500 kB / 346.7 MB Notification: Performance of Transformations before backend: time 2.738e-05/0.5038, allocations: 8 kB / 438.2 MB, free: 492 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.001608/0.5054, allocations: 0.7009 MB / 438.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.5054, allocations: 12.03 kB / 438.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004224/0.5059, allocations: 62.61 kB / 438.9 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006018/0.5065, allocations: 328.2 kB / 439.3 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001649/0.5067, allocations: 97.05 kB / 439.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.5068, allocations: 37.94 kB / 439.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.508, allocations: 0.4951 MB / 439.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.268e-05/0.508, allocations: 11.91 kB / 439.9 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.362e-05/0.5081, allocations: 24.27 kB / 439.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.5081, allocations: 8 kB / 439.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.5095, allocations: 0.5368 MB / 440.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002712/0.5122, allocations: 1.154 MB / 441.6 MB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.5133, allocations: 461.8 kB / 442.1 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006281/0.514, allocations: 287.4 kB / 442.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.771e-05/0.514, allocations: 8.547 kB / 442.4 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.5141, allocations: 38.31 kB / 442.4 MB, free: 13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 4.154e-06/0.5141, allocations: 4 kB / 442.4 MB, free: 12.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.005074/0.5192, allocations: 1.991 MB / 444.4 MB, free: 11.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.152e-05/0.5193, allocations: 89.08 kB / 444.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004025/0.5197, allocations: 248.6 kB / 444.7 MB, free: 11.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.638e-05/0.5198, allocations: 44.94 kB / 444.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.52, allocations: 155.6 kB / 444.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002596/0.5202, allocations: 234.5 kB / 445.1 MB, free: 10.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.332e-05/0.5203, allocations: 10.06 kB / 445.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001978/0.5205, allocations: 352.4 kB / 445.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005977/0.5211, allocations: 236.8 kB / 445.7 MB, free: 10.22 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006581/0.5218, allocations: 297.5 kB / 446 MB, free: 10.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005453/0.5224, allocations: 216 kB / 446.2 MB, free: 9.871 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.168e-06/0.5224, allocations: 0 / 446.2 MB, free: 9.871 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002071/0.5244, allocations: 0.7935 MB / 447 MB, free: 9.297 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.5245, allocations: 4 kB / 447 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.081e-05/0.5245, allocations: 4 kB / 447 MB, free: 9.289 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001395/0.5259, allocations: 429.1 kB / 447.5 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005257/0.5265, allocations: 91 kB / 447.5 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001691/0.5282, allocations: 1.003 MB / 448.5 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006366/0.5288, allocations: 81.98 kB / 448.6 MB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.529, allocations: 27.3 kB / 448.7 MB, free: 7.945 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.0002292/0.5292, allocations: 150.4 kB / 448.8 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.5294, allocations: 39.53 kB / 448.8 MB, free: 7.773 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002097/0.5315, allocations: 0.827 MB / 449.7 MB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.214e-05/0.5315, allocations: 8 kB / 449.7 MB, free: 7.199 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.5315, allocations: 3.953 kB / 449.7 MB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.5316, allocations: 3.984 kB / 449.7 MB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004232/0.5358, allocations: 1.634 MB / 451.3 MB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.932e-06/0.5359, allocations: 8.062 kB / 451.3 MB, free: 5.637 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005576/0.5364, allocations: 87.94 kB / 451.4 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001327/0.5378, allocations: 413 kB / 451.8 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.55e-05/0.5379, allocations: 15.98 kB / 451.8 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001685/0.5396, allocations: 0.9665 MB / 452.8 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.902e-06/0.5396, allocations: 0 / 452.8 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003084/0.5427, allocations: 1.217 MB / 454 MB, free: 2.883 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003884/0.5431, allocations: 172.5 kB / 454.2 MB, free: 2.695 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.5432, allocations: 23.98 kB / 454.2 MB, free: 2.672 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006068/0.5439, allocations: 76 kB / 454.3 MB, free: 2.598 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002835/0.5442, allocations: 96.36 kB / 454.4 MB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.664e-05/0.5443, allocations: 31.97 kB / 454.4 MB, free: 2.473 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003275/0.5446, allocations: 203.1 kB / 454.6 MB, free: 2.273 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.73e-07/0.5446, allocations: 0 / 454.6 MB, free: 2.273 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007286/0.5454, allocations: 151.9 kB / 454.7 MB, free: 2.125 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.00036/0.5457, allocations: 159.2 kB / 454.9 MB, free: 1.957 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001733/0.5475, allocations: 0.6365 MB / 455.5 MB, free: 1.309 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.553e-06/0.5475, allocations: 0 / 455.5 MB, free: 1.309 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000986/0.5485, allocations: 341.9 kB / 455.9 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004954/0.549, allocations: 49.02 kB / 455.9 MB, free: 0.9258 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00301/0.5521, allocations: 0.9717 MB / 456.9 MB, free: 15.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005808/0.5527, allocations: 0.829 MB / 457.7 MB, free: 15.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003634/0.5531, allocations: 67.33 kB / 457.8 MB, free: 15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002127/0.5533, allocations: 39.41 kB / 457.8 MB, free: 14.96 MB / 378.7 MB Notification: Performance of SimCode: time 1.658e-06/0.5533, allocations: 0 / 457.8 MB, free: 14.96 MB / 378.7 MB Notification: Performance of Templates: time 0.02282/0.5761, allocations: 8.624 MB / 466.4 MB, free: 6.359 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