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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 2.079/2.079, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.338e-05/4.35e-05, allocations: 4 kB / 292.7 MB, free: 8.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.132, allocations: 50.41 MB / 343.1 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.481/0.6131, allocations: 82.03 MB / 425.1 MB, free: 12.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.6134, allocations: 70.72 kB / 425.2 MB, free: 12.19 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04343/0.6568, allocations: 10.3 MB / 435.5 MB, free: 3.457 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.258e-06/0.6569, allocations: 0 / 435.5 MB, free: 3.457 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.189e-05/0.6569, allocations: 8 kB / 435.5 MB, free: 3.449 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.001201/0.6581, allocations: 0.5875 MB / 436.1 MB, free: 2.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.6582, allocations: 12.03 kB / 436.1 MB, free: 2.828 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003896/0.6586, allocations: 55.45 kB / 436.1 MB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004967/0.6591, allocations: 290.9 kB / 436.4 MB, free: 2.477 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.6592, allocations: 89.55 kB / 436.5 MB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.781e-05/0.6594, allocations: 34.03 kB / 436.5 MB, free: 2.367 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008278/0.6602, allocations: 378 kB / 436.9 MB, free: 2.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.6602, allocations: 3.75 kB / 436.9 MB, free: 2.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.272e-05/0.6603, allocations: 10 kB / 436.9 MB, free: 2.086 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.6603, allocations: 8 kB / 436.9 MB, free: 2.078 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009563/0.6613, allocations: 416.1 kB / 437.3 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001846/0.6632, allocations: 0.9027 MB / 438.2 MB, free: 1.012 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000839/0.664, allocations: 349 kB / 438.6 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004403/0.6645, allocations: 200.5 kB / 438.8 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.147e-05/0.6645, allocations: 8.438 kB / 438.8 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.6646, allocations: 37.31 kB / 438.8 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.298e-06/0.6646, allocations: 0 / 438.8 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.003728/0.6683, allocations: 1.53 MB / 440.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.944e-05/0.6684, allocations: 93.56 kB / 440.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003226/0.6688, allocations: 212.9 kB / 440.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.855e-05/0.6688, allocations: 34.69 kB / 440.7 MB, free: 15 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.669, allocations: 144.6 kB / 440.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.6692, allocations: 180.2 kB / 441 MB, free: 14.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.6692, allocations: 7.562 kB / 441 MB, free: 14.72 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.6694, allocations: 340.8 kB / 441.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004095/0.6698, allocations: 161.3 kB / 441.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004576/0.6703, allocations: 214.2 kB / 441.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004111/0.6707, allocations: 169 kB / 441.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.6708, allocations: 4.031 kB / 441.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001306/0.6721, allocations: 0.5454 MB / 442.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.6721, allocations: 7.984 kB / 442.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.875e-06/0.6721, allocations: 0 / 442.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009072/0.6731, allocations: 240.2 kB / 442.7 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004355/0.6735, allocations: 71.02 kB / 442.7 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004834/0.6784, allocations: 2.675 MB / 445.4 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004296/0.6788, allocations: 39.03 kB / 445.4 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.686e-05/0.6789, allocations: 19.23 kB / 445.5 MB, free: 11.09 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.0001866/0.6791, allocations: 134.2 kB / 445.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.6793, allocations: 35.58 kB / 445.6 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.6794, allocations: 47.72 kB / 445.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.6794, allocations: 11.98 kB / 445.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.6794, allocations: 0 / 445.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.507e-06/0.6794, allocations: 0 / 445.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/0.6821, allocations: 1.198 MB / 446.9 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.673e-06/0.6821, allocations: 0 / 446.9 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004691/0.6826, allocations: 67.89 kB / 446.9 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008625/0.6835, allocations: 227.7 kB / 447.2 MB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-05/0.6836, allocations: 14.05 kB / 447.2 MB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004698/0.6883, allocations: 2.593 MB / 449.8 MB, free: 7.418 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.287e-06/0.6883, allocations: 0 / 449.8 MB, free: 7.418 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/0.6905, allocations: 0.8614 MB / 450.6 MB, free: 6.531 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002786/0.6908, allocations: 160.7 kB / 450.8 MB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.9e-05/0.6909, allocations: 12 kB / 450.8 MB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004233/0.6913, allocations: 31.97 kB / 450.8 MB, free: 6.312 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002325/0.6916, allocations: 80.42 kB / 450.9 MB, free: 6.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.58e-05/0.6917, allocations: 19.98 kB / 450.9 MB, free: 6.211 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002513/0.6919, allocations: 168.6 kB / 451.1 MB, free: 6.047 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.19e-07/0.6919, allocations: 4 kB / 451.1 MB, free: 6.043 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008511/0.6928, allocations: 160 kB / 451.3 MB, free: 5.887 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.0003185/0.6931, allocations: 159 kB / 451.4 MB, free: 5.723 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.6946, allocations: 0.6041 MB / 452 MB, free: 5.113 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.723e-06/0.6946, allocations: 4 kB / 452 MB, free: 5.109 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009564/0.6956, allocations: 425.6 kB / 452.4 MB, free: 4.684 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004285/0.696, allocations: 24.42 kB / 452.5 MB, free: 4.656 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.6977, allocations: 0.6255 MB / 453.1 MB, free: 4.008 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005467/0.6983, allocations: 0.8049 MB / 453.9 MB, free: 3.172 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000323/0.6986, allocations: 62.94 kB / 454 MB, free: 3.109 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001767/0.6988, allocations: 31.42 kB / 454 MB, free: 3.078 MB / 362.7 MB Notification: Performance of SimCode: time 1.829e-06/0.6988, allocations: 0 / 454 MB, free: 3.078 MB / 362.7 MB Notification: Performance of Templates: time 0.01802/0.7169, allocations: 6.794 MB / 460.8 MB, free: 12.3 MB / 378.7 MB