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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadModel(Modelica): time 1.687/1.687, allocations: 171.2 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.472e-05/3.471e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08712/0.08718, allocations: 38.78 MB / 266.9 MB, free: 1.125 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.2943/0.3816, allocations: 39.61 MB / 306.5 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02599/0.4076, allocations: 8.922 MB / 315.4 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01158/0.4193, allocations: 206.4 kB / 315.6 MB, free: 2.402 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008016/0.4274, allocations: 2.066 MB / 317.7 MB, free: 1.938 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02347/0.4509, allocations: 5.663 MB / 323.4 MB, free: 16 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003873/0.4548, allocations: 0.4962 MB / 323.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005036/0.4599, allocations: 1.525 MB / 325.4 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008337/0.4683, allocations: 3.847 MB / 329.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002563/0.4709, allocations: 0.7863 MB / 330 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003377/0.4743, allocations: 1.26 MB / 331.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003253/0.4777, allocations: 0.7766 MB / 332.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001171/0.4789, allocations: 119 kB / 332.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002799/0.4817, allocations: 1.493 MB / 333.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001844/0.4836, allocations: 262 kB / 333.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01065/0.4943, allocations: 5.552 MB / 339.5 MB, free: 7.121 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4944, allocations: 3.938 kB / 339.5 MB, free: 7.117 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.376e-06/0.4944, allocations: 0 / 339.5 MB, free: 7.117 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002926/0.4947, allocations: 0 / 339.5 MB, free: 7.117 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02651/0.5212, allocations: 4.821 MB / 344.3 MB, free: 2.258 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.5213, allocations: 12.02 kB / 344.3 MB, free: 2.246 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01472/0.536, allocations: 2.227 MB / 346.5 MB, free: 12 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007686/0.5438, allocations: 2.501 MB / 349 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003298/0.5442, allocations: 235 kB / 349.3 MB, free: 13.28 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001778/0.546, allocations: 312.2 kB / 349.6 MB, free: 13.01 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03146/0.5774, allocations: 10.32 MB / 359.9 MB, free: 2.113 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002096/0.5777, allocations: 51.58 kB / 359.9 MB, free: 2.062 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001006/0.5787, allocations: 152.8 kB / 360.1 MB, free: 1.949 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005525/0.5843, allocations: 1.862 MB / 362 MB, free: 96 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03109/0.6154, allocations: 8.901 MB / 370.9 MB, free: 7.176 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07674/0.6922, allocations: 39.38 MB / 410.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02032/0.7126, allocations: 3.587 MB / 413.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001401/0.7141, allocations: 376 kB / 414.2 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.429e-05/0.7141, allocations: 47.5 kB / 414.2 MB, free: 10.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=148): time 5.5e-06/0.7142, allocations: 0 / 414.2 MB, free: 10.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=154): time 0.06985/0.784, allocations: 13.68 MB / 427.9 MB, free: 12.81 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.7842, allocations: 141.5 kB / 428.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01004/0.7942, allocations: 3.812 MB / 431.9 MB, free: 8.809 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004705/0.7948, allocations: 49.7 kB / 431.9 MB, free: 8.754 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003686/0.7985, allocations: 3.077 MB / 435 MB, free: 5.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00126/0.7998, allocations: 0.614 MB / 435.6 MB, free: 5.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006491/0.8005, allocations: 116 kB / 435.7 MB, free: 4.957 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005159/0.801, allocations: 0.5549 MB / 436.3 MB, free: 4.391 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005913/0.8069, allocations: 2.01 MB / 438.3 MB, free: 2.375 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.24/1.047, allocations: 5.797 MB / 444.1 MB, free: 120 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009084/1.056, allocations: 3.35 MB / 447.4 MB, free: 119.4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002918/1.056, allocations: 39.8 kB / 447.5 MB, free: 119.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.02596/1.082, allocations: 8.168 MB / 455.6 MB, free: 116.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001806/1.083, allocations: 64.28 kB / 455.7 MB, free: 116.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002439/1.083, allocations: 135.4 kB / 455.8 MB, free: 116.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0043/1.087, allocations: 0.9354 MB / 456.8 MB, free: 116.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008117/1.095, allocations: 1.372 MB / 458.1 MB, free: 116.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/1.106, allocations: 4.972 MB / 463.1 MB, free: 113.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006485/1.112, allocations: 332.1 kB / 463.4 MB, free: 113.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001302/1.113, allocations: 379.2 kB / 463.8 MB, free: 113.4 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.005271/1.119, allocations: 2.055 MB / 465.9 MB, free: 112.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008355/1.12, allocations: 348.5 kB / 466.2 MB, free: 112.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009019/1.129, allocations: 2.934 MB / 469.1 MB, free: 111.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.236e-05/1.129, allocations: 19.39 kB / 469.2 MB, free: 111.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/1.129, allocations: 11.03 kB / 469.2 MB, free: 111.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.663e-05/1.129, allocations: 11.75 kB / 469.2 MB, free: 111.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02044/1.149, allocations: 7.496 MB / 476.7 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.541e-05/1.149, allocations: 4 kB / 476.7 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002333/1.152, allocations: 243.7 kB / 476.9 MB, free: 105.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003778/1.155, allocations: 0.7175 MB / 477.6 MB, free: 105.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003505/1.156, allocations: 35.8 kB / 477.7 MB, free: 105.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008695/1.165, allocations: 4.516 MB / 482.2 MB, free: 100.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/1.165, allocations: 4.031 kB / 482.2 MB, free: 100.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01297/1.178, allocations: 5.497 MB / 487.7 MB, free: 95.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001995/1.18, allocations: 0.6291 MB / 488.3 MB, free: 94.46 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009248/1.181, allocations: 30.06 kB / 488.4 MB, free: 94.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002448/1.183, allocations: 85.3 kB / 488.4 MB, free: 94.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004393/1.184, allocations: 92.86 kB / 488.5 MB, free: 94.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000169/1.184, allocations: 40 kB / 488.6 MB, free: 94.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005371/1.189, allocations: 2.677 MB / 491.2 MB, free: 91.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.174e-06/1.189, allocations: 0 / 491.2 MB, free: 91.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006389/1.196, allocations: 0.9848 MB / 492.2 MB, free: 90.56 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.0006726/1.196, allocations: 167.3 kB / 492.4 MB, free: 90.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01103/1.207, allocations: 4.85 MB / 497.2 MB, free: 85.56 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.944e-06/1.207, allocations: 1.312 kB / 497.2 MB, free: 85.56 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003192/1.211, allocations: 1.434 MB / 498.7 MB, free: 84.12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003079/1.214, allocations: 396.2 kB / 499.1 MB, free: 83.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02253/1.236, allocations: 10.94 MB / 0.498 GB, free: 72.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00573/1.242, allocations: 3.311 MB / 0.5013 GB, free: 69.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001496/1.244, allocations: 287.4 kB / 0.5016 GB, free: 69.11 MB / 362.7 MB Notification: Performance of SimCode: time 2.053e-06/1.244, allocations: 3.938 kB / 0.5016 GB, free: 69.11 MB / 362.7 MB Notification: Performance of Templates: time 0.3711/1.615, allocations: 72.41 MB / 0.5723 GB, free: 111.2 MB / 362.7 MB