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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 2.003/2.003, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.956e-05/3.96e-05, allocations: 7.984 kB / 292.1 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09286/0.09292, allocations: 50.42 MB / 342.6 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4095/0.5024, allocations: 82.03 MB / 424.6 MB, free: 12.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/0.5027, allocations: 68.89 kB / 424.7 MB, free: 12.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04427/0.547, allocations: 10.3 MB / 435 MB, free: 3.414 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.397e-06/0.547, allocations: 0 / 435 MB, free: 3.414 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.19e-05/0.547, allocations: 4 kB / 435 MB, free: 3.41 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001253/0.5483, allocations: 0.5898 MB / 435.5 MB, free: 2.797 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.5484, allocations: 8.031 kB / 435.6 MB, free: 2.789 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003952/0.5488, allocations: 55.45 kB / 435.6 MB, free: 2.734 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004949/0.5493, allocations: 287.1 kB / 435.9 MB, free: 2.441 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001583/0.5495, allocations: 86.98 kB / 436 MB, free: 2.355 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.5496, allocations: 34.84 kB / 436 MB, free: 2.332 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008333/0.5504, allocations: 386.2 kB / 436.4 MB, free: 2.055 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.5505, allocations: 4 kB / 436.4 MB, free: 2.051 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.122e-05/0.5505, allocations: 14.56 kB / 436.4 MB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.5506, allocations: 8 kB / 436.4 MB, free: 2.039 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009432/0.5515, allocations: 407 kB / 436.8 MB, free: 1.746 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00187/0.5534, allocations: 0.8993 MB / 437.7 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008544/0.5543, allocations: 346.9 kB / 438 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004391/0.5547, allocations: 200.1 kB / 438.2 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.417e-05/0.5548, allocations: 8.422 kB / 438.2 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.5548, allocations: 50.17 kB / 438.3 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.444e-06/0.5549, allocations: 0 / 438.3 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.003788/0.5587, allocations: 1.535 MB / 439.8 MB, free: 15.28 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/0.5588, allocations: 93.56 kB / 439.9 MB, free: 15.17 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003236/0.5591, allocations: 209.1 kB / 440.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.008e-05/0.5592, allocations: 37.27 kB / 440.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.5593, allocations: 134.5 kB / 440.3 MB, free: 14.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/0.5595, allocations: 180.4 kB / 440.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.726e-05/0.5596, allocations: 7 kB / 440.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.5598, allocations: 341.7 kB / 440.8 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/0.5602, allocations: 165.5 kB / 441 MB, free: 14.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004616/0.5607, allocations: 214.3 kB / 441.2 MB, free: 14.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007279/0.5614, allocations: 163.1 kB / 441.3 MB, free: 14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.108e-06/0.5614, allocations: 0 / 441.3 MB, free: 14 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002259/0.5637, allocations: 0.5471 MB / 441.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.5638, allocations: 4 kB / 441.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.5638, allocations: 4 kB / 441.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00157/0.5654, allocations: 239.4 kB / 442.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007722/0.5662, allocations: 71.89 kB / 442.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00706/0.5733, allocations: 2.686 MB / 444.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004722/0.5738, allocations: 35.31 kB / 444.9 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.942e-05/0.5739, allocations: 23.31 kB / 444.9 MB, free: 11.05 MB / 362.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.0001863/0.5741, allocations: 126.7 kB / 445.1 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.5742, allocations: 35.52 kB / 445.1 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.5743, allocations: 54.45 kB / 445.2 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.531e-06/0.5744, allocations: 4 kB / 445.2 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.73e-06/0.5744, allocations: 0 / 445.2 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.5744, allocations: 3.984 kB / 445.2 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002607/0.577, allocations: 1.188 MB / 446.4 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.637e-06/0.577, allocations: 4 kB / 446.4 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004918/0.5776, allocations: 74.53 kB / 446.4 MB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008589/0.5784, allocations: 227.4 kB / 446.7 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.693e-05/0.5785, allocations: 19.47 kB / 446.7 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004666/0.5832, allocations: 2.585 MB / 449.3 MB, free: 7.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.843e-06/0.5832, allocations: 7.969 kB / 449.3 MB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.5852, allocations: 0.8615 MB / 450.1 MB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002692/0.5854, allocations: 152.7 kB / 450.3 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.63e-05/0.5856, allocations: 15.98 kB / 450.3 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004306/0.586, allocations: 31.98 kB / 450.3 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/0.5862, allocations: 80.53 kB / 450.4 MB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.537e-05/0.5863, allocations: 19.98 kB / 450.4 MB, free: 6.199 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002447/0.5866, allocations: 172.6 kB / 450.6 MB, free: 6.031 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.53e-07/0.5866, allocations: 3.938 kB / 450.6 MB, free: 6.027 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008335/0.5874, allocations: 152 kB / 450.7 MB, free: 5.879 MB / 362.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.0003123/0.5878, allocations: 155 kB / 450.9 MB, free: 5.719 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.5892, allocations: 0.608 MB / 451.5 MB, free: 5.105 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.358e-06/0.5892, allocations: 0 / 451.5 MB, free: 5.105 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009267/0.5901, allocations: 429.6 kB / 451.9 MB, free: 4.676 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.5906, allocations: 32.48 kB / 452 MB, free: 4.641 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.5921, allocations: 0.6227 MB / 452.6 MB, free: 3.996 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.5927, allocations: 0.801 MB / 453.4 MB, free: 3.164 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003137/0.593, allocations: 58.94 kB / 453.4 MB, free: 3.105 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/0.5932, allocations: 43.41 kB / 453.5 MB, free: 3.062 MB / 362.7 MB Notification: Performance of SimCode: time 1.907e-06/0.5932, allocations: 0 / 453.5 MB, free: 3.062 MB / 362.7 MB Notification: Performance of Templates: time 0.01825/0.6115, allocations: 6.794 MB / 460.3 MB, free: 12.29 MB / 378.7 MB