Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadModel(Modelica): time 2.043/2.043, allocations: 194.9 MB / 211.2 MB, free: 8.84 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.519e-05/2.52e-05, allocations: 0 / 258.8 MB, free: 9.199 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3108, allocations: 44.52 MB / 303.3 MB, free: 12.7 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.063/0.3739, allocations: 39.61 MB / 342.9 MB, free: 6.035 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02633/0.4003, allocations: 8.957 MB / 351.9 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009353/0.4097, allocations: 203.6 kB / 352.1 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007895/0.4176, allocations: 2.065 MB / 354.1 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02218/0.4399, allocations: 5.668 MB / 359.8 MB, free: 5.094 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003515/0.4434, allocations: 495.2 kB / 360.3 MB, free: 4.609 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004746/0.4482, allocations: 1.52 MB / 361.8 MB, free: 3.086 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008018/0.4563, allocations: 3.858 MB / 365.7 MB, free: 15.19 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001793/0.4582, allocations: 0.7792 MB / 366.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002717/0.4609, allocations: 1.27 MB / 367.7 MB, free: 13.14 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00253/0.4635, allocations: 0.7763 MB / 368.5 MB, free: 12.36 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009393/0.4645, allocations: 116 kB / 368.6 MB, free: 12.25 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002274/0.4667, allocations: 1.484 MB / 370.1 MB, free: 10.76 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00113/0.4679, allocations: 260 kB / 370.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009183/0.4771, allocations: 5.557 MB / 375.9 MB, free: 4.934 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.4772, allocations: 4 kB / 375.9 MB, free: 4.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.707e-06/0.4772, allocations: 0 / 375.9 MB, free: 4.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002508/0.4775, allocations: 0 / 375.9 MB, free: 4.93 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1525 * Number of variables: 1525 Notification: Performance of Generate backend data structure: time 0.02629/0.5038, allocations: 4.828 MB / 380.7 MB, free: 36 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.5038, allocations: 12.03 kB / 380.7 MB, free: 24 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01464/0.5185, allocations: 2.229 MB / 383 MB, free: 13.78 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007421/0.526, allocations: 2.491 MB / 385.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002852/0.5263, allocations: 242 kB / 385.7 MB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001565/0.5279, allocations: 315.7 kB / 386 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02975/0.5577, allocations: 10.31 MB / 396.3 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001892/0.5579, allocations: 51.53 kB / 396.4 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000846/0.5588, allocations: 159.6 kB / 396.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005401/0.5642, allocations: 1.861 MB / 398.4 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03055/0.5948, allocations: 8.9 MB / 407.3 MB, free: 4.688 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3472/0.9421, allocations: 39.38 MB / 446.7 MB, free: 80.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01934/0.9615, allocations: 3.593 MB / 450.3 MB, free: 80.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001268/0.9628, allocations: 370.8 kB / 450.6 MB, free: 79.74 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.9629, allocations: 43.53 kB / 450.7 MB, free: 79.69 MB / 362.7 MB Notification: Performance of pre-optimization done (n=148): time 5.21e-06/0.9629, allocations: 0 / 450.7 MB, free: 79.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=154): time 0.06515/1.028, allocations: 13.67 MB / 464.3 MB, free: 72.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.014e-05/1.028, allocations: 145.5 kB / 464.5 MB, free: 72.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007874/1.036, allocations: 3.807 MB / 468.3 MB, free: 68.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004942/1.037, allocations: 51.23 kB / 468.3 MB, free: 68.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002879/1.04, allocations: 3.082 MB / 471.4 MB, free: 65.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001228/1.041, allocations: 0.6101 MB / 472 MB, free: 64.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000758/1.042, allocations: 117.8 kB / 472.1 MB, free: 64.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004624/1.042, allocations: 0.5608 MB / 472.7 MB, free: 63.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005463/1.048, allocations: 2.016 MB / 474.7 MB, free: 61.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007081/1.055, allocations: 5.791 MB / 480.5 MB, free: 54.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007382/1.062, allocations: 3.358 MB / 483.9 MB, free: 51.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.842e-05/1.062, allocations: 40 kB / 483.9 MB, free: 51.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.02228/1.085, allocations: 8.161 MB / 492.1 MB, free: 42.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.891e-05/1.085, allocations: 60 kB / 492.1 MB, free: 42.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001747/1.085, allocations: 140 kB / 492.3 MB, free: 42.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004244/1.089, allocations: 0.9373 MB / 493.2 MB, free: 41.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008364/1.098, allocations: 1.368 MB / 494.6 MB, free: 40.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009745/1.107, allocations: 4.971 MB / 499.5 MB, free: 35.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006185/1.114, allocations: 324.4 kB / 499.9 MB, free: 34.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009111/1.115, allocations: 380.9 kB / 0.4885 GB, free: 34.56 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 33 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (733): * Single equations (assignments): 729 * Array equations: 3 * 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: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004373/1.119, allocations: 2.054 MB / 0.4905 GB, free: 32.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008216/1.12, allocations: 343.5 kB / 0.4908 GB, free: 32.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008751/1.129, allocations: 2.941 MB / 0.4937 GB, free: 29.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.574e-05/1.129, allocations: 17.17 kB / 0.4937 GB, free: 29.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.611e-05/1.129, allocations: 4 kB / 0.4937 GB, free: 29.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.61e-05/1.129, allocations: 3.984 kB / 0.4937 GB, free: 29.17 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0208/1.15, allocations: 7.502 MB / 0.5011 GB, free: 21.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.768e-05/1.15, allocations: 4 kB / 0.5011 GB, free: 21.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002408/1.152, allocations: 247.6 kB / 0.5013 GB, free: 21.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003781/1.156, allocations: 0.7109 MB / 0.502 GB, free: 20.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003753/1.156, allocations: 31.98 kB / 0.502 GB, free: 20.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008808/1.165, allocations: 4.512 MB / 0.5064 GB, free: 16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/1.165, allocations: 7.969 kB / 0.5064 GB, free: 16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01295/1.178, allocations: 5.492 MB / 0.5118 GB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00204/1.18, allocations: 0.633 MB / 0.5124 GB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008063/1.181, allocations: 32.55 kB / 0.5124 GB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00231/1.183, allocations: 89.53 kB / 0.5125 GB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003415/1.184, allocations: 84.88 kB / 0.5126 GB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001679/1.184, allocations: 47.88 kB / 0.5127 GB, free: 9.516 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005586/1.19, allocations: 2.673 MB / 0.5153 GB, free: 6.832 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.19, allocations: 0 / 0.5153 GB, free: 6.832 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006513/1.196, allocations: 0.9753 MB / 0.5162 GB, free: 5.863 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 119 * Array equations: 3 * 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: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007324/1.197, allocations: 173.1 kB / 0.5164 GB, free: 5.691 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01089/1.208, allocations: 4.85 MB / 0.5211 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/1.208, allocations: 0 / 0.5211 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003439/1.211, allocations: 1.443 MB / 0.5225 GB, free: 15.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003284/1.215, allocations: 393.4 kB / 0.5229 GB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02729/1.242, allocations: 10.93 MB / 0.5336 GB, free: 4.031 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006801/1.249, allocations: 3.318 MB / 0.5368 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001707/1.251, allocations: 291.4 kB / 0.5371 GB, free: 408 kB / 378.7 MB Notification: Performance of SimCode: time 1.372e-06/1.251, allocations: 0 / 0.5371 GB, free: 408 kB / 378.7 MB Notification: Performance of Templates: time 0.4173/1.668, allocations: 72.42 MB / 0.6078 GB, free: 107.5 MB / 410.7 MB