Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/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.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002655/0.00266, allocations: 361.1 kB / 15.95 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.007/4.007, allocations: 388.9 MB / 405.6 MB, free: 9.645 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003569/0.003568, allocations: 225.8 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5202/0.5202, allocations: 80.02 MB / 0.5627 GB, free: 19.78 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004854/0.0004856, allocations: 12 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1035, allocations: 54.86 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4854/0.5891, allocations: 97.98 MB / 0.7758 GB, free: 3.586 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003204/0.5894, allocations: 85.89 kB / 0.7759 GB, free: 3.543 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4244/1.014, allocations: 90.38 MB / 0.8641 GB, free: 0.6484 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.849e-06/1.014, allocations: 3.984 kB / 0.8641 GB, free: 0.6445 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002402/1.014, allocations: 83.98 kB / 0.8642 GB, free: 0.5625 MB / 442.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.02899/1.043, allocations: 4.382 MB / 0.8685 GB, free: 12.11 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/1.043, allocations: 8.031 kB / 0.8685 GB, free: 12.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03882/1.082, allocations: 3.539 MB / 0.8719 GB, free: 8.551 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02402/1.106, allocations: 3.61 MB / 0.8755 GB, free: 4.898 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008537/1.107, allocations: 336.8 kB / 0.8758 GB, free: 4.566 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004269/1.111, allocations: 447.8 kB / 0.8762 GB, free: 4.129 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04867/1.16, allocations: 11.44 MB / 0.8874 GB, free: 8.215 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002573/1.16, allocations: 27.75 kB / 0.8874 GB, free: 8.188 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002789/1.163, allocations: 203.9 kB / 0.8876 GB, free: 7.988 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003151/1.166, allocations: 1.243 MB / 0.8888 GB, free: 6.738 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.366/1.532, allocations: 11 MB / 0.8996 GB, free: 107.9 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08187/1.614, allocations: 37.95 MB / 0.9366 GB, free: 93.6 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01351/1.628, allocations: 4.69 MB / 0.9412 GB, free: 91.59 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00533/1.633, allocations: 2.25 MB / 0.9434 GB, free: 90.75 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002351/1.636, allocations: 1.319 MB / 0.9447 GB, free: 89.56 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.595e-05/1.636, allocations: 55.77 kB / 0.9447 GB, free: 89.51 MB / 474.7 MB Notification: Performance of pre-optimization done (n=244): time 1.175e-05/1.636, allocations: 0 / 0.9447 GB, free: 89.51 MB / 474.7 MB Notification: Performance of matching and sorting (n=256): time 0.07387/1.71, allocations: 14.54 MB / 0.9589 GB, free: 85.75 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/1.71, allocations: 75.12 kB / 0.959 GB, free: 85.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005084/1.715, allocations: 2.809 MB / 0.9618 GB, free: 84.69 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005409/1.716, allocations: 56.02 kB / 0.9618 GB, free: 84.63 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002094/1.718, allocations: 2.946 MB / 0.9647 GB, free: 82.53 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001371/1.719, allocations: 0.9475 MB / 0.9656 GB, free: 81.82 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005054/1.72, allocations: 113.2 kB / 0.9657 GB, free: 81.74 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003615/1.72, allocations: 0.5546 MB / 0.9663 GB, free: 81.32 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005116/1.725, allocations: 2.274 MB / 0.9685 GB, free: 80.61 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007293/1.732, allocations: 5.435 MB / 0.9738 GB, free: 75.73 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007439/1.74, allocations: 3.518 MB / 0.9772 GB, free: 74.52 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-05/1.74, allocations: 29.34 kB / 0.9773 GB, free: 74.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02398/1.764, allocations: 8.382 MB / 0.9854 GB, free: 71.63 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.643e-05/1.764, allocations: 54.75 kB / 0.9855 GB, free: 71.63 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001399/1.764, allocations: 110.7 kB / 0.9856 GB, free: 71.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006159/1.771, allocations: 1.031 MB / 0.9866 GB, free: 71.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008179/1.779, allocations: 1.313 MB / 0.9879 GB, free: 71.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00377/1.783, allocations: 2.467 MB / 0.9903 GB, free: 68.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005669/1.788, allocations: 318.8 kB / 0.9906 GB, free: 68.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001292/1.79, allocations: 331.5 kB / 0.9909 GB, free: 68.28 MB / 474.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.005667/1.795, allocations: 2.277 MB / 0.9931 GB, free: 66.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006865/1.796, allocations: 280.3 kB / 0.9934 GB, free: 66.03 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0144/1.81, allocations: 4.898 MB / 0.9982 GB, free: 62 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001046/1.811, allocations: 37.02 kB / 0.9982 GB, free: 61.96 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/1.811, allocations: 10.89 kB / 0.9982 GB, free: 61.96 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.068e-05/1.811, allocations: 10.08 kB / 0.9982 GB, free: 61.96 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03077/1.841, allocations: 11.51 MB / 1.009 GB, free: 52.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.062e-05/1.842, allocations: 11.19 kB / 1.009 GB, free: 52.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003578/1.845, allocations: 410.3 kB / 1.01 GB, free: 51.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004971/1.85, allocations: 0.6151 MB / 1.01 GB, free: 51.53 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006007/1.851, allocations: 55.98 kB / 1.011 GB, free: 51.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003087/1.854, allocations: 2.07 MB / 1.013 GB, free: 49.47 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/1.854, allocations: 11.94 kB / 1.013 GB, free: 49.46 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01701/1.871, allocations: 6.954 MB / 1.019 GB, free: 43.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008987/1.872, allocations: 325.2 kB / 1.02 GB, free: 42.87 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000833/1.873, allocations: 52.78 kB / 1.02 GB, free: 42.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002183/1.875, allocations: 135.7 kB / 1.02 GB, free: 42.73 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004546/1.875, allocations: 153.4 kB / 1.02 GB, free: 42.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002517/1.876, allocations: 75.67 kB / 1.02 GB, free: 42.57 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003581/1.879, allocations: 1.712 MB / 1.022 GB, free: 41.16 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.31e-07/1.879, allocations: 0 / 1.022 GB, free: 41.16 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006446/1.886, allocations: 0.998 MB / 1.023 GB, free: 40.17 MB / 474.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.0008319/1.887, allocations: 199.7 kB / 1.023 GB, free: 39.98 MB / 474.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Mechanics/MultiBody/Joints.mo:1955:5-1957:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Mechanics/MultiBody/Joints.mo:1952:5-1954: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.01432/1.901, allocations: 5.96 MB / 1.029 GB, free: 34.53 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.407e-05/1.901, allocations: 4.062 kB / 1.029 GB, free: 34.52 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006326/1.907, allocations: 2.375 MB / 1.031 GB, free: 32.09 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003629/1.911, allocations: 435.1 kB / 1.031 GB, free: 31.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02802/1.939, allocations: 12.96 MB / 1.044 GB, free: 18.67 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007664/1.947, allocations: 3.599 MB / 1.048 GB, free: 15.05 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008946/1.956, allocations: 2.067 MB / 1.05 GB, free: 13 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001483/1.957, allocations: 231.4 kB / 1.05 GB, free: 12.77 MB / 474.7 MB Notification: Performance of SimCode: time 1.483e-06/1.957, allocations: 0 / 1.05 GB, free: 12.77 MB / 474.7 MB Notification: Performance of Templates: time 0.436/2.393, allocations: 30.78 MB / 1.08 GB, free: 112.8 MB / 490.7 MB