Running command: translateModel(ModelicaTest.Rotational.TestBearingConversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadModel(ModelicaTest): time 2.366/2.366, allocations: 270 MB / 282.7 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.807e-05/2.815e-05, allocations: 0 / 347 MB, free: 3.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3172, allocations: 61.87 MB / 408.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1595/0.4767, allocations: 103.2 MB / 0.5 GB, free: 3.453 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/0.477, allocations: 63.97 kB / 0.5 GB, free: 3.391 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5358/1.013, allocations: 66.24 MB / 0.5647 GB, free: 76.27 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.613e-06/1.013, allocations: 3.938 kB / 0.5647 GB, free: 76.27 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001485/1.013, allocations: 63.98 kB / 0.5648 GB, free: 76.2 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.007857/1.021, allocations: 2.871 MB / 0.5676 GB, free: 73.28 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/1.021, allocations: 12.03 kB / 0.5676 GB, free: 73.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002084/1.023, allocations: 407.9 kB / 0.568 GB, free: 72.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003118/1.026, allocations: 1.298 MB / 0.5693 GB, free: 71.51 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008486/1.027, allocations: 0.5767 MB / 0.5698 GB, free: 70.87 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006893/1.028, allocations: 307.7 kB / 0.5701 GB, free: 70.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006792/1.035, allocations: 3.134 MB / 0.5732 GB, free: 67.33 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001586/1.035, allocations: 43.55 kB / 0.5732 GB, free: 67.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003888/1.035, allocations: 112 kB / 0.5733 GB, free: 67.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.636e-05/1.035, allocations: 72 kB / 0.5734 GB, free: 67.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006878/1.042, allocations: 3.039 MB / 0.5764 GB, free: 64.07 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0206/1.063, allocations: 9.785 MB / 0.5859 GB, free: 54.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005748/1.069, allocations: 2.886 MB / 0.5887 GB, free: 50.96 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003426/1.072, allocations: 1.562 MB / 0.5903 GB, free: 49.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000366/1.072, allocations: 223.6 kB / 0.5905 GB, free: 49.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.676e-05/1.072, allocations: 97.55 kB / 0.5906 GB, free: 48.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=366): time 9.516e-06/1.072, allocations: 0 / 0.5906 GB, free: 48.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=429): time 0.0319/1.104, allocations: 17.38 MB / 0.6075 GB, free: 30.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/1.105, allocations: 0.6201 MB / 0.6082 GB, free: 29.77 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002283/1.107, allocations: 1.283 MB / 0.6094 GB, free: 28.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006522/1.108, allocations: 129.7 kB / 0.6095 GB, free: 28.35 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000574/1.108, allocations: 0.8493 MB / 0.6104 GB, free: 27.49 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001289/1.109, allocations: 1.436 MB / 0.6118 GB, free: 26.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003226/1.11, allocations: 91.98 kB / 0.6118 GB, free: 25.95 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000218/1.11, allocations: 475.9 kB / 0.6123 GB, free: 25.47 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003207/1.113, allocations: 1.344 MB / 0.6136 GB, free: 24.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003731/1.117, allocations: 2.047 MB / 0.6156 GB, free: 21.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003373/1.12, allocations: 1.36 MB / 0.6169 GB, free: 20.44 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-05/1.12, allocations: 4 kB / 0.6169 GB, free: 20.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0112/1.132, allocations: 4.48 MB / 0.6213 GB, free: 15.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.126e-05/1.132, allocations: 12.09 kB / 0.6213 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.302e-05/1.132, allocations: 28 kB / 0.6214 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004992/1.137, allocations: 1.724 MB / 0.623 GB, free: 14.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004155/1.141, allocations: 0.8074 MB / 0.6238 GB, free: 13.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02205/1.163, allocations: 16.24 MB / 0.6397 GB, free: 12.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004408/1.168, allocations: 383.7 kB / 0.6401 GB, free: 11.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006598/1.168, allocations: 187.9 kB / 0.6402 GB, free: 11.64 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {1 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.001018/1.169, allocations: 360.1 kB / 0.6406 GB, free: 11.28 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00121/1.17, allocations: 300.4 kB / 0.6409 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00458/1.175, allocations: 1.541 MB / 0.6424 GB, free: 9.406 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.756e-05/1.175, allocations: 44 kB / 0.6424 GB, free: 9.363 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.918e-05/1.175, allocations: 11.94 kB / 0.6424 GB, free: 9.352 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.951e-05/1.175, allocations: 23.92 kB / 0.6424 GB, free: 9.328 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or 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.0282/1.203, allocations: 10.04 MB / 0.6522 GB, free: 15.06 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-05/1.204, allocations: 8 kB / 0.6523 GB, free: 15.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004878/1.208, allocations: 0.7381 MB / 0.653 GB, free: 14.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005577/1.214, allocations: 1.599 MB / 0.6545 GB, free: 12.69 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007575/1.215, allocations: 139.8 kB / 0.6547 GB, free: 12.55 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02587/1.241, allocations: 15.71 MB / 0.67 GB, free: 11.95 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.206e-05/1.241, allocations: 19.92 kB / 0.67 GB, free: 11.93 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01769/1.258, allocations: 7.844 MB / 0.6777 GB, free: 3.664 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002475/1.261, allocations: 0.708 MB / 0.6784 GB, free: 2.934 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008548/1.262, allocations: 112 kB / 0.6785 GB, free: 2.824 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004064/1.266, allocations: 347.7 kB / 0.6788 GB, free: 2.484 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001776/1.268, allocations: 0.6173 MB / 0.6794 GB, free: 1.867 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005011/1.268, allocations: 171.8 kB / 0.6796 GB, free: 1.699 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002095/1.27, allocations: 0.981 MB / 0.6806 GB, free: 0.7266 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.48e-07/1.27, allocations: 0 / 0.6806 GB, free: 0.7266 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005132/1.276, allocations: 0.9922 MB / 0.6815 GB, free: 15.73 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.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,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.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,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 293 * 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,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007629/1.276, allocations: 308.9 kB / 0.6818 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01058/1.287, allocations: 4.533 MB / 0.6862 GB, free: 10.81 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.836e-06/1.287, allocations: 0 / 0.6862 GB, free: 10.81 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009283/1.296, allocations: 3.439 MB / 0.6896 GB, free: 7.309 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003541/1.3, allocations: 375 kB / 0.69 GB, free: 6.945 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01683/1.317, allocations: 7.026 MB / 0.6968 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002508/1.319, allocations: 1.9 MB / 0.6987 GB, free: 13.81 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00162/1.321, allocations: 267.2 kB / 0.6989 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of SimCode: time 1.899e-06/1.321, allocations: 0 / 0.6989 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of Templates: time 0.4269/1.748, allocations: 128.7 MB / 0.8246 GB, free: 58.69 MB / 0.5105 GB