Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) 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.078/2.078, allocations: 209.2 MB / 225.4 MB, free: 0.543 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005942/0.0005944, allocations: 16 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3527, allocations: 48.7 MB / 331.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1669/0.5197, allocations: 91.25 MB / 423 MB, free: 3.203 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003184/0.5201, allocations: 83.95 kB / 423.1 MB, free: 3.121 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6647/1.185, allocations: 91.42 MB / 0.5025 GB, free: 88.93 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.727e-06/1.185, allocations: 0 / 0.5025 GB, free: 88.93 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001776/1.185, allocations: 88.33 kB / 0.5026 GB, free: 88.92 MB / 394.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.02351/1.209, allocations: 4.438 MB / 0.5069 GB, free: 86.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/1.209, allocations: 7.281 kB / 0.5069 GB, free: 86.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02672/1.235, allocations: 3.574 MB / 0.5104 GB, free: 84.79 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01789/1.253, allocations: 4.717 MB / 0.515 GB, free: 82.17 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004756/1.254, allocations: 334.4 kB / 0.5153 GB, free: 81.87 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003478/1.257, allocations: 445.2 kB / 0.5158 GB, free: 81.47 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03404/1.291, allocations: 11.53 MB / 0.527 GB, free: 69.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002353/1.292, allocations: 23.81 kB / 0.527 GB, free: 69.55 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002617/1.294, allocations: 197.3 kB / 0.5272 GB, free: 69.39 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002549/1.297, allocations: 1.261 MB / 0.5285 GB, free: 68.13 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0311/1.328, allocations: 11.09 MB / 0.5393 GB, free: 57.02 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07733/1.406, allocations: 38.03 MB / 0.5764 GB, free: 18.35 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01383/1.419, allocations: 4.676 MB / 0.581 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001584/1.421, allocations: 1.325 MB / 0.5823 GB, free: 11.91 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.235e-05/1.421, allocations: 56.56 kB / 0.5823 GB, free: 11.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 8.045e-06/1.421, allocations: 0 / 0.5823 GB, free: 11.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=256): time 0.07234/1.494, allocations: 15.07 MB / 0.5971 GB, free: 12.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.714e-05/1.494, allocations: 73.41 kB / 0.5971 GB, free: 12.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006397/1.5, allocations: 2.808 MB / 0.5999 GB, free: 9.684 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006318/1.501, allocations: 62.66 kB / 0.5999 GB, free: 9.617 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003137/1.504, allocations: 2.943 MB / 0.6028 GB, free: 6.672 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001729/1.506, allocations: 0.9417 MB / 0.6037 GB, free: 5.738 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006719/1.506, allocations: 112 kB / 0.6038 GB, free: 5.629 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005517/1.507, allocations: 0.5547 MB / 0.6044 GB, free: 5.062 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006415/1.513, allocations: 2.272 MB / 0.6066 GB, free: 2.785 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00974/1.523, allocations: 5.433 MB / 0.6119 GB, free: 11.81 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009117/1.532, allocations: 3.521 MB / 0.6153 GB, free: 8.285 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001378/1.533, allocations: 31.95 kB / 0.6154 GB, free: 8.254 MB / 426.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.3203/1.853, allocations: 8.326 MB / 0.6235 GB, free: 103.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001594/1.853, allocations: 52.38 kB / 0.6235 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000208/1.853, allocations: 109.6 kB / 0.6237 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006944/1.86, allocations: 1.034 MB / 0.6247 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008599/1.869, allocations: 1.312 MB / 0.6259 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004432/1.873, allocations: 2.5 MB / 0.6284 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005781/1.879, allocations: 312.1 kB / 0.6287 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001468/1.881, allocations: 329.9 kB / 0.629 GB, free: 102.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (710): * Single equations (assignments): 701 * 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.00691/1.888, allocations: 2.275 MB / 0.6312 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007806/1.888, allocations: 279.5 kB / 0.6315 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01629/1.905, allocations: 4.896 MB / 0.6363 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001295/1.905, allocations: 48.69 kB / 0.6363 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/1.905, allocations: 5.078 kB / 0.6363 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.773e-05/1.905, allocations: 12.38 kB / 0.6363 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03256/1.938, allocations: 11.5 MB / 0.6476 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-05/1.938, allocations: 7.875 kB / 0.6476 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003525/1.941, allocations: 409.4 kB / 0.648 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005188/1.946, allocations: 0.6201 MB / 0.6486 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005657/1.947, allocations: 55.17 kB / 0.6486 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003274/1.95, allocations: 2.095 MB / 0.6507 GB, free: 99.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.11e-05/1.95, allocations: 16.94 kB / 0.6507 GB, free: 99.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01785/1.968, allocations: 6.952 MB / 0.6575 GB, free: 96.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008535/1.969, allocations: 336.3 kB / 0.6578 GB, free: 96.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008979/1.97, allocations: 46.42 kB / 0.6578 GB, free: 96.63 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002342/1.972, allocations: 133.3 kB / 0.658 GB, free: 96.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004248/1.973, allocations: 165 kB / 0.6581 GB, free: 96.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002462/1.973, allocations: 77.05 kB / 0.6582 GB, free: 96.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003605/1.977, allocations: 1.71 MB / 0.6599 GB, free: 95.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.91e-07/1.977, allocations: 0 / 0.6599 GB, free: 95.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006256/1.983, allocations: 0.9923 MB / 0.6608 GB, free: 95.85 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 () * Number of clocked 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.0007278/1.984, allocations: 206.9 kB / 0.661 GB, free: 95.74 MB / 426.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 can't be selected as a state. [/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01478/1.999, allocations: 5.959 MB / 0.6668 GB, free: 94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.328e-05/1.999, allocations: 2.156 kB / 0.6668 GB, free: 94 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006745/2.005, allocations: 2.381 MB / 0.6692 GB, free: 93.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003562/2.009, allocations: 396.8 kB / 0.6696 GB, free: 92.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02784/2.037, allocations: 13.46 MB / 0.6827 GB, free: 85.15 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005695/2.043, allocations: 3.617 MB / 0.6862 GB, free: 82.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001738/2.044, allocations: 274.4 kB / 0.6865 GB, free: 82.11 MB / 426.7 MB Notification: Performance of SimCode: time 1.142e-06/2.044, allocations: 0 / 0.6865 GB, free: 82.11 MB / 426.7 MB Notification: Performance of Templates: time 0.5314/2.576, allocations: 113.9 MB / 0.7977 GB, free: 117.9 MB / 442.7 MB