Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002773/0.002779, allocations: 349.1 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.191/3.191, allocations: 341.5 MB / 358.2 MB, free: 28.75 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003514/0.003514, allocations: 224.6 kB / 397.9 MB, free: 6.152 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5343/0.5343, allocations: 76.1 MB / 0.5014 GB, free: 0.8242 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006866/0.0006869, allocations: 15.98 kB / 0.5592 GB, free: 60.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1223, allocations: 48.69 MB / 0.6067 GB, free: 11.55 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6074/0.7297, allocations: 99.02 MB / 0.7034 GB, free: 4.922 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.7301, allocations: 87.55 kB / 0.7035 GB, free: 4.879 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.903/1.633, allocations: 134.5 MB / 0.8349 GB, free: 80.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.633, allocations: 0 / 0.8349 GB, free: 80.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004539/1.634, allocations: 134.8 kB / 0.835 GB, free: 80.18 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02954/1.663, allocations: 7.461 MB / 0.8423 GB, free: 77.31 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/1.663, allocations: 10.41 kB / 0.8423 GB, free: 77.31 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06549/1.729, allocations: 5.844 MB / 0.848 GB, free: 76.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04237/1.771, allocations: 8.366 MB / 0.8562 GB, free: 75.87 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009898/1.772, allocations: 493.4 kB / 0.8566 GB, free: 75.85 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00514/1.777, allocations: 0.6502 MB / 0.8573 GB, free: 75.84 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06924/1.847, allocations: 16.54 MB / 0.8734 GB, free: 71.82 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000831/1.848, allocations: 97.3 kB / 0.8735 GB, free: 71.81 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003712/1.851, allocations: 319 kB / 0.8738 GB, free: 71.81 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003841/1.855, allocations: 1.579 MB / 0.8754 GB, free: 71.56 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04499/1.9, allocations: 13.53 MB / 0.8886 GB, free: 67.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.128/2.028, allocations: 74.15 MB / 0.961 GB, free: 12.56 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05722/2.086, allocations: 7.747 MB / 0.9686 GB, free: 4.688 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01005/2.096, allocations: 4.015 MB / 0.9725 GB, free: 0.6523 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.401/2.497, allocations: 18.53 MB / 0.9906 GB, free: 80.32 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.607e-05/2.497, allocations: 67.44 kB / 0.9906 GB, free: 80.27 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 9.779e-06/2.497, allocations: 0 / 0.9906 GB, free: 80.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=367): time 0.3563/2.853, allocations: 50.67 MB / 1.04 GB, free: 74.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/2.854, allocations: 275.7 kB / 1.04 GB, free: 74.08 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01575/2.869, allocations: 6.064 MB / 1.046 GB, free: 72.05 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001009/2.87, allocations: 79.08 kB / 1.046 GB, free: 71.98 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004787/2.875, allocations: 4.759 MB / 1.051 GB, free: 68.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002332/2.878, allocations: 1.351 MB / 1.052 GB, free: 67.53 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00163/2.879, allocations: 184.6 kB / 1.053 GB, free: 67.38 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009987/2.88, allocations: 0.6989 MB / 1.053 GB, free: 66.91 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01041/2.891, allocations: 3.811 MB / 1.057 GB, free: 65.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01401/2.905, allocations: 9.022 MB / 1.066 GB, free: 55.47 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01328/2.918, allocations: 5.678 MB / 1.071 GB, free: 50.59 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001889/2.918, allocations: 52 kB / 1.071 GB, free: 50.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.06522/2.984, allocations: 16.71 MB / 1.088 GB, free: 37.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002397/2.984, allocations: 84 kB / 1.088 GB, free: 37.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000469/2.984, allocations: 184.2 kB / 1.088 GB, free: 37.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03605/3.02, allocations: 4.133 MB / 1.092 GB, free: 34.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02044/3.041, allocations: 2.04 MB / 1.094 GB, free: 32.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06919/3.11, allocations: 22.14 MB / 1.116 GB, free: 11.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01126/3.122, allocations: 0.5501 MB / 1.116 GB, free: 11.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002363/3.124, allocations: 0.5323 MB / 1.117 GB, free: 10.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1083): * Single equations (assignments): 1078 * Array equations: 3 * 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: 2 {(2,100.0%) 43,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009657/3.134, allocations: 3.117 MB / 1.12 GB, free: 7.586 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002009/3.136, allocations: 0.5714 MB / 1.12 GB, free: 7.008 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0423/3.178, allocations: 9.847 MB / 1.13 GB, free: 13.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.304e-05/3.178, allocations: 40.72 kB / 1.13 GB, free: 13.06 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.977e-05/3.178, allocations: 16 kB / 1.13 GB, free: 13.04 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001065/3.178, allocations: 27.75 kB / 1.13 GB, free: 13.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4335/3.612, allocations: 19.24 MB / 1.149 GB, free: 84.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.103e-05/3.612, allocations: 2.578 kB / 1.149 GB, free: 84.78 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005517/3.618, allocations: 0.5069 MB / 1.149 GB, free: 84.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02238/3.64, allocations: 3.613 MB / 1.153 GB, free: 84.77 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00107/3.641, allocations: 65.48 kB / 1.153 GB, free: 84.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04945/3.691, allocations: 19.05 MB / 1.171 GB, free: 82.16 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/3.691, allocations: 0 / 1.171 GB, free: 82.16 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04814/3.739, allocations: 14.24 MB / 1.185 GB, free: 80.45 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004493/3.743, allocations: 1.121 MB / 1.186 GB, free: 80.14 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002496/3.746, allocations: 61.52 kB / 1.186 GB, free: 80.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006301/3.752, allocations: 226.4 kB / 1.187 GB, free: 80.05 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001502/3.754, allocations: 230.5 kB / 1.187 GB, free: 80.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006437/3.754, allocations: 89 kB / 1.187 GB, free: 80 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01044/3.765, allocations: 3.789 MB / 1.191 GB, free: 78.76 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.072e-06/3.765, allocations: 3.969 kB / 1.191 GB, free: 78.76 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01215/3.777, allocations: 1.843 MB / 1.192 GB, free: 78.55 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * 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 (270): * Single equations (assignments): 265 * Array equations: 3 * 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: 2 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001345/3.779, allocations: 233.3 kB / 1.193 GB, free: 78.42 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02376/3.802, allocations: 9.726 MB / 1.202 GB, free: 75.34 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/3.802, allocations: 2.578 kB / 1.202 GB, free: 75.34 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009662/3.812, allocations: 3.789 MB / 1.206 GB, free: 73.79 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008747/3.821, allocations: 0.7679 MB / 1.207 GB, free: 73.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04459/3.865, allocations: 18.45 MB / 1.225 GB, free: 64.62 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01224/3.878, allocations: 5.008 MB / 1.23 GB, free: 61.78 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01379/3.892, allocations: 2.796 MB / 1.232 GB, free: 60.13 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002475/3.894, allocations: 386.1 kB / 1.233 GB, free: 59.77 MB / 458.7 MB Notification: Performance of SimCode: time 1.503e-06/3.894, allocations: 0 / 1.233 GB, free: 59.77 MB / 458.7 MB Notification: Performance of Templates: time 0.5549/4.449, allocations: 75.71 MB / 1.307 GB, free: 102 MB / 474.7 MB