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.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.725/1.725, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.291e-05/3.312e-05, allocations: 7.984 kB / 225 MB, free: 2.832 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.213, allocations: 38.77 MB / 263.8 MB, free: 9.898 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1094/0.3225, allocations: 70.98 MB / 334.7 MB, free: 2.805 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.3227, allocations: 67.97 kB / 334.8 MB, free: 2.738 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04412/0.3669, allocations: 9.893 MB / 344.7 MB, free: 8.816 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.008e-06/0.3669, allocations: 0 / 344.7 MB, free: 8.816 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.316e-05/0.367, allocations: 11.94 kB / 344.7 MB, free: 8.805 MB / 298.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.001255/0.3682, allocations: 0.5801 MB / 345.3 MB, free: 8.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.3683, allocations: 8.031 kB / 345.3 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004019/0.3687, allocations: 55.61 kB / 345.4 MB, free: 8.117 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000533/0.3693, allocations: 282.4 kB / 345.6 MB, free: 7.801 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.3694, allocations: 92.12 kB / 345.7 MB, free: 7.699 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.3696, allocations: 36 kB / 345.8 MB, free: 7.664 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009059/0.3705, allocations: 385.3 kB / 346.1 MB, free: 7.273 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.3705, allocations: 11.83 kB / 346.1 MB, free: 7.262 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.666e-05/0.3706, allocations: 12 kB / 346.2 MB, free: 7.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.3706, allocations: 4 kB / 346.2 MB, free: 7.246 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009819/0.3716, allocations: 417.3 kB / 346.6 MB, free: 6.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.3736, allocations: 0.8962 MB / 347.5 MB, free: 5.883 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008875/0.3746, allocations: 355.7 kB / 347.8 MB, free: 5.527 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004593/0.3751, allocations: 198.2 kB / 348 MB, free: 5.332 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.102e-05/0.3751, allocations: 16.41 kB / 348 MB, free: 5.316 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.3752, allocations: 39 kB / 348.1 MB, free: 5.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.882e-06/0.3752, allocations: 0 / 348.1 MB, free: 5.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.003953/0.3791, allocations: 1.539 MB / 349.6 MB, free: 3.637 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.065e-05/0.3793, allocations: 85.67 kB / 349.7 MB, free: 3.535 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003679/0.3796, allocations: 207 kB / 349.9 MB, free: 3.324 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.749e-05/0.3797, allocations: 37.7 kB / 349.9 MB, free: 3.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.3799, allocations: 187.6 kB / 350.1 MB, free: 3.098 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/0.3801, allocations: 189.3 kB / 350.3 MB, free: 2.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.014e-05/0.3802, allocations: 8 kB / 350.3 MB, free: 2.902 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.3804, allocations: 334.8 kB / 350.6 MB, free: 2.566 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004312/0.3808, allocations: 161.1 kB / 350.8 MB, free: 2.406 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004733/0.3813, allocations: 211.6 kB / 351 MB, free: 2.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004432/0.3818, allocations: 167.2 kB / 351.1 MB, free: 2.031 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.067e-06/0.3818, allocations: 0 / 351.1 MB, free: 2.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00136/0.3832, allocations: 0.5394 MB / 351.7 MB, free: 1.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.3832, allocations: 8 kB / 351.7 MB, free: 1.473 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.831e-06/0.3832, allocations: 4.031 kB / 351.7 MB, free: 1.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009814/0.3842, allocations: 238.8 kB / 351.9 MB, free: 1.234 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004632/0.3847, allocations: 67.89 kB / 352 MB, free: 1.168 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005247/0.39, allocations: 2.68 MB / 354.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004695/0.3905, allocations: 44.06 kB / 354.7 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-05/0.3906, allocations: 19.98 kB / 354.7 MB, free: 14.3 MB / 314.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.0001939/0.3908, allocations: 132.9 kB / 354.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.3909, allocations: 31.62 kB / 354.9 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001248/0.3911, allocations: 47.08 kB / 354.9 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.69e-06/0.3911, allocations: 8 kB / 355 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.5e-06/0.3911, allocations: 0 / 355 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.3911, allocations: 0 / 355 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002771/0.3939, allocations: 1.194 MB / 356.1 MB, free: 12.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.45e-06/0.3939, allocations: 0 / 356.1 MB, free: 12.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004911/0.3944, allocations: 71.89 kB / 356.2 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008818/0.3953, allocations: 216.8 kB / 356.4 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.934e-05/0.3954, allocations: 15.98 kB / 356.4 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004896/0.4003, allocations: 2.603 MB / 359.1 MB, free: 9.773 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.152e-06/0.4004, allocations: 0 / 359.1 MB, free: 9.773 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00199/0.4024, allocations: 0.8612 MB / 359.9 MB, free: 8.883 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002989/0.4027, allocations: 156.7 kB / 360.1 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.9e-05/0.4028, allocations: 12 kB / 360.1 MB, free: 8.699 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004433/0.4033, allocations: 44.09 kB / 360.1 MB, free: 8.656 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/0.4036, allocations: 80.42 kB / 360.2 MB, free: 8.578 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-05/0.4036, allocations: 19.98 kB / 360.2 MB, free: 8.559 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002564/0.4039, allocations: 169.6 kB / 360.4 MB, free: 8.395 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.25e-07/0.4039, allocations: 0 / 360.4 MB, free: 8.395 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008749/0.4048, allocations: 159.9 kB / 360.5 MB, free: 8.238 MB / 314.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.0003265/0.4051, allocations: 154 kB / 360.7 MB, free: 8.082 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.4067, allocations: 0.6113 MB / 361.3 MB, free: 7.465 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.822e-06/0.4067, allocations: 0 / 361.3 MB, free: 7.465 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009926/0.4077, allocations: 429.7 kB / 361.7 MB, free: 7.031 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004482/0.4082, allocations: 32.38 kB / 361.8 MB, free: 7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.4099, allocations: 0.6351 MB / 362.4 MB, free: 6.336 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005419/0.4104, allocations: 0.8049 MB / 363.2 MB, free: 5.508 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002407/0.4107, allocations: 39.41 kB / 363.2 MB, free: 5.469 MB / 314.7 MB Notification: Performance of SimCode: time 2.594e-06/0.4107, allocations: 0 / 363.2 MB, free: 5.469 MB / 314.7 MB Notification: Performance of Templates: time 0.1913/0.602, allocations: 5.728 MB / 369 MB, free: 93.72 MB / 314.7 MB