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_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 2.176/2.176, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.956e-05/2.964e-05, allocations: 4 kB / 292.1 MB, free: 8.367 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09196/0.09201, allocations: 50.41 MB / 342.5 MB, free: 5.934 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4134/0.5055, allocations: 89.09 MB / 431.6 MB, free: 5.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.5057, allocations: 71.14 kB / 431.7 MB, free: 5.195 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09856/0.6043, allocations: 23.34 MB / 455 MB, free: 1.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.6044, allocations: 0 / 455 MB, free: 1.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.316e-05/0.6044, allocations: 20 kB / 455.1 MB, free: 1.23 MB / 362.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.003517/0.6079, allocations: 1.262 MB / 456.3 MB, free: 15.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.608, allocations: 12.03 kB / 456.3 MB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006722/0.6087, allocations: 142.5 kB / 456.5 MB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/0.6098, allocations: 0.5332 MB / 457 MB, free: 15.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004412/0.6103, allocations: 194.8 kB / 457.2 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002702/0.6106, allocations: 105.3 kB / 457.3 MB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002635/0.6132, allocations: 1.136 MB / 458.4 MB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-05/0.6133, allocations: 15.8 kB / 458.5 MB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001555/0.6135, allocations: 43.88 kB / 458.5 MB, free: 14.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.075e-05/0.6135, allocations: 24 kB / 458.5 MB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002789/0.6163, allocations: 1.125 MB / 459.6 MB, free: 13.47 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009548/0.6259, allocations: 3.7 MB / 463.3 MB, free: 9.734 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002235/0.6282, allocations: 0.929 MB / 464.3 MB, free: 8.797 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001364/0.6296, allocations: 0.5905 MB / 464.9 MB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001226/0.6297, allocations: 21.3 kB / 464.9 MB, free: 8.184 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.576e-05/0.6298, allocations: 47.86 kB / 464.9 MB, free: 8.129 MB / 378.7 MB Notification: Performance of pre-optimization done (n=135): time 4.605e-06/0.6298, allocations: 0 / 464.9 MB, free: 8.129 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.01028/0.6401, allocations: 3.735 MB / 468.7 MB, free: 4.328 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.244e-05/0.6402, allocations: 90.42 kB / 468.8 MB, free: 4.219 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008072/0.641, allocations: 448.7 kB / 469.2 MB, free: 3.773 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002013/0.6412, allocations: 65.69 kB / 469.3 MB, free: 3.703 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003223/0.6416, allocations: 313.6 kB / 469.6 MB, free: 3.391 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006092/0.6422, allocations: 0.493 MB / 470.1 MB, free: 2.891 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.6423, allocations: 32 kB / 470.1 MB, free: 2.859 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002679/0.6426, allocations: 394.7 kB / 470.5 MB, free: 2.465 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001405/0.644, allocations: 0.5117 MB / 471 MB, free: 1.953 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001519/0.6456, allocations: 0.6452 MB / 471.6 MB, free: 1.285 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.6468, allocations: 457.8 kB / 472.1 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.138e-06/0.6469, allocations: 4.031 kB / 472.1 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004561/0.6514, allocations: 1.642 MB / 473.7 MB, free: 15.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.6515, allocations: 4 kB / 473.7 MB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.139e-05/0.6515, allocations: 8.188 kB / 473.7 MB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002366/0.6539, allocations: 0.7823 MB / 474.5 MB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001496/0.6554, allocations: 251.7 kB / 474.8 MB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003266/0.6587, allocations: 1.872 MB / 476.6 MB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.6605, allocations: 215.9 kB / 476.8 MB, free: 12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002094/0.6607, allocations: 59.97 kB / 476.9 MB, free: 11.94 MB / 394.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.0004231/0.6611, allocations: 179.9 kB / 477.1 MB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002774/0.6614, allocations: 95.06 kB / 477.2 MB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005696/0.6671, allocations: 1.781 MB / 479 MB, free: 9.855 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/0.6672, allocations: 16 kB / 479 MB, free: 9.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.83e-06/0.6672, allocations: 0 / 479 MB, free: 9.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/0.6672, allocations: 3.984 kB / 479 MB, free: 9.836 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008491/0.6757, allocations: 3.041 MB / 482 MB, free: 6.711 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.873e-06/0.6758, allocations: 0 / 482 MB, free: 6.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001595/0.6774, allocations: 263.8 kB / 482.3 MB, free: 6.453 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002439/0.6798, allocations: 0.7273 MB / 483 MB, free: 5.719 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001966/0.6801, allocations: 51.94 kB / 483.1 MB, free: 5.668 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003261/0.6833, allocations: 1.804 MB / 484.9 MB, free: 3.809 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.6834, allocations: 96 / 484.9 MB, free: 3.809 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005911/0.6893, allocations: 2.27 MB / 487.1 MB, free: 1.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009622/0.6903, allocations: 295.8 kB / 487.4 MB, free: 1.172 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003318/0.6907, allocations: 43.95 kB / 487.5 MB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/0.6921, allocations: 215.8 kB / 487.7 MB, free: 0.918 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005983/0.6927, allocations: 228.8 kB / 487.9 MB, free: 0.6914 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001923/0.693, allocations: 59.94 kB / 487.9 MB, free: 0.6328 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006209/0.6936, allocations: 357.5 kB / 488.3 MB, free: 288 kB / 394.7 MB Notification: Performance of sort global known variables: time 8.58e-07/0.6936, allocations: 0 / 488.3 MB, free: 288 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.001249/0.6949, allocations: 320 kB / 488.6 MB, free: 15.96 MB / 410.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.0004493/0.6953, allocations: 202.1 kB / 488.8 MB, free: 15.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003474/0.6988, allocations: 1.403 MB / 490.2 MB, free: 14.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.177e-06/0.6989, allocations: 4 kB / 490.2 MB, free: 14.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002068/0.7009, allocations: 0.7516 MB / 491 MB, free: 13.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001217/0.7022, allocations: 143.6 kB / 491.1 MB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.7125, allocations: 2.935 MB / 494 MB, free: 10.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000917/0.7135, allocations: 1.047 MB / 495.1 MB, free: 9.398 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008851/0.7144, allocations: 135.2 kB / 495.2 MB, free: 9.262 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004175/0.7148, allocations: 83.38 kB / 495.3 MB, free: 9.18 MB / 410.7 MB Notification: Performance of SimCode: time 1.82e-06/0.7148, allocations: 0 / 495.3 MB, free: 9.18 MB / 410.7 MB Notification: Performance of Templates: time 0.04652/0.7613, allocations: 19.12 MB / 0.5024 GB, free: 6.129 MB / 426.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.mu_pos[1,1],brake.mu_pos[1,2],brake.peak,brake.startBackward,brake.startForward,brake.w_small,clutch.cgeo,clutch.fn_max,clutch.mode,clutch.mu_pos[1,1],clutch.mu_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.mu_pos[1,1],oneWayClutch.mu_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.f,sine.offset,sine.phase,sine.startTime,sine2.amplitude,sine2.f,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