Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 1.888/1.888, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.227e-05/3.241e-05, allocations: 4 kB / 292.1 MB, free: 8.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09097/0.09103, allocations: 50.41 MB / 342.5 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3636/0.4547, allocations: 81.39 MB / 423.9 MB, free: 12.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.455, allocations: 71.08 kB / 424 MB, free: 12.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04064/0.4956, allocations: 9.491 MB / 433.5 MB, free: 4.715 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.898e-06/0.4957, allocations: 0 / 433.5 MB, free: 4.715 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.48e-05/0.4957, allocations: 12 kB / 433.5 MB, free: 4.703 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.001166/0.4969, allocations: 0.5589 MB / 434.1 MB, free: 4.117 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.4969, allocations: 15.97 kB / 434.1 MB, free: 4.102 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000394/0.4973, allocations: 47.59 kB / 434.1 MB, free: 4.055 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004928/0.4979, allocations: 275.2 kB / 434.4 MB, free: 3.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.498, allocations: 86.39 kB / 434.5 MB, free: 3.684 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.315e-05/0.4981, allocations: 26.75 kB / 434.5 MB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007844/0.4989, allocations: 345.9 kB / 434.8 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.945e-05/0.499, allocations: 19.88 kB / 434.9 MB, free: 3.391 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.924e-05/0.499, allocations: 12.95 kB / 434.9 MB, free: 3.387 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.4991, allocations: 8 kB / 434.9 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008573/0.4999, allocations: 371.5 kB / 435.2 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002459/0.5024, allocations: 1.147 MB / 436.4 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007167/0.5032, allocations: 326.6 kB / 436.7 MB, free: 1.883 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003611/0.5035, allocations: 163.2 kB / 436.9 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.999e-05/0.5036, allocations: 12.14 kB / 436.9 MB, free: 1.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.5036, allocations: 34.44 kB / 436.9 MB, free: 1.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 4.216e-06/0.5037, allocations: 0 / 436.9 MB, free: 1.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.003283/0.5069, allocations: 1.31 MB / 438.2 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.317e-05/0.5071, allocations: 84.86 kB / 438.3 MB, free: 0.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003059/0.5074, allocations: 191.5 kB / 438.5 MB, free: 344 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.324e-05/0.5075, allocations: 41.06 kB / 438.5 MB, free: 304 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.5076, allocations: 189.7 kB / 438.7 MB, free: 120 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/0.5078, allocations: 151.2 kB / 438.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.279e-05/0.5079, allocations: 10.31 kB / 438.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.508, allocations: 333.7 kB / 439.2 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003608/0.5084, allocations: 148 kB / 439.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004187/0.5088, allocations: 200.3 kB / 439.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003596/0.5092, allocations: 145.1 kB / 439.7 MB, free: 15.31 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.5092, allocations: 0 / 439.7 MB, free: 15.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001263/0.5105, allocations: 0.4933 MB / 440.2 MB, free: 14.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.5106, allocations: 4 kB / 440.2 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.5106, allocations: 4 kB / 440.2 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009474/0.5115, allocations: 243.6 kB / 440.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00036/0.5119, allocations: 51.91 kB / 440.5 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004965/0.5169, allocations: 2.641 MB / 443.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000395/0.5173, allocations: 31.11 kB / 443.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.292e-05/0.5174, allocations: 19.61 kB / 443.2 MB, free: 12.44 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.0001775/0.5176, allocations: 123.3 kB / 443.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.5178, allocations: 27.67 kB / 443.3 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.676e-05/0.5179, allocations: 46.27 kB / 443.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.5179, allocations: 8 kB / 443.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.69e-06/0.5179, allocations: 0 / 443.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.5179, allocations: 0 / 443.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002269/0.5202, allocations: 1.03 MB / 444.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.5202, allocations: 4 kB / 444.4 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003637/0.5206, allocations: 51.2 kB / 444.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008515/0.5215, allocations: 224.6 kB / 444.7 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-05/0.5215, allocations: 18.73 kB / 444.7 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004743/0.5263, allocations: 2.576 MB / 447.3 MB, free: 9.027 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.862e-06/0.5263, allocations: 0 / 447.3 MB, free: 9.027 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.528, allocations: 0.7331 MB / 448 MB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000256/0.5283, allocations: 141.9 kB / 448.1 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.796e-05/0.5284, allocations: 14.61 kB / 448.1 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003835/0.5288, allocations: 27.92 kB / 448.2 MB, free: 8.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002252/0.529, allocations: 74.81 kB / 448.3 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.623e-05/0.5291, allocations: 15.61 kB / 448.3 MB, free: 8.246 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002142/0.5293, allocations: 152.3 kB / 448.4 MB, free: 8.117 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.5293, allocations: 4 kB / 448.4 MB, free: 8.113 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008411/0.5302, allocations: 145.7 kB / 448.6 MB, free: 7.988 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.0003526/0.5305, allocations: 151.6 kB / 448.7 MB, free: 7.836 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.5319, allocations: 0.5535 MB / 449.3 MB, free: 7.414 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.608e-06/0.5319, allocations: 0 / 449.3 MB, free: 7.414 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008209/0.5328, allocations: 386.8 kB / 449.6 MB, free: 7.109 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003967/0.5332, allocations: 27.86 kB / 449.7 MB, free: 7.094 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.5346, allocations: 0.5571 MB / 450.2 MB, free: 6.586 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005326/0.5352, allocations: 0.788 MB / 451 MB, free: 5.773 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.5354, allocations: 40.59 kB / 451.1 MB, free: 5.738 MB / 362.7 MB Notification: Performance of SimCode: time 1.999e-06/0.5354, allocations: 3.938 kB / 451.1 MB, free: 5.734 MB / 362.7 MB Notification: Performance of Templates: time 0.01069/0.5461, allocations: 5.006 MB / 456.1 MB, free: 0.7578 MB / 362.7 MB