Running command: translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 1.789/1.789, allocations: 171.1 MB / 186.3 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.892e-05/2.887e-05, allocations: 0 / 228.1 MB, free: 7.969 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0827/0.08275, allocations: 38.77 MB / 266.9 MB, free: 1.113 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004414/0.08723, allocations: 2.202 MB / 269.1 MB, free: 14.88 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.08947, allocations: 0.8108 MB / 269.9 MB, free: 14.07 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002501/0.08977, allocations: 8 kB / 269.9 MB, free: 14.06 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.08994, allocations: 39.69 kB / 270 MB, free: 14.02 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003691/0.09033, allocations: 115.6 kB / 270.1 MB, free: 13.91 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005289/0.09087, allocations: 147.8 kB / 270.2 MB, free: 13.77 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005159/0.09141, allocations: 260.5 kB / 270.5 MB, free: 13.51 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.09162, allocations: 56.92 kB / 270.5 MB, free: 13.46 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003349/0.09197, allocations: 191.5 kB / 270.7 MB, free: 13.27 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003904/0.09237, allocations: 211.4 kB / 270.9 MB, free: 13.06 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003273/0.09271, allocations: 115.8 kB / 271 MB, free: 12.95 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.712e-05/0.09283, allocations: 28 kB / 271.1 MB, free: 12.92 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.09297, allocations: 79.72 kB / 271.1 MB, free: 12.84 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.0931, allocations: 32 kB / 271.2 MB, free: 12.81 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006496/0.09376, allocations: 371.3 kB / 271.5 MB, free: 12.45 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.09378, allocations: 0 / 271.5 MB, free: 12.45 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.816e-06/0.09379, allocations: 0 / 271.5 MB, free: 12.45 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.09381, allocations: 0 / 271.5 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.002155/0.09598, allocations: 0.6672 MB / 272.2 MB, free: 11.73 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.09605, allocations: 12.03 kB / 272.2 MB, free: 11.72 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.09624, allocations: 39.53 kB / 272.2 MB, free: 11.68 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005347/0.09678, allocations: 289.4 kB / 272.5 MB, free: 11.36 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.455e-05/0.09688, allocations: 36.95 kB / 272.6 MB, free: 11.32 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.09703, allocations: 35.84 kB / 272.6 MB, free: 11.29 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.09846, allocations: 430.3 kB / 273 MB, free: 10.86 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.035e-05/0.09854, allocations: 0 / 273 MB, free: 10.86 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.408e-05/0.09861, allocations: 19.94 kB / 273 MB, free: 10.84 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.09864, allocations: 8 kB / 273 MB, free: 10.84 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001654/0.1003, allocations: 451.7 kB / 273.5 MB, free: 10.39 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004181/0.1045, allocations: 1.265 MB / 274.7 MB, free: 9.055 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.106, allocations: 368.4 kB / 275.1 MB, free: 8.688 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.957e-05/0.1061, allocations: 8.375 kB / 275.1 MB, free: 8.68 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.3e-05/0.1061, allocations: 38.94 kB / 275.2 MB, free: 8.633 MB / 234.7 MB Notification: Performance of pre-optimization done (n=45): time 3.637e-06/0.1061, allocations: 0 / 275.2 MB, free: 8.633 MB / 234.7 MB Notification: Performance of matching and sorting (n=49): time 0.009147/0.1153, allocations: 2.318 MB / 277.5 MB, free: 6.184 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.1154, allocations: 59.84 kB / 277.5 MB, free: 6.113 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003488/0.1157, allocations: 221.7 kB / 277.7 MB, free: 5.891 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.924e-05/0.1158, allocations: 41.7 kB / 277.8 MB, free: 5.844 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.116, allocations: 223.1 kB / 278 MB, free: 5.621 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002038/0.1162, allocations: 169.7 kB / 278.2 MB, free: 5.453 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.156e-05/0.1163, allocations: 12 kB / 278.2 MB, free: 5.441 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1164, allocations: 326.8 kB / 278.5 MB, free: 5.113 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008183/0.1173, allocations: 233 kB / 278.7 MB, free: 4.887 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008916/0.1182, allocations: 303.1 kB / 279 MB, free: 4.574 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007089/0.1189, allocations: 190.1 kB / 279.2 MB, free: 4.387 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1189, allocations: 0 / 279.2 MB, free: 4.387 MB / 234.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00287/0.1218, allocations: 0.8096 MB / 280 MB, free: 3.562 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.1219, allocations: 7.984 kB / 280 MB, free: 3.555 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.1219, allocations: 4 kB / 280 MB, free: 3.551 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/0.1234, allocations: 430.3 kB / 280.5 MB, free: 3.121 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005753/0.124, allocations: 75.89 kB / 280.5 MB, free: 3.047 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004114/0.1281, allocations: 3.442 MB / 284 MB, free: 15.31 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.1292, allocations: 112.2 kB / 284.1 MB, free: 15.2 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.408e-05/0.1293, allocations: 16 kB / 284.1 MB, free: 15.19 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0003083/0.1296, allocations: 161.7 kB / 284.3 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.1297, allocations: 35.53 kB / 284.3 MB, free: 14.98 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002493/0.1322, allocations: 0.7209 MB / 285 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.1323, allocations: 4 kB / 285 MB, free: 14.24 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1323, allocations: 0 / 285 MB, free: 14.24 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.1323, allocations: 3.984 kB / 285 MB, free: 14.24 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003386/0.1357, allocations: 1.236 MB / 286.3 MB, free: 12.94 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.1357, allocations: 4 kB / 286.3 MB, free: 12.94 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005431/0.1363, allocations: 59.91 kB / 286.3 MB, free: 12.88 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001374/0.1377, allocations: 402.3 kB / 286.7 MB, free: 12.48 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.533e-05/0.1378, allocations: 19.98 kB / 286.7 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004188/0.142, allocations: 3.427 MB / 290.2 MB, free: 8.742 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.142, allocations: 3.984 kB / 290.2 MB, free: 8.738 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003292/0.1453, allocations: 1.016 MB / 291.2 MB, free: 7.695 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002897/0.1456, allocations: 152.6 kB / 291.3 MB, free: 7.527 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.1458, allocations: 16 kB / 291.3 MB, free: 7.512 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008811/0.1467, allocations: 103.9 kB / 291.4 MB, free: 7.41 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003289/0.147, allocations: 112.1 kB / 291.5 MB, free: 7.301 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.848e-05/0.1471, allocations: 15.98 kB / 291.6 MB, free: 7.285 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000257/0.1474, allocations: 178 kB / 291.7 MB, free: 7.109 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1474, allocations: 0 / 291.7 MB, free: 7.109 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006738/0.1481, allocations: 120 kB / 291.9 MB, free: 6.992 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.000312/0.1484, allocations: 136.7 kB / 292 MB, free: 6.848 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002471/0.1509, allocations: 0.7981 MB / 292.8 MB, free: 6.023 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1509, allocations: 0 / 292.8 MB, free: 6.023 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001447/0.1524, allocations: 0.5371 MB / 293.3 MB, free: 5.461 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006155/0.153, allocations: 44.53 kB / 293.4 MB, free: 5.418 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003225/0.1563, allocations: 1.185 MB / 294.6 MB, free: 4.203 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004879/0.1568, allocations: 0.8074 MB / 295.4 MB, free: 3.367 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.1569, allocations: 31.42 kB / 295.4 MB, free: 3.336 MB / 250.7 MB Notification: Performance of SimCode: time 1.082e-06/0.157, allocations: 0 / 295.4 MB, free: 3.336 MB / 250.7 MB Notification: Performance of Templates: time 0.231/0.388, allocations: 8.12 MB / 303.5 MB, free: 29.82 MB / 250.7 MB