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.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadModel(ModelicaTest): time 2.415/2.415, allocations: 234.9 MB / 250.1 MB, free: 9.938 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.419e-05/3.418e-05, allocations: 4 kB / 308 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3778/0.3779, allocations: 54.87 MB / 362.8 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.04861/0.4266, allocations: 27.08 MB / 389.9 MB, free: 2.695 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01976/0.4464, allocations: 6.67 MB / 396.6 MB, free: 12 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006104/0.4525, allocations: 143.7 kB / 396.7 MB, free: 11.86 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005559/0.4581, allocations: 1.447 MB / 398.2 MB, free: 10.41 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01519/0.4734, allocations: 4.055 MB / 402.2 MB, free: 6.34 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002595/0.476, allocations: 399.2 kB / 402.6 MB, free: 5.949 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004648/0.4807, allocations: 1.497 MB / 404.1 MB, free: 4.453 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006397/0.4872, allocations: 2.918 MB / 407 MB, free: 1.5 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001633/0.4889, allocations: 0.7285 MB / 407.8 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002562/0.4915, allocations: 1.216 MB / 409 MB, free: 15.55 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002626/0.4941, allocations: 0.8426 MB / 409.8 MB, free: 14.71 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008916/0.4951, allocations: 127.9 kB / 410 MB, free: 14.58 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00233/0.4974, allocations: 1.48 MB / 411.4 MB, free: 13.1 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001028/0.4985, allocations: 240 kB / 411.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009176/0.5077, allocations: 5.67 MB / 417.3 MB, free: 7.184 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.5077, allocations: 0 / 417.3 MB, free: 7.184 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.936e-06/0.5077, allocations: 0 / 417.3 MB, free: 7.184 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002131/0.508, allocations: 0 / 417.3 MB, free: 7.184 MB / 346.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.01489/0.5229, allocations: 4.181 MB / 421.5 MB, free: 2.938 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.5229, allocations: 12.03 kB / 421.5 MB, free: 2.926 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02399/0.5469, allocations: 3.804 MB / 425.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007313/0.5543, allocations: 2.329 MB / 427.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003176/0.5547, allocations: 229.6 kB / 427.9 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001725/0.5564, allocations: 291.7 kB / 428.2 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03243/0.5889, allocations: 11.95 MB / 440.1 MB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001455/0.5891, allocations: 19.81 kB / 440.1 MB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001206/0.5903, allocations: 139.8 kB / 440.3 MB, free: 15.67 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007963/0.5983, allocations: 2.711 MB / 443 MB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03615/0.6345, allocations: 11.15 MB / 454.1 MB, free: 1.797 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0864/0.721, allocations: 37.11 MB / 491.2 MB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01522/0.7362, allocations: 4.686 MB / 495.9 MB, free: 6.926 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001918/0.7382, allocations: 1.331 MB / 497.3 MB, free: 5.375 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.357e-05/0.7383, allocations: 48.66 kB / 497.3 MB, free: 5.32 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 6.552e-06/0.7383, allocations: 3.938 kB / 497.3 MB, free: 5.316 MB / 426.7 MB Notification: Performance of matching and sorting (n=256): time 0.3714/1.11, allocations: 14.08 MB / 0.4994 GB, free: 116.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/1.11, allocations: 72.34 kB / 0.4995 GB, free: 116.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00548/1.115, allocations: 2.616 MB / 0.502 GB, free: 115.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005043/1.116, allocations: 64.5 kB / 0.5021 GB, free: 115.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002162/1.118, allocations: 2.947 MB / 0.505 GB, free: 113.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001428/1.12, allocations: 0.9433 MB / 0.5059 GB, free: 112.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006213/1.12, allocations: 119.4 kB / 0.506 GB, free: 112.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004983/1.121, allocations: 0.5532 MB / 0.5065 GB, free: 112.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005704/1.126, allocations: 2.274 MB / 0.5088 GB, free: 111.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008094/1.135, allocations: 5.403 MB / 0.514 GB, free: 106.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008054/1.143, allocations: 3.52 MB / 0.5175 GB, free: 104.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000102/1.143, allocations: 32 kB / 0.5175 GB, free: 104.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.02397/1.167, allocations: 8.326 MB / 0.5256 GB, free: 96.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.042e-05/1.167, allocations: 53.41 kB / 0.5257 GB, free: 96.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001407/1.167, allocations: 108 kB / 0.5258 GB, free: 96.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006352/1.173, allocations: 1.029 MB / 0.5268 GB, free: 95.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008093/1.182, allocations: 1.319 MB / 0.5281 GB, free: 93.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003996/1.186, allocations: 2.508 MB / 0.5305 GB, free: 91.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005442/1.191, allocations: 320.7 kB / 0.5308 GB, free: 90.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001169/1.192, allocations: 333.1 kB / 0.5312 GB, free: 90.44 MB / 426.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.005572/1.198, allocations: 2.236 MB / 0.5333 GB, free: 88.19 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007589/1.199, allocations: 284.8 kB / 0.5336 GB, free: 87.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01614/1.215, allocations: 4.899 MB / 0.5384 GB, free: 82.94 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001118/1.215, allocations: 45.25 kB / 0.5384 GB, free: 82.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/1.215, allocations: 3.984 kB / 0.5384 GB, free: 82.89 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.879e-05/1.215, allocations: 11.95 kB / 0.5385 GB, free: 82.88 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.032/1.247, allocations: 11.47 MB / 0.5497 GB, free: 71.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-05/1.247, allocations: 8 kB / 0.5497 GB, free: 71.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003548/1.251, allocations: 411.3 kB / 0.5501 GB, free: 70.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005299/1.256, allocations: 0.6141 MB / 0.5507 GB, free: 70.26 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005707/1.257, allocations: 61.31 kB / 0.5507 GB, free: 70.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003321/1.26, allocations: 2.081 MB / 0.5527 GB, free: 67.99 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.306e-05/1.26, allocations: 19.89 kB / 0.5528 GB, free: 67.97 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0189/1.279, allocations: 7.718 MB / 0.5603 GB, free: 59.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000883/1.28, allocations: 333.4 kB / 0.5606 GB, free: 59.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001127/1.281, allocations: 55.19 kB / 0.5607 GB, free: 59.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002788/1.284, allocations: 127.8 kB / 0.5608 GB, free: 59.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006217/1.285, allocations: 157.6 kB / 0.5609 GB, free: 59.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002511/1.285, allocations: 71.98 kB / 0.561 GB, free: 59.12 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003731/1.289, allocations: 1.799 MB / 0.5628 GB, free: 57.31 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.242e-06/1.289, allocations: 0 / 0.5628 GB, free: 57.31 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00609/1.295, allocations: 1.003 MB / 0.5637 GB, free: 56.32 MB / 426.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.001053/1.296, allocations: 205.6 kB / 0.5639 GB, free: 56.11 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1955:5-1957: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.2/Mechanics/MultiBody/Joints.mo:1952:5-1954: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.01486/1.311, allocations: 5.962 MB / 0.5698 GB, free: 50.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.626e-05/1.311, allocations: 8 kB / 0.5698 GB, free: 50.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006734/1.318, allocations: 2.38 MB / 0.5721 GB, free: 47.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003168/1.321, allocations: 401.6 kB / 0.5725 GB, free: 47.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0282/1.349, allocations: 13.39 MB / 0.5856 GB, free: 33.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006887/1.356, allocations: 3.616 MB / 0.5891 GB, free: 30.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001834/1.358, allocations: 275.4 kB / 0.5893 GB, free: 29.83 MB / 426.7 MB Notification: Performance of SimCode: time 1.543e-06/1.358, allocations: 0 / 0.5893 GB, free: 29.83 MB / 426.7 MB Notification: Performance of Templates: time 0.5187/1.877, allocations: 114.3 MB / 0.701 GB, free: 129.9 MB / 474.7 MB