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 1.836/1.836, allocations: 195 MB / 203.2 MB, free: 6.75 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.01e-05/2.024e-05, allocations: 2.188 kB / 249.6 MB, free: 5.527 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07846/0.0785, allocations: 44.5 MB / 294.1 MB, free: 11.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3457/0.4242, allocations: 91.61 MB / 385.7 MB, free: 7.703 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.4245, allocations: 90.58 kB / 385.8 MB, free: 7.688 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3216/0.7461, allocations: 82.13 MB / 468 MB, free: 5.863 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.7462, allocations: 0 / 468 MB, free: 5.863 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002464/0.7465, allocations: 80 kB / 468 MB, free: 5.785 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: 1525 * Number of variables: 1525 Notification: Performance of Generate backend data structure: time 0.01919/0.7657, allocations: 4.471 MB / 472.5 MB, free: 1.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.7657, allocations: 8.031 kB / 472.5 MB, free: 1.242 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01359/0.7793, allocations: 2.217 MB / 474.7 MB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01508/0.7945, allocations: 4.45 MB / 479.2 MB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002967/0.7948, allocations: 136 kB / 479.3 MB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001966/0.7968, allocations: 251.9 kB / 479.6 MB, free: 10.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01576/0.8126, allocations: 6.342 MB / 485.9 MB, free: 3.773 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02437/0.837, allocations: 9.669 MB / 495.6 MB, free: 9.051 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002418/0.8373, allocations: 63.41 kB / 495.6 MB, free: 8.988 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001316/0.8386, allocations: 32 kB / 495.7 MB, free: 8.957 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002265/0.8409, allocations: 0.9945 MB / 496.7 MB, free: 7.953 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2874/1.128, allocations: 46.91 MB / 0.5308 GB, free: 53.03 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004946/1.133, allocations: 3.23 MB / 0.534 GB, free: 52.36 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002818/1.136, allocations: 1.738 MB / 0.5357 GB, free: 52.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00888/1.145, allocations: 4.236 MB / 0.5398 GB, free: 50.97 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/1.145, allocations: 54.44 kB / 0.5399 GB, free: 50.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=139): time 5.429e-06/1.145, allocations: 0 / 0.5399 GB, free: 50.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=146): time 0.02876/1.174, allocations: 12.04 MB / 0.5516 GB, free: 48.31 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/1.174, allocations: 141.5 kB / 0.5518 GB, free: 48.15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006401/1.18, allocations: 3.131 MB / 0.5548 GB, free: 47.53 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003029/1.181, allocations: 25.7 kB / 0.5548 GB, free: 47.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002203/1.183, allocations: 3.223 MB / 0.558 GB, free: 45.16 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007748/1.184, allocations: 0.5821 MB / 0.5586 GB, free: 44.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005367/1.184, allocations: 0 / 0.5586 GB, free: 44.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004017/1.185, allocations: 0.5693 MB / 0.5591 GB, free: 44.32 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00376/1.189, allocations: 1.857 MB / 0.5609 GB, free: 43.68 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005838/1.194, allocations: 5.792 MB / 0.5666 GB, free: 37.67 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006151/1.201, allocations: 3.247 MB / 0.5698 GB, free: 36.74 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001213/1.201, allocations: 40.44 kB / 0.5698 GB, free: 36.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.0184/1.219, allocations: 7.348 MB / 0.577 GB, free: 34.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/1.219, allocations: 69.91 kB / 0.577 GB, free: 34.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000183/1.22, allocations: 141 kB / 0.5772 GB, free: 34.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00351/1.223, allocations: 0.9209 MB / 0.5781 GB, free: 34.44 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006409/1.23, allocations: 1.436 MB / 0.5795 GB, free: 34.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007306/1.237, allocations: 4.614 MB / 0.584 GB, free: 31.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006474/1.243, allocations: 216.2 kB / 0.5842 GB, free: 31.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001376/1.245, allocations: 391.2 kB / 0.5846 GB, free: 31.71 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 649 * 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 (760): * Single equations (assignments): 756 * 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.001791/1.247, allocations: 463.4 kB / 0.585 GB, free: 31.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007192/1.247, allocations: 314.8 kB / 0.5853 GB, free: 31.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006682/1.254, allocations: 2.707 MB / 0.5879 GB, free: 30.28 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.313e-05/1.254, allocations: 21.8 kB / 0.588 GB, free: 30.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/1.254, allocations: 8.703 kB / 0.588 GB, free: 30.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.36e-05/1.254, allocations: 7.312 kB / 0.588 GB, free: 30.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01591/1.27, allocations: 6.122 MB / 0.594 GB, free: 27.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-05/1.27, allocations: 0 / 0.594 GB, free: 27.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001664/1.272, allocations: 243.9 kB / 0.5942 GB, free: 27.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002759/1.275, allocations: 0.6988 MB / 0.5949 GB, free: 26.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003046/1.275, allocations: 18.2 kB / 0.5949 GB, free: 26.94 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006317/1.281, allocations: 4.177 MB / 0.599 GB, free: 23.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/1.281, allocations: 4.062 kB / 0.599 GB, free: 23.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009142/1.291, allocations: 4.991 MB / 0.6039 GB, free: 18.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001682/1.292, allocations: 0.5665 MB / 0.6044 GB, free: 18.36 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007079/1.293, allocations: 4 kB / 0.6044 GB, free: 18.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002121/1.295, allocations: 70.66 kB / 0.6045 GB, free: 18.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004512/1.296, allocations: 84.38 kB / 0.6046 GB, free: 18.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001584/1.296, allocations: 40 kB / 0.6046 GB, free: 18.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004544/1.3, allocations: 2.082 MB / 0.6066 GB, free: 16.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.141e-06/1.301, allocations: 0 / 0.6066 GB, free: 16.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007466/1.308, allocations: 0.8269 MB / 0.6074 GB, free: 15.61 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (115): * Single equations (assignments): 111 * 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.0006206/1.309, allocations: 137.2 kB / 0.6076 GB, free: 15.47 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008222/1.317, allocations: 4.448 MB / 0.6119 GB, free: 11.47 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.249e-06/1.317, allocations: 0 / 0.6119 GB, free: 11.47 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002233/1.319, allocations: 1.304 MB / 0.6132 GB, free: 10.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002296/1.322, allocations: 323.2 kB / 0.6135 GB, free: 10.01 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01813/1.34, allocations: 7.575 MB / 0.6209 GB, free: 3.293 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006586/1.346, allocations: 3.308 MB / 0.6241 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/1.348, allocations: 277.9 kB / 0.6244 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of SimCode: time 1.851e-06/1.348, allocations: 0 / 0.6244 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of Templates: time 0.346/1.694, allocations: 69.38 MB / 0.6921 GB, free: 81.8 MB / 410.7 MB