Running command: translateModel(ModelicaTest.Rotational.TestBearingConversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bearingFriction.phi|bearingFriction.w|gear2_1.phi_rel|gear2_1.w_rel|gear2_2.phi_rel|gear2_2.w_rel|inertia1.phi|inertia1.w|inertia11.phi|inertia11.w|inertia2.phi|inertia2.w|inertia20.phi|inertia20.w|inertia21.phi|inertia21.w|inertia3.phi|inertia3.w|inertia5.phi|inertia5.w|inertia7.phi|inertia7.w|inertia9.phi|inertia9.w|position.phi|position.w|position1.phi|position1.w|position2.phi|position2.w|position3.phi|position3.w|position4.phi|position4.w|position5.phi|position5.w|slidingMass.s|slidingMass.v|slidingMass1.s|slidingMass1.v|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward|gear2_1.lossyGear.mode|gear2_2.lossyGear.mode|lossyGear.mode|lossyGear1.mode",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadModel(ModelicaTest): time 1.955/1.955, allocations: 209.3 MB / 223.8 MB, free: 0.7734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.722e-05/3.708e-05, allocations: 7.125 kB / 276.2 MB, free: 15.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3556, allocations: 48.7 MB / 324.9 MB, free: 3.391 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01518/0.3709, allocations: 8.986 MB / 333.9 MB, free: 13.58 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01147/0.3824, allocations: 3.659 MB / 337.5 MB, free: 11.05 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003323/0.3858, allocations: 76.56 kB / 337.6 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001967/0.3878, allocations: 325.4 kB / 337.9 MB, free: 10.9 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005829/0.3936, allocations: 1.003 MB / 338.9 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004813/0.3985, allocations: 0.9663 MB / 339.9 MB, free: 9.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007029/0.4055, allocations: 2.111 MB / 342 MB, free: 8.41 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001458/0.407, allocations: 0.505 MB / 342.5 MB, free: 8.113 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003928/0.411, allocations: 1.326 MB / 343.8 MB, free: 7.43 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004463/0.4155, allocations: 1.597 MB / 345.4 MB, free: 6.469 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002593/0.4181, allocations: 347.9 kB / 345.8 MB, free: 6.371 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001291/0.4195, allocations: 158.2 kB / 345.9 MB, free: 6.371 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001065/0.4205, allocations: 0.6621 MB / 346.6 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001599/0.4222, allocations: 286 kB / 346.9 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006143/0.4283, allocations: 3.188 MB / 350 MB, free: 3.48 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.4284, allocations: 0 / 350 MB, free: 3.48 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.4284, allocations: 0 / 350 MB, free: 3.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001921/0.4286, allocations: 0 / 350 MB, free: 3.48 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 717 * Number of variables: 717 Notification: Performance of Generate backend data structure: time 0.01339/0.442, allocations: 3.003 MB / 353 MB, free: 1.582 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.4421, allocations: 8.844 kB / 353.1 MB, free: 1.582 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003324/0.4454, allocations: 410.6 kB / 353.5 MB, free: 1.391 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005327/0.4508, allocations: 1.433 MB / 354.9 MB, free: 328 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002453/0.4533, allocations: 0.687 MB / 355.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001335/0.4546, allocations: 309.4 kB / 355.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01224/0.4669, allocations: 3.398 MB / 359.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002027/0.4671, allocations: 31.7 kB / 359.3 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004946/0.4677, allocations: 116 kB / 359.4 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.831e-05/0.4677, allocations: 68 kB / 359.5 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01382/0.4816, allocations: 3.555 MB / 363 MB, free: 8.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03056/0.5122, allocations: 9.961 MB / 373 MB, free: 14.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01198/0.5242, allocations: 3.304 MB / 376.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008143/0.5251, allocations: 54.14 kB / 376.4 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.5253, allocations: 91.83 kB / 376.4 MB, free: 11.15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=357): time 1.981e-05/0.5253, allocations: 7.875 kB / 376.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=419): time 0.06964/0.595, allocations: 20.81 MB / 397.3 MB, free: 5.102 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003123/0.5954, allocations: 0.5638 MB / 397.8 MB, free: 4.414 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003769/0.5991, allocations: 1.476 MB / 399.3 MB, free: 2.941 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001063/0.6002, allocations: 117.7 kB / 399.4 MB, free: 2.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.6014, allocations: 0.9265 MB / 400.3 MB, free: 1.883 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002766/0.6042, allocations: 1.41 MB / 401.8 MB, free: 464 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007242/0.605, allocations: 87.94 kB / 401.8 MB, free: 376 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003887/0.6054, allocations: 467 kB / 402.3 MB, free: 15.9 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00649/0.6119, allocations: 1.492 MB / 403.8 MB, free: 14.4 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007319/0.6192, allocations: 2.229 MB / 406 MB, free: 11.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006102/0.6254, allocations: 1.518 MB / 407.5 MB, free: 10.38 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.459e-05/0.6255, allocations: 4 kB / 407.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.02046/0.6459, allocations: 5.313 MB / 412.9 MB, free: 5.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.269e-05/0.646, allocations: 19.89 kB / 412.9 MB, free: 5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.404e-05/0.6461, allocations: 20 kB / 412.9 MB, free: 4.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00718/0.6533, allocations: 1.764 MB / 414.7 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006615/0.66, allocations: 0.8152 MB / 415.5 MB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0329/0.6929, allocations: 16.66 MB / 432.1 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005839/0.6988, allocations: 380.2 kB / 432.5 MB, free: 444 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/0.6998, allocations: 172 kB / 432.7 MB, free: 272 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 60 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 391 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {2 22,2 22,2 25,1 6,1 6,1 12,2 24,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.002436/0.7023, allocations: 0.5985 MB / 433.3 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001436/0.7037, allocations: 292.6 kB / 433.6 MB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002375/0.7062, allocations: 0.6617 MB / 434.2 MB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.9e-05/0.7062, allocations: 47.94 kB / 434.3 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.389e-05/0.7063, allocations: 4 kB / 434.3 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.867e-05/0.7064, allocations: 23.92 kB / 434.3 MB, free: 14.62 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03766/0.7441, allocations: 10.72 MB / 445 MB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.328e-05/0.7442, allocations: 8 kB / 445 MB, free: 3.668 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00632/0.7505, allocations: 0.6749 MB / 445.7 MB, free: 2.992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006906/0.7575, allocations: 1.636 MB / 447.3 MB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001103/0.7586, allocations: 127.9 kB / 447.5 MB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0309/0.7895, allocations: 16.12 MB / 463.6 MB, free: 184 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-05/0.7896, allocations: 11.94 kB / 463.6 MB, free: 172 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02827/0.8179, allocations: 8.559 MB / 472.2 MB, free: 7.254 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002872/0.8208, allocations: 0.7003 MB / 472.9 MB, free: 6.531 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001306/0.8221, allocations: 104 kB / 473 MB, free: 6.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005755/0.8279, allocations: 351.7 kB / 473.3 MB, free: 6.086 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002689/0.8307, allocations: 0.6018 MB / 473.9 MB, free: 5.484 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008909/0.8316, allocations: 155.9 kB / 474.1 MB, free: 5.332 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002937/0.8345, allocations: 1.114 MB / 475.2 MB, free: 4.227 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.8346, allocations: 0 / 475.2 MB, free: 4.227 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006741/0.8413, allocations: 1.004 MB / 476.2 MB, free: 3.223 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,linearSpeedDependentTorque.phi,inertia20.w,inertia5.phi,inertia5.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (297): * Single equations (assignments): 287 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,1 5,1 5,1 9,2 23,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001487/0.8429, allocations: 324.8 kB / 476.5 MB, free: 2.891 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.2883/1.131, allocations: 5.051 MB / 481.5 MB, free: 126.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.599e-05/1.131, allocations: 2.688 kB / 481.5 MB, free: 126.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01369/1.145, allocations: 3.876 MB / 485.4 MB, free: 125.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004912/1.15, allocations: 359.3 kB / 485.8 MB, free: 125.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02506/1.175, allocations: 9.161 MB / 494.9 MB, free: 120.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003238/1.178, allocations: 1.898 MB / 496.8 MB, free: 119.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003549/1.182, allocations: 452.4 kB / 497.3 MB, free: 119.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001674/1.184, allocations: 226.3 kB / 497.5 MB, free: 119.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.403e-06/1.184, allocations: 0 / 497.5 MB, free: 119.8 MB / 410.7 MB Notification: Performance of Templates: time 0.1318/1.315, allocations: 51.55 MB / 0.5362 GB, free: 77.58 MB / 410.7 MB