Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 1.61/1.61, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.78e-05/2.794e-05, allocations: 2.188 kB / 228.1 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0863/0.08636, allocations: 38.77 MB / 266.9 MB, free: 500 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003554/0.08998, allocations: 2.125 MB / 269 MB, free: 14.34 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.09264, allocations: 1.097 MB / 270.1 MB, free: 13.24 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002046/0.09287, allocations: 8 kB / 270.1 MB, free: 13.23 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.09306, allocations: 51.67 kB / 270.2 MB, free: 13.18 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006105/0.09368, allocations: 171.4 kB / 270.4 MB, free: 13.01 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006868/0.09438, allocations: 199.6 kB / 270.6 MB, free: 12.82 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005391/0.09494, allocations: 303.8 kB / 270.8 MB, free: 12.52 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001874/0.09514, allocations: 68.89 kB / 270.9 MB, free: 12.45 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004269/0.09558, allocations: 227.5 kB / 271.1 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005228/0.09612, allocations: 271.3 kB / 271.4 MB, free: 11.96 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000566/0.09671, allocations: 179.8 kB / 271.6 MB, free: 11.79 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001409/0.09687, allocations: 32 kB / 271.6 MB, free: 11.76 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001956/0.09708, allocations: 111.6 kB / 271.7 MB, free: 11.65 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.09722, allocations: 36 kB / 271.8 MB, free: 11.61 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008623/0.0981, allocations: 499 kB / 272.2 MB, free: 11.12 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.09812, allocations: 0 / 272.2 MB, free: 11.12 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.09813, allocations: 0 / 272.2 MB, free: 11.12 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.09816, allocations: 4 kB / 272.2 MB, free: 11.12 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002093/0.1003, allocations: 0.71 MB / 273 MB, free: 10.36 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.1003, allocations: 8.031 kB / 273 MB, free: 10.36 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005246/0.1009, allocations: 67.42 kB / 273 MB, free: 10.29 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000742/0.1016, allocations: 345.3 kB / 273.4 MB, free: 9.91 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.1018, allocations: 100.3 kB / 273.5 MB, free: 9.801 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.102, allocations: 44 kB / 273.5 MB, free: 9.758 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.1037, allocations: 0.5488 MB / 274.1 MB, free: 9.195 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.1037, allocations: 3.906 kB / 274.1 MB, free: 9.191 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.662e-05/0.1038, allocations: 19.94 kB / 274.1 MB, free: 9.172 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.666e-05/0.1039, allocations: 12 kB / 274.1 MB, free: 9.16 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002271/0.1061, allocations: 0.6363 MB / 274.7 MB, free: 8.523 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003921/0.1101, allocations: 1.299 MB / 276 MB, free: 7.164 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001935/0.1121, allocations: 0.5485 MB / 276.6 MB, free: 6.605 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.832e-05/0.1122, allocations: 4.562 kB / 276.6 MB, free: 6.602 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.1122, allocations: 43.12 kB / 276.6 MB, free: 6.551 MB / 234.7 MB Notification: Performance of pre-optimization done (n=61): time 3.026e-06/0.1122, allocations: 0 / 276.6 MB, free: 6.551 MB / 234.7 MB Notification: Performance of matching and sorting (n=69): time 0.0119/0.1241, allocations: 3.013 MB / 279.6 MB, free: 3.414 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/0.1242, allocations: 85.67 kB / 279.7 MB, free: 3.312 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005981/0.1248, allocations: 310 kB / 280 MB, free: 3 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.125, allocations: 49.69 kB / 280.1 MB, free: 2.945 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.1251, allocations: 153.6 kB / 280.2 MB, free: 2.789 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002808/0.1254, allocations: 236.7 kB / 280.4 MB, free: 2.555 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.033e-05/0.1255, allocations: 12 kB / 280.5 MB, free: 2.543 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.1257, allocations: 346.8 kB / 280.8 MB, free: 2.195 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001079/0.1268, allocations: 289.2 kB / 281.1 MB, free: 1.914 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.1279, allocations: 346.5 kB / 281.4 MB, free: 1.562 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009768/0.1289, allocations: 263.1 kB / 281.7 MB, free: 1.309 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1289, allocations: 0 / 281.7 MB, free: 1.309 MB / 234.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003358/0.1323, allocations: 1.006 MB / 282.7 MB, free: 300 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.1323, allocations: 8 kB / 282.7 MB, free: 292 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.1323, allocations: 0 / 282.7 MB, free: 292 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00166/0.134, allocations: 414.7 kB / 283.1 MB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007151/0.1347, allocations: 87.88 kB / 283.2 MB, free: 15.79 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002025/0.1368, allocations: 1.056 MB / 284.2 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009015/0.1377, allocations: 83.94 kB / 284.3 MB, free: 14.63 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.775e-05/0.1378, allocations: 24 kB / 284.3 MB, free: 14.61 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003706/0.1382, allocations: 173.8 kB / 284.5 MB, free: 14.43 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.1383, allocations: 43.44 kB / 284.6 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002201/0.1386, allocations: 67.77 kB / 284.6 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.1386, allocations: 4 kB / 284.6 MB, free: 14.31 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.1386, allocations: 4 kB / 284.6 MB, free: 14.31 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.1386, allocations: 7.984 kB / 284.6 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005529/0.1442, allocations: 1.851 MB / 286.5 MB, free: 12.38 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.922e-06/0.1442, allocations: 0 / 286.5 MB, free: 12.38 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007249/0.145, allocations: 87.88 kB / 286.6 MB, free: 12.3 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001487/0.1465, allocations: 396.6 kB / 287 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.994e-05/0.1466, allocations: 19.94 kB / 287 MB, free: 11.89 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001911/0.1485, allocations: 1.005 MB / 288 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1485, allocations: 0 / 288 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004717/0.1532, allocations: 1.42 MB / 289.4 MB, free: 9.402 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004109/0.1537, allocations: 176.6 kB / 289.6 MB, free: 9.211 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001595/0.1539, allocations: 23.94 kB / 289.6 MB, free: 9.188 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008343/0.1547, allocations: 72.06 kB / 289.7 MB, free: 9.117 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003309/0.1551, allocations: 104.4 kB / 289.8 MB, free: 9.016 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.873e-05/0.1552, allocations: 19.98 kB / 289.8 MB, free: 8.996 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004836/0.1557, allocations: 241.9 kB / 290 MB, free: 8.762 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1557, allocations: 0 / 290 MB, free: 8.762 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0007564/0.1564, allocations: 152 kB / 290.2 MB, free: 8.613 MB / 250.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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004169/0.1569, allocations: 174.2 kB / 290.3 MB, free: 8.434 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.1595, allocations: 0.7003 MB / 291 MB, free: 7.734 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.1596, allocations: 8 kB / 291.1 MB, free: 7.727 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.1611, allocations: 388 kB / 291.4 MB, free: 7.348 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005684/0.1617, allocations: 40.83 kB / 291.5 MB, free: 7.305 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004491/0.1662, allocations: 1.357 MB / 292.8 MB, free: 5.926 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004886/0.1667, allocations: 0.829 MB / 293.7 MB, free: 5.066 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0004281/0.1672, allocations: 67.33 kB / 293.7 MB, free: 4.996 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/0.1674, allocations: 35.42 kB / 293.8 MB, free: 4.961 MB / 250.7 MB Notification: Performance of SimCode: time 9.72e-07/0.1674, allocations: 4 kB / 293.8 MB, free: 4.957 MB / 250.7 MB Notification: Performance of Templates: time 0.2247/0.3921, allocations: 8.685 MB / 302.5 MB, free: 30.62 MB / 250.7 MB "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.flange.phi,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi