Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.003/1.003, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.259e-05/2.295e-05, allocations: 0 / 151.4 MB, free: 15.59 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1429, allocations: 25.15 MB / 176.5 MB, free: 4 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05581/0.1987, allocations: 35.74 MB / 212.3 MB, free: 13.71 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.199, allocations: 59.97 kB / 212.3 MB, free: 13.65 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02959/0.2286, allocations: 6.654 MB / 219 MB, free: 6.984 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.398e-06/0.2287, allocations: 0 / 219 MB, free: 6.984 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.786e-05/0.2287, allocations: 8 kB / 219 MB, free: 6.977 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001087/0.2298, allocations: 0.5375 MB / 219.5 MB, free: 6.395 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.2298, allocations: 8.031 kB / 219.5 MB, free: 6.387 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.864e-05/0.23, allocations: 31.62 kB / 219.6 MB, free: 6.355 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003796/0.2304, allocations: 246.6 kB / 219.8 MB, free: 6.074 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.666e-05/0.2304, allocations: 20.56 kB / 219.8 MB, free: 6.055 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.323e-05/0.2305, allocations: 24 kB / 219.9 MB, free: 6.031 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007195/0.2312, allocations: 314.5 kB / 220.2 MB, free: 5.711 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.2313, allocations: 3.953 kB / 220.2 MB, free: 5.707 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.611e-05/0.2313, allocations: 16 kB / 220.2 MB, free: 5.691 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.012e-05/0.2314, allocations: 8 kB / 220.2 MB, free: 5.684 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006159/0.232, allocations: 241 kB / 220.4 MB, free: 5.449 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.234, allocations: 0.8557 MB / 221.3 MB, free: 4.531 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008196/0.2349, allocations: 343.2 kB / 221.6 MB, free: 4.188 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004028/0.2353, allocations: 176.8 kB / 221.8 MB, free: 4.012 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.613e-05/0.2354, allocations: 12.66 kB / 221.8 MB, free: 4 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.2354, allocations: 34.56 kB / 221.8 MB, free: 3.957 MB / 186.7 MB Notification: Performance of pre-optimization done (n=36): time 3.727e-06/0.2354, allocations: 0 / 221.8 MB, free: 3.957 MB / 186.7 MB Notification: Performance of matching and sorting (n=42): time 0.003531/0.239, allocations: 1.443 MB / 223.3 MB, free: 2.418 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/0.2391, allocations: 81.11 kB / 223.4 MB, free: 2.32 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.2393, allocations: 190.7 kB / 223.5 MB, free: 2.129 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 6.174e-05/0.2394, allocations: 37.7 kB / 223.6 MB, free: 2.086 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.2396, allocations: 187.2 kB / 223.8 MB, free: 1.902 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001721/0.2398, allocations: 138 kB / 223.9 MB, free: 1.766 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.812e-05/0.2398, allocations: 12 kB / 223.9 MB, free: 1.754 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.24, allocations: 326.8 kB / 224.2 MB, free: 1.426 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003961/0.2404, allocations: 164.7 kB / 224.4 MB, free: 1.262 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004145/0.2408, allocations: 187.7 kB / 224.6 MB, free: 1.07 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000382/0.2412, allocations: 156 kB / 224.7 MB, free: 0.918 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2412, allocations: 7.875 kB / 224.7 MB, free: 0.9102 MB / 186.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00147/0.2427, allocations: 489.8 kB / 225.2 MB, free: 432 kB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.2428, allocations: 8 kB / 225.2 MB, free: 424 kB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.699e-06/0.2428, allocations: 3.938 kB / 225.2 MB, free: 420 kB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006365/0.2434, allocations: 157.6 kB / 225.4 MB, free: 260 kB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003911/0.2438, allocations: 63.89 kB / 225.4 MB, free: 196 kB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004015/0.2479, allocations: 2.282 MB / 227.7 MB, free: 13.77 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000356/0.2483, allocations: 36.08 kB / 227.8 MB, free: 13.73 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.225e-05/0.2484, allocations: 23.98 kB / 227.8 MB, free: 13.71 MB / 202.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 (29): * Single equations (assignments): 28 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0001692/0.2486, allocations: 124.9 kB / 227.9 MB, free: 13.58 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.712e-05/0.2487, allocations: 27.67 kB / 227.9 MB, free: 13.55 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001046/0.2488, allocations: 42.77 kB / 228 MB, free: 13.52 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.92e-06/0.2488, allocations: 4 kB / 228 MB, free: 13.51 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.115e-06/0.2488, allocations: 4 kB / 228 MB, free: 13.51 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.625e-06/0.2488, allocations: 0 / 228 MB, free: 13.51 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.2512, allocations: 1.078 MB / 229.1 MB, free: 12.36 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.318e-06/0.2513, allocations: 4.031 kB / 229.1 MB, free: 12.36 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004149/0.2517, allocations: 67.89 kB / 229.1 MB, free: 12.29 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005815/0.2523, allocations: 140.8 kB / 229.3 MB, free: 12.15 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.701e-05/0.2524, allocations: 15.98 kB / 229.3 MB, free: 12.14 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003691/0.2561, allocations: 2.179 MB / 231.5 MB, free: 9.832 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.183e-06/0.2561, allocations: 0 / 231.5 MB, free: 9.832 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/0.2578, allocations: 0.7882 MB / 232.3 MB, free: 9.016 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002448/0.2581, allocations: 144.8 kB / 232.4 MB, free: 8.855 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.501e-05/0.2582, allocations: 15.89 kB / 232.4 MB, free: 8.84 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003451/0.2585, allocations: 36.05 kB / 232.4 MB, free: 8.805 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.2587, allocations: 67.86 kB / 232.5 MB, free: 8.738 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-05/0.2588, allocations: 16 kB / 232.5 MB, free: 8.723 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002025/0.259, allocations: 152.5 kB / 232.7 MB, free: 8.574 MB / 202.7 MB Notification: Performance of sort global known variables: time 8.16e-07/0.2591, allocations: 0 / 232.7 MB, free: 8.574 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.000765/0.2598, allocations: 120 kB / 232.8 MB, free: 8.457 MB / 202.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 (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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002907/0.2601, allocations: 143.2 kB / 232.9 MB, free: 8.305 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.2614, allocations: 0.5311 MB / 233.5 MB, free: 7.762 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.345e-06/0.2614, allocations: 0 / 233.5 MB, free: 7.762 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007496/0.2622, allocations: 361.2 kB / 233.8 MB, free: 7.398 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004046/0.2626, allocations: 27.92 kB / 233.8 MB, free: 7.371 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.2642, allocations: 0.5742 MB / 234.4 MB, free: 6.77 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005286/0.2647, allocations: 0.7881 MB / 235.2 MB, free: 5.957 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001682/0.2649, allocations: 31.42 kB / 235.2 MB, free: 5.926 MB / 202.7 MB Notification: Performance of SimCode: time 1.922e-06/0.2649, allocations: 0 / 235.2 MB, free: 5.926 MB / 202.7 MB Notification: Performance of Templates: time 0.009845/0.2748, allocations: 4.704 MB / 239.9 MB, free: 1.219 MB / 202.7 MB