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 1.83/1.83, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.126e-05/3.153e-05, allocations: 4 kB / 255.3 MB, free: 3.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07961/0.07966, allocations: 44.5 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3277/0.4074, allocations: 76.29 MB / 376.1 MB, free: 22.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/0.4077, allocations: 71.16 kB / 376.2 MB, free: 22.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0417/0.4494, allocations: 9.897 MB / 386.1 MB, free: 21.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.4494, allocations: 1.625 kB / 386.1 MB, free: 21.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.218e-05/0.4495, allocations: 9.969 kB / 386.1 MB, free: 21.45 MB / 314.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.001106/0.4506, allocations: 0.5921 MB / 386.7 MB, free: 21.01 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.4506, allocations: 10.12 kB / 386.7 MB, free: 21.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003868/0.451, allocations: 58.66 kB / 386.8 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004271/0.4515, allocations: 279.2 kB / 387 MB, free: 20.77 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.4516, allocations: 86.98 kB / 387.1 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.475e-05/0.4517, allocations: 36.44 kB / 387.2 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007992/0.4525, allocations: 375.2 kB / 387.5 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.4526, allocations: 10.03 kB / 387.5 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.576e-05/0.4527, allocations: 17.81 kB / 387.5 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.4527, allocations: 7 kB / 387.6 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008312/0.4535, allocations: 416.4 kB / 388 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001654/0.4552, allocations: 0.9065 MB / 388.9 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007521/0.456, allocations: 361.1 kB / 389.2 MB, free: 20.22 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004794/0.4565, allocations: 201.5 kB / 389.4 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.156e-05/0.4565, allocations: 4.344 kB / 389.4 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.4566, allocations: 42.61 kB / 389.5 MB, free: 20.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.88e-06/0.4566, allocations: 7.938 kB / 389.5 MB, free: 20.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.003267/0.4599, allocations: 1.527 MB / 391 MB, free: 19.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.4599, allocations: 92.55 kB / 391.1 MB, free: 19.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002752/0.4602, allocations: 213.3 kB / 391.3 MB, free: 19.4 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.367e-05/0.4603, allocations: 37.02 kB / 391.3 MB, free: 19.37 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.326e-05/0.4604, allocations: 195.3 kB / 391.5 MB, free: 19.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.4605, allocations: 185 kB / 391.7 MB, free: 19.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.799e-05/0.4606, allocations: 7.375 kB / 391.7 MB, free: 19.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.585e-05/0.4607, allocations: 335.6 kB / 392 MB, free: 18.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003618/0.461, allocations: 160.5 kB / 392.2 MB, free: 18.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003965/0.4614, allocations: 215.7 kB / 392.4 MB, free: 18.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003533/0.4618, allocations: 158.9 kB / 392.6 MB, free: 18.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.252e-06/0.4618, allocations: 3.953 kB / 392.6 MB, free: 18.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001133/0.463, allocations: 0.5418 MB / 393.1 MB, free: 18.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.463, allocations: 7.875 kB / 393.1 MB, free: 18.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.721e-06/0.463, allocations: 0 / 393.1 MB, free: 18.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000837/0.4639, allocations: 245.7 kB / 393.4 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004097/0.4643, allocations: 71.58 kB / 393.4 MB, free: 18.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00401/0.4683, allocations: 2.669 MB / 396.1 MB, free: 17.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004312/0.4688, allocations: 33.88 kB / 396.1 MB, free: 17.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.16e-05/0.4689, allocations: 26.58 kB / 396.2 MB, free: 17.22 MB / 314.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 (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.0001475/0.4691, allocations: 123.6 kB / 396.3 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.4692, allocations: 35.19 kB / 396.3 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.4693, allocations: 51.55 kB / 396.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.105e-06/0.4693, allocations: 3.812 kB / 396.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.274e-06/0.4693, allocations: 0 / 396.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.4693, allocations: 11.08 kB / 396.4 MB, free: 17.08 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002234/0.4716, allocations: 1.188 MB / 397.6 MB, free: 16.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.319e-06/0.4716, allocations: 3.719 kB / 397.6 MB, free: 16.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000426/0.4721, allocations: 77.06 kB / 397.6 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007571/0.4728, allocations: 224.9 kB / 397.9 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.399e-05/0.4729, allocations: 14.19 kB / 397.9 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003872/0.4768, allocations: 2.586 MB / 400.5 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.081e-06/0.4768, allocations: 0 / 400.5 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.4785, allocations: 0.8642 MB / 401.3 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002688/0.4788, allocations: 157.8 kB / 401.5 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.749e-05/0.4789, allocations: 11.59 kB / 401.5 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004323/0.4794, allocations: 34.89 kB / 401.5 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002236/0.4796, allocations: 85.02 kB / 401.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.775e-05/0.4797, allocations: 19.36 kB / 401.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002056/0.4799, allocations: 169 kB / 401.8 MB, free: 14.87 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.83e-07/0.4799, allocations: 3.938 kB / 401.8 MB, free: 14.87 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008852/0.4808, allocations: 167.5 kB / 402 MB, free: 14.86 MB / 314.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.0002888/0.4811, allocations: 153.5 kB / 402.1 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.4828, allocations: 0.6264 MB / 402.7 MB, free: 30.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.4828, allocations: 0 / 402.7 MB, free: 30.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000798/0.4836, allocations: 441.5 kB / 403.2 MB, free: 30.45 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00042/0.484, allocations: 31.31 kB / 403.2 MB, free: 30.44 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/0.4855, allocations: 0.6392 MB / 403.8 MB, free: 30.15 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004958/0.486, allocations: 0.8011 MB / 404.6 MB, free: 29.45 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002063/0.4862, allocations: 41.52 kB / 404.7 MB, free: 29.44 MB / 330.7 MB Notification: Performance of SimCode: time 1.825e-06/0.4862, allocations: 0 / 404.7 MB, free: 29.44 MB / 330.7 MB Notification: Performance of Templates: time 0.00947/0.4957, allocations: 5.745 MB / 410.4 MB, free: 29.1 MB / 330.7 MB