Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.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.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004212/0.004216, allocations: 360.5 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.106/4.106, allocations: 388.9 MB / 405.6 MB, free: 9.652 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.003706/0.003705, allocations: 231.3 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.5328/0.5328, allocations: 80.03 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004598/0.0004601, allocations: 12 kB / 0.6265 GB, free: 96.53 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1014, allocations: 54.86 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5626/0.664, allocations: 101.7 MB / 0.7794 GB, free: 15.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002943/0.6644, allocations: 85.39 kB / 0.7795 GB, free: 15.87 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.43/1.094, allocations: 97.33 MB / 0.8746 GB, free: 5.895 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.094, allocations: 0 / 0.8746 GB, free: 5.895 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002683/1.095, allocations: 95.92 kB / 0.8747 GB, free: 5.801 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.0256/1.12, allocations: 4.748 MB / 0.8793 GB, free: 0.9805 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/1.12, allocations: 12.03 kB / 0.8793 GB, free: 0.9688 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02829/1.149, allocations: 3.593 MB / 0.8828 GB, free: 13.36 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01441/1.163, allocations: 3.801 MB / 0.8865 GB, free: 9.52 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005655/1.164, allocations: 382.2 kB / 0.8869 GB, free: 9.145 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003354/1.167, allocations: 0.4919 MB / 0.8874 GB, free: 8.652 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.371/1.538, allocations: 12.16 MB / 0.8992 GB, free: 101.1 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003968/1.539, allocations: 32.91 kB / 0.8993 GB, free: 101.1 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002858/1.541, allocations: 226.1 kB / 0.8995 GB, free: 101.1 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0035/1.545, allocations: 1.318 MB / 0.9008 GB, free: 101.1 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03796/1.583, allocations: 11.43 MB / 0.9119 GB, free: 101.1 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08272/1.666, allocations: 41.91 MB / 0.9529 GB, free: 81.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01578/1.682, allocations: 4.881 MB / 0.9576 GB, free: 79.16 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00509/1.687, allocations: 2.389 MB / 0.96 GB, free: 78.24 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01438/1.701, allocations: 6.529 MB / 0.9663 GB, free: 74.71 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.696e-05/1.701, allocations: 55.72 kB / 0.9664 GB, free: 74.66 MB / 474.7 MB Notification: Performance of pre-optimization done (n=231): time 6.021e-06/1.701, allocations: 0 / 0.9664 GB, free: 74.66 MB / 474.7 MB Notification: Performance of matching and sorting (n=252): time 0.08435/1.786, allocations: 19.06 MB / 0.985 GB, free: 68.78 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/1.786, allocations: 71.84 kB / 0.9851 GB, free: 68.72 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006771/1.793, allocations: 3.178 MB / 0.9882 GB, free: 67.57 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006509/1.793, allocations: 65.98 kB / 0.9882 GB, free: 67.51 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002791/1.796, allocations: 3.274 MB / 0.9914 GB, free: 65.01 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001469/1.798, allocations: 0.9458 MB / 0.9924 GB, free: 64.32 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007652/1.798, allocations: 118.8 kB / 0.9925 GB, free: 64.23 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005241/1.799, allocations: 0.5718 MB / 0.993 GB, free: 63.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006108/1.805, allocations: 2.464 MB / 0.9954 GB, free: 62.94 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008394/1.814, allocations: 5.848 MB / 1.001 GB, free: 55.99 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0084/1.822, allocations: 3.78 MB / 1.005 GB, free: 52.72 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.784e-05/1.822, allocations: 36 kB / 1.005 GB, free: 52.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.03292/1.855, allocations: 10.04 MB / 1.015 GB, free: 44.28 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.567e-05/1.855, allocations: 56 kB / 1.015 GB, free: 44.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000177/1.855, allocations: 116 kB / 1.015 GB, free: 44.11 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01691/1.872, allocations: 2.348 MB / 1.017 GB, free: 42.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00849/1.881, allocations: 1.362 MB / 1.018 GB, free: 41.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02666/1.908, allocations: 10.65 MB / 1.029 GB, free: 32.31 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006332/1.914, allocations: 328.7 kB / 1.029 GB, free: 32.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001442/1.915, allocations: 360.1 kB / 1.03 GB, free: 31.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 538 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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 (733): * Single equations (assignments): 725 * Array equations: 6 * 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: 0 * Non-linear torn systems: 2 {3 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.006357/1.922, allocations: 2.434 MB / 1.032 GB, free: 29.59 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007672/1.923, allocations: 316 kB / 1.032 GB, free: 29.27 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01264/1.935, allocations: 4.631 MB / 1.037 GB, free: 25.25 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001007/1.935, allocations: 49.39 kB / 1.037 GB, free: 25.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/1.935, allocations: 3.562 kB / 1.037 GB, free: 25.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.05e-05/1.936, allocations: 15.95 kB / 1.037 GB, free: 25.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03002/1.966, allocations: 10.84 MB / 1.047 GB, free: 14.28 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.614e-05/1.966, allocations: 4 kB / 1.047 GB, free: 14.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003683/1.969, allocations: 419.4 kB / 1.048 GB, free: 13.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003841/1.973, allocations: 0.693 MB / 1.048 GB, free: 13.16 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007334/1.974, allocations: 51.98 kB / 1.049 GB, free: 13.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003684/1.978, allocations: 2.408 MB / 1.051 GB, free: 10.57 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/1.978, allocations: 8 kB / 1.051 GB, free: 10.57 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01594/1.994, allocations: 7.125 MB / 1.058 GB, free: 3.324 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/1.995, allocations: 353.1 kB / 1.058 GB, free: 2.957 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001218/1.996, allocations: 44 kB / 1.058 GB, free: 2.914 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002946/1.999, allocations: 139.8 kB / 1.058 GB, free: 2.777 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006653/2, allocations: 137.8 kB / 1.058 GB, free: 2.641 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002745/2, allocations: 75.91 kB / 1.059 GB, free: 2.566 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004476/2.004, allocations: 1.924 MB / 1.06 GB, free: 0.6445 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.11e-07/2.005, allocations: 0 / 1.06 GB, free: 0.6445 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007265/2.012, allocations: 1.145 MB / 1.062 GB, free: 15.51 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * 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 (206): * Single equations (assignments): 197 * 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.0007895/2.013, allocations: 196.2 kB / 1.062 GB, free: 15.32 MB / 490.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Mechanics/MultiBody/Joints.mo:1958:5-1960:161:writable] Warning: Variable freeMotionScalarInit.angle_3 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 freeMotionScalarInit.angle_1 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:1955:5-1957:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01645/2.029, allocations: 6.133 MB / 1.068 GB, free: 9.195 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/2.029, allocations: 4 kB / 1.068 GB, free: 9.191 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007678/2.037, allocations: 2.525 MB / 1.07 GB, free: 6.609 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004818/2.042, allocations: 461.9 kB / 1.071 GB, free: 6.18 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4074/2.449, allocations: 13.48 MB / 1.084 GB, free: 105.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01624/2.465, allocations: 3.875 MB / 1.088 GB, free: 104.7 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01088/2.476, allocations: 2.065 MB / 1.09 GB, free: 104.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001773/2.478, allocations: 240 kB / 1.09 GB, free: 104.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.342e-06/2.478, allocations: 0 / 1.09 GB, free: 104.7 MB / 490.7 MB Notification: Performance of Templates: time 0.1305/2.609, allocations: 39.33 MB / 1.128 GB, free: 103 MB / 490.7 MB