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.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 2.022/2.022, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.653e-05/2.662e-05, allocations: 4 kB / 269.4 MB, free: 6.41 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08298/0.08303, allocations: 47.58 MB / 316.9 MB, free: 6.75 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.373/0.456, allocations: 80.79 MB / 397.7 MB, free: 7.352 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/0.4564, allocations: 74.95 kB / 397.8 MB, free: 7.312 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06649/0.5229, allocations: 10.14 MB / 407.9 MB, free: 14.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.756e-06/0.523, allocations: 7.938 kB / 407.9 MB, free: 14.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.854e-05/0.523, allocations: 4 kB / 407.9 MB, free: 14.71 MB / 330.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.001925/0.525, allocations: 0.5875 MB / 408.5 MB, free: 14.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.5251, allocations: 8.031 kB / 408.5 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006636/0.5257, allocations: 55.5 kB / 408.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007852/0.5265, allocations: 300.3 kB / 408.9 MB, free: 13.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000226/0.5268, allocations: 87.23 kB / 409 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001494/0.527, allocations: 31.31 kB / 409 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.5284, allocations: 383.9 kB / 409.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.502e-05/0.5285, allocations: 4 kB / 409.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.541e-05/0.5286, allocations: 7.688 kB / 409.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.826e-05/0.5286, allocations: 8 kB / 409.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/0.5303, allocations: 416 kB / 409.8 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003059/0.5334, allocations: 0.8971 MB / 410.7 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/0.5349, allocations: 347.5 kB / 411 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007436/0.5356, allocations: 210.2 kB / 411.2 MB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.134e-05/0.5357, allocations: 4.438 kB / 411.3 MB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.024e-05/0.5358, allocations: 38.88 kB / 411.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 6.078e-06/0.5358, allocations: 0 / 411.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.006394/0.5422, allocations: 1.539 MB / 412.8 MB, free: 10.57 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000147/0.5424, allocations: 81.67 kB / 412.9 MB, free: 10.47 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007151/0.5432, allocations: 212.3 kB / 413.1 MB, free: 10.29 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001502/0.5434, allocations: 39.77 kB / 413.2 MB, free: 10.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002284/0.5437, allocations: 138.6 kB / 413.3 MB, free: 10.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004081/0.5441, allocations: 179.1 kB / 413.5 MB, free: 9.984 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.844e-05/0.5442, allocations: 5.938 kB / 413.5 MB, free: 9.984 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003732/0.5446, allocations: 343.6 kB / 413.8 MB, free: 9.652 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009199/0.5456, allocations: 165.3 kB / 414 MB, free: 9.547 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.5466, allocations: 210.1 kB / 414.2 MB, free: 9.402 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007984/0.5474, allocations: 171.1 kB / 414.3 MB, free: 9.285 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.529e-06/0.5475, allocations: 0 / 414.3 MB, free: 9.285 MB / 330.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002537/0.55, allocations: 0.5528 MB / 414.9 MB, free: 8.887 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.167e-05/0.5501, allocations: 11.95 kB / 414.9 MB, free: 8.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.5501, allocations: 0 / 414.9 MB, free: 8.875 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001789/0.552, allocations: 252.8 kB / 415.1 MB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008551/0.5529, allocations: 67.88 kB / 415.2 MB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007699/0.5606, allocations: 2.662 MB / 417.9 MB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004482/0.5611, allocations: 43.25 kB / 417.9 MB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.757e-05/0.5612, allocations: 19.48 kB / 417.9 MB, free: 6.336 MB / 330.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.0001886/0.5614, allocations: 135.2 kB / 418.1 MB, free: 6.211 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.5615, allocations: 31.62 kB / 418.1 MB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.5616, allocations: 50.52 kB / 418.2 MB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.5617, allocations: 4 kB / 418.2 MB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.589e-06/0.5617, allocations: 4 kB / 418.2 MB, free: 6.156 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.009e-06/0.5617, allocations: 4 kB / 418.2 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002672/0.5644, allocations: 1.2 MB / 419.4 MB, free: 5.199 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.39e-06/0.5644, allocations: 0 / 419.4 MB, free: 5.199 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000507/0.5649, allocations: 67.89 kB / 419.4 MB, free: 5.133 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008578/0.5658, allocations: 223.8 kB / 419.6 MB, free: 4.961 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.02e-05/0.5659, allocations: 21.25 kB / 419.7 MB, free: 4.949 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004736/0.5706, allocations: 2.578 MB / 422.2 MB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.824e-06/0.5707, allocations: 4.062 kB / 422.3 MB, free: 2.758 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/0.5726, allocations: 0.8653 MB / 423.1 MB, free: 2.125 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002887/0.5729, allocations: 157.4 kB / 423.3 MB, free: 1.973 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.797e-05/0.573, allocations: 10.44 kB / 423.3 MB, free: 1.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004349/0.5735, allocations: 39.03 kB / 423.3 MB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002347/0.5737, allocations: 75.11 kB / 423.4 MB, free: 1.871 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-05/0.5738, allocations: 19.92 kB / 423.4 MB, free: 1.855 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002459/0.5741, allocations: 170.7 kB / 423.6 MB, free: 1.715 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.68e-07/0.5741, allocations: 0 / 423.6 MB, free: 1.715 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008672/0.575, allocations: 158.1 kB / 423.7 MB, free: 1.578 MB / 330.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.0003302/0.5753, allocations: 162.2 kB / 423.9 MB, free: 1.422 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.5767, allocations: 0.6052 MB / 424.5 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.5767, allocations: 4 kB / 424.5 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008783/0.5776, allocations: 431.1 kB / 424.9 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000415/0.5781, allocations: 35.11 kB / 425 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.5797, allocations: 0.6017 MB / 425.6 MB, free: 76 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005852/0.5803, allocations: 0.8049 MB / 426.4 MB, free: 15.24 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003692/0.5807, allocations: 62.95 kB / 426.4 MB, free: 15.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.5809, allocations: 39.03 kB / 426.5 MB, free: 15.14 MB / 346.7 MB Notification: Performance of SimCode: time 1.92e-06/0.5809, allocations: 0 / 426.5 MB, free: 15.14 MB / 346.7 MB Notification: Performance of Templates: time 0.0184/0.5993, allocations: 6.776 MB / 433.2 MB, free: 8.383 MB / 346.7 MB