Running command: translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadModel(ModelicaTest): time 1.888/1.888, allocations: 209.3 MB / 221.9 MB, free: 7.742 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.124e-05/4.14e-05, allocations: 7.984 kB / 273 MB, free: 3.668 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0926/0.09266, allocations: 48.7 MB / 321.7 MB, free: 2.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4023/0.4951, allocations: 91.88 MB / 413.6 MB, free: 2.934 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000163/0.4953, allocations: 64.88 kB / 413.7 MB, free: 2.926 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2329/0.7282, allocations: 44.36 MB / 458.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.067e-06/0.7282, allocations: 0 / 458.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001371/0.7284, allocations: 47.98 kB / 458.1 MB, free: 14.3 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 515 * Number of variables: 515 Notification: Performance of Generate backend data structure: time 0.007268/0.7356, allocations: 2.201 MB / 460.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.7357, allocations: 8.031 kB / 460.3 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001602/0.7373, allocations: 281 kB / 460.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002932/0.7403, allocations: 0.9335 MB / 461.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009629/0.7413, allocations: 407.7 kB / 461.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009596/0.7423, allocations: 230.7 kB / 462.1 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007204/0.7495, allocations: 2.185 MB / 464.3 MB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000171/0.7497, allocations: 35.69 kB / 464.4 MB, free: 8.418 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003663/0.7501, allocations: 87.94 kB / 464.4 MB, free: 8.332 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.676e-05/0.7502, allocations: 52 kB / 464.5 MB, free: 8.281 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006321/0.7565, allocations: 2.101 MB / 466.6 MB, free: 6.184 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01843/0.775, allocations: 6.156 MB / 472.8 MB, free: 15.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00543/0.7805, allocations: 2.079 MB / 474.8 MB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00325/0.7838, allocations: 1.156 MB / 476 MB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002245/0.784, allocations: 38.28 kB / 476 MB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.374e-05/0.7841, allocations: 60.72 kB / 476.1 MB, free: 12.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=260): time 7.202e-06/0.7841, allocations: 0 / 476.1 MB, free: 12.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=315): time 0.02664/0.8108, allocations: 9.927 MB / 486 MB, free: 2.168 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000179/0.811, allocations: 243.7 kB / 486.2 MB, free: 1.879 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002009/0.813, allocations: 0.9067 MB / 487.2 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006541/0.8137, allocations: 93.69 kB / 487.2 MB, free: 0.8633 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007103/0.8144, allocations: 0.634 MB / 487.9 MB, free: 228 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001689/0.8161, allocations: 1.055 MB / 488.9 MB, free: 15.15 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003406/0.8165, allocations: 60 kB / 489 MB, free: 15.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003393/0.8169, allocations: 433 kB / 489.4 MB, free: 14.66 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003013/0.8199, allocations: 0.9862 MB / 490.4 MB, free: 13.67 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003695/0.8236, allocations: 1.35 MB / 491.8 MB, free: 12.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00299/0.8266, allocations: 0.9906 MB / 492.7 MB, free: 11.22 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-05/0.8267, allocations: 4 kB / 492.7 MB, free: 11.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.009981/0.8367, allocations: 3.283 MB / 496 MB, free: 7.914 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.8368, allocations: 8 kB / 496 MB, free: 7.906 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.798e-05/0.8368, allocations: 8 kB / 496 MB, free: 7.898 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003659/0.8405, allocations: 1.217 MB / 497.3 MB, free: 6.668 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003801/0.8443, allocations: 0.6671 MB / 497.9 MB, free: 6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01344/0.8578, allocations: 7.495 MB / 0.4936 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002943/0.8608, allocations: 275.8 kB / 0.4938 GB, free: 13.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005867/0.8614, allocations: 120 kB / 0.494 GB, free: 13.78 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 38 (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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 308 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007526/0.8622, allocations: 280.3 kB / 0.4942 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007391/0.8629, allocations: 213.5 kB / 0.4944 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.8645, allocations: 0.6027 MB / 0.495 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.021e-05/0.8646, allocations: 35.98 kB / 0.4951 GB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-05/0.8646, allocations: 7.953 kB / 0.4951 GB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-05/0.8647, allocations: 11.95 kB / 0.4951 GB, free: 12.61 MB / 410.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.02079/0.8855, allocations: 7.118 MB / 0.502 GB, free: 5.301 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.885e-05/0.8856, allocations: 12.75 kB / 0.502 GB, free: 5.289 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00401/0.8896, allocations: 0.632 MB / 0.5027 GB, free: 4.656 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003762/0.8934, allocations: 1.196 MB / 0.5038 GB, free: 3.438 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006244/0.8941, allocations: 95.92 kB / 0.5039 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01597/0.9101, allocations: 10.11 MB / 0.5138 GB, free: 8.621 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.459e-05/0.9101, allocations: 11.94 kB / 0.5138 GB, free: 8.609 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01375/0.9239, allocations: 5.429 MB / 0.5191 GB, free: 2.871 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001933/0.9259, allocations: 0.5217 MB / 0.5196 GB, free: 2.328 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006481/0.9265, allocations: 87.97 kB / 0.5197 GB, free: 2.242 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002932/0.9295, allocations: 267.7 kB / 0.5199 GB, free: 1.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001464/0.931, allocations: 425.2 kB / 0.5203 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004257/0.9314, allocations: 127.9 kB / 0.5205 GB, free: 1.441 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001546/0.933, allocations: 0.6921 MB / 0.5211 GB, free: 0.7422 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.35e-07/0.933, allocations: 4 kB / 0.5212 GB, free: 0.7383 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003953/0.937, allocations: 0.7109 MB / 0.5218 GB, free: 28 kB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 27 (inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 243 * 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: 7 * 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%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.2338/1.171, allocations: 269.8 kB / 0.5221 GB, free: 117.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007653/1.178, allocations: 2.852 MB / 0.5249 GB, free: 117 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/1.179, allocations: 5.312 kB / 0.5249 GB, free: 117 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006231/1.185, allocations: 2.315 MB / 0.5272 GB, free: 116.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002627/1.187, allocations: 281.7 kB / 0.5274 GB, free: 116.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01286/1.2, allocations: 5.276 MB / 0.5326 GB, free: 114.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001571/1.202, allocations: 1.544 MB / 0.5341 GB, free: 114 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001278/1.203, allocations: 193 kB / 0.5343 GB, free: 114 MB / 426.7 MB Notification: Performance of SimCode: time 3.575e-06/1.203, allocations: 1.375 kB / 0.5343 GB, free: 114 MB / 426.7 MB Notification: Performance of Templates: time 0.08073/1.284, allocations: 66.57 MB / 0.5993 GB, free: 76.75 MB / 426.7 MB