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.3_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 2.159/2.159, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.583e-05/2.6e-05, allocations: 0 / 269.4 MB, free: 6.398 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1398, allocations: 47.57 MB / 316.9 MB, free: 6.746 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3877/0.5276, allocations: 87.53 MB / 404.4 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.5278, allocations: 75.08 kB / 404.5 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09923/0.6271, allocations: 23.13 MB / 427.6 MB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.331e-06/0.6271, allocations: 0 / 427.6 MB, free: 12.94 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.755e-05/0.6272, allocations: 20 kB / 427.7 MB, free: 12.92 MB / 346.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.003664/0.6309, allocations: 1.264 MB / 428.9 MB, free: 11.67 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.6309, allocations: 8.031 kB / 428.9 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007938/0.6317, allocations: 138.6 kB / 429.1 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001322/0.6331, allocations: 0.5417 MB / 429.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004183/0.6335, allocations: 198.9 kB / 429.8 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002849/0.6338, allocations: 102.1 kB / 429.9 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00276/0.6366, allocations: 1.138 MB / 431 MB, free: 9.984 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.566e-05/0.6367, allocations: 19.81 kB / 431.1 MB, free: 9.965 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001577/0.6369, allocations: 39.31 kB / 431.1 MB, free: 9.957 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.065e-05/0.6369, allocations: 24 kB / 431.1 MB, free: 9.934 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003277/0.6402, allocations: 1.127 MB / 432.3 MB, free: 9.148 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.6506, allocations: 3.689 MB / 435.9 MB, free: 6.113 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002247/0.6529, allocations: 0.9273 MB / 436.9 MB, free: 5.516 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001439/0.6544, allocations: 0.5915 MB / 437.5 MB, free: 5.164 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001293/0.6545, allocations: 24.72 kB / 437.5 MB, free: 5.145 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/0.6546, allocations: 43.38 kB / 437.5 MB, free: 5.102 MB / 346.7 MB Notification: Performance of pre-optimization done (n=135): time 5.602e-06/0.6546, allocations: 0 / 437.5 MB, free: 5.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=147): time 0.01094/0.6656, allocations: 3.737 MB / 441.3 MB, free: 2.238 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.383e-05/0.6657, allocations: 94.42 kB / 441.4 MB, free: 2.129 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008396/0.6665, allocations: 440.6 kB / 441.8 MB, free: 1.777 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002933/0.6669, allocations: 71.88 kB / 441.9 MB, free: 1.727 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003233/0.6672, allocations: 317.7 kB / 442.2 MB, free: 1.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006127/0.6678, allocations: 488.6 kB / 442.6 MB, free: 1.074 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.668, allocations: 32.75 kB / 442.7 MB, free: 1.066 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002629/0.6682, allocations: 395 kB / 443.1 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001361/0.6696, allocations: 0.5143 MB / 443.6 MB, free: 400 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.6712, allocations: 0.6448 MB / 444.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/0.6726, allocations: 457.7 kB / 444.7 MB, free: 15.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.001e-06/0.6726, allocations: 7.938 kB / 444.7 MB, free: 15.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004697/0.6773, allocations: 1.638 MB / 446.3 MB, free: 13.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/0.6774, allocations: 7.953 kB / 446.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.437e-05/0.6774, allocations: 11.98 kB / 446.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002469/0.6799, allocations: 0.7786 MB / 447.1 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/0.6815, allocations: 255.7 kB / 447.4 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003446/0.685, allocations: 1.868 MB / 449.2 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001713/0.6868, allocations: 207.9 kB / 449.4 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002684/0.6871, allocations: 63.97 kB / 449.5 MB, free: 10.52 MB / 362.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.000474/0.6875, allocations: 191.7 kB / 449.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003436/0.6879, allocations: 90.95 kB / 449.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004701/0.6926, allocations: 1.785 MB / 451.6 MB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.332e-05/0.6927, allocations: 12 kB / 451.6 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.6927, allocations: 0 / 451.6 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.673e-05/0.6927, allocations: 11.92 kB / 451.6 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008355/0.7011, allocations: 3.021 MB / 454.6 MB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-05/0.7012, allocations: 4 kB / 454.6 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00174/0.7029, allocations: 259.8 kB / 454.9 MB, free: 5.031 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002466/0.7054, allocations: 0.7314 MB / 455.6 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003157/0.7058, allocations: 63.81 kB / 455.7 MB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003195/0.709, allocations: 1.808 MB / 457.5 MB, free: 2.367 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-06/0.709, allocations: 4.188 kB / 457.5 MB, free: 2.363 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005952/0.715, allocations: 2.247 MB / 459.7 MB, free: 56 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009403/0.716, allocations: 295.9 kB / 460 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000284/0.7163, allocations: 43.94 kB / 460 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/0.7179, allocations: 219.8 kB / 460.3 MB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006541/0.7186, allocations: 224.8 kB / 460.5 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002092/0.7188, allocations: 67.94 kB / 460.5 MB, free: 15.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006934/0.7195, allocations: 357.5 kB / 460.9 MB, free: 14.85 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.76e-07/0.7195, allocations: 0 / 460.9 MB, free: 14.85 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001429/0.7209, allocations: 328 kB / 461.2 MB, free: 14.53 MB / 378.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.0004874/0.7215, allocations: 193.6 kB / 461.4 MB, free: 14.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003762/0.7252, allocations: 1.403 MB / 462.8 MB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.737e-06/0.7253, allocations: 0 / 462.8 MB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002343/0.7276, allocations: 0.7673 MB / 463.6 MB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.729, allocations: 135.1 kB / 463.7 MB, free: 12.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/0.7397, allocations: 2.935 MB / 466.6 MB, free: 9.039 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000938/0.7407, allocations: 1.047 MB / 467.7 MB, free: 7.961 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009035/0.7416, allocations: 135.2 kB / 467.8 MB, free: 7.824 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004196/0.742, allocations: 87.38 kB / 467.9 MB, free: 7.738 MB / 378.7 MB Notification: Performance of SimCode: time 2.117e-06/0.742, allocations: 0 / 467.9 MB, free: 7.738 MB / 378.7 MB Notification: Performance of Templates: time 0.07546/0.8175, allocations: 19.09 MB / 487 MB, free: 4.668 MB / 394.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