Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002575/0.002574, allocations: 347.2 kB / 15.94 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.72/3.72, allocations: 341.5 MB / 358.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00344/0.00344, allocations: 221.4 kB / 397.9 MB, free: 4.973 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.485/0.485, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006938/0.0006942, allocations: 16 kB / 0.5592 GB, free: 53.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1218, allocations: 48.71 MB / 0.6067 GB, free: 4.641 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4201/0.542, allocations: 95 MB / 0.6995 GB, free: 17.69 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/0.5423, allocations: 83.95 kB / 0.6996 GB, free: 17.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6819/1.224, allocations: 97.3 MB / 0.7946 GB, free: 87.33 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.955e-06/1.224, allocations: 0 / 0.7946 GB, free: 87.33 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002085/1.224, allocations: 84.92 kB / 0.7947 GB, free: 87.33 MB / 410.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.02488/1.249, allocations: 4.76 MB / 0.7993 GB, free: 85.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.445e-05/1.249, allocations: 11.78 kB / 0.7994 GB, free: 85.29 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02763/1.277, allocations: 3.592 MB / 0.8029 GB, free: 84.95 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/1.29, allocations: 3.807 MB / 0.8066 GB, free: 84.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005026/1.29, allocations: 380.3 kB / 0.8069 GB, free: 84.19 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003409/1.294, allocations: 0.4928 MB / 0.8074 GB, free: 84.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03746/1.331, allocations: 12.17 MB / 0.8193 GB, free: 80.38 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002787/1.332, allocations: 37.38 kB / 0.8194 GB, free: 80.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002793/1.334, allocations: 219.1 kB / 0.8196 GB, free: 80.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002748/1.337, allocations: 1.32 MB / 0.8208 GB, free: 79.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03198/1.369, allocations: 11.44 MB / 0.832 GB, free: 75.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08619/1.455, allocations: 41.9 MB / 0.8729 GB, free: 34.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01576/1.471, allocations: 4.88 MB / 0.8777 GB, free: 29.85 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005063/1.476, allocations: 2.382 MB / 0.88 GB, free: 27.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01584/1.492, allocations: 6.542 MB / 0.8864 GB, free: 20.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.52e-05/1.492, allocations: 60.55 kB / 0.8865 GB, free: 20.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=231): time 6.613e-06/1.492, allocations: 0 / 0.8865 GB, free: 20.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.08444/1.577, allocations: 19.04 MB / 0.9051 GB, free: 1.445 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/1.577, allocations: 73.41 kB / 0.9051 GB, free: 1.359 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007532/1.584, allocations: 3.174 MB / 0.9082 GB, free: 14.17 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005963/1.585, allocations: 61.7 kB / 0.9083 GB, free: 14.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003492/1.589, allocations: 3.284 MB / 0.9115 GB, free: 10.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001747/1.59, allocations: 0.9435 MB / 0.9124 GB, free: 9.879 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008434/1.591, allocations: 116 kB / 0.9125 GB, free: 9.766 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006927/1.592, allocations: 0.5744 MB / 0.9131 GB, free: 9.184 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00702/1.599, allocations: 2.456 MB / 0.9155 GB, free: 6.723 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3504/1.95, allocations: 5.849 MB / 0.9212 GB, free: 88.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009912/1.96, allocations: 3.784 MB / 0.9249 GB, free: 88.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001429/1.96, allocations: 35.97 kB / 0.9249 GB, free: 88.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.03713/1.997, allocations: 10.04 MB / 0.9347 GB, free: 87.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/1.997, allocations: 59.62 kB / 0.9348 GB, free: 87.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002305/1.997, allocations: 117.8 kB / 0.9349 GB, free: 87.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01669/2.014, allocations: 2.35 MB / 0.9372 GB, free: 87.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008606/2.023, allocations: 1.359 MB / 0.9385 GB, free: 87.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02892/2.052, allocations: 10.64 MB / 0.9489 GB, free: 85.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00654/2.058, allocations: 329.2 kB / 0.9492 GB, free: 85.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001742/2.06, allocations: 355.6 kB / 0.9496 GB, free: 85.83 MB / 426.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.007128/2.067, allocations: 2.434 MB / 0.952 GB, free: 85.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007754/2.068, allocations: 305.7 kB / 0.9523 GB, free: 85.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01355/2.082, allocations: 4.642 MB / 0.9568 GB, free: 83.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001072/2.082, allocations: 49.42 kB / 0.9568 GB, free: 83.38 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/2.082, allocations: 7.641 kB / 0.9568 GB, free: 83.37 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.203e-05/2.082, allocations: 14.34 kB / 0.9569 GB, free: 83.37 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03156/2.113, allocations: 10.84 MB / 0.9674 GB, free: 79.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.769e-05/2.113, allocations: 11.41 kB / 0.9674 GB, free: 79.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003826/2.117, allocations: 415.6 kB / 0.9678 GB, free: 79.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003561/2.121, allocations: 0.6989 MB / 0.9685 GB, free: 79.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006888/2.122, allocations: 53.62 kB / 0.9686 GB, free: 79.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003785/2.125, allocations: 2.407 MB / 0.9709 GB, free: 77.94 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/2.125, allocations: 7.5 kB / 0.9709 GB, free: 77.94 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01789/2.143, allocations: 7.122 MB / 0.9779 GB, free: 75.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009939/2.144, allocations: 350.2 kB / 0.9782 GB, free: 75.11 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001379/2.146, allocations: 52.58 kB / 0.9783 GB, free: 75.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003176/2.149, allocations: 137.5 kB / 0.9784 GB, free: 75.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008579/2.15, allocations: 137.8 kB / 0.9785 GB, free: 75.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004273/2.15, allocations: 71.06 kB / 0.9786 GB, free: 75.01 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004958/2.155, allocations: 1.929 MB / 0.9805 GB, free: 74.35 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.583e-06/2.155, allocations: 0 / 0.9805 GB, free: 74.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007696/2.163, allocations: 1.134 MB / 0.9816 GB, free: 74.23 MB / 426.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.0009815/2.164, allocations: 198.2 kB / 0.9818 GB, free: 74.09 MB / 426.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Mechanics/MultiBody/Joints.mo:1990:5-1992: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.1+maint.om/Mechanics/MultiBody/Joints.mo:1984:5-1986: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.1+maint.om/Mechanics/MultiBody/Joints.mo:1987:5-1989: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.01541/2.18, allocations: 6.134 MB / 0.9878 GB, free: 71.97 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/2.18, allocations: 0 / 0.9878 GB, free: 71.97 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007402/2.187, allocations: 2.534 MB / 0.9902 GB, free: 70.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004455/2.192, allocations: 447.9 kB / 0.9907 GB, free: 70.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03102/2.223, allocations: 13.5 MB / 1.004 GB, free: 59.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009519/2.232, allocations: 3.868 MB / 1.008 GB, free: 56.07 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.009493/2.242, allocations: 2.068 MB / 1.01 GB, free: 54.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001662/2.243, allocations: 237.4 kB / 1.01 GB, free: 54.52 MB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/2.243, allocations: 0 / 1.01 GB, free: 54.52 MB / 426.7 MB Notification: Performance of Templates: time 0.1136/2.357, allocations: 39.34 MB / 1.048 GB, free: 20.4 MB / 426.7 MB