Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadModel(ModelicaTest): time 2.038/2.038, allocations: 209.3 MB / 224.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.05e-05/4.059e-05, allocations: 4 kB / 276.1 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4172/0.4172, allocations: 48.7 MB / 324.8 MB, free: 2.879 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.1261/0.5434, allocations: 58.78 MB / 383.6 MB, free: 4.688 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.05985/0.6033, allocations: 13.09 MB / 396.7 MB, free: 7.566 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0335/0.6369, allocations: 319.2 kB / 397 MB, free: 7.254 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01939/0.6563, allocations: 3.111 MB / 400.1 MB, free: 4.129 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04669/0.7031, allocations: 8.426 MB / 408.6 MB, free: 11.68 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006653/0.7098, allocations: 0.8971 MB / 409.5 MB, free: 10.78 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.06745/0.7773, allocations: 17.22 MB / 426.7 MB, free: 9.551 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01614/0.7935, allocations: 5.705 MB / 432.4 MB, free: 3.809 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003703/0.7973, allocations: 1.2 MB / 433.6 MB, free: 2.605 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005684/0.803, allocations: 1.905 MB / 435.5 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004373/0.8075, allocations: 0.9792 MB / 436.5 MB, free: 15.71 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001926/0.8094, allocations: 184 kB / 436.6 MB, free: 15.54 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004911/0.8144, allocations: 2.197 MB / 438.8 MB, free: 13.33 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002596/0.817, allocations: 396 kB / 439.2 MB, free: 12.95 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01728/0.8344, allocations: 8.179 MB / 447.4 MB, free: 4.746 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.8344, allocations: 0 / 447.4 MB, free: 4.746 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.257e-06/0.8345, allocations: 0 / 447.4 MB, free: 4.746 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003417/0.8348, allocations: 4 kB / 447.4 MB, free: 4.742 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2023 * Number of variables: 2023 Notification: Performance of Generate backend data structure: time 0.03037/0.8652, allocations: 5.999 MB / 453.4 MB, free: 14.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.33e-05/0.8653, allocations: 12.02 kB / 453.4 MB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3582/1.224, allocations: 19.04 MB / 472.5 MB, free: 11.58 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01739/1.241, allocations: 4.995 MB / 477.5 MB, free: 6.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004921/1.242, allocations: 332.6 kB / 477.8 MB, free: 6.172 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002327/1.244, allocations: 459.5 kB / 478.2 MB, free: 5.723 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3357/1.58, allocations: 13.69 MB / 491.9 MB, free: 123.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004948/1.58, allocations: 68.33 kB / 492 MB, free: 123.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00227/1.583, allocations: 213.7 kB / 492.2 MB, free: 123.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006907/1.589, allocations: 2.416 MB / 494.6 MB, free: 123.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03963/1.629, allocations: 11.72 MB / 0.4945 GB, free: 119.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09284/1.722, allocations: 53.74 MB / 0.5469 GB, free: 69.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0229/1.745, allocations: 5.819 MB / 0.5526 GB, free: 63.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001025/1.746, allocations: 0.6976 MB / 0.5533 GB, free: 62.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.121e-05/1.746, allocations: 60.56 kB / 0.5534 GB, free: 62.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=254): time 6.722e-06/1.746, allocations: 0 / 0.5534 GB, free: 62.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=324): time 0.1737/1.92, allocations: 36.74 MB / 0.5892 GB, free: 25.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001479/1.92, allocations: 273.3 kB / 0.5895 GB, free: 24.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01234/1.933, allocations: 5.064 MB / 0.5944 GB, free: 19.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001159/1.934, allocations: 78.88 kB / 0.5945 GB, free: 19.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00371/1.937, allocations: 3.853 MB / 0.5983 GB, free: 15.97 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002195/1.94, allocations: 1.201 MB / 0.5995 GB, free: 14.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001128/1.941, allocations: 152 kB / 0.5996 GB, free: 14.63 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006323/1.942, allocations: 0.6372 MB / 0.6002 GB, free: 13.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009209/1.951, allocations: 3.435 MB / 0.6036 GB, free: 10.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01216/1.963, allocations: 7.645 MB / 0.611 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01412/1.977, allocations: 5.049 MB / 0.616 GB, free: 11.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001743/1.977, allocations: 40 kB / 0.616 GB, free: 11.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.04402/2.021, allocations: 12.69 MB / 0.6284 GB, free: 14.99 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001419/2.022, allocations: 68.25 kB / 0.6285 GB, free: 14.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002795/2.022, allocations: 148.1 kB / 0.6286 GB, free: 14.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01099/2.033, allocations: 2.266 MB / 0.6308 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01249/2.046, allocations: 1.762 MB / 0.6325 GB, free: 10.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.351/2.397, allocations: 15.75 MB / 0.6479 GB, free: 134.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009465/2.406, allocations: 454.5 kB / 0.6484 GB, free: 134.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002307/2.408, allocations: 453.2 kB / 0.6488 GB, free: 134.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 669 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (928): * Single equations (assignments): 923 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009202/2.418, allocations: 2.775 MB / 0.6515 GB, free: 133.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001715/2.419, allocations: 0.4889 MB / 0.652 GB, free: 133.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02799/2.448, allocations: 7.421 MB / 0.6592 GB, free: 130.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001028/2.448, allocations: 42.36 kB / 0.6593 GB, free: 130.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.096e-05/2.448, allocations: 10.25 kB / 0.6593 GB, free: 130.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001094/2.448, allocations: 16.81 kB / 0.6593 GB, free: 130.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05179/2.5, allocations: 16.66 MB / 0.6756 GB, free: 124.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-05/2.5, allocations: 11.3 kB / 0.6756 GB, free: 124.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006238/2.506, allocations: 0.5115 MB / 0.6761 GB, free: 124.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009303/2.515, allocations: 2.006 MB / 0.678 GB, free: 123.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001034/2.516, allocations: 67.17 kB / 0.6781 GB, free: 123.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03134/2.548, allocations: 14.24 MB / 0.692 GB, free: 116.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.989e-06/2.548, allocations: 11.5 kB / 0.692 GB, free: 116.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03119/2.579, allocations: 12.69 MB / 0.7044 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004183/2.583, allocations: 1.103 MB / 0.7055 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002053/2.585, allocations: 60 kB / 0.7055 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005569/2.591, allocations: 219 kB / 0.7057 GB, free: 103.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001359/2.593, allocations: 220 kB / 0.706 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004695/2.593, allocations: 91.88 kB / 0.706 GB, free: 103.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00873/2.602, allocations: 3.629 MB / 0.7096 GB, free: 99.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.352e-06/2.602, allocations: 4 kB / 0.7096 GB, free: 99.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009825/2.612, allocations: 1.537 MB / 0.7111 GB, free: 98.16 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (263): * Single equations (assignments): 258 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001537/2.613, allocations: 217.9 kB / 0.7113 GB, free: 97.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02081/2.634, allocations: 8.557 MB / 0.7197 GB, free: 89.44 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/2.634, allocations: 0 / 0.7197 GB, free: 89.44 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01373/2.648, allocations: 4.101 MB / 0.7237 GB, free: 85.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005838/2.654, allocations: 0.6324 MB / 0.7243 GB, free: 84.72 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04096/2.695, allocations: 17.66 MB / 0.7415 GB, free: 67.06 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01013/2.705, allocations: 4.533 MB / 0.746 GB, free: 62.49 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003246/2.708, allocations: 419.3 kB / 0.7464 GB, free: 62.08 MB / 442.7 MB Notification: Performance of SimCode: time 2.004e-06/2.708, allocations: 0 / 0.7464 GB, free: 62.08 MB / 442.7 MB Notification: Performance of Templates: time 0.5754/3.284, allocations: 132.6 MB / 0.8759 GB, free: 76.54 MB / 442.7 MB