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.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 1.883/1.883, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.498e-05/3.512e-05, allocations: 4 kB / 269.3 MB, free: 6.402 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08303/0.08309, allocations: 47.58 MB / 316.9 MB, free: 6.738 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3848/0.468, allocations: 80.08 MB / 397 MB, free: 8.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003528/0.4684, allocations: 73.34 kB / 397.1 MB, free: 8.035 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04802/0.5164, allocations: 9.355 MB / 406.4 MB, free: 120 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5165, allocations: 7.938 kB / 406.4 MB, free: 112 kB / 314.7 MB Notification: Performance of Transformations before backend: time 2.486e-05/0.5165, allocations: 7.984 kB / 406.5 MB, free: 104 kB / 314.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.001192/0.5177, allocations: 0.548 MB / 407 MB, free: 15.53 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.5178, allocations: 8.031 kB / 407 MB, free: 15.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003909/0.5182, allocations: 47.61 kB / 407.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004763/0.5187, allocations: 277.3 kB / 407.3 MB, free: 15.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.5188, allocations: 95.53 kB / 407.4 MB, free: 15.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.45e-05/0.5189, allocations: 35.41 kB / 407.5 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007452/0.5197, allocations: 350.2 kB / 407.8 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.5197, allocations: 0 / 407.8 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.91e-05/0.5198, allocations: 13.31 kB / 407.8 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.5198, allocations: 4 kB / 407.8 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008457/0.5207, allocations: 374.9 kB / 408.2 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002444/0.5231, allocations: 1.17 MB / 409.3 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006901/0.5239, allocations: 302.4 kB / 409.6 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000359/0.5242, allocations: 166.6 kB / 409.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.731e-05/0.5243, allocations: 4 kB / 409.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.5243, allocations: 37.81 kB / 409.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.525e-06/0.5243, allocations: 0 / 409.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.003232/0.5276, allocations: 1.321 MB / 411.2 MB, free: 12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.685e-05/0.5277, allocations: 84.86 kB / 411.3 MB, free: 11.9 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002928/0.528, allocations: 185.9 kB / 411.4 MB, free: 11.73 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.572e-05/0.5281, allocations: 36.95 kB / 411.5 MB, free: 11.7 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.5282, allocations: 138 kB / 411.6 MB, free: 11.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.5284, allocations: 153 kB / 411.8 MB, free: 11.45 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.5284, allocations: 6.75 kB / 411.8 MB, free: 11.45 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.5286, allocations: 336.4 kB / 412.1 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003566/0.529, allocations: 148.3 kB / 412.2 MB, free: 11.03 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000416/0.5294, allocations: 207.1 kB / 412.4 MB, free: 10.87 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003461/0.5298, allocations: 137.2 kB / 412.6 MB, free: 10.77 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.018e-06/0.5298, allocations: 0 / 412.6 MB, free: 10.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001244/0.5311, allocations: 0.5158 MB / 413.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.5311, allocations: 7.953 kB / 413.1 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.5311, allocations: 4 kB / 413.1 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009165/0.5321, allocations: 228.6 kB / 413.3 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003464/0.5324, allocations: 59.33 kB / 413.4 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004834/0.5373, allocations: 2.626 MB / 416 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003774/0.5377, allocations: 30.59 kB / 416 MB, free: 7.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.513e-05/0.5378, allocations: 25.55 kB / 416.1 MB, free: 7.891 MB / 330.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.0001805/0.538, allocations: 137.6 kB / 416.2 MB, free: 7.762 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.5381, allocations: 23.72 kB / 416.2 MB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.767e-05/0.5382, allocations: 37.53 kB / 416.3 MB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.711e-06/0.5382, allocations: 11.94 kB / 416.3 MB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.422e-06/0.5382, allocations: 0 / 416.3 MB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.477e-06/0.5383, allocations: 3.984 kB / 416.3 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002213/0.5405, allocations: 1.033 MB / 417.3 MB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.444e-06/0.5405, allocations: 4 kB / 417.3 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003377/0.5409, allocations: 43.34 kB / 417.3 MB, free: 6.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008757/0.5418, allocations: 230.6 kB / 417.6 MB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.862e-05/0.5418, allocations: 13.23 kB / 417.6 MB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004789/0.5466, allocations: 2.582 MB / 420.2 MB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.5467, allocations: 0 / 420.2 MB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001605/0.5483, allocations: 0.7406 MB / 420.9 MB, free: 3.918 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/0.5486, allocations: 145.1 kB / 421.1 MB, free: 3.773 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.703e-05/0.5486, allocations: 10.5 kB / 421.1 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000378/0.549, allocations: 29.78 kB / 421.1 MB, free: 3.746 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/0.5493, allocations: 73.5 kB / 421.2 MB, free: 3.684 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.435e-05/0.5494, allocations: 15.8 kB / 421.2 MB, free: 3.672 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002124/0.5496, allocations: 157.1 kB / 421.3 MB, free: 3.539 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.69e-07/0.5496, allocations: 0 / 421.3 MB, free: 3.539 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008294/0.5504, allocations: 148.2 kB / 421.5 MB, free: 3.414 MB / 330.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.0003123/0.5508, allocations: 146 kB / 421.6 MB, free: 3.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.5521, allocations: 0.556 MB / 422.2 MB, free: 2.844 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.5521, allocations: 4 kB / 422.2 MB, free: 2.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.5533, allocations: 385.5 kB / 422.6 MB, free: 2.539 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000602/0.554, allocations: 26.3 kB / 422.6 MB, free: 2.523 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00239/0.5564, allocations: 0.5201 MB / 423.1 MB, free: 2.055 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007792/0.5572, allocations: 0.7878 MB / 423.9 MB, free: 1.238 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005131/0.5577, allocations: 58.95 kB / 423.9 MB, free: 1.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.558, allocations: 27.36 kB / 424 MB, free: 1.156 MB / 330.7 MB Notification: Performance of SimCode: time 2.125e-06/0.558, allocations: 4 kB / 424 MB, free: 1.152 MB / 330.7 MB Notification: Performance of Templates: time 0.02028/0.5783, allocations: 6.223 MB / 430.2 MB, free: 10.94 MB / 346.7 MB