Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 1.709/1.709, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.991e-05/3.991e-05, allocations: 2.188 kB / 228.1 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08371/0.08382, allocations: 38.77 MB / 266.9 MB, free: 496 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003207/0.08708, allocations: 1.829 MB / 268.7 MB, free: 14.63 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.08919, allocations: 0.8436 MB / 269.6 MB, free: 13.79 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.08947, allocations: 4 kB / 269.6 MB, free: 13.78 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.08963, allocations: 35.77 kB / 269.6 MB, free: 13.75 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005408/0.09018, allocations: 119.6 kB / 269.7 MB, free: 13.63 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004859/0.09068, allocations: 135.8 kB / 269.9 MB, free: 13.5 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005108/0.09121, allocations: 191.6 kB / 270.1 MB, free: 13.31 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000165/0.0914, allocations: 35.95 kB / 270.1 MB, free: 13.27 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003199/0.09173, allocations: 139.7 kB / 270.2 MB, free: 13.14 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004726/0.09222, allocations: 175.6 kB / 270.4 MB, free: 12.96 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003455/0.09259, allocations: 75.94 kB / 270.5 MB, free: 12.89 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001145/0.09272, allocations: 20 kB / 270.5 MB, free: 12.87 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001865/0.09292, allocations: 83.73 kB / 270.6 MB, free: 12.79 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.09308, allocations: 27.94 kB / 270.6 MB, free: 12.76 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006946/0.09379, allocations: 319.4 kB / 270.9 MB, free: 12.45 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.09381, allocations: 0 / 270.9 MB, free: 12.45 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.09383, allocations: 0 / 270.9 MB, free: 12.45 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.09386, allocations: 0 / 270.9 MB, free: 12.45 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00182/0.09569, allocations: 0.55 MB / 271.5 MB, free: 11.85 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.09576, allocations: 12.02 kB / 271.5 MB, free: 11.84 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006658/0.09644, allocations: 51.61 kB / 271.5 MB, free: 11.79 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008068/0.09727, allocations: 302.4 kB / 271.8 MB, free: 11.45 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002128/0.0975, allocations: 91.91 kB / 271.9 MB, free: 11.35 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.09763, allocations: 24 kB / 271.9 MB, free: 11.33 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.09913, allocations: 385.2 kB / 272.3 MB, free: 10.93 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.09919, allocations: 3.984 kB / 272.3 MB, free: 10.93 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.373e-05/0.09928, allocations: 12 kB / 272.3 MB, free: 10.92 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.0993, allocations: 4 kB / 272.3 MB, free: 10.91 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002033/0.1013, allocations: 425.9 kB / 272.7 MB, free: 10.5 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004844/0.1062, allocations: 1.261 MB / 274 MB, free: 9.168 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.1081, allocations: 362.3 kB / 274.4 MB, free: 8.809 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.721e-05/0.1082, allocations: 7.938 kB / 274.4 MB, free: 8.801 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.987e-05/0.1083, allocations: 38.56 kB / 274.4 MB, free: 8.754 MB / 234.7 MB Notification: Performance of pre-optimization done (n=43): time 5.23e-06/0.1083, allocations: 4 kB / 274.4 MB, free: 8.75 MB / 234.7 MB Notification: Performance of matching and sorting (n=45): time 0.0114/0.1197, allocations: 1.941 MB / 276.4 MB, free: 6.695 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.551e-05/0.1198, allocations: 84.86 kB / 276.4 MB, free: 6.594 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000622/0.1205, allocations: 213.6 kB / 276.6 MB, free: 6.379 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.734e-05/0.1206, allocations: 37.7 kB / 276.7 MB, free: 6.336 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/0.1208, allocations: 136.6 kB / 276.8 MB, free: 6.199 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002526/0.121, allocations: 150 kB / 277 MB, free: 6.051 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.772e-05/0.1211, allocations: 8 kB / 277 MB, free: 6.043 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.1213, allocations: 338.8 kB / 277.3 MB, free: 5.703 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009532/0.1223, allocations: 164.8 kB / 277.5 MB, free: 5.543 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.1234, allocations: 233.8 kB / 277.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009391/0.1243, allocations: 168.8 kB / 277.9 MB, free: 5.129 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.1244, allocations: 0 / 277.9 MB, free: 5.129 MB / 234.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.002744/0.1271, allocations: 0.5512 MB / 278.4 MB, free: 4.57 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/0.1272, allocations: 15.94 kB / 278.4 MB, free: 4.555 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.1272, allocations: 0 / 278.4 MB, free: 4.555 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/0.1288, allocations: 248.8 kB / 278.7 MB, free: 4.309 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000587/0.1294, allocations: 51.91 kB / 278.7 MB, free: 4.258 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008638/0.1381, allocations: 2.712 MB / 281.4 MB, free: 1.406 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006942/0.1388, allocations: 27.94 kB / 281.5 MB, free: 1.379 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.797e-05/0.139, allocations: 19.98 kB / 281.5 MB, free: 1.359 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0003681/0.1394, allocations: 157.8 kB / 281.6 MB, free: 1.195 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.1395, allocations: 27.72 kB / 281.7 MB, free: 1.168 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001767/0.1397, allocations: 42.98 kB / 281.7 MB, free: 1.129 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.1398, allocations: 4 kB / 281.7 MB, free: 1.125 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1398, allocations: 0 / 281.7 MB, free: 1.125 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.1398, allocations: 0 / 281.7 MB, free: 1.125 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004455/0.1443, allocations: 1.104 MB / 282.8 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.1443, allocations: 0 / 282.8 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000585/0.1449, allocations: 43.91 kB / 282.8 MB, free: 15.92 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00149/0.1464, allocations: 240.9 kB / 283.1 MB, free: 15.68 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.056e-05/0.1465, allocations: 11.95 kB / 283.1 MB, free: 15.67 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008401/0.155, allocations: 2.662 MB / 285.8 MB, free: 12.88 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.155, allocations: 0 / 285.8 MB, free: 12.88 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003732/0.1588, allocations: 0.822 MB / 286.6 MB, free: 12.04 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003715/0.1592, allocations: 140.8 kB / 286.7 MB, free: 11.88 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.1593, allocations: 8 kB / 286.7 MB, free: 11.88 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006396/0.16, allocations: 31.97 kB / 286.8 MB, free: 11.84 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000355/0.1604, allocations: 67.94 kB / 286.8 MB, free: 11.78 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.408e-05/0.1605, allocations: 15.98 kB / 286.8 MB, free: 11.76 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004504/0.1609, allocations: 184.2 kB / 287 MB, free: 11.58 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.161, allocations: 3.938 kB / 287 MB, free: 11.58 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001258/0.1622, allocations: 147.9 kB / 287.2 MB, free: 11.43 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.00041/0.1627, allocations: 143.2 kB / 287.3 MB, free: 11.29 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002774/0.1654, allocations: 0.6212 MB / 287.9 MB, free: 10.64 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.1655, allocations: 0 / 287.9 MB, free: 10.64 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001668/0.1672, allocations: 441.7 kB / 288.4 MB, free: 10.2 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000578/0.1678, allocations: 27.94 kB / 288.4 MB, free: 10.17 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/0.1705, allocations: 0.8193 MB / 289.2 MB, free: 9.324 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006167/0.1712, allocations: 0.7919 MB / 290 MB, free: 8.504 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0004671/0.1717, allocations: 54.94 kB / 290.1 MB, free: 8.453 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.1719, allocations: 27.42 kB / 290.1 MB, free: 8.426 MB / 250.7 MB Notification: Performance of SimCode: time 1.182e-06/0.1719, allocations: 0 / 290.1 MB, free: 8.426 MB / 250.7 MB Notification: Performance of Templates: time 0.02066/0.1926, allocations: 6.355 MB / 296.4 MB, free: 2.066 MB / 250.7 MB