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 2.076/2.076, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.121e-05/2.139e-05, allocations: 7.938 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2503, allocations: 44.49 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1175/0.3679, allocations: 75.64 MB / 369.7 MB, free: 6.359 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.3681, allocations: 71.95 kB / 369.8 MB, free: 6.289 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0418/0.41, allocations: 9.839 MB / 379.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.461e-06/0.41, allocations: 0 / 379.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.086e-05/0.41, allocations: 4 kB / 379.7 MB, free: 12.43 MB / 330.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.001248/0.4113, allocations: 0.5919 MB / 380.2 MB, free: 11.79 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.4114, allocations: 8.031 kB / 380.3 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003995/0.4118, allocations: 59.45 kB / 380.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005145/0.4123, allocations: 282.7 kB / 380.6 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001518/0.4125, allocations: 80.17 kB / 380.7 MB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.789e-05/0.4126, allocations: 23.91 kB / 380.7 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009618/0.4136, allocations: 401.3 kB / 381.1 MB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007811/0.4144, allocations: 345.3 kB / 381.4 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.4144, allocations: 0 / 381.4 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.678e-05/0.4145, allocations: 0 / 381.4 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.4145, allocations: 8 kB / 381.4 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.4164, allocations: 0.8327 MB / 382.3 MB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008095/0.4172, allocations: 327.7 kB / 382.6 MB, free: 9.336 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004233/0.4177, allocations: 190.2 kB / 382.8 MB, free: 9.145 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.168e-05/0.4177, allocations: 4.438 kB / 382.8 MB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.4178, allocations: 35.19 kB / 382.8 MB, free: 9.098 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 3.758e-06/0.4178, allocations: 7.938 kB / 382.8 MB, free: 9.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.004051/0.4218, allocations: 1.429 MB / 384.2 MB, free: 7.566 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.694e-05/0.4219, allocations: 81.67 kB / 384.3 MB, free: 7.469 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.4222, allocations: 186 kB / 384.5 MB, free: 7.277 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.128e-05/0.4223, allocations: 33.69 kB / 384.5 MB, free: 7.238 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.4225, allocations: 199.4 kB / 384.7 MB, free: 7.039 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.4227, allocations: 177.4 kB / 384.9 MB, free: 6.863 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.384e-05/0.4227, allocations: 0 / 384.9 MB, free: 6.863 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.4229, allocations: 334.8 kB / 385.2 MB, free: 6.527 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000382/0.4233, allocations: 153.1 kB / 385.4 MB, free: 6.379 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004316/0.4238, allocations: 203.6 kB / 385.6 MB, free: 6.172 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004946/0.4243, allocations: 154.1 kB / 385.7 MB, free: 6.02 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.193e-06/0.4243, allocations: 0 / 385.7 MB, free: 6.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001353/0.4257, allocations: 0.5119 MB / 386.2 MB, free: 5.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.4257, allocations: 6.062 kB / 386.2 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.084e-06/0.4257, allocations: 4 kB / 386.2 MB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009325/0.4267, allocations: 238.8 kB / 386.5 MB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.4271, allocations: 71.89 kB / 386.6 MB, free: 5.188 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00493/0.4321, allocations: 2.587 MB / 389.1 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000424/0.4325, allocations: 31.97 kB / 389.2 MB, free: 2.457 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.073e-05/0.4326, allocations: 20 kB / 389.2 MB, free: 2.438 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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.000246/0.4329, allocations: 121.9 kB / 389.3 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.433, allocations: 31.62 kB / 389.3 MB, free: 2.281 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.4331, allocations: 39.41 kB / 389.4 MB, free: 2.242 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.116e-06/0.4332, allocations: 4 kB / 389.4 MB, free: 2.238 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.4332, allocations: 0 / 389.4 MB, free: 2.238 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.4332, allocations: 3.984 kB / 389.4 MB, free: 2.234 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002658/0.4359, allocations: 1.101 MB / 390.5 MB, free: 1.082 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.033e-06/0.4359, allocations: 3.938 kB / 390.5 MB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004599/0.4364, allocations: 67.95 kB / 390.6 MB, free: 1.012 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008648/0.4373, allocations: 220.7 kB / 390.8 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.149e-05/0.4373, allocations: 11.92 kB / 390.8 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004647/0.442, allocations: 2.509 MB / 393.3 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.489e-06/0.4421, allocations: 0 / 393.3 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001952/0.444, allocations: 0.8225 MB / 394.1 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002926/0.4443, allocations: 148.8 kB / 394.3 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.031e-05/0.4445, allocations: 128 / 394.3 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004321/0.4449, allocations: 35.95 kB / 394.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002565/0.4452, allocations: 76.48 kB / 394.4 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.357e-05/0.4453, allocations: 23.92 kB / 394.4 MB, free: 13 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001992/0.4455, allocations: 147 kB / 394.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.41e-07/0.4455, allocations: 0 / 394.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000888/0.4464, allocations: 135.9 kB / 394.7 MB, free: 12.73 MB / 346.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.0003206/0.4467, allocations: 143.2 kB / 394.8 MB, free: 12.58 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.4481, allocations: 0.5838 MB / 395.4 MB, free: 11.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.4482, allocations: 0 / 395.4 MB, free: 11.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008602/0.449, allocations: 417.7 kB / 395.8 MB, free: 11.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004193/0.4495, allocations: 20.64 kB / 395.8 MB, free: 11.55 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.4511, allocations: 0.6221 MB / 396.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005536/0.4517, allocations: 0.8015 MB / 397.2 MB, free: 10.06 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/0.4519, allocations: 43.34 kB / 397.3 MB, free: 10.02 MB / 346.7 MB Notification: Performance of SimCode: time 1.962e-06/0.4519, allocations: 0 / 397.3 MB, free: 10.02 MB / 346.7 MB Notification: Performance of Templates: time 0.01165/0.4636, allocations: 5.684 MB / 403 MB, free: 4.344 MB / 346.7 MB