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_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.972/1.972, allocations: 194.9 MB / 208 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.505e-05/2.52e-05, allocations: 4 kB / 255.4 MB, free: 2.691 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08022/0.08027, allocations: 44.5 MB / 299.9 MB, free: 6.125 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3348/0.4151, allocations: 76.3 MB / 376.2 MB, free: 22.59 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.4154, allocations: 69.11 kB / 376.2 MB, free: 22.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04044/0.4559, allocations: 9.899 MB / 386.1 MB, free: 21.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.356e-06/0.4559, allocations: 0 / 386.1 MB, free: 21.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.241e-05/0.456, allocations: 15.2 kB / 386.2 MB, free: 21.37 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.001045/0.457, allocations: 0.5923 MB / 386.8 MB, free: 20.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.4571, allocations: 7.812 kB / 386.8 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003746/0.4574, allocations: 57.72 kB / 386.8 MB, free: 20.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.4579, allocations: 280.2 kB / 387.1 MB, free: 20.68 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001249/0.458, allocations: 86.47 kB / 387.2 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.067e-05/0.4581, allocations: 38.53 kB / 387.2 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007537/0.4589, allocations: 375.5 kB / 387.6 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.4589, allocations: 3.984 kB / 387.6 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.112e-05/0.459, allocations: 15.31 kB / 387.6 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.919e-06/0.459, allocations: 7.812 kB / 387.6 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009311/0.4599, allocations: 418.2 kB / 388 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.4616, allocations: 0.9027 MB / 388.9 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007355/0.4624, allocations: 351.8 kB / 389.3 MB, free: 20.14 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003889/0.4628, allocations: 194.6 kB / 389.5 MB, free: 20.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.048e-05/0.4628, allocations: 4.344 kB / 389.5 MB, free: 20.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.4629, allocations: 49.83 kB / 389.5 MB, free: 20.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.992e-06/0.4629, allocations: 0 / 389.5 MB, free: 20.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.003514/0.4664, allocations: 1.536 MB / 391 MB, free: 19.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.4665, allocations: 85.45 kB / 391.1 MB, free: 19.43 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.4668, allocations: 215.1 kB / 391.3 MB, free: 19.33 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.504e-05/0.4668, allocations: 35.83 kB / 391.4 MB, free: 19.3 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.484e-05/0.4669, allocations: 137.4 kB / 391.5 MB, free: 19.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.4671, allocations: 182.9 kB / 391.7 MB, free: 19.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.996e-05/0.4671, allocations: 7.125 kB / 391.7 MB, free: 19.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.229e-05/0.4672, allocations: 343.5 kB / 392 MB, free: 18.76 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.4676, allocations: 170.4 kB / 392.2 MB, free: 18.76 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004418/0.468, allocations: 209 kB / 392.4 MB, free: 18.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004118/0.4685, allocations: 164.1 kB / 392.6 MB, free: 18.72 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.239e-06/0.4685, allocations: 3.953 kB / 392.6 MB, free: 18.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001193/0.4697, allocations: 0.5459 MB / 393.1 MB, free: 18.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.4697, allocations: 9.906 kB / 393.1 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.429e-06/0.4698, allocations: 2.062 kB / 393.1 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009097/0.4707, allocations: 241.1 kB / 393.4 MB, free: 18.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000412/0.4711, allocations: 71.56 kB / 393.4 MB, free: 18.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004443/0.4756, allocations: 2.684 MB / 396.1 MB, free: 17.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005069/0.4761, allocations: 38.16 kB / 396.1 MB, free: 17.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.773e-05/0.4762, allocations: 19.41 kB / 396.2 MB, free: 17.2 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.0001522/0.4764, allocations: 127.7 kB / 396.3 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.4765, allocations: 31.28 kB / 396.3 MB, free: 17.07 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.4766, allocations: 52.81 kB / 396.4 MB, free: 17.06 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.849e-06/0.4766, allocations: 7.812 kB / 396.4 MB, free: 17.06 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.595e-06/0.4767, allocations: 0 / 396.4 MB, free: 17.06 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.557e-06/0.4767, allocations: 7.75 kB / 396.4 MB, free: 17.06 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002285/0.479, allocations: 1.18 MB / 397.6 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.646e-06/0.479, allocations: 4 kB / 397.6 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004758/0.4795, allocations: 80.28 kB / 397.6 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008501/0.4804, allocations: 221.4 kB / 397.9 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.05e-05/0.4804, allocations: 18.33 kB / 397.9 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004112/0.4846, allocations: 2.579 MB / 400.5 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.528e-06/0.4846, allocations: 0 / 400.5 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/0.4864, allocations: 0.8724 MB / 401.3 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002424/0.4866, allocations: 148 kB / 401.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.322e-05/0.4867, allocations: 14.53 kB / 401.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004507/0.4872, allocations: 37.58 kB / 401.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/0.4874, allocations: 80.48 kB / 401.6 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.895e-05/0.4875, allocations: 18.5 kB / 401.6 MB, free: 14.94 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002001/0.4877, allocations: 170 kB / 401.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.524e-06/0.4877, allocations: 0 / 401.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008515/0.4886, allocations: 172.8 kB / 402 MB, free: 14.84 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.0002662/0.4889, allocations: 141.4 kB / 402.1 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.4905, allocations: 0.61 MB / 402.7 MB, free: 30.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.884e-06/0.4905, allocations: 3.938 kB / 402.7 MB, free: 30.6 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008431/0.4914, allocations: 428.4 kB / 403.1 MB, free: 30.46 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.4919, allocations: 30.61 kB / 403.2 MB, free: 30.45 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.4933, allocations: 0.6124 MB / 403.8 MB, free: 30.19 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005186/0.4939, allocations: 0.7984 MB / 404.6 MB, free: 29.49 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003593/0.4943, allocations: 71.69 kB / 404.6 MB, free: 29.47 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.4944, allocations: 37.33 kB / 404.7 MB, free: 29.46 MB / 330.7 MB Notification: Performance of SimCode: time 1.903e-06/0.4944, allocations: 0 / 404.7 MB, free: 29.46 MB / 330.7 MB Notification: Performance of Templates: time 0.01594/0.5104, allocations: 6.776 MB / 411.5 MB, free: 28.65 MB / 330.7 MB