Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadModel(Modelica): time 1.69/1.69, allocations: 171.1 MB / 186.3 MB, free: 1.324 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.387e-05/3.382e-05, allocations: 0 / 228.1 MB, free: 7.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08731/0.08738, allocations: 38.77 MB / 266.9 MB, free: 1.113 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.3065/0.3939, allocations: 52.16 MB / 319.1 MB, free: 2.727 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03507/0.4291, allocations: 11.34 MB / 330.4 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01608/0.4452, allocations: 276.6 kB / 330.7 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01101/0.4563, allocations: 2.745 MB / 333.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03066/0.487, allocations: 7.395 MB / 340.8 MB, free: 6.184 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004812/0.4919, allocations: 0.6184 MB / 341.4 MB, free: 5.762 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006786/0.4987, allocations: 1.791 MB / 343.2 MB, free: 4.234 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01115/0.5099, allocations: 5.249 MB / 348.5 MB, free: 14.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002691/0.5127, allocations: 0.9467 MB / 349.4 MB, free: 13.98 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00358/0.5163, allocations: 1.476 MB / 350.9 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003021/0.5194, allocations: 0.7958 MB / 351.7 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001428/0.5209, allocations: 132 kB / 351.8 MB, free: 11.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003136/0.524, allocations: 1.757 MB / 353.6 MB, free: 9.812 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001578/0.5257, allocations: 324 kB / 353.9 MB, free: 9.496 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01079/0.5365, allocations: 6.663 MB / 360.5 MB, free: 2.816 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.5366, allocations: 3.938 kB / 360.6 MB, free: 2.812 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.5366, allocations: 0 / 360.6 MB, free: 2.812 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.00031/0.5369, allocations: 4 kB / 360.6 MB, free: 2.809 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: 1847 * Number of variables: 1847 Notification: Performance of Generate backend data structure: time 0.03015/0.5671, allocations: 5.908 MB / 366.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.5671, allocations: 12.03 kB / 366.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01484/0.582, allocations: 2.337 MB / 368.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008784/0.5908, allocations: 2.906 MB / 371.7 MB, free: 7.508 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004265/0.5913, allocations: 307.7 kB / 372 MB, free: 7.207 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002256/0.5936, allocations: 403.7 kB / 372.4 MB, free: 6.812 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03827/0.6319, allocations: 12.58 MB / 385 MB, free: 9.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002099/0.6321, allocations: 43.59 kB / 385 MB, free: 9.438 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001198/0.6334, allocations: 191.8 kB / 385.2 MB, free: 9.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005971/0.6393, allocations: 2.14 MB / 387.4 MB, free: 7.109 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03833/0.6777, allocations: 11.14 MB / 398.5 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3484/1.026, allocations: 47.52 MB / 446 MB, free: 97.74 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02776/1.054, allocations: 5.327 MB / 451.3 MB, free: 97.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001407/1.055, allocations: 394.8 kB / 451.7 MB, free: 96.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/1.056, allocations: 52.81 kB / 451.8 MB, free: 96.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=221): time 6.131e-06/1.056, allocations: 3.219 kB / 451.8 MB, free: 96.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=252): time 0.1178/1.173, allocations: 26.53 MB / 478.3 MB, free: 86.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.059e-05/1.173, allocations: 151.5 kB / 478.5 MB, free: 86.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008537/1.182, allocations: 4.213 MB / 482.7 MB, free: 82.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007537/1.183, allocations: 67.19 kB / 482.7 MB, free: 82.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002583/1.185, allocations: 3.462 MB / 486.2 MB, free: 79.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00159/1.187, allocations: 0.9526 MB / 487.2 MB, free: 78.06 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007988/1.188, allocations: 140.8 kB / 487.3 MB, free: 77.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000479/1.188, allocations: 0.6042 MB / 487.9 MB, free: 77.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007683/1.196, allocations: 3.057 MB / 491 MB, free: 74.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009867/1.206, allocations: 7.07 MB / 498 MB, free: 65.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01079/1.217, allocations: 4.553 MB / 0.4908 GB, free: 61.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001383/1.217, allocations: 40 kB / 0.4908 GB, free: 60.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=907) (initialization): time 0.02991/1.247, allocations: 10.85 MB / 0.5014 GB, free: 50.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/1.247, allocations: 64 kB / 0.5015 GB, free: 50.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001812/1.247, allocations: 144 kB / 0.5016 GB, free: 50.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004957/1.252, allocations: 1.146 MB / 0.5027 GB, free: 48.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01148/1.264, allocations: 1.727 MB / 0.5044 GB, free: 47.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01216/1.276, allocations: 6.119 MB / 0.5104 GB, free: 40.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008325/1.284, allocations: 426.9 kB / 0.5108 GB, free: 40.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001597/1.286, allocations: 435.9 kB / 0.5112 GB, free: 40.05 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 648 * Number of states: 0 () * Number of discrete variables: 39 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 (868): * Single equations (assignments): 864 * 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.006256/1.292, allocations: 2.394 MB / 0.5136 GB, free: 37.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001195/1.294, allocations: 410.7 kB / 0.514 GB, free: 37.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01677/1.31, allocations: 5.639 MB / 0.5195 GB, free: 31.58 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.303e-05/1.31, allocations: 32.69 kB / 0.5195 GB, free: 31.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/1.31, allocations: 8.062 kB / 0.5195 GB, free: 31.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-05/1.311, allocations: 7.969 kB / 0.5195 GB, free: 31.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0328/1.343, allocations: 12.24 MB / 0.5315 GB, free: 19.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.684e-05/1.343, allocations: 8.031 kB / 0.5315 GB, free: 19.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00528/1.349, allocations: 0.5032 MB / 0.532 GB, free: 18.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004471/1.353, allocations: 0.9449 MB / 0.5329 GB, free: 17.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006868/1.354, allocations: 48.61 kB / 0.5329 GB, free: 17.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01132/1.365, allocations: 5.836 MB / 0.5386 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.365, allocations: 4 kB / 0.5386 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02757/1.393, allocations: 9.977 MB / 0.5484 GB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003488/1.396, allocations: 0.9249 MB / 0.5493 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001445/1.398, allocations: 47.98 kB / 0.5493 GB, free: 0.543 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003894/1.402, allocations: 175.8 kB / 0.5495 GB, free: 380 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006408/1.403, allocations: 158.8 kB / 0.5496 GB, free: 220 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003147/1.403, allocations: 64 kB / 0.5497 GB, free: 156 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007184/1.41, allocations: 2.965 MB / 0.5526 GB, free: 13.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.332e-06/1.41, allocations: 4 kB / 0.5526 GB, free: 13.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008252/1.418, allocations: 1.276 MB / 0.5539 GB, free: 11.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 223 * 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 Backend phase and start with SimCode phase: time 0.001031/1.419, allocations: 202.4 kB / 0.554 GB, free: 11.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01998/1.439, allocations: 7.301 MB / 0.5612 GB, free: 4.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/1.44, allocations: 4 kB / 0.5612 GB, free: 4.426 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007814/1.447, allocations: 2.757 MB / 0.5639 GB, free: 1.656 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003975/1.451, allocations: 461.2 kB / 0.5643 GB, free: 1.207 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03663/1.488, allocations: 14.6 MB / 0.5786 GB, free: 2.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2399/1.728, allocations: 3.907 MB / 0.5824 GB, free: 142.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00311/1.731, allocations: 368.5 kB / 0.5827 GB, free: 142.1 MB / 394.7 MB Notification: Performance of SimCode: time 2.104e-06/1.731, allocations: 3.094 kB / 0.5827 GB, free: 142.1 MB / 394.7 MB Notification: Performance of Templates: time 0.1716/1.903, allocations: 91.88 MB / 0.6725 GB, free: 70.78 MB / 394.7 MB