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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 2.083/2.083, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.387e-05/2.399e-05, allocations: 0 / 292.7 MB, free: 8.344 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.09633, allocations: 50.41 MB / 343.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3557/0.4521, allocations: 81.33 MB / 424.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.4523, allocations: 70.66 kB / 424.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0406/0.4929, allocations: 9.484 MB / 434 MB, free: 4.844 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.518e-06/0.493, allocations: 8 kB / 434 MB, free: 4.836 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.932e-05/0.493, allocations: 8 kB / 434 MB, free: 4.828 MB / 346.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.001153/0.4942, allocations: 0.5692 MB / 434.5 MB, free: 4.234 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.4942, allocations: 8.031 kB / 434.5 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003904/0.4946, allocations: 47.61 kB / 434.6 MB, free: 4.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000474/0.4951, allocations: 270.9 kB / 434.9 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.4953, allocations: 90.08 kB / 434.9 MB, free: 3.809 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.299e-05/0.4954, allocations: 30.19 kB / 435 MB, free: 3.789 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007658/0.4962, allocations: 354.4 kB / 435.3 MB, free: 3.523 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.364e-05/0.4962, allocations: 3.906 kB / 435.3 MB, free: 3.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.372e-05/0.4963, allocations: 15.64 kB / 435.3 MB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.4963, allocations: 4 kB / 435.3 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008789/0.4972, allocations: 378 kB / 435.7 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/0.4996, allocations: 1.152 MB / 436.9 MB, free: 2.238 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007134/0.5004, allocations: 312.6 kB / 437.2 MB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003619/0.5008, allocations: 167 kB / 437.3 MB, free: 1.906 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.1e-05/0.5008, allocations: 11.17 kB / 437.3 MB, free: 1.898 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.5008, allocations: 33.12 kB / 437.4 MB, free: 1.859 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 3.518e-06/0.5009, allocations: 0 / 437.4 MB, free: 1.859 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.00323/0.5041, allocations: 1.315 MB / 438.7 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.652e-05/0.5042, allocations: 84.86 kB / 438.8 MB, free: 0.625 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003045/0.5045, allocations: 195.9 kB / 439 MB, free: 468 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.071e-05/0.5046, allocations: 37.02 kB / 439 MB, free: 428 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.5047, allocations: 134.2 kB / 439.1 MB, free: 304 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.5049, allocations: 151.1 kB / 439.3 MB, free: 172 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.505e-05/0.505, allocations: 6.375 kB / 439.3 MB, free: 172 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.5052, allocations: 341.7 kB / 439.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003597/0.5055, allocations: 146.2 kB / 439.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004132/0.506, allocations: 200.6 kB / 440 MB, free: 15.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003663/0.5064, allocations: 144.4 kB / 440.1 MB, free: 15.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.027e-06/0.5064, allocations: 0 / 440.1 MB, free: 15.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001272/0.5077, allocations: 0.4969 MB / 440.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.5077, allocations: 8.156 kB / 440.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.699e-06/0.5077, allocations: 4 kB / 440.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009684/0.5087, allocations: 231.5 kB / 440.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003566/0.5091, allocations: 54.72 kB / 440.9 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004939/0.514, allocations: 2.635 MB / 443.5 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003768/0.5144, allocations: 38.97 kB / 443.6 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.423e-05/0.5145, allocations: 19.94 kB / 443.6 MB, free: 12.62 MB / 362.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.0001764/0.5147, allocations: 119.2 kB / 443.7 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.5149, allocations: 31.66 kB / 443.7 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.857e-05/0.515, allocations: 40.09 kB / 443.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.289e-06/0.515, allocations: 8 kB / 443.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.54e-06/0.515, allocations: 4 kB / 443.8 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.114e-06/0.515, allocations: 3.984 kB / 443.8 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002295/0.5173, allocations: 1.037 MB / 444.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.5173, allocations: 0 / 444.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003514/0.5177, allocations: 47.91 kB / 444.9 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008626/0.5186, allocations: 226.7 kB / 445.1 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-05/0.5187, allocations: 14.92 kB / 445.1 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004739/0.5234, allocations: 2.584 MB / 447.7 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.454e-06/0.5235, allocations: 0 / 447.7 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.5251, allocations: 0.7311 MB / 448.4 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002375/0.5254, allocations: 145 kB / 448.6 MB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.685e-05/0.5255, allocations: 10.88 kB / 448.6 MB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003701/0.5258, allocations: 31.66 kB / 448.6 MB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.5261, allocations: 69.64 kB / 448.7 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-05/0.5261, allocations: 15.86 kB / 448.7 MB, free: 8.426 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002147/0.5264, allocations: 157.2 kB / 448.8 MB, free: 8.293 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.66e-07/0.5264, allocations: 0 / 448.8 MB, free: 8.293 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008559/0.5273, allocations: 148.9 kB / 449 MB, free: 8.164 MB / 362.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.0003157/0.5276, allocations: 158 kB / 449.1 MB, free: 8.004 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00136/0.529, allocations: 0.5508 MB / 449.7 MB, free: 7.465 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.794e-06/0.529, allocations: 4.25 kB / 449.7 MB, free: 7.461 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008416/0.5298, allocations: 388 kB / 450.1 MB, free: 7.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.5303, allocations: 30.91 kB / 450.1 MB, free: 7.043 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.5317, allocations: 0.5172 MB / 450.6 MB, free: 6.508 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005198/0.5322, allocations: 0.7881 MB / 451.4 MB, free: 5.695 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003205/0.5325, allocations: 58.95 kB / 451.5 MB, free: 5.637 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.5327, allocations: 31.41 kB / 451.5 MB, free: 5.605 MB / 362.7 MB Notification: Performance of SimCode: time 1.793e-06/0.5327, allocations: 7.875 kB / 451.5 MB, free: 5.598 MB / 362.7 MB Notification: Performance of Templates: time 0.01698/0.5497, allocations: 6.214 MB / 457.7 MB, free: 15.39 MB / 378.7 MB