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.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.902/1.902, allocations: 194.9 MB / 208.5 MB, free: 3.234 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.784e-05/2.8e-05, allocations: 2.406 kB / 255.4 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07845/0.0785, allocations: 44.5 MB / 299.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.336/0.4145, allocations: 76.29 MB / 376.2 MB, free: 22.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.4148, allocations: 71.86 kB / 376.2 MB, free: 22.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04032/0.4551, allocations: 9.898 MB / 386.1 MB, free: 21.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.147e-06/0.4552, allocations: 0 / 386.1 MB, free: 21.41 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.216e-05/0.4552, allocations: 9.125 kB / 386.1 MB, free: 21.4 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001119/0.4563, allocations: 0.5933 MB / 386.7 MB, free: 20.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.4564, allocations: 8.5 kB / 386.7 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003941/0.4568, allocations: 59.81 kB / 386.8 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004417/0.4572, allocations: 279.2 kB / 387.1 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001414/0.4574, allocations: 91.33 kB / 387.2 MB, free: 20.65 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.613e-05/0.4575, allocations: 33.81 kB / 387.2 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008158/0.4583, allocations: 379.8 kB / 387.6 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.4584, allocations: 0 / 387.6 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.325e-05/0.4584, allocations: 18.62 kB / 387.6 MB, free: 20.58 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.4585, allocations: 7.688 kB / 387.6 MB, free: 20.58 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008297/0.4593, allocations: 413.7 kB / 388 MB, free: 20.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.4611, allocations: 0.9038 MB / 388.9 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008248/0.462, allocations: 348.8 kB / 389.2 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000406/0.4624, allocations: 199.2 kB / 389.4 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.355e-05/0.4625, allocations: 4.344 kB / 389.4 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.4625, allocations: 49.47 kB / 389.5 MB, free: 20.12 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 4.128e-06/0.4625, allocations: 0 / 389.5 MB, free: 20.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.003363/0.4659, allocations: 1.527 MB / 391 MB, free: 19.56 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.466, allocations: 93.48 kB / 391.1 MB, free: 19.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002659/0.4662, allocations: 208.7 kB / 391.3 MB, free: 19.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.291e-05/0.4663, allocations: 40.55 kB / 391.3 MB, free: 19.33 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.129e-05/0.4664, allocations: 188.5 kB / 391.5 MB, free: 19.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.4665, allocations: 191.3 kB / 391.7 MB, free: 19.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.732e-05/0.4666, allocations: 7.125 kB / 391.7 MB, free: 19.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.5e-05/0.4667, allocations: 331.8 kB / 392 MB, free: 18.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003611/0.467, allocations: 164.7 kB / 392.2 MB, free: 18.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003997/0.4675, allocations: 219.3 kB / 392.4 MB, free: 18.69 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.4678, allocations: 159 kB / 392.6 MB, free: 18.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.894e-06/0.4679, allocations: 3.953 kB / 392.6 MB, free: 18.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001145/0.469, allocations: 0.5394 MB / 393.1 MB, free: 18.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.469, allocations: 5.5 kB / 393.1 MB, free: 18.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.534e-06/0.4691, allocations: 3.875 kB / 393.1 MB, free: 18.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008915/0.47, allocations: 243.1 kB / 393.4 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004128/0.4704, allocations: 76.19 kB / 393.4 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004159/0.4746, allocations: 2.676 MB / 396.1 MB, free: 17.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004473/0.4751, allocations: 34.47 kB / 396.1 MB, free: 17.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.22e-05/0.4752, allocations: 23.53 kB / 396.2 MB, free: 17.17 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.0001451/0.4753, allocations: 124.1 kB / 396.3 MB, free: 17.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.4754, allocations: 38.89 kB / 396.3 MB, free: 17.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.4756, allocations: 48.94 kB / 396.4 MB, free: 17.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.54e-06/0.4756, allocations: 3.906 kB / 396.4 MB, free: 17.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.927e-06/0.4756, allocations: 0 / 396.4 MB, free: 17.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.803e-06/0.4756, allocations: 7.656 kB / 396.4 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002321/0.4779, allocations: 1.191 MB / 397.6 MB, free: 16.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.969e-06/0.478, allocations: 0 / 397.6 MB, free: 16.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004346/0.4784, allocations: 72.66 kB / 397.6 MB, free: 16.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007832/0.4792, allocations: 227.3 kB / 397.9 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.563e-05/0.4793, allocations: 15.2 kB / 397.9 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003889/0.4832, allocations: 2.577 MB / 400.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.554e-06/0.4833, allocations: 3.938 kB / 400.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.4849, allocations: 0.8712 MB / 401.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/0.4852, allocations: 147.4 kB / 401.5 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.554e-05/0.4853, allocations: 22.05 kB / 401.5 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004436/0.4857, allocations: 33.34 kB / 401.5 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.486, allocations: 84.69 kB / 401.6 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.715e-05/0.486, allocations: 18.78 kB / 401.6 MB, free: 14.9 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001978/0.4863, allocations: 167.9 kB / 401.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.6e-07/0.4863, allocations: 3.938 kB / 401.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008357/0.4871, allocations: 163.5 kB / 402 MB, free: 14.81 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.0002779/0.4874, allocations: 148.9 kB / 402.1 MB, free: 14.71 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001271/0.4887, allocations: 0.6091 MB / 402.7 MB, free: 14.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.125e-06/0.4887, allocations: 0 / 402.7 MB, free: 14.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.4899, allocations: 426.9 kB / 403.1 MB, free: 30.42 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/0.4905, allocations: 34.17 kB / 403.2 MB, free: 30.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/0.492, allocations: 0.6441 MB / 403.8 MB, free: 30.12 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005095/0.4926, allocations: 0.7978 MB / 404.6 MB, free: 29.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002434/0.4928, allocations: 41.5 kB / 404.7 MB, free: 29.41 MB / 330.7 MB Notification: Performance of SimCode: time 1.494e-06/0.4929, allocations: 0 / 404.7 MB, free: 29.41 MB / 330.7 MB Notification: Performance of Templates: time 0.01009/0.503, allocations: 5.725 MB / 410.4 MB, free: 29.07 MB / 330.7 MB