Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.732/1.732, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.391e-05/4.437e-05, allocations: 0 / 225 MB, free: 2.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.2171, allocations: 38.77 MB / 263.8 MB, free: 9.848 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1081/0.3253, allocations: 70.98 MB / 334.8 MB, free: 2.766 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/0.3256, allocations: 67.97 kB / 334.8 MB, free: 2.699 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04332/0.3689, allocations: 9.901 MB / 344.7 MB, free: 8.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.563e-06/0.369, allocations: 3.938 kB / 344.7 MB, free: 8.766 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2e-05/0.369, allocations: 8 kB / 344.7 MB, free: 8.758 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001262/0.3703, allocations: 0.5918 MB / 345.3 MB, free: 8.121 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3703, allocations: 8.031 kB / 345.3 MB, free: 8.113 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003961/0.3707, allocations: 51.55 kB / 345.4 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005376/0.3713, allocations: 290.4 kB / 345.7 MB, free: 7.738 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001697/0.3715, allocations: 92.12 kB / 345.8 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.327e-05/0.3716, allocations: 32 kB / 345.8 MB, free: 7.605 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000903/0.3725, allocations: 385.2 kB / 346.2 MB, free: 7.215 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.3725, allocations: 11.91 kB / 346.2 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.453e-05/0.3726, allocations: 8 kB / 346.2 MB, free: 7.195 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.3726, allocations: 8 kB / 346.2 MB, free: 7.188 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009817/0.3736, allocations: 409.3 kB / 346.6 MB, free: 6.789 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/0.3756, allocations: 0.9001 MB / 347.5 MB, free: 5.824 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009137/0.3766, allocations: 355.7 kB / 347.8 MB, free: 5.469 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000464/0.3771, allocations: 198.2 kB / 348 MB, free: 5.273 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.489e-05/0.3771, allocations: 8.438 kB / 348 MB, free: 5.266 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/0.3772, allocations: 42.98 kB / 348.1 MB, free: 5.215 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.945e-06/0.3772, allocations: 0 / 348.1 MB, free: 5.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.003914/0.3811, allocations: 1.531 MB / 349.6 MB, free: 3.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.816e-05/0.3812, allocations: 85.66 kB / 349.7 MB, free: 3.488 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003437/0.3816, allocations: 211 kB / 349.9 MB, free: 3.273 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.596e-05/0.3817, allocations: 37.7 kB / 349.9 MB, free: 3.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.3818, allocations: 137.2 kB / 350.1 MB, free: 3.094 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.382, allocations: 181.3 kB / 350.3 MB, free: 2.914 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.561e-05/0.3821, allocations: 12 kB / 350.3 MB, free: 2.902 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.3823, allocations: 342.8 kB / 350.6 MB, free: 2.559 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004379/0.3827, allocations: 173.1 kB / 350.8 MB, free: 2.387 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004756/0.3832, allocations: 211.5 kB / 351 MB, free: 2.176 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004252/0.3837, allocations: 155.2 kB / 351.1 MB, free: 2.023 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.029e-06/0.3837, allocations: 0 / 351.1 MB, free: 2.023 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001436/0.3851, allocations: 0.5549 MB / 351.7 MB, free: 1.457 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.3852, allocations: 4 kB / 351.7 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.539e-06/0.3852, allocations: 0 / 351.7 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009744/0.3862, allocations: 250.8 kB / 351.9 MB, free: 1.207 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004437/0.3866, allocations: 71.89 kB / 352 MB, free: 1.137 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005129/0.3918, allocations: 2.669 MB / 354.7 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004592/0.3923, allocations: 40.03 kB / 354.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.97e-05/0.3924, allocations: 20 kB / 354.7 MB, free: 14.28 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.000197/0.3926, allocations: 136.9 kB / 354.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.3927, allocations: 31.62 kB / 354.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000119/0.3929, allocations: 47.08 kB / 354.9 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.165e-06/0.3929, allocations: 8 kB / 354.9 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.169e-06/0.3929, allocations: 0 / 354.9 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.692e-06/0.3929, allocations: 7.984 kB / 355 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002732/0.3957, allocations: 1.19 MB / 356.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-06/0.3957, allocations: 32 / 356.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000488/0.3962, allocations: 75.88 kB / 356.2 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008759/0.3971, allocations: 224.7 kB / 356.4 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.797e-05/0.3972, allocations: 15.98 kB / 356.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004814/0.402, allocations: 2.588 MB / 359 MB, free: 9.754 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.402, allocations: 0 / 359 MB, free: 9.754 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/0.404, allocations: 0.8763 MB / 359.9 MB, free: 8.855 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002768/0.4043, allocations: 152.7 kB / 360.1 MB, free: 8.688 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.896e-05/0.4044, allocations: 12 kB / 360.1 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004265/0.4048, allocations: 40.03 kB / 360.1 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002278/0.4051, allocations: 76.48 kB / 360.2 MB, free: 8.559 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.397e-05/0.4052, allocations: 19.98 kB / 360.2 MB, free: 8.539 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002484/0.4054, allocations: 169.6 kB / 360.4 MB, free: 8.375 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.74e-07/0.4054, allocations: 0 / 360.4 MB, free: 8.375 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008641/0.4063, allocations: 159.9 kB / 360.5 MB, free: 8.219 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.00031/0.4066, allocations: 151.2 kB / 360.7 MB, free: 8.062 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.4081, allocations: 0.6075 MB / 361.3 MB, free: 7.449 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.082e-06/0.4081, allocations: 0 / 361.3 MB, free: 7.449 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009218/0.4091, allocations: 433.7 kB / 361.7 MB, free: 7.016 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004136/0.4095, allocations: 36.31 kB / 361.7 MB, free: 6.977 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.4111, allocations: 0.6021 MB / 362.3 MB, free: 6.352 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000545/0.4117, allocations: 0.8088 MB / 363.2 MB, free: 5.52 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003509/0.4121, allocations: 70.92 kB / 363.2 MB, free: 5.449 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.4122, allocations: 31.42 kB / 363.3 MB, free: 5.418 MB / 314.7 MB Notification: Performance of SimCode: time 1.945e-06/0.4123, allocations: 4 kB / 363.3 MB, free: 5.414 MB / 314.7 MB Notification: Performance of Templates: time 0.2219/0.6342, allocations: 6.774 MB / 370 MB, free: 94.09 MB / 314.7 MB