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_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.704/1.704, allocations: 171.1 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.201e-05/3.194e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08327/0.08333, allocations: 38.77 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.008728/0.09211, allocations: 3.878 MB / 270.8 MB, free: 13.22 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.006178/0.09836, allocations: 1.67 MB / 272.4 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008463/0.09926, allocations: 23.94 kB / 272.5 MB, free: 11.53 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004461/0.09974, allocations: 115.2 kB / 272.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001714/0.1015, allocations: 374.9 kB / 272.9 MB, free: 11.05 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001747/0.1032, allocations: 383.3 kB / 273.3 MB, free: 10.67 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002252/0.1055, allocations: 0.7562 MB / 274.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005598/0.1061, allocations: 159 kB / 274.2 MB, free: 9.754 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001422/0.1076, allocations: 0.526 MB / 274.8 MB, free: 9.227 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001696/0.1093, allocations: 0.6194 MB / 275.4 MB, free: 8.605 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00106/0.1104, allocations: 215.8 kB / 275.6 MB, free: 8.395 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004391/0.1108, allocations: 68 kB / 275.7 MB, free: 8.328 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005415/0.1114, allocations: 251.2 kB / 275.9 MB, free: 8.082 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005206/0.1119, allocations: 100 kB / 276 MB, free: 7.984 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002527/0.1145, allocations: 1.076 MB / 277.1 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1145, allocations: 0 / 277.1 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.417e-06/0.1146, allocations: 0 / 277.1 MB, free: 6.906 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.281e-05/0.1146, allocations: 0 / 277.1 MB, free: 6.906 MB / 234.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.006707/0.1213, allocations: 1.31 MB / 278.4 MB, free: 5.547 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.999e-05/0.1214, allocations: 12.03 kB / 278.4 MB, free: 5.535 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/0.1227, allocations: 134.6 kB / 278.5 MB, free: 5.402 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002039/0.1248, allocations: 0.5647 MB / 279.1 MB, free: 4.793 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000753/0.1255, allocations: 203 kB / 279.3 MB, free: 4.574 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004675/0.126, allocations: 107.8 kB / 279.4 MB, free: 4.469 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005767/0.1318, allocations: 1.239 MB / 280.6 MB, free: 3.215 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.534e-05/0.132, allocations: 11.89 kB / 280.6 MB, free: 3.203 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002534/0.1322, allocations: 40 kB / 280.7 MB, free: 3.164 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.116e-05/0.1323, allocations: 24 kB / 280.7 MB, free: 3.141 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007031/0.1393, allocations: 1.339 MB / 282 MB, free: 1.801 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01926/0.1587, allocations: 3.702 MB / 285.8 MB, free: 13.94 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003905/0.1626, allocations: 1.061 MB / 286.8 MB, free: 12.88 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002029/0.1629, allocations: 21.3 kB / 286.8 MB, free: 12.86 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.094e-05/0.1629, allocations: 47.88 kB / 286.9 MB, free: 12.8 MB / 250.7 MB Notification: Performance of pre-optimization done (n=129): time 3.977e-06/0.1629, allocations: 0 / 286.9 MB, free: 12.8 MB / 250.7 MB Notification: Performance of matching and sorting (n=141): time 0.02591/0.1889, allocations: 5.79 MB / 292.7 MB, free: 6.852 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.189, allocations: 90.42 kB / 292.8 MB, free: 6.746 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/0.1902, allocations: 0.5332 MB / 293.3 MB, free: 6.207 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003004/0.1905, allocations: 65.7 kB / 293.4 MB, free: 6.137 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003449/0.1909, allocations: 375.7 kB / 293.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007359/0.1916, allocations: 481.2 kB / 294.2 MB, free: 5.289 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.1918, allocations: 28 kB / 294.2 MB, free: 5.262 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.192, allocations: 366.8 kB / 294.6 MB, free: 4.895 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002228/0.1942, allocations: 0.5662 MB / 295.1 MB, free: 4.328 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002347/0.1966, allocations: 0.6998 MB / 295.8 MB, free: 3.602 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002005/0.1987, allocations: 0.5096 MB / 296.4 MB, free: 3.098 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.1987, allocations: 0 / 296.4 MB, free: 3.098 MB / 250.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.009606/0.2083, allocations: 2.029 MB / 298.4 MB, free: 1.055 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.343e-05/0.2084, allocations: 5.875 kB / 298.4 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.2084, allocations: 7.984 kB / 298.4 MB, free: 1.043 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002836/0.2113, allocations: 0.7745 MB / 299.2 MB, free: 268 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002148/0.2135, allocations: 263.6 kB / 299.4 MB, free: 4 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2172/0.4307, allocations: 1.945 MB / 301.4 MB, free: 29.09 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002301/0.433, allocations: 208.4 kB / 301.6 MB, free: 29.09 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001692/0.4332, allocations: 56.25 kB / 301.6 MB, free: 29.09 MB / 250.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.0006303/0.4339, allocations: 261.3 kB / 301.9 MB, free: 28.97 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002746/0.4342, allocations: 91.06 kB / 302 MB, free: 28.97 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003662/0.4345, allocations: 134.5 kB / 302.1 MB, free: 28.96 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-05/0.4346, allocations: 18.03 kB / 302.1 MB, free: 28.96 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.4346, allocations: 0 / 302.1 MB, free: 28.96 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.909e-05/0.4346, allocations: 12.23 kB / 302.1 MB, free: 28.96 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/0.4448, allocations: 3.322 MB / 305.5 MB, free: 27.7 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.4449, allocations: 0 / 305.5 MB, free: 27.7 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002254/0.4471, allocations: 253.9 kB / 305.7 MB, free: 27.69 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002618/0.4498, allocations: 0.7327 MB / 306.4 MB, free: 27.48 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002432/0.4501, allocations: 51.97 kB / 306.5 MB, free: 27.45 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003317/0.4534, allocations: 1.897 MB / 308.4 MB, free: 26.1 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.4534, allocations: 5.312 kB / 308.4 MB, free: 26.09 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009424/0.4629, allocations: 2.75 MB / 311.1 MB, free: 25.03 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008585/0.4638, allocations: 279.2 kB / 311.4 MB, free: 24.89 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003227/0.4641, allocations: 44.88 kB / 311.5 MB, free: 24.86 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002067/0.4662, allocations: 223.2 kB / 311.7 MB, free: 24.83 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006533/0.4669, allocations: 226.3 kB / 311.9 MB, free: 24.79 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001575/0.467, allocations: 51.22 kB / 311.9 MB, free: 24.78 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0007502/0.4678, allocations: 421.3 kB / 312.4 MB, free: 24.61 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4678, allocations: 1.375 kB / 312.4 MB, free: 24.61 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001308/0.4691, allocations: 323.3 kB / 312.7 MB, free: 24.57 MB / 250.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,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,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.0004826/0.4696, allocations: 203 kB / 312.9 MB, free: 24.44 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.005106/0.4748, allocations: 1.497 MB / 314.4 MB, free: 23.98 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.4748, allocations: 0 / 314.4 MB, free: 23.98 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002851/0.4777, allocations: 0.8385 MB / 315.2 MB, free: 23.7 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/0.479, allocations: 134.2 kB / 315.3 MB, free: 23.65 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.4924, allocations: 3.794 MB / 319.1 MB, free: 20.89 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005439/0.493, allocations: 1.051 MB / 320.2 MB, free: 19.81 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005805/0.4936, allocations: 83.38 kB / 320.3 MB, free: 19.73 MB / 250.7 MB Notification: Performance of SimCode: time 1.302e-06/0.4936, allocations: 0 / 320.3 MB, free: 19.73 MB / 250.7 MB Notification: Performance of Templates: time 0.03026/0.5239, allocations: 18.23 MB / 338.5 MB, free: 1.473 MB / 250.7 MB