Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.FreeMotionScalarInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.angle_d_1|freeMotionScalarInit.angle_d_2|freeMotionScalarInit.angle_d_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",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002653/0.002658, allocations: 362.5 kB / 15.95 MB, free: 6.203 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.122/4.122, allocations: 388.9 MB / 405.6 MB, free: 10.23 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.003583/0.003582, allocations: 234 kB / 451 MB, free: 145.1 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.5226/0.5226, allocations: 80.02 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000491/0.0004913, allocations: 12 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.104, allocations: 54.86 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4828/0.5868, allocations: 97.99 MB / 0.7758 GB, free: 3.602 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/0.5872, allocations: 85.7 kB / 0.7759 GB, free: 3.559 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3982/0.9854, allocations: 90.04 MB / 0.8638 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.517e-06/0.9854, allocations: 0 / 0.8638 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002989/0.9857, allocations: 83.98 kB / 0.8639 GB, free: 0.8672 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: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.02587/1.012, allocations: 4.343 MB / 0.8681 GB, free: 12.46 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/1.012, allocations: 8.031 kB / 0.8681 GB, free: 12.45 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02888/1.041, allocations: 3.527 MB / 0.8716 GB, free: 8.91 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01291/1.054, allocations: 3.571 MB / 0.875 GB, free: 5.297 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005235/1.054, allocations: 336.6 kB / 0.8754 GB, free: 4.965 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003157/1.057, allocations: 431.9 kB / 0.8758 GB, free: 4.543 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03755/1.095, allocations: 11.01 MB / 0.8865 GB, free: 9.055 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002585/1.095, allocations: 27.72 kB / 0.8866 GB, free: 9.027 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002642/1.098, allocations: 195.9 kB / 0.8867 GB, free: 8.836 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003228/1.101, allocations: 1.228 MB / 0.8879 GB, free: 7.602 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3834/1.485, allocations: 10.59 MB / 0.8983 GB, free: 108.3 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08035/1.565, allocations: 37.27 MB / 0.9347 GB, free: 94.03 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/1.577, allocations: 4.388 MB / 0.939 GB, free: 92.58 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004512/1.582, allocations: 2.153 MB / 0.9411 GB, free: 91.78 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001515/1.583, allocations: 1.325 MB / 0.9424 GB, free: 90.59 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/1.583, allocations: 54.88 kB / 0.9424 GB, free: 90.54 MB / 474.7 MB Notification: Performance of pre-optimization done (n=244): time 6.462e-06/1.583, allocations: 2.516 kB / 0.9424 GB, free: 90.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=265): time 0.06827/1.652, allocations: 13.96 MB / 0.956 GB, free: 86.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/1.652, allocations: 78.34 kB / 0.9561 GB, free: 86.64 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004959/1.657, allocations: 2.811 MB / 0.9589 GB, free: 85.64 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005743/1.657, allocations: 62.41 kB / 0.9589 GB, free: 85.59 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002132/1.66, allocations: 2.919 MB / 0.9618 GB, free: 83.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001355/1.661, allocations: 0.9719 MB / 0.9627 GB, free: 82.68 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005692/1.662, allocations: 117.6 kB / 0.9628 GB, free: 82.59 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003764/1.662, allocations: 0.5517 MB / 0.9634 GB, free: 82.18 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005327/1.667, allocations: 2.333 MB / 0.9657 GB, free: 81.45 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007852/1.675, allocations: 5.492 MB / 0.971 GB, free: 76.55 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008051/1.683, allocations: 3.586 MB / 0.9745 GB, free: 75.29 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001084/1.683, allocations: 32.62 kB / 0.9746 GB, free: 75.29 MB / 474.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.02517/1.709, allocations: 8.527 MB / 0.9829 GB, free: 72.33 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.473e-05/1.709, allocations: 49.88 kB / 0.9829 GB, free: 72.33 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001685/1.709, allocations: 113.4 kB / 0.983 GB, free: 72.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006674/1.716, allocations: 1.054 MB / 0.9841 GB, free: 72.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008548/1.724, allocations: 1.332 MB / 0.9854 GB, free: 72.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003784/1.728, allocations: 2.467 MB / 0.9878 GB, free: 70.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005786/1.734, allocations: 319 kB / 0.9881 GB, free: 70.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001227/1.735, allocations: 330.8 kB / 0.9884 GB, free: 70.34 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 (719): * Single equations (assignments): 710 * 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 prepare postOptimizeDAE: time 0.00562/1.741, allocations: 2.254 MB / 0.9906 GB, free: 68.38 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007559/1.742, allocations: 284.3 kB / 0.9909 GB, free: 68.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01508/1.757, allocations: 5.066 MB / 0.9958 GB, free: 63.94 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.721e-05/1.757, allocations: 47.95 kB / 0.9959 GB, free: 63.89 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/1.757, allocations: 4 kB / 0.9959 GB, free: 63.89 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-05/1.757, allocations: 16.92 kB / 0.9959 GB, free: 63.89 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03212/1.789, allocations: 11.62 MB / 1.007 GB, free: 54.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.282e-05/1.789, allocations: 11.56 kB / 1.007 GB, free: 54.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003844/1.793, allocations: 427.7 kB / 1.008 GB, free: 53.85 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006109/1.799, allocations: 0.9039 MB / 1.009 GB, free: 53.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006578/1.8, allocations: 54.12 kB / 1.009 GB, free: 53.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003485/1.803, allocations: 2.286 MB / 1.011 GB, free: 51.11 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/1.803, allocations: 11.94 kB / 1.011 GB, free: 51.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01983/1.823, allocations: 7.511 MB / 1.018 GB, free: 44.48 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009696/1.824, allocations: 328.4 kB / 1.018 GB, free: 44.14 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001149/1.825, allocations: 56.34 kB / 1.019 GB, free: 44.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002957/1.828, allocations: 136.6 kB / 1.019 GB, free: 44 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006724/1.829, allocations: 166.3 kB / 1.019 GB, free: 43.89 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002879/1.829, allocations: 75.22 kB / 1.019 GB, free: 43.83 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003854/1.833, allocations: 1.709 MB / 1.021 GB, free: 42.42 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.833, allocations: 0 / 1.021 GB, free: 42.42 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00688/1.84, allocations: 1.007 MB / 1.022 GB, free: 41.42 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_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 (216): * Single equations (assignments): 207 * 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.0009209/1.841, allocations: 200.2 kB / 1.022 GB, free: 41.23 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01539/1.857, allocations: 6.134 MB / 1.028 GB, free: 35.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/1.857, allocations: 1 kB / 1.028 GB, free: 35.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007393/1.864, allocations: 2.593 MB / 1.03 GB, free: 33.05 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004133/1.868, allocations: 435.7 kB / 1.031 GB, free: 32.64 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02834/1.897, allocations: 13 MB / 1.043 GB, free: 19.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007649/1.904, allocations: 3.597 MB / 1.047 GB, free: 15.99 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008911/1.913, allocations: 2.077 MB / 1.049 GB, free: 13.92 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001585/1.915, allocations: 239.4 kB / 1.049 GB, free: 13.69 MB / 474.7 MB Notification: Performance of SimCode: time 1.283e-06/1.915, allocations: 3.188 kB / 1.049 GB, free: 13.69 MB / 474.7 MB Notification: Performance of Templates: time 0.4298/2.345, allocations: 31.72 MB / 1.08 GB, free: 113.8 MB / 490.7 MB