Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 2.008/2.008, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.243e-05/3.251e-05, allocations: 7.984 kB / 292.1 MB, free: 8.836 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09166/0.09171, allocations: 50.42 MB / 342.5 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.366/0.4578, allocations: 83.57 MB / 426.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.458, allocations: 73.19 kB / 426.2 MB, free: 10.58 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05056/0.5086, allocations: 12.01 MB / 438.2 MB, free: 316 kB / 346.7 MB Notification: Performance of FrontEnd: time 5.041e-06/0.5087, allocations: 4 kB / 438.2 MB, free: 312 kB / 346.7 MB Notification: Performance of Transformations before backend: time 2.46e-05/0.5087, allocations: 4 kB / 438.2 MB, free: 308 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001651/0.5104, allocations: 0.7 MB / 438.9 MB, free: 15.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.5104, allocations: 8.031 kB / 438.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004392/0.5109, allocations: 63.42 kB / 439 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006195/0.5115, allocations: 334.6 kB / 439.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001671/0.5117, allocations: 94.23 kB / 439.4 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.5118, allocations: 41.38 kB / 439.4 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.513, allocations: 0.4987 MB / 439.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.756e-05/0.5131, allocations: 3.906 kB / 439.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.455e-05/0.5132, allocations: 21.53 kB / 440 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.102e-05/0.5132, allocations: 8 kB / 440 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.5145, allocations: 0.5391 MB / 440.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00275/0.5173, allocations: 1.159 MB / 441.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.5184, allocations: 459.2 kB / 442.1 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006145/0.519, allocations: 283.5 kB / 442.4 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.15e-05/0.5191, allocations: 16.53 kB / 442.4 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.5192, allocations: 39 kB / 442.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 3.907e-06/0.5192, allocations: 4 kB / 442.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.005058/0.5243, allocations: 1.976 MB / 444.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.79e-05/0.5244, allocations: 89.88 kB / 444.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004157/0.5248, allocations: 250.6 kB / 444.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.931e-05/0.5249, allocations: 48.08 kB / 444.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.5251, allocations: 212.3 kB / 445 MB, free: 10.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002589/0.5253, allocations: 231.9 kB / 445.2 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.886e-05/0.5254, allocations: 14.48 kB / 445.2 MB, free: 10.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.5256, allocations: 337.8 kB / 445.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005808/0.5262, allocations: 236.4 kB / 445.8 MB, free: 9.988 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006475/0.5269, allocations: 299.2 kB / 446.1 MB, free: 9.785 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005499/0.5274, allocations: 220.3 kB / 446.3 MB, free: 9.633 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.363e-06/0.5274, allocations: 0 / 446.3 MB, free: 9.633 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002053/0.5295, allocations: 0.7748 MB / 447.1 MB, free: 9.078 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.5296, allocations: 8 kB / 447.1 MB, free: 9.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.5296, allocations: 32 / 447.1 MB, free: 9.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001374/0.531, allocations: 428.3 kB / 447.5 MB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000526/0.5315, allocations: 91.38 kB / 447.6 MB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/0.5333, allocations: 1.004 MB / 448.6 MB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006909/0.534, allocations: 83.42 kB / 448.7 MB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.5341, allocations: 33.17 kB / 448.7 MB, free: 7.719 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002381/0.5344, allocations: 144.9 kB / 448.9 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001521/0.5345, allocations: 43.44 kB / 448.9 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002149/0.5367, allocations: 0.8219 MB / 449.7 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/0.5367, allocations: 11.95 kB / 449.7 MB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.208e-06/0.5367, allocations: 0 / 449.7 MB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.5368, allocations: 3.984 kB / 449.7 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004077/0.5409, allocations: 1.642 MB / 451.4 MB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.052e-06/0.5409, allocations: 3.984 kB / 451.4 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005419/0.5415, allocations: 91.45 kB / 451.5 MB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001253/0.5427, allocations: 396.9 kB / 451.9 MB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.841e-05/0.5428, allocations: 32.78 kB / 451.9 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001658/0.5445, allocations: 0.9664 MB / 452.9 MB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.308e-06/0.5445, allocations: 0 / 452.9 MB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003012/0.5476, allocations: 1.197 MB / 454.1 MB, free: 3.086 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004079/0.548, allocations: 184.6 kB / 454.2 MB, free: 2.887 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001432/0.5482, allocations: 20 kB / 454.3 MB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006749/0.5488, allocations: 68 kB / 454.3 MB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002764/0.5491, allocations: 108.4 kB / 454.4 MB, free: 2.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.367e-05/0.5493, allocations: 27.97 kB / 454.5 MB, free: 2.668 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003274/0.5496, allocations: 207.1 kB / 454.7 MB, free: 2.465 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.75e-07/0.5496, allocations: 0 / 454.7 MB, free: 2.465 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007258/0.5504, allocations: 155.9 kB / 454.8 MB, free: 2.312 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003491/0.5507, allocations: 155.7 kB / 455 MB, free: 2.148 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.5524, allocations: 0.6287 MB / 455.6 MB, free: 1.512 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.913e-06/0.5525, allocations: 0 / 455.6 MB, free: 1.512 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009511/0.5534, allocations: 349.9 kB / 455.9 MB, free: 1.172 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005081/0.554, allocations: 52.73 kB / 456 MB, free: 1.117 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003029/0.557, allocations: 1.001 MB / 457 MB, free: 84 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/0.5576, allocations: 0.8291 MB / 457.8 MB, free: 15.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.5579, allocations: 51.33 kB / 457.9 MB, free: 15.18 MB / 378.7 MB Notification: Performance of SimCode: time 1.98e-06/0.5579, allocations: 0 / 457.9 MB, free: 15.18 MB / 378.7 MB Notification: Performance of Templates: time 0.01399/0.5719, allocations: 6.947 MB / 464.8 MB, free: 8.234 MB / 378.7 MB