Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3|freeMotionScalarInit.w_rel_b_1|freeMotionScalarInit.w_rel_b_2|freeMotionScalarInit.w_rel_b_3",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadModel(ModelicaTest): time 2.07/2.07, allocations: 209.3 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.107e-05/4.13e-05, allocations: 4 kB / 276.2 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4205/0.4206, allocations: 48.69 MB / 324.9 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.04324/0.4639, allocations: 27.07 MB / 351.9 MB, free: 476 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02292/0.4869, allocations: 6.65 MB / 358.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008833/0.4958, allocations: 144 kB / 358.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005959/0.5018, allocations: 1.449 MB / 360.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01698/0.5188, allocations: 4.055 MB / 364.2 MB, free: 8.012 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002766/0.5217, allocations: 414.8 kB / 364.6 MB, free: 7.723 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00491/0.5266, allocations: 1.491 MB / 366.1 MB, free: 6.227 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008894/0.5356, allocations: 2.913 MB / 369 MB, free: 3.289 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00229/0.5379, allocations: 0.7285 MB / 369.8 MB, free: 2.559 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003489/0.5415, allocations: 1.219 MB / 371 MB, free: 1.336 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01845/0.56, allocations: 0.8309 MB / 371.8 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001181/0.5612, allocations: 124 kB / 371.9 MB, free: 392 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.01687/0.5781, allocations: 1.48 MB / 373.4 MB, free: 14.9 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001598/0.5798, allocations: 240 kB / 373.6 MB, free: 14.66 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009946/0.5897, allocations: 5.674 MB / 379.3 MB, free: 8.977 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.5898, allocations: 0 / 379.3 MB, free: 8.977 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.5898, allocations: 0 / 379.3 MB, free: 8.977 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002265/0.59, allocations: 0 / 379.3 MB, free: 8.977 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.01524/0.6053, allocations: 4.179 MB / 383.5 MB, free: 4.727 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.6054, allocations: 8.031 kB / 383.5 MB, free: 4.719 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0239/0.6293, allocations: 3.8 MB / 387.3 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007284/0.6366, allocations: 2.336 MB / 389.6 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003401/0.637, allocations: 221.6 kB / 389.9 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001749/0.6388, allocations: 299.7 kB / 390.1 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03298/0.6718, allocations: 11.95 MB / 402.1 MB, free: 1.617 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001761/0.672, allocations: 27.72 kB / 402.1 MB, free: 1.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009914/0.673, allocations: 139.8 kB / 402.3 MB, free: 1.453 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009992/0.683, allocations: 2.703 MB / 405 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04753/0.7306, allocations: 11.15 MB / 416.1 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09349/0.8242, allocations: 37.11 MB / 453.2 MB, free: 13.62 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01608/0.8403, allocations: 4.686 MB / 457.9 MB, free: 8.707 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002038/0.8424, allocations: 1.323 MB / 459.2 MB, free: 7.164 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.262e-05/0.8425, allocations: 52.56 kB / 459.3 MB, free: 7.105 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 6.773e-06/0.8425, allocations: 7.875 kB / 459.3 MB, free: 7.098 MB / 394.7 MB Notification: Performance of matching and sorting (n=256): time 0.07069/0.9132, allocations: 14.09 MB / 473.4 MB, free: 8.816 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.974e-05/0.9134, allocations: 77.36 kB / 473.5 MB, free: 8.727 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00651/0.9199, allocations: 2.607 MB / 476.1 MB, free: 6.109 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005674/0.9205, allocations: 57.7 kB / 476.1 MB, free: 6.047 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003319/0.9239, allocations: 2.955 MB / 479.1 MB, free: 3.051 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00171/0.9256, allocations: 0.9404 MB / 480 MB, free: 2.098 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005992/0.9263, allocations: 116 kB / 480.1 MB, free: 1.984 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005779/0.9269, allocations: 0.5587 MB / 480.7 MB, free: 1.414 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2885/1.215, allocations: 2.272 MB / 483 MB, free: 124.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009308/1.225, allocations: 5.408 MB / 488.4 MB, free: 119.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00929/1.234, allocations: 3.511 MB / 491.9 MB, free: 118.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001794/1.234, allocations: 31.72 kB / 491.9 MB, free: 118.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.02757/1.262, allocations: 8.317 MB / 0.4885 GB, free: 115.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00014/1.262, allocations: 56.44 kB / 0.4886 GB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002554/1.262, allocations: 113 kB / 0.4887 GB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006664/1.269, allocations: 1.029 MB / 0.4897 GB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008744/1.278, allocations: 1.312 MB / 0.491 GB, free: 115.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004384/1.282, allocations: 2.515 MB / 0.4934 GB, free: 113.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005651/1.288, allocations: 315 kB / 0.4937 GB, free: 113.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00123/1.289, allocations: 328.7 kB / 0.494 GB, free: 113.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 499 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (711): * Single equations (assignments): 702 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006332/1.296, allocations: 2.237 MB / 0.4962 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000685/1.296, allocations: 283.2 kB / 0.4965 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01604/1.312, allocations: 4.9 MB / 0.5013 GB, free: 111.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001109/1.313, allocations: 47.17 kB / 0.5013 GB, free: 111.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/1.313, allocations: 3.438 kB / 0.5013 GB, free: 111.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.596e-05/1.313, allocations: 16.31 kB / 0.5013 GB, free: 111.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03318/1.346, allocations: 11.46 MB / 0.5125 GB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-05/1.346, allocations: 8.969 kB / 0.5125 GB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003631/1.35, allocations: 412.4 kB / 0.5129 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005211/1.355, allocations: 0.6149 MB / 0.5135 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005825/1.356, allocations: 53.95 kB / 0.5136 GB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003282/1.359, allocations: 2.092 MB / 0.5156 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.111e-05/1.359, allocations: 14.23 kB / 0.5156 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01873/1.378, allocations: 7.72 MB / 0.5232 GB, free: 92.09 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008962/1.379, allocations: 332.4 kB / 0.5235 GB, free: 91.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/1.38, allocations: 57.42 kB / 0.5235 GB, free: 91.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002813/1.383, allocations: 131.8 kB / 0.5237 GB, free: 91.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007284/1.383, allocations: 155.6 kB / 0.5238 GB, free: 91.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002677/1.384, allocations: 75.98 kB / 0.5239 GB, free: 91.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004071/1.388, allocations: 1.788 MB / 0.5256 GB, free: 89.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.943e-06/1.388, allocations: 0 / 0.5256 GB, free: 89.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006445/1.394, allocations: 1.018 MB / 0.5266 GB, free: 88.54 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 198 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001089/1.395, allocations: 214.3 kB / 0.5268 GB, free: 88.33 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1987:5-1989:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1984:5-1986:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01549/1.411, allocations: 5.959 MB / 0.5326 GB, free: 82.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.534e-05/1.411, allocations: 4 kB / 0.5327 GB, free: 82.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006996/1.418, allocations: 2.381 MB / 0.535 GB, free: 79.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003323/1.421, allocations: 386.1 kB / 0.5353 GB, free: 79.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.031/1.452, allocations: 13.39 MB / 0.5484 GB, free: 65.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007511/1.46, allocations: 3.617 MB / 0.552 GB, free: 62.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001928/1.462, allocations: 279.4 kB / 0.5522 GB, free: 62.06 MB / 410.7 MB Notification: Performance of SimCode: time 1.393e-06/1.462, allocations: 0 / 0.5522 GB, free: 62.06 MB / 410.7 MB Notification: Performance of Templates: time 0.5419/2.004, allocations: 114.3 MB / 0.6639 GB, free: 113.8 MB / 426.7 MB