Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 1.05/1.05, allocations: 111.2 MB / 123.8 MB, free: 11.15 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 4.399e-05/4.407e-05, allocations: 4 kB / 151.4 MB, free: 15.59 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1589, allocations: 25.16 MB / 176.5 MB, free: 4 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0567/0.2157, allocations: 36.98 MB / 213.5 MB, free: 12.48 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002086/0.216, allocations: 63.97 kB / 213.6 MB, free: 12.41 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03638/0.2523, allocations: 8.357 MB / 221.9 MB, free: 4.035 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.182e-06/0.2524, allocations: 0 / 221.9 MB, free: 4.035 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.187e-05/0.2524, allocations: 8 kB / 221.9 MB, free: 4.027 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001432/0.2539, allocations: 0.6388 MB / 222.6 MB, free: 3.34 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.2539, allocations: 8.031 kB / 222.6 MB, free: 3.332 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.2541, allocations: 39.53 kB / 222.6 MB, free: 3.293 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004928/0.2546, allocations: 295.7 kB / 222.9 MB, free: 2.961 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.883e-05/0.2546, allocations: 24.78 kB / 222.9 MB, free: 2.938 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.2547, allocations: 35.94 kB / 223 MB, free: 2.902 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.2558, allocations: 465.3 kB / 223.4 MB, free: 2.438 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.597e-05/0.2559, allocations: 7.906 kB / 223.4 MB, free: 2.43 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.305e-05/0.256, allocations: 19.95 kB / 223.5 MB, free: 2.41 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.076e-05/0.256, allocations: 8 kB / 223.5 MB, free: 2.402 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.257, allocations: 417.4 kB / 223.9 MB, free: 1.992 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002947/0.26, allocations: 1.184 MB / 225.1 MB, free: 0.75 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.2612, allocations: 483.5 kB / 225.5 MB, free: 272 kB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006187/0.2619, allocations: 274.2 kB / 225.8 MB, free: 15.99 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.595e-05/0.2619, allocations: 4.438 kB / 225.8 MB, free: 15.99 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.262, allocations: 39 kB / 225.8 MB, free: 15.94 MB / 202.7 MB Notification: Performance of pre-optimization done (n=47): time 3.434e-06/0.262, allocations: 0 / 225.8 MB, free: 15.94 MB / 202.7 MB Notification: Performance of matching and sorting (n=55): time 0.004831/0.2668, allocations: 1.916 MB / 227.8 MB, free: 13.94 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.386e-05/0.267, allocations: 93.61 kB / 227.9 MB, free: 13.83 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003851/0.2674, allocations: 246.8 kB / 228.1 MB, free: 13.58 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 8.529e-05/0.2675, allocations: 41.7 kB / 228.1 MB, free: 13.54 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.2676, allocations: 207.4 kB / 228.3 MB, free: 13.33 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002184/0.2679, allocations: 189.4 kB / 228.5 MB, free: 13.14 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/0.2679, allocations: 8 kB / 228.5 MB, free: 13.14 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.2681, allocations: 334.8 kB / 228.9 MB, free: 12.8 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000598/0.2687, allocations: 253 kB / 229.1 MB, free: 12.55 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006634/0.2694, allocations: 296.4 kB / 229.4 MB, free: 12.25 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005538/0.27, allocations: 227.2 kB / 229.6 MB, free: 12.03 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.187e-06/0.27, allocations: 4.031 kB / 229.6 MB, free: 12.02 MB / 202.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001995/0.272, allocations: 0.7729 MB / 230.4 MB, free: 11.25 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.272, allocations: 8.766 kB / 230.4 MB, free: 11.24 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.2721, allocations: 0 / 230.4 MB, free: 11.24 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.2733, allocations: 464.5 kB / 230.9 MB, free: 10.78 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004822/0.2738, allocations: 79.89 kB / 230.9 MB, free: 10.7 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001598/0.2755, allocations: 0.9821 MB / 231.9 MB, free: 9.691 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005548/0.276, allocations: 76 kB / 232 MB, free: 9.617 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.2762, allocations: 35.92 kB / 232 MB, free: 9.582 MB / 202.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 (41): * Single equations (assignments): 40 * 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 prepare postOptimizeDAE: time 0.0002109/0.2764, allocations: 128.9 kB / 232.1 MB, free: 9.449 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/0.2765, allocations: 31.62 kB / 232.2 MB, free: 9.418 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/0.2767, allocations: 59.39 kB / 232.2 MB, free: 9.359 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.2767, allocations: 8 kB / 232.2 MB, free: 9.352 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.197e-06/0.2767, allocations: 0 / 232.2 MB, free: 9.352 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.2767, allocations: 11.94 kB / 232.3 MB, free: 9.34 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00381/0.2806, allocations: 1.547 MB / 233.8 MB, free: 7.727 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.456e-06/0.2806, allocations: 0 / 233.8 MB, free: 7.727 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004801/0.2811, allocations: 75.89 kB / 233.9 MB, free: 7.652 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00117/0.2823, allocations: 446.5 kB / 234.3 MB, free: 7.215 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.891e-05/0.2824, allocations: 20.05 kB / 234.3 MB, free: 7.195 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001477/0.2839, allocations: 0.9433 MB / 235.3 MB, free: 6.227 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.01e-06/0.2839, allocations: 0 / 235.3 MB, free: 6.227 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002618/0.2865, allocations: 1.138 MB / 236.4 MB, free: 5.059 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003551/0.2869, allocations: 180.6 kB / 236.6 MB, free: 4.863 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.287, allocations: 12 kB / 236.6 MB, free: 4.852 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005201/0.2875, allocations: 72 kB / 236.7 MB, free: 4.781 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/0.2878, allocations: 92.25 kB / 236.8 MB, free: 4.691 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.834e-05/0.2879, allocations: 31.97 kB / 236.8 MB, free: 4.66 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.000282/0.2882, allocations: 191.1 kB / 237 MB, free: 4.473 MB / 202.7 MB Notification: Performance of sort global known variables: time 8.44e-07/0.2882, allocations: 4 kB / 237 MB, free: 4.469 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0006712/0.2889, allocations: 139.9 kB / 237.1 MB, free: 4.332 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: 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 (34): * Single equations (assignments): 33 * 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 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.000364/0.2893, allocations: 162.9 kB / 237.3 MB, free: 4.164 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001457/0.2908, allocations: 0.5541 MB / 237.8 MB, free: 3.609 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.662e-06/0.2908, allocations: 3.938 kB / 237.8 MB, free: 3.605 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008159/0.2916, allocations: 304.4 kB / 238.1 MB, free: 3.309 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000451/0.2921, allocations: 51.53 kB / 238.2 MB, free: 3.262 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001988/0.2941, allocations: 0.6962 MB / 238.9 MB, free: 2.531 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005461/0.2947, allocations: 0.8087 MB / 239.7 MB, free: 1.699 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002176/0.2949, allocations: 47.41 kB / 239.7 MB, free: 1.652 MB / 202.7 MB Notification: Performance of SimCode: time 1.893e-06/0.2949, allocations: 3.938 kB / 239.7 MB, free: 1.648 MB / 202.7 MB Notification: Performance of Templates: time 0.01176/0.3067, allocations: 5.873 MB / 245.6 MB, free: 11.78 MB / 218.7 MB