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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadModel(Modelica): time 1.835/1.835, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.753e-05/2.773e-05, allocations: 4 kB / 255.4 MB, free: 3.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07822/0.07827, allocations: 44.5 MB / 299.9 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3485/0.4268, allocations: 92.99 MB / 392.9 MB, free: 19.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.4271, allocations: 90.91 kB / 392.9 MB, free: 19.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3622/0.7893, allocations: 96.98 MB / 489.9 MB, free: 14.44 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.879e-06/0.7894, allocations: 4 kB / 489.9 MB, free: 14.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003159/0.7897, allocations: 100 kB / 490 MB, free: 14.34 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1848 * Number of variables: 1848 Notification: Performance of Generate backend data structure: time 0.02372/0.8134, allocations: 5.483 MB / 495.5 MB, free: 8.785 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.8135, allocations: 12.02 kB / 495.5 MB, free: 8.773 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01385/0.8274, allocations: 2.313 MB / 497.8 MB, free: 6.449 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01673/0.8442, allocations: 4.921 MB / 0.491 GB, free: 1.469 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005962/0.8448, allocations: 394.3 kB / 0.4913 GB, free: 1.082 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002589/0.8474, allocations: 0.5154 MB / 0.4919 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03701/0.8845, allocations: 12.83 MB / 0.5044 GB, free: 2.617 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002932/0.8848, allocations: 67.41 kB / 0.5044 GB, free: 2.551 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001915/0.8867, allocations: 251.9 kB / 0.5047 GB, free: 2.305 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0027/0.8895, allocations: 1.196 MB / 0.5059 GB, free: 1.102 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2634/1.153, allocations: 10.8 MB / 0.5164 GB, free: 65.55 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07394/1.227, allocations: 57.09 MB / 0.5721 GB, free: 33.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01905/1.246, allocations: 5.124 MB / 0.5772 GB, free: 31.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005102/1.251, allocations: 3.161 MB / 0.5802 GB, free: 30.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001301/1.252, allocations: 0.6807 MB / 0.5809 GB, free: 29.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/1.253, allocations: 60.62 kB / 0.581 GB, free: 29.42 MB / 394.7 MB Notification: Performance of pre-optimization done (n=221): time 6.806e-06/1.253, allocations: 0.5625 kB / 0.581 GB, free: 29.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=252): time 0.07412/1.327, allocations: 21.5 MB / 0.602 GB, free: 22.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/1.327, allocations: 152.7 kB / 0.6021 GB, free: 21.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008336/1.335, allocations: 4.045 MB / 0.6061 GB, free: 20.45 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005554/1.336, allocations: 66.2 kB / 0.6061 GB, free: 20.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002417/1.338, allocations: 3.477 MB / 0.6095 GB, free: 17.71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001246/1.339, allocations: 0.9465 MB / 0.6104 GB, free: 17.02 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007488/1.34, allocations: 137.2 kB / 0.6106 GB, free: 16.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004264/1.341, allocations: 0.6094 MB / 0.6112 GB, free: 16.47 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005795/1.346, allocations: 2.966 MB / 0.6141 GB, free: 15.46 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008228/1.355, allocations: 6.96 MB / 0.6209 GB, free: 7.551 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008188/1.363, allocations: 4.505 MB / 0.6253 GB, free: 3.867 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001067/1.363, allocations: 44 kB / 0.6253 GB, free: 3.824 MB / 394.7 MB Notification: Performance of matching and sorting (n=909) (initialization): time 0.02529/1.388, allocations: 10.28 MB / 0.6353 GB, free: 11.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001368/1.389, allocations: 68 kB / 0.6354 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002142/1.389, allocations: 144 kB / 0.6355 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003912/1.393, allocations: 1.135 MB / 0.6366 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008534/1.401, allocations: 1.733 MB / 0.6383 GB, free: 8.586 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/1.412, allocations: 5.935 MB / 0.6441 GB, free: 3.355 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007547/1.42, allocations: 433.6 kB / 0.6445 GB, free: 3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001695/1.422, allocations: 434.6 kB / 0.645 GB, free: 2.602 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 650 * 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 (870): * Single equations (assignments): 866 * 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.00214/1.424, allocations: 0.6334 MB / 0.6456 GB, free: 1.969 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001161/1.425, allocations: 418.4 kB / 0.646 GB, free: 1.559 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01752/1.443, allocations: 5.706 MB / 0.6516 GB, free: 13.69 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.304e-05/1.443, allocations: 28 kB / 0.6516 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/1.443, allocations: 4 kB / 0.6516 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.498e-05/1.443, allocations: 15.44 kB / 0.6516 GB, free: 13.65 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03176/1.475, allocations: 12.1 MB / 0.6634 GB, free: 3.828 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.394e-05/1.475, allocations: 4 kB / 0.6634 GB, free: 3.824 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003766/1.478, allocations: 0.5044 MB / 0.6639 GB, free: 3.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004241/1.483, allocations: 0.9362 MB / 0.6648 GB, free: 2.738 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006282/1.483, allocations: 47.98 kB / 0.6649 GB, free: 2.691 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3154/1.799, allocations: 5.635 MB / 0.6704 GB, free: 90.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.662e-06/1.799, allocations: 6.594 kB / 0.6704 GB, free: 90.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01989/1.819, allocations: 9.697 MB / 0.6799 GB, free: 89.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002848/1.822, allocations: 0.9094 MB / 0.6807 GB, free: 89.01 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001112/1.823, allocations: 43.56 kB / 0.6808 GB, free: 89.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003176/1.826, allocations: 177.7 kB / 0.681 GB, free: 89.01 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007024/1.827, allocations: 158.4 kB / 0.6811 GB, free: 89.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003201/1.827, allocations: 63.34 kB / 0.6812 GB, free: 89.01 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006025/1.833, allocations: 2.826 MB / 0.6839 GB, free: 88.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.424e-06/1.833, allocations: 0 / 0.6839 GB, free: 88.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007732/1.841, allocations: 1.262 MB / 0.6852 GB, free: 88.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (225): * Single equations (assignments): 221 * 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.0007581/1.842, allocations: 198.2 kB / 0.6853 GB, free: 88.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01326/1.855, allocations: 6.943 MB / 0.6921 GB, free: 88.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.421e-06/1.855, allocations: 7.969 kB / 0.6921 GB, free: 88.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005392/1.86, allocations: 2.659 MB / 0.6947 GB, free: 88.45 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003422/1.864, allocations: 466 kB / 0.6952 GB, free: 88.43 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02456/1.889, allocations: 10.63 MB / 0.7056 GB, free: 86.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007173/1.896, allocations: 3.897 MB / 0.7094 GB, free: 85.74 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002319/1.898, allocations: 368.5 kB / 0.7097 GB, free: 85.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.841e-06/1.898, allocations: 2.719 kB / 0.7097 GB, free: 85.73 MB / 426.7 MB Notification: Performance of Templates: time 0.1293/2.027, allocations: 90.14 MB / 0.7977 GB, free: 28 MB / 426.7 MB