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_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameForces2") Notification: Performance of loadModel(ModelicaTest): time 2.078/2.078, allocations: 209.3 MB / 224.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.993e-05/4.012e-05, allocations: 4 kB / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3517, allocations: 48.7 MB / 324.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForces2): time 0.1574/0.5092, allocations: 98.33 MB / 423.2 MB, free: 13.02 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.07033/0.5796, allocations: 20.46 MB / 443.6 MB, free: 8.504 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02805/0.6077, allocations: 0.5067 MB / 444.1 MB, free: 7.996 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02068/0.6285, allocations: 5.292 MB / 449.4 MB, free: 2.68 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05687/0.6854, allocations: 14.02 MB / 463.5 MB, free: 4.621 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009061/0.6945, allocations: 1.201 MB / 464.7 MB, free: 3.418 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.4392/1.134, allocations: 32.68 MB / 497.3 MB, free: 19.09 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01641/1.15, allocations: 8.74 MB / 0.4942 GB, free: 18.47 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004509/1.155, allocations: 1.676 MB / 0.4959 GB, free: 18.47 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005996/1.161, allocations: 2.679 MB / 0.4985 GB, free: 18.46 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004726/1.166, allocations: 1.132 MB / 0.4996 GB, free: 18.45 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002414/1.168, allocations: 238.3 kB / 0.4998 GB, free: 18.45 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005053/1.173, allocations: 3.232 MB / 0.503 GB, free: 18.45 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002842/1.176, allocations: 0.5464 MB / 0.5035 GB, free: 18.45 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01601/1.192, allocations: 11.46 MB / 0.5147 GB, free: 13.98 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/1.192, allocations: 0 / 0.5147 GB, free: 13.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.248e-06/1.192, allocations: 0 / 0.5147 GB, free: 13.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005643/1.193, allocations: 3.938 kB / 0.5147 GB, free: 13.98 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2802 * Number of variables: 2802 Notification: Performance of Generate backend data structure: time 0.02894/1.222, allocations: 7.999 MB / 0.5225 GB, free: 8.812 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/1.222, allocations: 12.03 kB / 0.5225 GB, free: 8.801 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2555/1.477, allocations: 21.59 MB / 0.5436 GB, free: 4.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02472/1.502, allocations: 7.107 MB / 0.5505 GB, free: 15.42 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006999/1.503, allocations: 479.7 kB / 0.551 GB, free: 15.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003662/1.507, allocations: 0.6328 MB / 0.5516 GB, free: 14.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06069/1.567, allocations: 19.13 MB / 0.5703 GB, free: 15.89 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000493/1.568, allocations: 91.27 kB / 0.5704 GB, free: 15.84 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00294/1.571, allocations: 299.1 kB / 0.5707 GB, free: 15.76 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008569/1.579, allocations: 3.192 MB / 0.5738 GB, free: 13.17 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05851/1.638, allocations: 15.86 MB / 0.5893 GB, free: 2.039 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1424/1.78, allocations: 69.89 MB / 0.6575 GB, free: 8.41 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04812/1.829, allocations: 8.245 MB / 0.6656 GB, free: 1.961 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001577/1.83, allocations: 0.6624 MB / 0.6662 GB, free: 1.23 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001076/1.83, allocations: 71.69 kB / 0.6663 GB, free: 1.176 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=307): time 1.024e-05/1.83, allocations: 0 / 0.6663 GB, free: 1.176 MB / 0.5105 GB Notification: Performance of matching and sorting (n=331): time 0.463/2.293, allocations: 31.84 MB / 0.6974 GB, free: 211.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/2.294, allocations: 294.2 kB / 0.6977 GB, free: 211.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01733/2.311, allocations: 7.303 MB / 0.7048 GB, free: 208.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000881/2.312, allocations: 77.14 kB / 0.7049 GB, free: 208.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004528/2.316, allocations: 5.273 MB / 0.71 GB, free: 204.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002025/2.318, allocations: 1.249 MB / 0.7112 GB, free: 203.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001029/2.32, allocations: 186.6 kB / 0.7114 GB, free: 203.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005523/2.32, allocations: 0.701 MB / 0.7121 GB, free: 202.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009137/2.329, allocations: 3.566 MB / 0.7156 GB, free: 201.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01373/2.343, allocations: 9.018 MB / 0.7244 GB, free: 193.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01304/2.356, allocations: 5.542 MB / 0.7298 GB, free: 188.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002108/2.356, allocations: 56 kB / 0.7299 GB, free: 188.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1217) (initialization): time 0.03538/2.392, allocations: 13.09 MB / 0.7426 GB, free: 175.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001335/2.392, allocations: 84 kB / 0.7427 GB, free: 175.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002345/2.392, allocations: 192.9 kB / 0.7429 GB, free: 175.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005292/2.398, allocations: 1.313 MB / 0.7442 GB, free: 174.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01423/2.412, allocations: 2.225 MB / 0.7464 GB, free: 172.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0209/2.433, allocations: 12.7 MB / 0.7588 GB, free: 158.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01132/2.444, allocations: 0.5449 MB / 0.7593 GB, free: 158.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00202/2.446, allocations: 0.5429 MB / 0.7598 GB, free: 157.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 874 * Number of states: 0 () * Number of discrete variables: 63 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1141): * Single equations (assignments): 1134 * 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.01004/2.456, allocations: 3.675 MB / 0.7634 GB, free: 154.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001901/2.458, allocations: 0.6673 MB / 0.7641 GB, free: 153.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01861/2.477, allocations: 6.387 MB / 0.7703 GB, free: 147 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.099e-05/2.477, allocations: 41.19 kB / 0.7703 GB, free: 147 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-05/2.477, allocations: 15.95 kB / 0.7704 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.342e-05/2.477, allocations: 15.94 kB / 0.7704 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04519/2.522, allocations: 15.52 MB / 0.7855 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.296e-05/2.522, allocations: 7.984 kB / 0.7855 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006016/2.528, allocations: 0.6007 MB / 0.7861 GB, free: 130.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004615/2.533, allocations: 0.9554 MB / 0.787 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008592/2.534, allocations: 65.08 kB / 0.7871 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01839/2.552, allocations: 11.54 MB / 0.7984 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/2.552, allocations: 96 / 0.7984 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02666/2.579, allocations: 10.71 MB / 0.8088 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004869/2.584, allocations: 1.234 MB / 0.81 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002451/2.587, allocations: 63.95 kB / 0.8101 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006467/2.593, allocations: 207.7 kB / 0.8103 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001184/2.594, allocations: 194.3 kB / 0.8105 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003755/2.595, allocations: 84.09 kB / 0.8106 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01265/2.607, allocations: 5.265 MB / 0.8157 GB, free: 99.83 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.022e-06/2.607, allocations: 0 / 0.8157 GB, free: 99.83 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01217/2.62, allocations: 1.859 MB / 0.8175 GB, free: 97.97 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (276): * Single equations (assignments): 269 * 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.001421/2.621, allocations: 218.6 kB / 0.8177 GB, free: 97.75 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02182/2.643, allocations: 9.049 MB / 0.8266 GB, free: 88.69 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/2.643, allocations: 0 / 0.8266 GB, free: 88.69 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007521/2.65, allocations: 3.337 MB / 0.8298 GB, free: 85.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007957/2.658, allocations: 0.9157 MB / 0.8307 GB, free: 84.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0508/2.709, allocations: 21.69 MB / 0.8519 GB, free: 62.64 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01398/2.723, allocations: 5.892 MB / 0.8577 GB, free: 56.71 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003746/2.727, allocations: 0.5189 MB / 0.8582 GB, free: 56.19 MB / 0.5105 GB Notification: Performance of SimCode: time 1.844e-06/2.727, allocations: 0 / 0.8582 GB, free: 56.19 MB / 0.5105 GB Notification: Performance of Templates: time 0.7447/3.472, allocations: 236.7 MB / 1.089 GB, free: 36.8 MB / 0.5105 GB