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.1_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.731/1.731, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.11e-05/3.13e-05, allocations: 4 kB / 225 MB, free: 2.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2098, allocations: 38.77 MB / 263.8 MB, free: 9.816 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1218/0.3316, allocations: 77.77 MB / 341.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004946/0.3322, allocations: 67.97 kB / 341.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1092/0.4414, allocations: 22.98 MB / 364.6 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.4415, allocations: 3.938 kB / 364.6 MB, free: 4.793 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.09e-05/0.4415, allocations: 20 kB / 364.6 MB, free: 4.773 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.004172/0.4457, allocations: 1.278 MB / 365.9 MB, free: 3.445 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.4458, allocations: 8.031 kB / 365.9 MB, free: 3.438 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008655/0.4467, allocations: 138.6 kB / 366.1 MB, free: 3.301 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00147/0.4482, allocations: 0.5451 MB / 366.6 MB, free: 2.715 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004536/0.4486, allocations: 199.1 kB / 366.8 MB, free: 2.504 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003268/0.449, allocations: 103.9 kB / 366.9 MB, free: 2.402 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003161/0.4521, allocations: 1.169 MB / 368.1 MB, free: 1.219 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.018e-05/0.4523, allocations: 11.89 kB / 368.1 MB, free: 1.207 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001685/0.4524, allocations: 40 kB / 368.1 MB, free: 1.168 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.89e-05/0.4525, allocations: 28 kB / 368.1 MB, free: 1.141 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1883/0.6408, allocations: 1.189 MB / 369.3 MB, free: 85.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01017/0.651, allocations: 3.701 MB / 373 MB, free: 84.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002167/0.6532, allocations: 0.9454 MB / 374 MB, free: 84.21 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001262/0.6545, allocations: 0.5974 MB / 374.6 MB, free: 84.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.968e-05/0.6547, allocations: 21.09 kB / 374.6 MB, free: 84.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.6547, allocations: 46.78 kB / 374.6 MB, free: 84.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=129): time 4.807e-06/0.6547, allocations: 0 / 374.6 MB, free: 84.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.009548/0.6643, allocations: 3.844 MB / 378.5 MB, free: 83.17 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.6643, allocations: 91.64 kB / 378.6 MB, free: 83.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008355/0.6652, allocations: 489.7 kB / 379.1 MB, free: 82.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002063/0.6654, allocations: 62.42 kB / 379.1 MB, free: 82.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.6657, allocations: 331.4 kB / 379.4 MB, free: 82.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004192/0.6661, allocations: 480.9 kB / 379.9 MB, free: 82.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.6662, allocations: 30.84 kB / 379.9 MB, free: 82.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.6664, allocations: 387.4 kB / 380.3 MB, free: 81.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.6678, allocations: 0.5553 MB / 380.9 MB, free: 81.65 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.6692, allocations: 0.6709 MB / 381.5 MB, free: 81.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.6704, allocations: 0.4948 MB / 382 MB, free: 81.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.255e-06/0.6704, allocations: 0 / 382 MB, free: 81.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004672/0.6751, allocations: 1.877 MB / 383.9 MB, free: 80.53 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.547e-05/0.6752, allocations: 3.5 kB / 383.9 MB, free: 80.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.6752, allocations: 7.453 kB / 383.9 MB, free: 80.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002657/0.6779, allocations: 0.9794 MB / 384.9 MB, free: 80.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001922/0.6799, allocations: 266.6 kB / 385.2 MB, free: 80.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003117/0.683, allocations: 1.963 MB / 387.1 MB, free: 78.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001675/0.6847, allocations: 219.2 kB / 387.3 MB, free: 78.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002257/0.685, allocations: 62.36 kB / 387.4 MB, free: 78.85 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 (bearingFriction.free,$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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * 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 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003889/0.6854, allocations: 189.6 kB / 387.6 MB, free: 78.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002701/0.6857, allocations: 88.62 kB / 387.7 MB, free: 78.64 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002779/0.686, allocations: 130.5 kB / 387.8 MB, free: 78.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/0.686, allocations: 13.25 kB / 387.8 MB, free: 78.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.686, allocations: 7.094 kB / 387.8 MB, free: 78.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.669e-05/0.6861, allocations: 10.08 kB / 387.8 MB, free: 78.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0072/0.6933, allocations: 3.165 MB / 391 MB, free: 76.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-06/0.6933, allocations: 6.969 kB / 391 MB, free: 76.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001493/0.6948, allocations: 255.4 kB / 391.3 MB, free: 76.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002263/0.6971, allocations: 0.9339 MB / 392.2 MB, free: 75.76 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002588/0.6974, allocations: 52.31 kB / 392.2 MB, free: 75.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002625/0.7001, allocations: 1.907 MB / 394.1 MB, free: 73.85 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.695e-06/0.7001, allocations: 0 / 394.1 MB, free: 73.85 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006021/0.7061, allocations: 2.461 MB / 396.6 MB, free: 71.56 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007283/0.7069, allocations: 308.6 kB / 396.9 MB, free: 71.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002682/0.7072, allocations: 38.52 kB / 396.9 MB, free: 71.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001397/0.7086, allocations: 212.1 kB / 397.2 MB, free: 71.11 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005225/0.7091, allocations: 229.2 kB / 397.4 MB, free: 71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001657/0.7093, allocations: 66.25 kB / 397.4 MB, free: 70.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005549/0.7099, allocations: 368 kB / 397.8 MB, free: 70.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.9e-07/0.7099, allocations: 0 / 397.8 MB, free: 70.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001287/0.7112, allocations: 340.8 kB / 398.1 MB, free: 70.3 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 92 * 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.0004508/0.7117, allocations: 214.9 kB / 398.3 MB, free: 70.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003058/0.7148, allocations: 1.332 MB / 399.7 MB, free: 68.82 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.206e-06/0.7148, allocations: 0 / 399.7 MB, free: 68.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001758/0.7166, allocations: 0.746 MB / 400.4 MB, free: 68.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.7177, allocations: 138 kB / 400.6 MB, free: 68.01 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009955/0.7277, allocations: 2.904 MB / 403.5 MB, free: 65.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005434/0.7283, allocations: 1.053 MB / 404.5 MB, free: 64.55 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008793/0.7292, allocations: 146.8 kB / 404.7 MB, free: 64.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003975/0.7296, allocations: 79.98 kB / 404.7 MB, free: 64.37 MB / 314.7 MB Notification: Performance of SimCode: time 2.108e-06/0.7296, allocations: 0 / 404.7 MB, free: 64.37 MB / 314.7 MB Notification: Performance of Templates: time 0.03875/0.7684, allocations: 18.82 MB / 423.6 MB, free: 46.98 MB / 314.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