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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 2.065/2.065, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.598e-05/3.604e-05, allocations: 4 kB / 292.1 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0905/0.09056, allocations: 50.41 MB / 342.6 MB, free: 5.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3962/0.4868, allocations: 81.32 MB / 423.9 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.4871, allocations: 65.78 kB / 423.9 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04088/0.528, allocations: 9.493 MB / 433.4 MB, free: 4.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.267e-06/0.528, allocations: 0 / 433.4 MB, free: 4.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.448e-05/0.528, allocations: 12 kB / 433.5 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.001121/0.5292, allocations: 0.5655 MB / 434 MB, free: 4.238 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.5292, allocations: 12.03 kB / 434 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003779/0.5296, allocations: 43.61 kB / 434.1 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.5301, allocations: 275.8 kB / 434.3 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.5303, allocations: 86.77 kB / 434.4 MB, free: 3.812 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.538e-05/0.5304, allocations: 25.25 kB / 434.4 MB, free: 3.797 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000749/0.5311, allocations: 353.2 kB / 434.8 MB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.797e-05/0.5312, allocations: 11.89 kB / 434.8 MB, free: 3.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.862e-05/0.5313, allocations: 13.58 kB / 434.8 MB, free: 3.516 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.5313, allocations: 8 kB / 434.8 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008595/0.5321, allocations: 372 kB / 435.2 MB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002401/0.5346, allocations: 1.151 MB / 436.3 MB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007048/0.5353, allocations: 322.8 kB / 436.7 MB, free: 2.008 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003525/0.5357, allocations: 161.5 kB / 436.8 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.865e-05/0.5357, allocations: 4 kB / 436.8 MB, free: 1.906 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.254e-05/0.5358, allocations: 42.05 kB / 436.9 MB, free: 1.859 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 3.699e-06/0.5358, allocations: 0 / 436.9 MB, free: 1.859 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.003189/0.539, allocations: 1.311 MB / 438.2 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.263e-05/0.5391, allocations: 84.86 kB / 438.3 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002873/0.5394, allocations: 188.7 kB / 438.4 MB, free: 476 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.374e-05/0.5395, allocations: 32.7 kB / 438.5 MB, free: 444 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.5396, allocations: 136.6 kB / 438.6 MB, free: 316 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.5398, allocations: 150.7 kB / 438.7 MB, free: 184 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.558e-05/0.5398, allocations: 10.44 kB / 438.8 MB, free: 180 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.54, allocations: 339 kB / 439.1 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003599/0.5404, allocations: 149.1 kB / 439.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004069/0.5408, allocations: 198.8 kB / 439.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003589/0.5412, allocations: 141.8 kB / 439.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.767e-06/0.5412, allocations: 0 / 439.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001229/0.5425, allocations: 0.5031 MB / 440.1 MB, free: 15.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.5425, allocations: 4 kB / 440.1 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.5425, allocations: 0 / 440.1 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000911/0.5434, allocations: 240.8 kB / 440.3 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003431/0.5438, allocations: 59.02 kB / 440.4 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004904/0.5487, allocations: 2.633 MB / 443 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003873/0.5492, allocations: 43.5 kB / 443 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.119e-05/0.5492, allocations: 15.98 kB / 443.1 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.0001765/0.5494, allocations: 123.8 kB / 443.2 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.5496, allocations: 27.67 kB / 443.2 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.511e-05/0.5497, allocations: 39.53 kB / 443.2 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.956e-06/0.5497, allocations: 4 kB / 443.2 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.643e-06/0.5497, allocations: 4 kB / 443.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.5497, allocations: 7.984 kB / 443.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00222/0.552, allocations: 1.037 MB / 444.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.955e-06/0.552, allocations: 0 / 444.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003423/0.5523, allocations: 51.16 kB / 444.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008382/0.5532, allocations: 222.5 kB / 444.6 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.673e-05/0.5533, allocations: 14.86 kB / 444.6 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004659/0.5579, allocations: 2.583 MB / 447.2 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.742e-06/0.558, allocations: 0 / 447.2 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001608/0.5596, allocations: 0.7302 MB / 447.9 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002419/0.5599, allocations: 142.7 kB / 448 MB, free: 8.535 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.444e-05/0.56, allocations: 10.94 kB / 448 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003755/0.5603, allocations: 31.78 kB / 448.1 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.5606, allocations: 69.64 kB / 448.1 MB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.599e-05/0.5606, allocations: 15.36 kB / 448.2 MB, free: 8.434 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002124/0.5609, allocations: 154 kB / 448.3 MB, free: 8.305 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.5609, allocations: 0 / 448.3 MB, free: 8.305 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008475/0.5617, allocations: 155.9 kB / 448.5 MB, free: 8.172 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.0003232/0.5621, allocations: 160.2 kB / 448.6 MB, free: 8.012 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.5635, allocations: 0.5495 MB / 449.2 MB, free: 7.492 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.5635, allocations: 0 / 449.2 MB, free: 7.492 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008526/0.5644, allocations: 388.2 kB / 449.5 MB, free: 7.102 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003833/0.5648, allocations: 24.53 kB / 449.6 MB, free: 7.078 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.5661, allocations: 0.5289 MB / 450.1 MB, free: 6.531 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005292/0.5667, allocations: 0.7881 MB / 450.9 MB, free: 5.715 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003049/0.567, allocations: 58.95 kB / 450.9 MB, free: 5.656 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.5672, allocations: 43.23 kB / 451 MB, free: 5.613 MB / 362.7 MB Notification: Performance of SimCode: time 1.671e-06/0.5672, allocations: 0 / 451 MB, free: 5.613 MB / 362.7 MB Notification: Performance of Templates: time 0.01728/0.5845, allocations: 6.224 MB / 457.2 MB, free: 15.4 MB / 378.7 MB