Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1.phi|r1.w|r2.phi|r2.w|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3") Notification: Performance of loadModel(ModelicaTest): time 2.229/2.229, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.529e-05/3.531e-05, allocations: 4.938 kB / 304.9 MB, free: 5.641 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3227, allocations: 54.84 MB / 359.8 MB, free: 2.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1601/0.4828, allocations: 102.7 MB / 462.4 MB, free: 10.28 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.4831, allocations: 83.95 kB / 462.5 MB, free: 10.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6275/1.111, allocations: 97.19 MB / 0.5466 GB, free: 102.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.768e-06/1.111, allocations: 0 / 0.5466 GB, free: 102.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003105/1.111, allocations: 103.1 kB / 0.5467 GB, free: 102.1 MB / 458.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.02235/1.133, allocations: 5.506 MB / 0.5521 GB, free: 100.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/1.134, allocations: 7.812 kB / 0.5521 GB, free: 100.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01394/1.147, allocations: 2.322 MB / 0.5543 GB, free: 99.72 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01564/1.163, allocations: 4.959 MB / 0.5592 GB, free: 99.06 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004686/1.164, allocations: 396.8 kB / 0.5596 GB, free: 99.05 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002545/1.166, allocations: 0.5126 MB / 0.5601 GB, free: 99.04 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03279/1.199, allocations: 12.8 MB / 0.5726 GB, free: 94.79 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003013/1.199, allocations: 70.16 kB / 0.5726 GB, free: 94.75 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002189/1.202, allocations: 245.7 kB / 0.5729 GB, free: 94.61 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002327/1.204, allocations: 1.212 MB / 0.574 GB, free: 94.39 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02776/1.232, allocations: 10.88 MB / 0.5847 GB, free: 91.05 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07264/1.304, allocations: 55.76 MB / 0.6391 GB, free: 44.44 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01823/1.323, allocations: 5.259 MB / 0.6443 GB, free: 39.03 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005024/1.328, allocations: 3.274 MB / 0.6474 GB, free: 35.75 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001562/1.329, allocations: 1.014 MB / 0.6484 GB, free: 34.58 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.716e-05/1.329, allocations: 63.5 kB / 0.6485 GB, free: 34.51 MB / 458.7 MB Notification: Performance of pre-optimization done (n=224): time 1.244e-05/1.33, allocations: 0 / 0.6485 GB, free: 34.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=255): time 0.07291/1.402, allocations: 21.93 MB / 0.6699 GB, free: 12.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/1.403, allocations: 150.5 kB / 0.6701 GB, free: 12.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00796/1.411, allocations: 3.964 MB / 0.6739 GB, free: 8.32 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000579/1.411, allocations: 61.7 kB / 0.674 GB, free: 8.254 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00219/1.413, allocations: 3.434 MB / 0.6773 GB, free: 4.824 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001214/1.415, allocations: 0.9578 MB / 0.6783 GB, free: 3.875 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006179/1.415, allocations: 136 kB / 0.6784 GB, free: 3.742 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003898/1.416, allocations: 0.6 MB / 0.679 GB, free: 3.133 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005586/1.421, allocations: 2.969 MB / 0.6819 GB, free: 164 kB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01079/1.432, allocations: 6.839 MB / 0.6886 GB, free: 7.387 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009794/1.442, allocations: 4.467 MB / 0.6929 GB, free: 2.918 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001183/1.442, allocations: 47.98 kB / 0.693 GB, free: 2.871 MB / 474.7 MB Notification: Performance of matching and sorting (n=891) (initialization): time 0.0269/1.469, allocations: 10.18 MB / 0.7029 GB, free: 8.688 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001186/1.469, allocations: 66.5 kB / 0.703 GB, free: 8.625 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001858/1.469, allocations: 140 kB / 0.7031 GB, free: 8.488 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003829/1.473, allocations: 1.134 MB / 0.7042 GB, free: 7.352 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008388/1.482, allocations: 1.7 MB / 0.7059 GB, free: 5.648 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2966/1.778, allocations: 5.922 MB / 0.7117 GB, free: 116.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007466/1.786, allocations: 421.4 kB / 0.7121 GB, free: 116.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0017/1.788, allocations: 421.3 kB / 0.7125 GB, free: 116.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 629 * 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 (852): * Single equations (assignments): 848 * 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.001919/1.789, allocations: 0.6192 MB / 0.7131 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/1.791, allocations: 417.2 kB / 0.7135 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01391/1.804, allocations: 5.574 MB / 0.7189 GB, free: 116.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.727e-05/1.805, allocations: 26.88 kB / 0.7189 GB, free: 116.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.38e-05/1.805, allocations: 5 kB / 0.7189 GB, free: 116.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.379e-05/1.805, allocations: 11.53 kB / 0.719 GB, free: 116.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03067/1.835, allocations: 12.26 MB / 0.7309 GB, free: 115.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.622e-05/1.835, allocations: 3.156 kB / 0.7309 GB, free: 115.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003792/1.839, allocations: 0.5167 MB / 0.7314 GB, free: 115.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003524/1.843, allocations: 0.9339 MB / 0.7323 GB, free: 115.4 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006263/1.843, allocations: 48.77 kB / 0.7324 GB, free: 115.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009117/1.853, allocations: 5.65 MB / 0.7379 GB, free: 113.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.582e-06/1.853, allocations: 2.062 kB / 0.7379 GB, free: 113.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01849/1.871, allocations: 9.833 MB / 0.7475 GB, free: 109.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00296/1.874, allocations: 0.9163 MB / 0.7484 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001096/1.875, allocations: 47.59 kB / 0.7485 GB, free: 108.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003325/1.879, allocations: 184 kB / 0.7486 GB, free: 108.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007396/1.879, allocations: 157.7 kB / 0.7488 GB, free: 108.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003168/1.88, allocations: 73.62 kB / 0.7489 GB, free: 108.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005664/1.885, allocations: 2.774 MB / 0.7516 GB, free: 107.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.155e-06/1.885, allocations: 0 / 0.7516 GB, free: 107.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007884/1.893, allocations: 1.258 MB / 0.7528 GB, free: 107.6 MB / 490.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,r1.phi,r1.w,r2.phi,r2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (228): * Single equations (assignments): 224 * 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.0007306/1.894, allocations: 195.1 kB / 0.753 GB, free: 107.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01351/1.908, allocations: 6.952 MB / 0.7598 GB, free: 105.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.444e-06/1.908, allocations: 3.188 kB / 0.7598 GB, free: 105.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005286/1.913, allocations: 2.696 MB / 0.7624 GB, free: 104.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003135/1.916, allocations: 451.4 kB / 0.7628 GB, free: 104.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02454/1.941, allocations: 10.68 MB / 0.7733 GB, free: 100.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007019/1.948, allocations: 3.903 MB / 0.7771 GB, free: 98.91 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002414/1.95, allocations: 364.4 kB / 0.7774 GB, free: 98.89 MB / 490.7 MB Notification: Performance of SimCode: time 2.015e-06/1.95, allocations: 0 / 0.7774 GB, free: 98.89 MB / 490.7 MB Notification: Performance of Templates: time 0.123/2.073, allocations: 89.94 MB / 0.8653 GB, free: 22.38 MB / 490.7 MB