Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 1.777/1.777, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.639e-05/2.647e-05, allocations: 4 kB / 225 MB, free: 2.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.2177, allocations: 38.76 MB / 263.8 MB, free: 9.824 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1073/0.325, allocations: 70.38 MB / 334.2 MB, free: 3.344 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.3253, allocations: 75.95 kB / 334.2 MB, free: 3.27 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04035/0.3657, allocations: 9.279 MB / 343.5 MB, free: 9.961 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.504e-06/0.3657, allocations: 0 / 343.5 MB, free: 9.961 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.986e-05/0.3657, allocations: 7.938 kB / 343.5 MB, free: 9.953 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00115/0.3669, allocations: 0.5529 MB / 344.1 MB, free: 9.355 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.367, allocations: 8.031 kB / 344.1 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003919/0.3674, allocations: 47.61 kB / 344.1 MB, free: 9.301 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005061/0.3679, allocations: 290.4 kB / 344.4 MB, free: 8.977 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/0.3681, allocations: 87.95 kB / 344.5 MB, free: 8.879 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.407e-05/0.3682, allocations: 31.95 kB / 344.5 MB, free: 8.848 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007985/0.369, allocations: 348.2 kB / 344.9 MB, free: 8.488 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.369, allocations: 0 / 344.9 MB, free: 8.488 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.267e-05/0.3691, allocations: 12 kB / 344.9 MB, free: 8.477 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.3691, allocations: 7.984 kB / 344.9 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009004/0.37, allocations: 380.9 kB / 345.3 MB, free: 8.098 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002567/0.3726, allocations: 1.163 MB / 346.4 MB, free: 6.859 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007544/0.3734, allocations: 303 kB / 346.7 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000384/0.3738, allocations: 164.8 kB / 346.9 MB, free: 6.387 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.458e-05/0.3738, allocations: 4 kB / 346.9 MB, free: 6.383 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.3739, allocations: 42.55 kB / 346.9 MB, free: 6.332 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 4.221e-06/0.3739, allocations: 0 / 346.9 MB, free: 6.332 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003377/0.3773, allocations: 1.319 MB / 348.2 MB, free: 4.918 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.339e-05/0.3774, allocations: 84.86 kB / 348.3 MB, free: 4.816 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000306/0.3777, allocations: 190.5 kB / 348.5 MB, free: 4.625 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.169e-05/0.3778, allocations: 37.7 kB / 348.5 MB, free: 4.582 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.3779, allocations: 136.6 kB / 348.7 MB, free: 4.445 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.3781, allocations: 150.1 kB / 348.8 MB, free: 4.297 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.33e-05/0.3782, allocations: 7.938 kB / 348.8 MB, free: 4.289 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.3784, allocations: 338.8 kB / 349.2 MB, free: 3.949 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.3788, allocations: 148.8 kB / 349.3 MB, free: 3.805 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004486/0.3792, allocations: 201 kB / 349.5 MB, free: 3.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/0.3796, allocations: 141.6 kB / 349.6 MB, free: 3.453 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.415e-06/0.3796, allocations: 0 / 349.6 MB, free: 3.453 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001353/0.381, allocations: 0.5083 MB / 350.2 MB, free: 2.934 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.3811, allocations: 4 kB / 350.2 MB, free: 2.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3811, allocations: 4 kB / 350.2 MB, free: 2.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000973/0.3821, allocations: 232.8 kB / 350.4 MB, free: 2.695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003665/0.3825, allocations: 59.89 kB / 350.4 MB, free: 2.637 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005232/0.3877, allocations: 2.634 MB / 353.1 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000391/0.3881, allocations: 31.97 kB / 353.1 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-05/0.3882, allocations: 23.98 kB / 353.1 MB, free: 15.81 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001922/0.3884, allocations: 136.9 kB / 353.3 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.3886, allocations: 27.62 kB / 353.3 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.3887, allocations: 42.78 kB / 353.3 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.619e-06/0.3887, allocations: 4 kB / 353.3 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.927e-06/0.3887, allocations: 0 / 353.3 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.3887, allocations: 3.984 kB / 353.3 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002396/0.3912, allocations: 1.034 MB / 354.4 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.597e-06/0.3912, allocations: 0 / 354.4 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003554/0.3916, allocations: 39.97 kB / 354.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008728/0.3925, allocations: 228.9 kB / 354.6 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.292e-05/0.3925, allocations: 11.98 kB / 354.7 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004973/0.3975, allocations: 2.581 MB / 357.2 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.013e-06/0.3976, allocations: 3.938 kB / 357.2 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/0.3993, allocations: 0.7434 MB / 358 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002624/0.3996, allocations: 144.7 kB / 358.1 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.069e-05/0.3997, allocations: 15.95 kB / 358.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003717/0.4001, allocations: 31.97 kB / 358.2 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.4003, allocations: 67.94 kB / 358.2 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.903e-05/0.4004, allocations: 19.98 kB / 358.3 MB, free: 10.46 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002225/0.4006, allocations: 155.4 kB / 358.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.17e-07/0.4006, allocations: 0 / 358.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008269/0.4015, allocations: 140 kB / 358.5 MB, free: 10.17 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0003215/0.4018, allocations: 155 kB / 358.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00136/0.4032, allocations: 0.5498 MB / 359.2 MB, free: 9.449 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.455e-06/0.4032, allocations: 3.938 kB / 359.2 MB, free: 9.445 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008262/0.404, allocations: 384.2 kB / 359.6 MB, free: 9.059 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003803/0.4044, allocations: 24.11 kB / 359.6 MB, free: 9.035 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.4059, allocations: 0.5215 MB / 360.2 MB, free: 8.492 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005328/0.4064, allocations: 0.7881 MB / 361 MB, free: 7.68 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003117/0.4067, allocations: 58.95 kB / 361 MB, free: 7.621 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001491/0.4069, allocations: 27.42 kB / 361 MB, free: 7.594 MB / 314.7 MB Notification: Performance of SimCode: time 1.807e-06/0.4069, allocations: 4 kB / 361 MB, free: 7.59 MB / 314.7 MB Notification: Performance of Templates: time 0.01681/0.4237, allocations: 6.208 MB / 367.3 MB, free: 1.383 MB / 314.7 MB