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_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 2.226/2.226, allocations: 225.8 MB / 239.4 MB, free: 1.234 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.474e-05/3.503e-05, allocations: 0 / 292.7 MB, free: 11.47 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1222, allocations: 50.41 MB / 343.1 MB, free: 9.059 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4221/0.5443, allocations: 88.84 MB / 431.9 MB, free: 7.094 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.5446, allocations: 75.86 kB / 432 MB, free: 7.082 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09562/0.6402, allocations: 23.33 MB / 455.3 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.536e-06/0.6403, allocations: 0 / 455.3 MB, free: 12.1 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.287e-05/0.6403, allocations: 23.91 kB / 455.3 MB, free: 12.08 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.003912/0.6443, allocations: 1.259 MB / 456.6 MB, free: 10.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.6443, allocations: 12.03 kB / 456.6 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008083/0.6452, allocations: 138.6 kB / 456.7 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/0.6465, allocations: 0.5375 MB / 457.3 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004288/0.647, allocations: 197.6 kB / 457.5 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003134/0.6473, allocations: 110.1 kB / 457.6 MB, free: 9.953 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002852/0.6502, allocations: 1.133 MB / 458.7 MB, free: 9.168 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.882e-05/0.6503, allocations: 15.89 kB / 458.7 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/0.6505, allocations: 37.62 kB / 458.8 MB, free: 9.145 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.443e-05/0.6505, allocations: 24 kB / 458.8 MB, free: 9.121 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002962/0.6535, allocations: 1.13 MB / 459.9 MB, free: 8.332 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01004/0.6636, allocations: 3.701 MB / 463.6 MB, free: 5.328 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/0.6659, allocations: 0.9265 MB / 464.5 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.6673, allocations: 0.5875 MB / 465.1 MB, free: 4.383 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001369/0.6675, allocations: 32.66 kB / 465.2 MB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.53e-05/0.6676, allocations: 44.81 kB / 465.2 MB, free: 4.312 MB / 346.7 MB Notification: Performance of pre-optimization done (n=135): time 5.485e-06/0.6676, allocations: 0 / 465.2 MB, free: 4.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=147): time 0.0105/0.6781, allocations: 3.73 MB / 468.9 MB, free: 1.461 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.646e-05/0.6782, allocations: 94.41 kB / 469 MB, free: 1.348 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000821/0.6791, allocations: 437.8 kB / 469.5 MB, free: 1.004 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002274/0.6793, allocations: 64.62 kB / 469.5 MB, free: 0.957 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000325/0.6796, allocations: 316.9 kB / 469.8 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006309/0.6803, allocations: 0.4969 MB / 470.3 MB, free: 312 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.6804, allocations: 31.5 kB / 470.4 MB, free: 304 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002822/0.6807, allocations: 390.7 kB / 470.7 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001383/0.6821, allocations: 0.5171 MB / 471.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.6837, allocations: 0.6415 MB / 471.9 MB, free: 15.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.685, allocations: 471.5 kB / 472.4 MB, free: 14.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.486e-06/0.685, allocations: 0 / 472.4 MB, free: 14.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004716/0.6897, allocations: 1.636 MB / 474 MB, free: 13.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.6898, allocations: 8 kB / 474 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.353e-05/0.6898, allocations: 7.984 kB / 474 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002484/0.6923, allocations: 0.7785 MB / 474.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.6939, allocations: 251.7 kB / 475 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003405/0.6973, allocations: 1.872 MB / 476.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.6991, allocations: 207.9 kB / 477.1 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002373/0.6994, allocations: 67.97 kB / 477.2 MB, free: 10.3 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.0004485/0.6998, allocations: 179.9 kB / 477.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002916/0.7002, allocations: 90.97 kB / 477.4 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004697/0.7049, allocations: 1.777 MB / 479.2 MB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.356e-05/0.7049, allocations: 20 kB / 479.2 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.831e-06/0.705, allocations: 0 / 479.2 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.246e-05/0.705, allocations: 8.062 kB / 479.2 MB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008109/0.7131, allocations: 3.037 MB / 482.3 MB, free: 5.105 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/0.7132, allocations: 0 / 482.3 MB, free: 5.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001672/0.7148, allocations: 259.8 kB / 482.5 MB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002307/0.7172, allocations: 0.7312 MB / 483.3 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002292/0.7174, allocations: 55.94 kB / 483.3 MB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003185/0.7206, allocations: 1.799 MB / 485.1 MB, free: 2.203 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.751e-06/0.7207, allocations: 0 / 485.1 MB, free: 2.203 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005953/0.7266, allocations: 2.265 MB / 487.4 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008584/0.7275, allocations: 291.7 kB / 487.7 MB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002861/0.7278, allocations: 47.95 kB / 487.7 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001496/0.7293, allocations: 211.8 kB / 487.9 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006591/0.73, allocations: 232.8 kB / 488.2 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000192/0.7302, allocations: 60.03 kB / 488.2 MB, free: 15.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006807/0.7309, allocations: 353.5 kB / 488.6 MB, free: 14.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.731, allocations: 0 / 488.6 MB, free: 14.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001269/0.7322, allocations: 320 kB / 488.9 MB, free: 14.38 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.0004729/0.7327, allocations: 213.4 kB / 489.1 MB, free: 14.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00365/0.7364, allocations: 1.399 MB / 490.5 MB, free: 12.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/0.7364, allocations: 4.375 kB / 490.5 MB, free: 12.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002272/0.7387, allocations: 0.7556 MB / 491.2 MB, free: 11.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/0.7399, allocations: 138.1 kB / 491.4 MB, free: 11.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.7505, allocations: 2.935 MB / 494.3 MB, free: 8.875 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009346/0.7515, allocations: 1.047 MB / 495.4 MB, free: 7.801 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008943/0.7524, allocations: 135.2 kB / 495.5 MB, free: 7.664 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004211/0.7528, allocations: 79.38 kB / 495.6 MB, free: 7.586 MB / 378.7 MB Notification: Performance of SimCode: time 1.732e-06/0.7529, allocations: 0 / 495.6 MB, free: 7.586 MB / 378.7 MB Notification: Performance of Templates: time 0.04684/0.7997, allocations: 19.1 MB / 0.5026 GB, free: 4.543 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.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