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.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadModel(ModelicaTest): time 2.337/2.337, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.585e-05/5.586e-05, allocations: 4.047 kB / 308 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4125/0.4125, allocations: 54.86 MB / 362.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.115/0.5276, allocations: 58.82 MB / 421.7 MB, free: 2.895 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0576/0.5853, allocations: 13.1 MB / 434.8 MB, free: 5.754 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01872/0.6041, allocations: 319.2 kB / 435.1 MB, free: 5.441 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01613/0.6203, allocations: 3.115 MB / 438.2 MB, free: 2.312 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05073/0.6711, allocations: 8.434 MB / 446.6 MB, free: 9.855 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008241/0.6794, allocations: 0.8737 MB / 447.5 MB, free: 8.98 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.07226/0.7518, allocations: 17.24 MB / 464.7 MB, free: 7.73 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02012/0.7719, allocations: 5.706 MB / 470.4 MB, free: 1.965 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004785/0.7768, allocations: 1.212 MB / 471.7 MB, free: 0.75 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006791/0.7837, allocations: 1.909 MB / 473.6 MB, free: 14.84 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005186/0.7889, allocations: 0.9754 MB / 474.5 MB, free: 13.86 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002473/0.7915, allocations: 187.9 kB / 474.7 MB, free: 13.68 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005734/0.7972, allocations: 2.197 MB / 476.9 MB, free: 11.47 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003326/0.8006, allocations: 400 kB / 477.3 MB, free: 11.08 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01865/0.8194, allocations: 8.202 MB / 485.5 MB, free: 2.859 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.8194, allocations: 0 / 485.5 MB, free: 2.859 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.549e-06/0.8195, allocations: 0 / 485.5 MB, free: 2.859 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003888/0.8199, allocations: 0 / 485.5 MB, free: 2.859 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: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.03376/0.8537, allocations: 6.008 MB / 491.5 MB, free: 12.78 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.498e-05/0.8537, allocations: 8.031 kB / 491.5 MB, free: 12.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6818/1.536, allocations: 19.05 MB / 0.4986 GB, free: 121.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01512/1.551, allocations: 4.997 MB / 0.5035 GB, free: 118.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003896/1.551, allocations: 330.1 kB / 0.5038 GB, free: 118.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002201/1.553, allocations: 463.7 kB / 0.5043 GB, free: 118.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03459/1.588, allocations: 13.7 MB / 0.5176 GB, free: 104.9 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003279/1.588, allocations: 71.33 kB / 0.5177 GB, free: 104.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001677/1.59, allocations: 211.3 kB / 0.5179 GB, free: 104.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005194/1.595, allocations: 2.424 MB / 0.5203 GB, free: 102.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03347/1.629, allocations: 11.73 MB / 0.5317 GB, free: 90.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08714/1.716, allocations: 53.79 MB / 0.5843 GB, free: 35.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02305/1.739, allocations: 5.814 MB / 0.5899 GB, free: 29.61 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009965/1.74, allocations: 0.6878 MB / 0.5906 GB, free: 28.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.324e-05/1.74, allocations: 64.5 kB / 0.5907 GB, free: 28.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 6.412e-06/1.74, allocations: 0 / 0.5907 GB, free: 28.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=324): time 0.1778/1.918, allocations: 36.75 MB / 0.6266 GB, free: 7.762 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001997/1.918, allocations: 261.4 kB / 0.6268 GB, free: 7.449 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01376/1.932, allocations: 5.079 MB / 0.6318 GB, free: 2.383 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001089/1.933, allocations: 73.7 kB / 0.6318 GB, free: 2.305 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004898/1.938, allocations: 3.856 MB / 0.6356 GB, free: 14.39 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002522/1.941, allocations: 1.203 MB / 0.6368 GB, free: 13.18 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001209/1.942, allocations: 152 kB / 0.6369 GB, free: 13.03 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000792/1.943, allocations: 0.6372 MB / 0.6375 GB, free: 12.38 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0111/1.954, allocations: 3.435 MB / 0.6409 GB, free: 8.945 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01495/1.969, allocations: 7.649 MB / 0.6484 GB, free: 15.23 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01382/1.983, allocations: 5.055 MB / 0.6533 GB, free: 10.16 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001373/1.983, allocations: 40 kB / 0.6533 GB, free: 10.12 MB / 474.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.0413/2.024, allocations: 12.67 MB / 0.6657 GB, free: 13.39 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001418/2.025, allocations: 68 kB / 0.6658 GB, free: 13.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002546/2.025, allocations: 148 kB / 0.6659 GB, free: 13.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01068/2.036, allocations: 2.262 MB / 0.6681 GB, free: 10.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01416/2.05, allocations: 1.77 MB / 0.6699 GB, free: 9.141 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5295/2.579, allocations: 15.75 MB / 0.6852 GB, free: 158.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009049/2.589, allocations: 471 kB / 0.6857 GB, free: 158.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001689/2.59, allocations: 453.5 kB / 0.6861 GB, free: 158.5 MB / 490.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.007489/2.598, allocations: 2.773 MB / 0.6888 GB, free: 157.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001462/2.599, allocations: 498.6 kB / 0.6893 GB, free: 157.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02283/2.622, allocations: 7.416 MB / 0.6965 GB, free: 154.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.505e-05/2.622, allocations: 34.69 kB / 0.6966 GB, free: 154.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.831e-05/2.622, allocations: 14.66 kB / 0.6966 GB, free: 154.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.482e-05/2.622, allocations: 15.56 kB / 0.6966 GB, free: 154.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04962/2.672, allocations: 16.68 MB / 0.7129 GB, free: 148.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.922e-05/2.672, allocations: 3.812 kB / 0.7129 GB, free: 148.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005356/2.677, allocations: 0.5156 MB / 0.7134 GB, free: 148.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009409/2.687, allocations: 2.011 MB / 0.7154 GB, free: 146.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001083/2.688, allocations: 64.77 kB / 0.7154 GB, free: 146.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03135/2.719, allocations: 14.23 MB / 0.7293 GB, free: 132.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/2.72, allocations: 11.94 kB / 0.7293 GB, free: 132.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03292/2.752, allocations: 12.69 MB / 0.7417 GB, free: 119.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004134/2.757, allocations: 1.108 MB / 0.7428 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002161/2.759, allocations: 56 kB / 0.7429 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005647/2.765, allocations: 224.5 kB / 0.7431 GB, free: 118.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001401/2.766, allocations: 217 kB / 0.7433 GB, free: 117.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007594/2.767, allocations: 93.09 kB / 0.7434 GB, free: 117.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009083/2.776, allocations: 3.633 MB / 0.7469 GB, free: 114.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.142e-06/2.776, allocations: 0 / 0.7469 GB, free: 114.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009389/2.785, allocations: 1.531 MB / 0.7484 GB, free: 112.6 MB / 490.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.001445/2.787, allocations: 226.2 kB / 0.7486 GB, free: 112.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02027/2.807, allocations: 8.549 MB / 0.757 GB, free: 103.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.225e-05/2.807, allocations: 0 / 0.757 GB, free: 103.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01739/2.825, allocations: 4.102 MB / 0.761 GB, free: 99.77 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007602/2.832, allocations: 0.6217 MB / 0.7616 GB, free: 99.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04373/2.876, allocations: 17.69 MB / 0.7789 GB, free: 81.48 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009225/2.885, allocations: 4.533 MB / 0.7833 GB, free: 76.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002991/2.888, allocations: 419.3 kB / 0.7837 GB, free: 76.49 MB / 490.7 MB Notification: Performance of SimCode: time 1.994e-06/2.889, allocations: 0 / 0.7837 GB, free: 76.49 MB / 490.7 MB Notification: Performance of Templates: time 0.5798/3.468, allocations: 132.8 MB / 0.9134 GB, free: 116.7 MB / 490.7 MB