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.2_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 2.167/2.167, allocations: 194.9 MB / 211.2 MB, free: 8.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.714e-05/2.716e-05, allocations: 4 kB / 258.8 MB, free: 8.523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.307, allocations: 44.51 MB / 303.3 MB, free: 12.72 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006668/0.3137, allocations: 3.873 MB / 307.2 MB, free: 9.664 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004761/0.3185, allocations: 1.573 MB / 308.7 MB, free: 8.199 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008712/0.3195, allocations: 19.94 kB / 308.8 MB, free: 8.18 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003759/0.3199, allocations: 123.1 kB / 308.9 MB, free: 8.059 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001628/0.3215, allocations: 386.8 kB / 309.3 MB, free: 7.68 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001386/0.3229, allocations: 383.4 kB / 309.6 MB, free: 7.305 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001991/0.3249, allocations: 0.7523 MB / 310.4 MB, free: 6.551 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004359/0.3254, allocations: 167 kB / 310.5 MB, free: 6.383 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001155/0.3266, allocations: 0.5339 MB / 311.1 MB, free: 5.848 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.3278, allocations: 0.6389 MB / 311.7 MB, free: 5.207 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005357/0.3284, allocations: 123.9 kB / 311.8 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002957/0.3287, allocations: 64 kB / 311.9 MB, free: 5.023 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003689/0.3291, allocations: 255.1 kB / 312.1 MB, free: 4.773 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003455/0.3294, allocations: 100 kB / 312.2 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00172/0.3312, allocations: 1.05 MB / 313.3 MB, free: 3.625 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3312, allocations: 0 / 313.3 MB, free: 3.625 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3312, allocations: 4 kB / 313.3 MB, free: 3.621 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.028e-05/0.3313, allocations: 0 / 313.3 MB, free: 3.621 MB / 250.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.005118/0.3364, allocations: 1.303 MB / 314.6 MB, free: 2.27 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.3365, allocations: 12.03 kB / 314.6 MB, free: 2.258 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009294/0.3374, allocations: 138.6 kB / 314.8 MB, free: 2.121 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.339, allocations: 0.5841 MB / 315.3 MB, free: 1.492 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005221/0.3395, allocations: 195.1 kB / 315.5 MB, free: 1.281 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003136/0.3398, allocations: 103.9 kB / 315.6 MB, free: 1.18 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00401/0.3439, allocations: 1.263 MB / 316.9 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.728e-05/0.344, allocations: 7.906 kB / 316.9 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001695/0.3442, allocations: 40 kB / 316.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.957e-05/0.3442, allocations: 24 kB / 317 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00519/0.3494, allocations: 1.374 MB / 318.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01147/0.3609, allocations: 3.735 MB / 322.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003901/0.3649, allocations: 1.065 MB / 323.1 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000189/0.3651, allocations: 25.3 kB / 323.2 MB, free: 9.461 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/0.3652, allocations: 47.83 kB / 323.2 MB, free: 9.406 MB / 266.7 MB Notification: Performance of pre-optimization done (n=129): time 4.248e-06/0.3652, allocations: 0 / 323.2 MB, free: 9.406 MB / 266.7 MB Notification: Performance of matching and sorting (n=141): time 0.02545/0.3906, allocations: 5.888 MB / 329.1 MB, free: 3.367 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.696e-05/0.3908, allocations: 90.42 kB / 329.2 MB, free: 3.258 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.3919, allocations: 0.5293 MB / 329.7 MB, free: 2.723 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003392/0.3923, allocations: 61.7 kB / 329.8 MB, free: 2.656 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00034/0.3927, allocations: 367.7 kB / 330.1 MB, free: 2.293 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007676/0.3934, allocations: 485.2 kB / 330.6 MB, free: 1.812 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.3936, allocations: 32 kB / 330.6 MB, free: 1.781 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.3938, allocations: 362.8 kB / 331 MB, free: 1.418 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002345/0.3962, allocations: 0.5818 MB / 331.6 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002442/0.3987, allocations: 0.7153 MB / 332.3 MB, free: 96 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002094/0.4008, allocations: 0.5254 MB / 332.8 MB, free: 15.57 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.4009, allocations: 0 / 332.8 MB, free: 15.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006688/0.4076, allocations: 1.822 MB / 334.6 MB, free: 13.73 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.4077, allocations: 4 kB / 334.6 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/0.4077, allocations: 7.984 kB / 334.6 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003306/0.411, allocations: 0.9541 MB / 335.6 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002103/0.4131, allocations: 263.6 kB / 335.9 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003976/0.4171, allocations: 2.013 MB / 337.9 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002315/0.4195, allocations: 211.8 kB / 338.1 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001918/0.4197, allocations: 47.98 kB / 338.1 MB, free: 10.18 MB / 282.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.0006944/0.4204, allocations: 265.6 kB / 338.4 MB, free: 9.914 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000313/0.4208, allocations: 86.97 kB / 338.5 MB, free: 9.828 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003997/0.4212, allocations: 141.3 kB / 338.6 MB, free: 9.684 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-05/0.4212, allocations: 15.95 kB / 338.6 MB, free: 9.668 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.4212, allocations: 0 / 338.6 MB, free: 9.668 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.91e-05/0.4212, allocations: 7.969 kB / 338.6 MB, free: 9.66 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01105/0.4323, allocations: 3.315 MB / 341.9 MB, free: 6.273 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/0.4324, allocations: 0 / 341.9 MB, free: 6.273 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002368/0.4348, allocations: 259.8 kB / 342.2 MB, free: 6.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003168/0.438, allocations: 0.907 MB / 343.1 MB, free: 5.105 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003402/0.4384, allocations: 51.89 kB / 343.2 MB, free: 5.055 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003766/0.4421, allocations: 1.944 MB / 345.1 MB, free: 3.055 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.4422, allocations: 0 / 345.1 MB, free: 3.055 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00978/0.452, allocations: 2.645 MB / 347.7 MB, free: 380 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009747/0.453, allocations: 295.8 kB / 348 MB, free: 64 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003866/0.4534, allocations: 43.94 kB / 348.1 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002334/0.4558, allocations: 215.8 kB / 348.3 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008324/0.4567, allocations: 220.8 kB / 348.5 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001863/0.4569, allocations: 51.95 kB / 348.6 MB, free: 15.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009018/0.4578, allocations: 422.8 kB / 349 MB, free: 15.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.4578, allocations: 4 kB / 349 MB, free: 15.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001617/0.4594, allocations: 324 kB / 349.3 MB, free: 14.8 MB / 298.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.0005489/0.46, allocations: 189.3 kB / 349.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.006043/0.4661, allocations: 1.523 MB / 351 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.495e-06/0.4661, allocations: 0 / 351 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003626/0.4698, allocations: 0.8482 MB / 351.8 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001707/0.4715, allocations: 132.2 kB / 352 MB, free: 12.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/0.4873, allocations: 3.804 MB / 355.8 MB, free: 8.281 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000805/0.4881, allocations: 1.054 MB / 356.8 MB, free: 7.195 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006226/0.4888, allocations: 79.39 kB / 356.9 MB, free: 7.117 MB / 298.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4888, allocations: 0 / 356.9 MB, free: 7.117 MB / 298.7 MB Notification: Performance of Templates: time 0.05063/0.5394, allocations: 18.63 MB / 375.5 MB, free: 4.457 MB / 314.7 MB