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_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.762/1.762, allocations: 194.9 MB / 210.6 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.582e-05/2.588e-05, allocations: 4 kB / 258.8 MB, free: 8.059 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2812, allocations: 44.5 MB / 303.3 MB, free: 12.97 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.00604/0.2873, allocations: 3.88 MB / 307.2 MB, free: 9.715 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00388/0.2913, allocations: 1.573 MB / 308.8 MB, free: 8.137 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004319/0.2917, allocations: 23.94 kB / 308.8 MB, free: 8.113 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000297/0.292, allocations: 127.1 kB / 308.9 MB, free: 7.988 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001115/0.2932, allocations: 378.8 kB / 309.3 MB, free: 7.617 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00109/0.2943, allocations: 383.3 kB / 309.7 MB, free: 7.242 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001438/0.2957, allocations: 0.7523 MB / 310.4 MB, free: 6.488 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004684/0.2962, allocations: 159 kB / 310.6 MB, free: 6.328 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001184/0.2974, allocations: 0.5378 MB / 311.1 MB, free: 5.789 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001387/0.2988, allocations: 0.635 MB / 311.7 MB, free: 5.152 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006148/0.2994, allocations: 127.9 kB / 311.9 MB, free: 5.027 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002861/0.2997, allocations: 60 kB / 311.9 MB, free: 4.969 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004529/0.3002, allocations: 255.2 kB / 312.2 MB, free: 4.719 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004131/0.3007, allocations: 96 kB / 312.3 MB, free: 4.625 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001919/0.3026, allocations: 1.062 MB / 313.3 MB, free: 3.562 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3026, allocations: 0 / 313.3 MB, free: 3.562 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.3026, allocations: 0 / 313.3 MB, free: 3.562 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.839e-05/0.3027, allocations: 4 kB / 313.3 MB, free: 3.559 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.00593/0.3086, allocations: 1.299 MB / 314.6 MB, free: 2.211 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.3087, allocations: 8.031 kB / 314.6 MB, free: 2.203 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.3097, allocations: 138.6 kB / 314.8 MB, free: 2.066 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001829/0.3115, allocations: 0.5841 MB / 315.4 MB, free: 1.438 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006893/0.3123, allocations: 199.1 kB / 315.5 MB, free: 1.223 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000449/0.3127, allocations: 107.9 kB / 315.7 MB, free: 1.117 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005605/0.3183, allocations: 1.255 MB / 316.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.692e-05/0.3184, allocations: 11.89 kB / 316.9 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000242/0.3187, allocations: 40 kB / 317 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-05/0.3188, allocations: 28 kB / 317 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006546/0.3253, allocations: 1.37 MB / 318.4 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01375/0.3391, allocations: 3.734 MB / 322.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004788/0.3439, allocations: 1.069 MB / 323.2 MB, free: 9.418 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001778/0.3441, allocations: 17.3 kB / 323.2 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.921e-05/0.3442, allocations: 55.83 kB / 323.2 MB, free: 9.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=129): time 5.63e-06/0.3442, allocations: 0 / 323.2 MB, free: 9.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=141): time 0.03181/0.376, allocations: 5.88 MB / 329.1 MB, free: 3.309 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.03e-05/0.3762, allocations: 98.41 kB / 329.2 MB, free: 3.191 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001396/0.3776, allocations: 0.5254 MB / 329.7 MB, free: 2.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000244/0.3779, allocations: 61.69 kB / 329.8 MB, free: 2.594 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004005/0.3783, allocations: 333.2 kB / 330.1 MB, free: 2.262 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005269/0.3788, allocations: 481.2 kB / 330.6 MB, free: 1.785 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/0.379, allocations: 36 kB / 330.6 MB, free: 1.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.3792, allocations: 394.7 kB / 331 MB, free: 1.355 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002058/0.3812, allocations: 0.5739 MB / 331.6 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002172/0.3834, allocations: 0.7231 MB / 332.3 MB, free: 32 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/0.3853, allocations: 0.5254 MB / 332.8 MB, free: 15.51 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.3853, allocations: 3.938 kB / 332.8 MB, free: 15.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006326/0.3916, allocations: 1.853 MB / 334.7 MB, free: 13.64 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.3917, allocations: 5.25 kB / 334.7 MB, free: 13.63 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.3917, allocations: 4 kB / 334.7 MB, free: 13.63 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003144/0.3949, allocations: 0.9541 MB / 335.7 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001984/0.3969, allocations: 259.6 kB / 335.9 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00385/0.4007, allocations: 2.005 MB / 337.9 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002275/0.4031, allocations: 207.9 kB / 338.1 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/0.4032, allocations: 51.98 kB / 338.2 MB, free: 10.1 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.000652/0.4039, allocations: 257.6 kB / 338.4 MB, free: 9.836 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002766/0.4042, allocations: 94.89 kB / 338.5 MB, free: 9.742 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004047/0.4046, allocations: 137.2 kB / 338.6 MB, free: 9.602 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/0.4046, allocations: 15.95 kB / 338.7 MB, free: 9.586 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.4047, allocations: 0 / 338.7 MB, free: 9.586 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.743e-05/0.4047, allocations: 7.984 kB / 338.7 MB, free: 9.578 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009904/0.4146, allocations: 3.327 MB / 342 MB, free: 6.184 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.4147, allocations: 0 / 342 MB, free: 6.184 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002231/0.4169, allocations: 255.8 kB / 342.2 MB, free: 5.934 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003074/0.42, allocations: 0.9149 MB / 343.2 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002299/0.4203, allocations: 47.94 kB / 343.2 MB, free: 4.965 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00366/0.4239, allocations: 1.944 MB / 345.1 MB, free: 2.965 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/0.424, allocations: 4.031 kB / 345.2 MB, free: 2.961 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009806/0.4338, allocations: 2.653 MB / 347.8 MB, free: 276 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0013/0.4352, allocations: 299.8 kB / 348.1 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005593/0.4358, allocations: 36 kB / 348.1 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003643/0.4394, allocations: 211.8 kB / 348.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001162/0.4406, allocations: 224.8 kB / 348.6 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002859/0.4409, allocations: 55.94 kB / 348.6 MB, free: 15.44 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001311/0.4423, allocations: 418.8 kB / 349 MB, free: 15.03 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.42e-07/0.4423, allocations: 0 / 349 MB, free: 15.03 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00194/0.4442, allocations: 320 kB / 349.3 MB, free: 14.71 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.0007363/0.445, allocations: 189.3 kB / 349.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.007142/0.4522, allocations: 1.527 MB / 351 MB, free: 13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.4522, allocations: 0 / 351 MB, free: 13 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003211/0.4554, allocations: 0.8521 MB / 351.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001336/0.4568, allocations: 137.2 kB / 352 MB, free: 12.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01466/0.4715, allocations: 3.752 MB / 355.8 MB, free: 8.234 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007366/0.4723, allocations: 1.054 MB / 356.8 MB, free: 7.148 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009738/0.4733, allocations: 135.2 kB / 357 MB, free: 7.012 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004344/0.4737, allocations: 75.39 kB / 357 MB, free: 6.938 MB / 298.7 MB Notification: Performance of SimCode: time 1.152e-06/0.4737, allocations: 0 / 357 MB, free: 6.938 MB / 298.7 MB Notification: Performance of Templates: time 0.05038/0.5241, allocations: 19.82 MB / 376.9 MB, free: 3.125 MB / 314.7 MB