Running command: translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.814/1.814, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.09e-05/3.107e-05, allocations: 4 kB / 255.4 MB, free: 2.703 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07585/0.0759, allocations: 44.5 MB / 299.9 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.365/0.441, allocations: 82.91 MB / 382.8 MB, free: 21.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/0.4412, allocations: 69.02 kB / 382.9 MB, free: 21.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09128/0.5326, allocations: 22.88 MB / 405.7 MB, free: 17.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5326, allocations: 0 / 405.7 MB, free: 17.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.735e-05/0.5327, allocations: 21.5 kB / 405.8 MB, free: 17.07 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.003187/0.5359, allocations: 1.261 MB / 407 MB, free: 16.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.5359, allocations: 7.688 kB / 407 MB, free: 16.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007056/0.5366, allocations: 148.7 kB / 407.2 MB, free: 16.19 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.5377, allocations: 0.5339 MB / 407.7 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003706/0.5381, allocations: 196.1 kB / 407.9 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002507/0.5383, allocations: 101 kB / 408 MB, free: 15.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00255/0.5409, allocations: 1.144 MB / 409.1 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.255e-05/0.541, allocations: 15.77 kB / 409.2 MB, free: 15.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001553/0.5412, allocations: 40.28 kB / 409.2 MB, free: 15.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.313e-05/0.5412, allocations: 23.44 kB / 409.2 MB, free: 15.39 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002673/0.5439, allocations: 1.134 MB / 410.4 MB, free: 15.26 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008871/0.5528, allocations: 3.69 MB / 414.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001929/0.5548, allocations: 0.9299 MB / 415 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/0.556, allocations: 0.5934 MB / 415.6 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001195/0.5562, allocations: 28.25 kB / 415.6 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.5562, allocations: 47.05 kB / 415.6 MB, free: 13.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 5.329e-06/0.5562, allocations: 0 / 415.6 MB, free: 13.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.00924/0.5655, allocations: 3.735 MB / 419.4 MB, free: 12.01 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.5656, allocations: 93.98 kB / 419.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006477/0.5662, allocations: 447.6 kB / 419.9 MB, free: 11.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001831/0.5664, allocations: 66.78 kB / 420 MB, free: 11.72 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/0.5667, allocations: 317.9 kB / 420.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004035/0.5671, allocations: 497.2 kB / 420.8 MB, free: 11.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.5672, allocations: 29.12 kB / 420.8 MB, free: 11.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.5674, allocations: 399 kB / 421.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.5687, allocations: 0.514 MB / 421.7 MB, free: 10.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001318/0.57, allocations: 0.6441 MB / 422.3 MB, free: 10.67 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.5711, allocations: 456.6 kB / 422.8 MB, free: 10.6 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.235e-06/0.5711, allocations: 0 / 422.8 MB, free: 10.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004199/0.5754, allocations: 1.648 MB / 424.4 MB, free: 10.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.5754, allocations: 7.812 kB / 424.5 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/0.5755, allocations: 4.062 kB / 424.5 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002256/0.5777, allocations: 0.776 MB / 425.2 MB, free: 10.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.5792, allocations: 256.1 kB / 425.5 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002684/0.5819, allocations: 1.872 MB / 427.4 MB, free: 8.934 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.5836, allocations: 207.7 kB / 427.6 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002073/0.5838, allocations: 63.38 kB / 427.6 MB, free: 8.867 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003832/0.5842, allocations: 195 kB / 427.8 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002596/0.5845, allocations: 87.78 kB / 427.9 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00416/0.5886, allocations: 1.784 MB / 429.7 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-05/0.5887, allocations: 11.81 kB / 429.7 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.244e-06/0.5887, allocations: 0 / 429.7 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/0.5887, allocations: 3.984 kB / 429.7 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006798/0.5955, allocations: 3.043 MB / 432.7 MB, free: 6.844 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/0.5956, allocations: 3.953 kB / 432.7 MB, free: 6.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/0.5973, allocations: 260.5 kB / 433 MB, free: 6.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001996/0.5993, allocations: 0.7335 MB / 433.7 MB, free: 6.148 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000184/0.5995, allocations: 59.88 kB / 433.8 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002426/0.6019, allocations: 1.804 MB / 435.6 MB, free: 4.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.791e-06/0.602, allocations: 0 / 435.6 MB, free: 4.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004708/0.6067, allocations: 2.254 MB / 437.8 MB, free: 1.914 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006497/0.6074, allocations: 295.8 kB / 438.1 MB, free: 1.605 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002515/0.6076, allocations: 36 kB / 438.2 MB, free: 1.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/0.609, allocations: 219.8 kB / 438.4 MB, free: 1.355 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005006/0.6095, allocations: 228.8 kB / 438.6 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001647/0.6097, allocations: 63.94 kB / 438.7 MB, free: 1.07 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004795/0.6102, allocations: 357.5 kB / 439 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.46e-07/0.6102, allocations: 0 / 439 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001063/0.6113, allocations: 332 kB / 439.3 MB, free: 408 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004059/0.6117, allocations: 189.2 kB / 439.5 MB, free: 16.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003378/0.6151, allocations: 1.399 MB / 440.9 MB, free: 14.79 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.527e-06/0.6151, allocations: 0 / 440.9 MB, free: 14.79 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002075/0.6172, allocations: 0.7517 MB / 441.7 MB, free: 14.03 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.6183, allocations: 142.4 kB / 441.8 MB, free: 13.89 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.6284, allocations: 2.927 MB / 444.7 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009224/0.6294, allocations: 1.047 MB / 445.8 MB, free: 9.852 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008883/0.6303, allocations: 131.2 kB / 445.9 MB, free: 9.719 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004166/0.6307, allocations: 91.38 kB / 446 MB, free: 9.629 MB / 330.7 MB Notification: Performance of SimCode: time 1.687e-06/0.6308, allocations: 0 / 446 MB, free: 9.629 MB / 330.7 MB Notification: Performance of Templates: time 0.04964/0.6804, allocations: 19.09 MB / 465.1 MB, free: 6.562 MB / 346.7 MB "" Variables in the reference:time,clutch.phi_rel,clutch.w_rel,damper.phi_rel,damper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia5.phi,inertia5.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,springDamper.phi_rel,springDamper.w_rel,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward,lossyGear.mode,oneWayClutch.startForward,oneWayClutch.stuck Variables in the result:TAmbient.T,bearingFriction.mode,bearingFriction.peak,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.w_small,brake.cgeo,brake.fn_max,brake.mode,brake.mue_pos[1,1],brake.mue_pos[1,2],brake.peak,brake.startBackward,brake.startForward,brake.w_small,clutch.cgeo,clutch.fn_max,clutch.mode,clutch.mue_pos[1,1],clutch.mue_pos[1,2],clutch.peak,clutch.phi_nominal,clutch.phi_rel,clutch.startBackward,clutch.startForward,clutch.w_rel,clutch.w_small,const.k,const.y,convection.Gc,damper.d,damper.flange_a.phi,damper.phi_nominal,damper.phi_rel,damper.w_rel,elastoBacklash.b,elastoBacklash.bMax,elastoBacklash.bMin,elastoBacklash.c,elastoBacklash.d,elastoBacklash.phi_nominal,elastoBacklash.phi_rel,elastoBacklash.phi_rel0,elastoBacklash.w_rel,fixed.flange.phi,fixed.phi0,inertia1.J,inertia2.J,inertia3.J,inertia4.J,inertia5.J,inertia5.phi,inertia5.w,inertia6.J,lossyGear.eta_mf1_0,lossyGear.eta_mf2_0,lossyGear.lossTable[1,1],lossyGear.lossTable[1,2],lossyGear.lossTable[1,3],lossyGear.lossTable[1,4],lossyGear.lossTable[1,5],lossyGear.lossTable[2,1],lossyGear.lossTable[2,2],lossyGear.lossTable[2,3],lossyGear.lossTable[2,4],lossyGear.lossTable[2,5],lossyGear.mode,lossyGear.ratio,lossyGear.tau_bf1_0,lossyGear.tau_bf2_0,lossyGear.tau_bf_a_0,oneWayClutch.cgeo,oneWayClutch.fn_max,oneWayClutch.mue_pos[1,1],oneWayClutch.mue_pos[1,2],oneWayClutch.peak,oneWayClutch.peak2,oneWayClutch.phi_nominal,oneWayClutch.phi_rel,oneWayClutch.startForward,oneWayClutch.stuck,oneWayClutch.w_rel,oneWayClutch.w_small,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine2.amplitude,sine2.freqHz,sine2.offset,sine2.phase,sine2.startTime,spring3.c,spring3.phi_rel0,springDamper.c,springDamper.d,springDamper.phi_nominal,springDamper.phi_rel,springDamper.phi_rel0,springDamper.w_rel,time