Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameForces2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForces2") Notification: Performance of loadModel(ModelicaTest): time 2.436/2.436, allocations: 269 MB / 284.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.118e-05/3.126e-05, allocations: 8 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1313, allocations: 61.89 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForces2): time 0.4935/0.6248, allocations: 101.6 MB / 0.5005 GB, free: 1.852 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.06272/0.6876, allocations: 21.09 MB / 0.5211 GB, free: 12.7 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02605/0.7137, allocations: 0.5339 MB / 0.5216 GB, free: 12.16 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02012/0.7339, allocations: 5.389 MB / 0.5269 GB, free: 6.75 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05479/0.7888, allocations: 14.48 MB / 0.541 GB, free: 8.238 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008584/0.7974, allocations: 1.178 MB / 0.5422 GB, free: 7.059 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.6589/1.456, allocations: 93.36 MB / 0.6333 GB, free: 71.04 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01554/1.472, allocations: 8.602 MB / 0.6417 GB, free: 70.42 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003677/1.476, allocations: 1.567 MB / 0.6433 GB, free: 70.42 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005039/1.481, allocations: 2.437 MB / 0.6457 GB, free: 70.41 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003945/1.485, allocations: 1.071 MB / 0.6467 GB, free: 70.41 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.001886/1.487, allocations: 212.6 kB / 0.6469 GB, free: 70.41 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.004568/1.491, allocations: 3.036 MB / 0.6499 GB, free: 70.25 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.002994/1.494, allocations: 0.5131 MB / 0.6504 GB, free: 70.25 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.01365/1.508, allocations: 10.68 MB / 0.6608 GB, free: 61.12 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/1.508, allocations: 0 / 0.6608 GB, free: 61.12 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.286e-06/1.508, allocations: 6.25 kB / 0.6608 GB, free: 61.12 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004429/1.509, allocations: 0 / 0.6608 GB, free: 61.12 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2601 * Number of variables: 2601 Notification: Performance of Generate backend data structure: time 0.02794/1.536, allocations: 7.431 MB / 0.6681 GB, free: 54.25 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.922e-05/1.537, allocations: 8.031 kB / 0.6681 GB, free: 54.25 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2206/1.757, allocations: 21.5 MB / 0.6891 GB, free: 34.04 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01927/1.776, allocations: 6.275 MB / 0.6952 GB, free: 29.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005099/1.777, allocations: 458.4 kB / 0.6956 GB, free: 29.25 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002802/1.78, allocations: 0.6041 MB / 0.6962 GB, free: 28.85 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04929/1.829, allocations: 17.78 MB / 0.7136 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005008/1.83, allocations: 90.48 kB / 0.7137 GB, free: 14.93 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002709/1.832, allocations: 282.6 kB / 0.7139 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008977/1.842, allocations: 3.137 MB / 0.717 GB, free: 12.26 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04611/1.888, allocations: 14.65 MB / 0.7313 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1267/2.014, allocations: 65.72 MB / 0.7955 GB, free: 11.39 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03231/2.047, allocations: 6.438 MB / 0.8018 GB, free: 5.426 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001217/2.048, allocations: 0.646 MB / 0.8024 GB, free: 4.688 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.077e-05/2.048, allocations: 69.28 kB / 0.8025 GB, free: 4.617 MB / 0.573 GB Notification: Performance of pre-optimization done (n=239): time 6.933e-06/2.048, allocations: 0 / 0.8025 GB, free: 4.617 MB / 0.573 GB Notification: Performance of matching and sorting (n=263): time 0.1379/2.186, allocations: 28.21 MB / 0.83 GB, free: 8.234 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001772/2.186, allocations: 283 kB / 0.8303 GB, free: 7.898 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01817/2.205, allocations: 7.064 MB / 0.8372 GB, free: 0.8633 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0007054/2.205, allocations: 72.52 kB / 0.8373 GB, free: 0.7891 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.6716/2.877, allocations: 5.032 MB / 0.8422 GB, free: 249.7 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.001974/2.879, allocations: 1.018 MB / 0.8432 GB, free: 249.1 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001224/2.88, allocations: 171.4 kB / 0.8433 GB, free: 249.1 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.000808/2.881, allocations: 0.6703 MB / 0.844 GB, free: 248.8 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009016/2.89, allocations: 3.019 MB / 0.8469 GB, free: 248.6 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01261/2.903, allocations: 8.207 MB / 0.8549 GB, free: 240.6 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01265/2.915, allocations: 4.851 MB / 0.8597 GB, free: 238.8 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003445/2.916, allocations: 52.62 kB / 0.8597 GB, free: 238.8 MB / 0.6043 GB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.03446/2.95, allocations: 11.66 MB / 0.8711 GB, free: 234.6 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001653/2.951, allocations: 82.72 kB / 0.8712 GB, free: 234.6 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002885/2.951, allocations: 184.6 kB / 0.8714 GB, free: 234.6 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005348/2.956, allocations: 1.306 MB / 0.8727 GB, free: 234.3 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01248/2.969, allocations: 1.984 MB / 0.8746 GB, free: 234 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02052/2.989, allocations: 12.68 MB / 0.887 GB, free: 225.7 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01029/3, allocations: 488.3 kB / 0.8874 GB, free: 225.5 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001821/3.002, allocations: 0.5078 MB / 0.8879 GB, free: 225.5 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 837 * Number of states: 0 () * Number of discrete variables: 74 (frameForce4.arrow.arrowLine.twoHeadedArrow,frameForce4.arrow.headAtOrigin,frameForce3.arrow.arrowLine.twoHeadedArrow,frameForce3.arrow.headAtOrigin,frameForce2.arrow.arrowLine.twoHeadedArrow,frameForce2.arrow.headAtOrigin,frameForce1.arrow.arrowLine.twoHeadedArrow,frameForce1.arrow.headAtOrigin,frameForce4.color[3],frameForce4.color[2],frameForce4.color[1],BodyCylinder4.color[3],BodyCylinder4.color[2],BodyCylinder4.color[1],BodyCylinder4.body.sphereColor[3],BodyCylinder4.body.sphereColor[2],BodyCylinder4.body.sphereColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameForce3.color[3],frameForce3.color[2],frameForce3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],frameForce2.color[3],frameForce2.color[2],frameForce2.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameForce1.color[3],frameForce1.color[2],frameForce1.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1032): * Single equations (assignments): 1025 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008578/3.01, allocations: 3.459 MB / 0.8913 GB, free: 223.9 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001567/3.012, allocations: 0.6187 MB / 0.8919 GB, free: 223.5 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01399/3.026, allocations: 5.052 MB / 0.8969 GB, free: 220.9 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.397e-05/3.026, allocations: 32.88 kB / 0.8969 GB, free: 220.9 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.144e-05/3.026, allocations: 11.95 kB / 0.8969 GB, free: 220.9 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-05/3.026, allocations: 11.06 kB / 0.8969 GB, free: 220.9 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03648/3.063, allocations: 13.24 MB / 0.9098 GB, free: 208.3 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.529e-05/3.063, allocations: 6.188 kB / 0.9098 GB, free: 208.3 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004309/3.067, allocations: 455.3 kB / 0.9103 GB, free: 207.9 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004423/3.071, allocations: 0.9585 MB / 0.9112 GB, free: 206.9 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004747/3.072, allocations: 44 kB / 0.9113 GB, free: 206.8 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01765/3.09, allocations: 11.57 MB / 0.9225 GB, free: 194.8 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/3.09, allocations: 4.031 kB / 0.9226 GB, free: 194.7 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01862/3.108, allocations: 8.631 MB / 0.931 GB, free: 186 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002262/3.111, allocations: 0.7037 MB / 0.9317 GB, free: 185.3 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002349/3.113, allocations: 51.89 kB / 0.9317 GB, free: 185.2 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005196/3.118, allocations: 155.8 kB / 0.9319 GB, free: 185.1 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008438/3.119, allocations: 153.8 kB / 0.932 GB, free: 184.9 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002985/3.119, allocations: 64 kB / 0.9321 GB, free: 184.9 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.01143/3.131, allocations: 5.079 MB / 0.937 GB, free: 179.8 MB / 0.6043 GB Notification: Performance of sort global known variables: time 8.61e-07/3.131, allocations: 96 / 0.937 GB, free: 179.8 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.01055/3.141, allocations: 1.703 MB / 0.9387 GB, free: 178.1 MB / 0.6043 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 200 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001144/3.143, allocations: 203.7 kB / 0.9389 GB, free: 177.9 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.01778/3.16, allocations: 7.755 MB / 0.9465 GB, free: 170.2 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/3.16, allocations: 1.484 kB / 0.9465 GB, free: 170.2 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.005702/3.166, allocations: 2.731 MB / 0.9491 GB, free: 167.4 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007192/3.173, allocations: 0.9203 MB / 0.95 GB, free: 166.5 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04498/3.218, allocations: 19.8 MB / 0.9694 GB, free: 146.6 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01167/3.23, allocations: 5.553 MB / 0.9748 GB, free: 141 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002722/3.233, allocations: 471.4 kB / 0.9752 GB, free: 140.6 MB / 0.6043 GB Notification: Performance of SimCode: time 2.345e-06/3.233, allocations: 3.938 kB / 0.9752 GB, free: 140.6 MB / 0.6043 GB Notification: Performance of Templates: time 0.7509/3.984, allocations: 219.7 MB / 1.19 GB, free: 168.2 MB / 0.6043 GB