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_trunk_cpp_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadModel(ModelicaTest): time 2.437/2.437, allocations: 269 MB / 284.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.104e-05/4.112e-05, allocations: 4 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1715, allocations: 61.88 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.01351/0.185, allocations: 7.409 MB / 418.3 MB, free: 5.438 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01016/0.1952, allocations: 2.832 MB / 421.2 MB, free: 2.602 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002046/0.1974, allocations: 59.81 kB / 421.2 MB, free: 2.543 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004977/0.2024, allocations: 242.1 kB / 421.4 MB, free: 2.305 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009318/0.2117, allocations: 0.7593 MB / 422.2 MB, free: 1.543 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003806/0.2156, allocations: 0.6941 MB / 422.9 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.357/0.5726, allocations: 1.603 MB / 424.5 MB, free: 3.605 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001242/0.5739, allocations: 449.7 kB / 424.9 MB, free: 3.57 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002487/0.5764, allocations: 1.008 MB / 426 MB, free: 3.57 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003122/0.5796, allocations: 1.221 MB / 427.2 MB, free: 3.57 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001489/0.5811, allocations: 202.4 kB / 427.4 MB, free: 3.57 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006836/0.5818, allocations: 118.7 kB / 427.5 MB, free: 3.57 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007009/0.5825, allocations: 0.4901 MB / 428 MB, free: 3.57 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001142/0.5837, allocations: 220.4 kB / 428.2 MB, free: 3.57 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004717/0.5884, allocations: 2.352 MB / 430.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.5885, allocations: 1.312 kB / 430.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.5885, allocations: 3.281 kB / 430.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001493/0.5886, allocations: 0.6562 kB / 430.5 MB, free: 3.379 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01117/0.5998, allocations: 2.438 MB / 433 MB, free: 2.348 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.5999, allocations: 13.41 kB / 433 MB, free: 2.344 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001968/0.6019, allocations: 295.9 kB / 433.3 MB, free: 2.215 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003229/0.6051, allocations: 1.076 MB / 434.4 MB, free: 1.832 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001706/0.6068, allocations: 0.5046 MB / 434.9 MB, free: 1.598 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008074/0.6077, allocations: 243.5 kB / 435.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009436/0.6171, allocations: 2.628 MB / 437.7 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001526/0.6173, allocations: 28.61 kB / 437.8 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000357/0.6177, allocations: 88.16 kB / 437.8 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.404e-05/0.6178, allocations: 53.34 kB / 437.9 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01092/0.6287, allocations: 2.757 MB / 440.7 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02189/0.6506, allocations: 7.01 MB / 447.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008694/0.6594, allocations: 2.558 MB / 450.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004771/0.6599, allocations: 127.9 kB / 450.3 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.419e-05/0.66, allocations: 80.3 kB / 450.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=275): time 6.412e-06/0.66, allocations: 0 / 450.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=333): time 0.05472/0.7148, allocations: 14.58 MB / 465 MB, free: 15.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002012/0.715, allocations: 324.6 kB / 465.3 MB, free: 15.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002446/0.7175, allocations: 0.9966 MB / 466.3 MB, free: 14.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008613/0.7184, allocations: 93.7 kB / 466.4 MB, free: 14.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007264/0.7191, allocations: 0.6801 MB / 467.1 MB, free: 13.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001874/0.721, allocations: 1.126 MB / 468.2 MB, free: 12.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004174/0.7215, allocations: 64 kB / 468.3 MB, free: 12.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002949/0.7218, allocations: 437.5 kB / 468.7 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004692/0.7265, allocations: 1.131 MB / 469.8 MB, free: 10.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005055/0.7316, allocations: 1.56 MB / 471.4 MB, free: 8.898 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004828/0.7364, allocations: 1.174 MB / 472.6 MB, free: 7.727 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-05/0.7365, allocations: 4 kB / 472.6 MB, free: 7.723 MB / 378.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01378/0.7503, allocations: 3.503 MB / 476.1 MB, free: 4.191 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.064e-05/0.7504, allocations: 8 kB / 476.1 MB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.19e-05/0.7504, allocations: 8 kB / 476.1 MB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004421/0.7549, allocations: 1.207 MB / 477.3 MB, free: 2.957 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006215/0.7611, allocations: 0.7529 MB / 478.1 MB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01561/0.7768, allocations: 7.649 MB / 485.7 MB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004582/0.7814, allocations: 295.9 kB / 486 MB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007468/0.7822, allocations: 123.9 kB / 486.1 MB, free: 9.816 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (338): * Single equations (assignments): 333 * 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.001789/0.784, allocations: 472.7 kB / 486.6 MB, free: 9.348 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009371/0.7849, allocations: 217.5 kB / 486.8 MB, free: 9.133 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0021/0.7871, allocations: 0.6108 MB / 487.4 MB, free: 8.512 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.34e-05/0.7871, allocations: 32 kB / 487.4 MB, free: 8.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.663e-05/0.7872, allocations: 7.938 kB / 487.4 MB, free: 8.473 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.398e-05/0.7872, allocations: 19.89 kB / 487.5 MB, free: 8.453 MB / 394.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.02992/0.8172, allocations: 7.953 MB / 495.4 MB, free: 404 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.075e-05/0.8172, allocations: 11.94 kB / 495.4 MB, free: 392 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00634/0.8236, allocations: 0.7062 MB / 496.1 MB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004515/0.8281, allocations: 1.206 MB / 497.3 MB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007433/0.8289, allocations: 99.92 kB / 497.4 MB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0176/0.8465, allocations: 10.28 MB / 0.4958 GB, free: 3.473 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.311e-05/0.8466, allocations: 12.12 kB / 0.4958 GB, free: 3.461 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02339/0.87, allocations: 6.629 MB / 0.5023 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/0.8724, allocations: 0.5332 MB / 0.5028 GB, free: 11.97 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001015/0.8734, allocations: 87.98 kB / 0.5029 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004697/0.8781, allocations: 299.8 kB / 0.5032 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001815/0.88, allocations: 449 kB / 0.5036 GB, free: 11.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004492/0.8805, allocations: 119.9 kB / 0.5037 GB, free: 11.04 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001891/0.8824, allocations: 0.7695 MB / 0.5045 GB, free: 10.26 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.126e-06/0.8824, allocations: 0 / 0.5045 GB, free: 10.26 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004839/0.8872, allocations: 0.7343 MB / 0.5052 GB, free: 9.527 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,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,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.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 (267): * Single equations (assignments): 260 * 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.001181/0.8885, allocations: 257.2 kB / 0.5054 GB, free: 9.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01293/0.9014, allocations: 3.513 MB / 0.5089 GB, free: 5.723 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.446e-05/0.9015, allocations: 4 kB / 0.5089 GB, free: 5.719 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01055/0.912, allocations: 2.816 MB / 0.5116 GB, free: 2.848 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003986/0.9161, allocations: 303.5 kB / 0.5119 GB, free: 2.555 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0226/0.9387, allocations: 7.54 MB / 0.5193 GB, free: 10.87 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001834/0.9406, allocations: 1.59 MB / 0.5208 GB, free: 9.242 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001657/0.9423, allocations: 199.3 kB / 0.521 GB, free: 9.047 MB / 442.7 MB Notification: Performance of SimCode: time 1.102e-06/0.9423, allocations: 0 / 0.521 GB, free: 9.047 MB / 442.7 MB Notification: Performance of Templates: time 0.1233/1.066, allocations: 71.06 MB / 0.5904 GB, free: 1.938 MB / 0.4948 GB