Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadModel(ModelicaTest): time 2.058/2.058, allocations: 209.3 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.308e-05/3.306e-05, allocations: 7.984 kB / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3838/0.3839, allocations: 48.7 MB / 324.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003254/0.3872, allocations: 1.76 MB / 326.6 MB, free: 2.102 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.3889, allocations: 0.6451 MB / 327.3 MB, free: 1.762 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00017/0.3891, allocations: 8.812 kB / 327.3 MB, free: 1.758 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.3892, allocations: 21.83 kB / 327.3 MB, free: 1.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002375/0.3895, allocations: 70.75 kB / 327.4 MB, free: 1.727 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003942/0.3899, allocations: 93.91 kB / 327.4 MB, free: 1.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003033/0.3902, allocations: 160.2 kB / 327.6 MB, free: 1.617 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.3904, allocations: 45.11 kB / 327.6 MB, free: 1.602 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/0.3906, allocations: 107.8 kB / 327.7 MB, free: 1.562 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.3909, allocations: 118.7 kB / 327.9 MB, free: 1.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002751/0.3912, allocations: 98.25 kB / 328 MB, free: 1.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.489e-05/0.3912, allocations: 19.41 kB / 328 MB, free: 1.496 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.325e-05/0.3913, allocations: 45.69 kB / 328 MB, free: 1.473 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.239e-05/0.3914, allocations: 20.25 kB / 328 MB, free: 1.473 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004779/0.3919, allocations: 252.8 kB / 328.3 MB, free: 1.418 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3919, allocations: 0 / 328.3 MB, free: 1.418 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3919, allocations: 0 / 328.3 MB, free: 1.418 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.392, allocations: 0 / 328.3 MB, free: 1.418 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001192/0.3932, allocations: 0.5198 MB / 328.8 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.3932, allocations: 8.688 kB / 328.8 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.293e-05/0.3933, allocations: 25.78 kB / 328.8 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003235/0.3937, allocations: 237.5 kB / 329.1 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.152e-05/0.3937, allocations: 21.5 kB / 329.1 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.412e-05/0.3938, allocations: 29.97 kB / 329.1 MB, free: 0.707 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000775/0.3946, allocations: 253.8 kB / 329.4 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.3946, allocations: 0 / 329.4 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.3947, allocations: 10.84 kB / 329.4 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.3947, allocations: 4.781 kB / 329.4 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007849/0.3955, allocations: 229.8 kB / 329.6 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.3975, allocations: 0.7268 MB / 330.3 MB, free: 72 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008807/0.3984, allocations: 249 kB / 330.6 MB, free: 15.96 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.187e-05/0.3985, allocations: 2.062 kB / 330.6 MB, free: 15.96 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.3985, allocations: 33.67 kB / 330.6 MB, free: 15.92 MB / 282.7 MB Notification: Performance of pre-optimization done (n=25): time 4.929e-06/0.3985, allocations: 0 / 330.6 MB, free: 15.92 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.005306/0.4039, allocations: 1.572 MB / 332.2 MB, free: 14.99 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.404, allocations: 55.53 kB / 332.2 MB, free: 14.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.4043, allocations: 180.9 kB / 332.4 MB, free: 14.8 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.668e-05/0.4043, allocations: 34.86 kB / 332.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.4045, allocations: 201.2 kB / 332.7 MB, free: 14.58 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.4046, allocations: 119.5 kB / 332.8 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/0.4047, allocations: 5.375 kB / 332.8 MB, free: 14.48 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.4048, allocations: 326.1 kB / 333.1 MB, free: 14.16 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004213/0.4053, allocations: 119.7 kB / 333.2 MB, free: 14.12 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004719/0.4057, allocations: 163.5 kB / 333.4 MB, free: 14.04 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/0.4061, allocations: 111 kB / 333.5 MB, free: 13.99 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.4062, allocations: 4.766 kB / 333.5 MB, free: 13.99 MB / 282.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.00165/0.4078, allocations: 0.5005 MB / 334 MB, free: 13.79 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.4079, allocations: 12.53 kB / 334 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.4079, allocations: 3.625 kB / 334 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006956/0.4086, allocations: 199.4 kB / 334.2 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004451/0.4091, allocations: 53.48 kB / 334.2 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/0.4101, allocations: 0.7281 MB / 335 MB, free: 13.1 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000516/0.4107, allocations: 54.81 kB / 335 MB, free: 13.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.878e-05/0.4107, allocations: 8.672 kB / 335 MB, free: 13.09 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002426/0.411, allocations: 149.1 kB / 335.2 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.14e-05/0.4111, allocations: 22.94 kB / 335.2 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001165/0.4112, allocations: 37.12 kB / 335.2 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.4112, allocations: 3 kB / 335.2 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.4112, allocations: 4.656 kB / 335.2 MB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.4113, allocations: 2.922 kB / 335.3 MB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002716/0.414, allocations: 1.006 MB / 336.3 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.414, allocations: 0 / 336.3 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000428/0.4145, allocations: 49.8 kB / 336.3 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005544/0.415, allocations: 169.8 kB / 336.5 MB, free: 12.24 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-05/0.4151, allocations: 10.28 kB / 336.5 MB, free: 12.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008997/0.416, allocations: 0.6972 MB / 337.2 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.416, allocations: 1.656 kB / 337.2 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002039/0.4181, allocations: 0.719 MB / 337.9 MB, free: 11.26 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002154/0.4183, allocations: 124.2 kB / 338 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.807e-05/0.4184, allocations: 19.33 kB / 338 MB, free: 11.13 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004781/0.4189, allocations: 50.08 kB / 338.1 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001923/0.4191, allocations: 51.39 kB / 338.1 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.493e-05/0.4192, allocations: 17.56 kB / 338.2 MB, free: 11.11 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002104/0.4194, allocations: 152.6 kB / 338.3 MB, free: 11.01 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4194, allocations: 0 / 338.3 MB, free: 11.01 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005148/0.4199, allocations: 78.62 kB / 338.4 MB, free: 10.99 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002451/0.4202, allocations: 120.8 kB / 338.5 MB, free: 10.89 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001139/0.4213, allocations: 309 kB / 338.8 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4214, allocations: 0 / 338.8 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005433/0.4219, allocations: 165.1 kB / 339 MB, free: 10.75 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000442/0.4224, allocations: 30.77 kB / 339 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003506/0.4259, allocations: 0.9651 MB / 340 MB, free: 10.21 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004715/0.4264, allocations: 0.7572 MB / 340.7 MB, free: 9.508 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.4266, allocations: 23.27 kB / 340.7 MB, free: 9.5 MB / 282.7 MB Notification: Performance of SimCode: time 1.473e-06/0.4266, allocations: 0 / 340.7 MB, free: 9.5 MB / 282.7 MB Notification: Performance of Templates: time 0.00949/0.4361, allocations: 3.75 MB / 344.5 MB, free: 7.992 MB / 282.7 MB