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.734/1.734, allocations: 171.2 MB / 185.7 MB, free: 1.387 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.982e-05/2.998e-05, allocations: 4 kB / 228.2 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08114/0.08119, allocations: 38.77 MB / 266.9 MB, free: 484 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006488/0.08774, allocations: 3.883 MB / 270.8 MB, free: 12.56 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004454/0.09225, allocations: 1.658 MB / 272.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005096/0.0928, allocations: 23.94 kB / 272.5 MB, free: 10.88 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003143/0.09313, allocations: 111.2 kB / 272.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00115/0.0943, allocations: 378.8 kB / 273 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.0955, allocations: 391.3 kB / 273.3 MB, free: 10.01 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001426/0.09694, allocations: 0.7523 MB / 274.1 MB, free: 9.262 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003968/0.09736, allocations: 171 kB / 274.3 MB, free: 9.086 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009822/0.09835, allocations: 0.526 MB / 274.8 MB, free: 8.559 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001095/0.09946, allocations: 0.6155 MB / 275.4 MB, free: 7.941 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007041/0.1002, allocations: 219.8 kB / 275.6 MB, free: 7.727 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002479/0.1004, allocations: 64 kB / 275.7 MB, free: 7.664 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003742/0.1008, allocations: 251.2 kB / 275.9 MB, free: 7.418 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003226/0.1012, allocations: 96 kB / 276 MB, free: 7.324 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00168/0.1029, allocations: 1.076 MB / 277.1 MB, free: 6.246 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1029, allocations: 4 kB / 277.1 MB, free: 6.242 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1029, allocations: 0 / 277.1 MB, free: 6.242 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.995e-05/0.1029, allocations: 0 / 277.1 MB, free: 6.242 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.004852/0.1078, allocations: 1.314 MB / 278.4 MB, free: 4.879 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.1079, allocations: 12.03 kB / 278.4 MB, free: 4.867 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007778/0.1086, allocations: 134.6 kB / 278.6 MB, free: 4.734 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001334/0.11, allocations: 0.5647 MB / 279.1 MB, free: 4.125 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005149/0.1105, allocations: 203 kB / 279.3 MB, free: 3.906 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002913/0.1108, allocations: 107.8 kB / 279.4 MB, free: 3.801 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003807/0.1147, allocations: 1.236 MB / 280.7 MB, free: 2.551 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.924e-05/0.1147, allocations: 11.89 kB / 280.7 MB, free: 2.539 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001657/0.1149, allocations: 44 kB / 280.7 MB, free: 2.496 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.129e-05/0.115, allocations: 24 kB / 280.7 MB, free: 2.473 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004813/0.1198, allocations: 1.335 MB / 282.1 MB, free: 1.137 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01039/0.1302, allocations: 3.702 MB / 285.8 MB, free: 13.27 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00359/0.1338, allocations: 1.058 MB / 286.8 MB, free: 12.21 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001479/0.134, allocations: 21.23 kB / 286.9 MB, free: 12.2 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.248e-05/0.1341, allocations: 51.88 kB / 286.9 MB, free: 12.14 MB / 250.7 MB Notification: Performance of pre-optimization done (n=129): time 4.268e-06/0.1341, allocations: 4 kB / 286.9 MB, free: 12.13 MB / 250.7 MB Notification: Performance of matching and sorting (n=141): time 0.02427/0.1584, allocations: 5.786 MB / 292.7 MB, free: 6.188 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.242e-05/0.1585, allocations: 94.42 kB / 292.8 MB, free: 6.078 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/0.1596, allocations: 0.5254 MB / 293.3 MB, free: 5.547 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002049/0.1598, allocations: 69.64 kB / 293.4 MB, free: 5.473 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003622/0.1602, allocations: 345.2 kB / 293.7 MB, free: 5.129 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006178/0.1609, allocations: 477.3 kB / 294.2 MB, free: 4.656 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.161, allocations: 31.98 kB / 294.2 MB, free: 4.625 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002539/0.1613, allocations: 390.8 kB / 294.6 MB, free: 4.234 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002043/0.1633, allocations: 0.5701 MB / 295.2 MB, free: 3.664 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002171/0.1655, allocations: 0.6998 MB / 295.9 MB, free: 2.938 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001819/0.1673, allocations: 0.5096 MB / 296.4 MB, free: 2.434 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.1674, allocations: 0 / 296.4 MB, free: 2.434 MB / 250.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006989/0.1744, allocations: 2.052 MB / 298.4 MB, free: 376 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.1744, allocations: 5.875 kB / 298.4 MB, free: 372 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.1745, allocations: 4 kB / 298.4 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2248/0.3992, allocations: 0.7737 MB / 299.2 MB, free: 30.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003231/0.4025, allocations: 263.3 kB / 299.5 MB, free: 30.16 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005988/0.4086, allocations: 1.95 MB / 301.4 MB, free: 29.11 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003989/0.4126, allocations: 210.5 kB / 301.6 MB, free: 29.11 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003344/0.413, allocations: 50.55 kB / 301.7 MB, free: 29.11 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.001033/0.4141, allocations: 265.3 kB / 301.9 MB, free: 28.99 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004625/0.4145, allocations: 95.38 kB / 302 MB, free: 28.99 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005476/0.4151, allocations: 137.2 kB / 302.2 MB, free: 28.97 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.689e-05/0.4152, allocations: 13.59 kB / 302.2 MB, free: 28.97 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/0.4152, allocations: 1.125 kB / 302.2 MB, free: 28.97 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.229e-05/0.4153, allocations: 10.88 kB / 302.2 MB, free: 28.96 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0168/0.4321, allocations: 3.319 MB / 305.5 MB, free: 27.62 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.648e-05/0.4321, allocations: 0 / 305.5 MB, free: 27.62 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003573/0.4357, allocations: 254.4 kB / 305.8 MB, free: 27.61 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00399/0.4398, allocations: 0.746 MB / 306.5 MB, free: 27.38 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004174/0.4402, allocations: 44.45 kB / 306.5 MB, free: 27.36 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005379/0.4456, allocations: 1.887 MB / 308.4 MB, free: 26.01 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/0.4457, allocations: 1.25 kB / 308.4 MB, free: 26.01 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01528/0.461, allocations: 2.76 MB / 311.2 MB, free: 24.94 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009238/0.462, allocations: 282.6 kB / 311.5 MB, free: 24.8 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003365/0.4623, allocations: 40.38 kB / 311.5 MB, free: 24.77 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002091/0.4644, allocations: 215.6 kB / 311.7 MB, free: 24.74 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006411/0.4651, allocations: 230.2 kB / 311.9 MB, free: 24.7 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/0.4653, allocations: 54.88 kB / 312 MB, free: 24.69 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0007609/0.4661, allocations: 417.5 kB / 312.4 MB, free: 24.52 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-07/0.4661, allocations: 0 / 312.4 MB, free: 24.52 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001231/0.4673, allocations: 329.1 kB / 312.7 MB, free: 24.48 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.0004625/0.4678, allocations: 208.4 kB / 312.9 MB, free: 24.35 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.005058/0.4729, allocations: 1.492 MB / 314.4 MB, free: 23.88 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.4729, allocations: 0 / 314.4 MB, free: 23.88 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002855/0.4758, allocations: 0.8481 MB / 315.3 MB, free: 23.55 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.4771, allocations: 131.2 kB / 315.4 MB, free: 23.48 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01333/0.4904, allocations: 3.74 MB / 319.1 MB, free: 20.25 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005127/0.491, allocations: 1.051 MB / 320.2 MB, free: 19.18 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0008962/0.4919, allocations: 139.2 kB / 320.3 MB, free: 19.04 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003827/0.4923, allocations: 71.41 kB / 320.4 MB, free: 18.96 MB / 250.7 MB Notification: Performance of SimCode: time 1.262e-06/0.4923, allocations: 0 / 320.4 MB, free: 18.96 MB / 250.7 MB Notification: Performance of Templates: time 0.04092/0.5332, allocations: 18.62 MB / 339 MB, free: 396 kB / 250.7 MB