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.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 194.9 MB / 208 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.893e-05/2.904e-05, allocations: 8 kB / 255.4 MB, free: 2.691 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07658/0.07663, allocations: 44.5 MB / 299.9 MB, free: 6.125 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3512/0.4279, allocations: 75.7 MB / 375.6 MB, free: 22.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/0.4281, allocations: 69.27 kB / 375.6 MB, free: 22.35 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03748/0.4656, allocations: 9.284 MB / 384.9 MB, free: 21.37 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.682e-06/0.4657, allocations: 0 / 384.9 MB, free: 21.37 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.91e-05/0.4657, allocations: 5.906 kB / 384.9 MB, free: 21.37 MB / 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.0009857/0.4667, allocations: 0.5525 MB / 385.5 MB, free: 20.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.4667, allocations: 8.812 kB / 385.5 MB, free: 20.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003844/0.4671, allocations: 49.19 kB / 385.5 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004063/0.4676, allocations: 279.6 kB / 385.8 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.4677, allocations: 85.11 kB / 385.9 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.432e-05/0.4678, allocations: 30.75 kB / 385.9 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006891/0.4685, allocations: 352.7 kB / 386.3 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.4685, allocations: 5.594 kB / 386.3 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.803e-05/0.4686, allocations: 10.69 kB / 386.3 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.4686, allocations: 4.969 kB / 386.3 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008023/0.4694, allocations: 371.1 kB / 386.7 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.4716, allocations: 1.17 MB / 387.8 MB, free: 19.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006062/0.4722, allocations: 316.6 kB / 388.1 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003313/0.4726, allocations: 162.5 kB / 388.3 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.749e-05/0.4726, allocations: 3.938 kB / 388.3 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.4727, allocations: 37.58 kB / 388.3 MB, free: 19.9 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.387e-06/0.4727, allocations: 0 / 388.3 MB, free: 19.9 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.002863/0.4755, allocations: 1.315 MB / 389.7 MB, free: 19.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.4756, allocations: 92.7 kB / 389.7 MB, free: 19.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/0.4758, allocations: 185.2 kB / 389.9 MB, free: 19.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.001e-05/0.4759, allocations: 36.8 kB / 390 MB, free: 19.13 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.997e-05/0.476, allocations: 140.8 kB / 390.1 MB, free: 19.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.4761, allocations: 149.1 kB / 390.2 MB, free: 18.92 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.636e-05/0.4762, allocations: 8.156 kB / 390.2 MB, free: 18.92 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.979e-05/0.4762, allocations: 337.3 kB / 390.6 MB, free: 18.61 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003579/0.4766, allocations: 144 kB / 390.7 MB, free: 18.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003816/0.477, allocations: 202.3 kB / 390.9 MB, free: 18.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003356/0.4774, allocations: 141.9 kB / 391.1 MB, free: 18.55 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.4774, allocations: 7.875 kB / 391.1 MB, free: 18.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001453/0.4788, allocations: 0.5048 MB / 391.6 MB, free: 18.47 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.4789, allocations: 9.938 kB / 391.6 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.4789, allocations: 0 / 391.6 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/0.48, allocations: 231.8 kB / 391.8 MB, free: 18.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003546/0.4804, allocations: 59.61 kB / 391.9 MB, free: 18.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004346/0.4847, allocations: 2.64 MB / 394.5 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00042/0.4852, allocations: 26.5 kB / 394.5 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.229e-05/0.4853, allocations: 22.95 kB / 394.5 MB, free: 17.03 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.0001414/0.4855, allocations: 124 kB / 394.7 MB, free: 16.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.83e-05/0.4856, allocations: 31.41 kB / 394.7 MB, free: 16.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.824e-05/0.4857, allocations: 40.2 kB / 394.7 MB, free: 16.9 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.531e-06/0.4857, allocations: 3.906 kB / 394.7 MB, free: 16.9 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.856e-06/0.4857, allocations: 0 / 394.7 MB, free: 16.9 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.4857, allocations: 3.953 kB / 394.7 MB, free: 16.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002049/0.4878, allocations: 1.035 MB / 395.8 MB, free: 16.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.4878, allocations: 0 / 395.8 MB, free: 16.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003586/0.4882, allocations: 57.73 kB / 395.8 MB, free: 16.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007743/0.489, allocations: 222.6 kB / 396.1 MB, free: 16.53 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.706e-05/0.489, allocations: 19.06 kB / 396.1 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004582/0.4936, allocations: 2.578 MB / 398.7 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.541e-06/0.4937, allocations: 0 / 398.7 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002646/0.4964, allocations: 0.7414 MB / 399.4 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003723/0.4968, allocations: 141.8 kB / 399.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.4969, allocations: 11.38 kB / 399.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005844/0.4975, allocations: 30.66 kB / 399.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002727/0.4978, allocations: 66.94 kB / 399.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.713e-05/0.4979, allocations: 19.23 kB / 399.7 MB, free: 14.83 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002586/0.4982, allocations: 153.3 kB / 399.8 MB, free: 14.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-06/0.4982, allocations: 0 / 399.8 MB, free: 14.75 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001428/0.4997, allocations: 146.7 kB / 400 MB, free: 14.75 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.0008856/0.5006, allocations: 145.4 kB / 400.1 MB, free: 30.65 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001898/0.5025, allocations: 0.5539 MB / 400.6 MB, free: 30.5 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.536e-06/0.5025, allocations: 0 / 400.6 MB, free: 30.5 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.5037, allocations: 387.9 kB / 401 MB, free: 30.37 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006214/0.5044, allocations: 25.69 kB / 401.1 MB, free: 30.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/0.5063, allocations: 0.518 MB / 401.6 MB, free: 30.13 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006512/0.507, allocations: 0.7901 MB / 402.4 MB, free: 29.42 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005348/0.5075, allocations: 65.33 kB / 402.4 MB, free: 29.4 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002178/0.5078, allocations: 26.81 kB / 402.5 MB, free: 29.4 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-06/0.5078, allocations: 0 / 402.5 MB, free: 29.4 MB / 330.7 MB Notification: Performance of Templates: time 0.02481/0.5326, allocations: 6.227 MB / 408.7 MB, free: 28.96 MB / 330.7 MB