Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.ForceWithTwoMasses2,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.ForceWithTwoMasses2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00261/0.002609, allocations: 348.8 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.762/3.762, allocations: 341.5 MB / 358.2 MB, free: 12.54 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.003734/0.003734, allocations: 222.1 kB / 397.9 MB, free: 4.891 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.5638/0.5638, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006727/0.0006729, allocations: 16 kB / 0.5592 GB, free: 53.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1029, allocations: 48.7 MB / 0.6067 GB, free: 4.633 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4268/0.5298, allocations: 98.91 MB / 0.7033 GB, free: 13.76 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.5301, allocations: 79.03 kB / 0.7034 GB, free: 13.69 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8967/1.427, allocations: 134.5 MB / 0.8348 GB, free: 76.92 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.186e-06/1.427, allocations: 0 / 0.8348 GB, free: 76.92 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005204/1.427, allocations: 132 kB / 0.8349 GB, free: 76.79 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: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.03453/1.462, allocations: 7.454 MB / 0.8422 GB, free: 69.3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/1.462, allocations: 12.02 kB / 0.8422 GB, free: 69.29 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0469/1.509, allocations: 5.851 MB / 0.8479 GB, free: 63.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02811/1.537, allocations: 8.362 MB / 0.8561 GB, free: 55.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006536/1.538, allocations: 487 kB / 0.8566 GB, free: 54.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004166/1.542, allocations: 0.6504 MB / 0.8572 GB, free: 54.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05404/1.596, allocations: 16.53 MB / 0.8733 GB, free: 36.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005797/1.597, allocations: 103 kB / 0.8734 GB, free: 36.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003593/1.6, allocations: 316.6 kB / 0.8737 GB, free: 35.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003811/1.604, allocations: 1.574 MB / 0.8753 GB, free: 34.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04479/1.649, allocations: 13.51 MB / 0.8885 GB, free: 20.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4762/2.125, allocations: 74.05 MB / 0.9608 GB, free: 35.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04183/2.167, allocations: 7.683 MB / 0.9683 GB, free: 34.93 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009489/2.177, allocations: 3.961 MB / 0.9721 GB, free: 34.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06353/2.24, allocations: 18.46 MB / 0.9902 GB, free: 29.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.517e-05/2.241, allocations: 75.33 kB / 0.9902 GB, free: 29.53 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 9.618e-06/2.241, allocations: 0 / 0.9902 GB, free: 29.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=361): time 0.3198/2.56, allocations: 49.54 MB / 1.039 GB, free: 11.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/2.561, allocations: 269.8 kB / 1.039 GB, free: 11.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01618/2.577, allocations: 6.069 MB / 1.045 GB, free: 6.297 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001246/2.578, allocations: 77.7 kB / 1.045 GB, free: 6.215 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005411/2.584, allocations: 4.754 MB / 1.05 GB, free: 1.945 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002435/2.586, allocations: 1.325 MB / 1.051 GB, free: 0.7695 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001701/2.588, allocations: 192 kB / 1.051 GB, free: 0.582 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009051/2.589, allocations: 0.6914 MB / 1.052 GB, free: 15.99 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01197/2.601, allocations: 3.774 MB / 1.055 GB, free: 12.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01806/2.619, allocations: 8.998 MB / 1.064 GB, free: 2.074 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01892/2.638, allocations: 5.797 MB / 1.07 GB, free: 13.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000209/2.638, allocations: 52 kB / 1.07 GB, free: 13.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.06772/2.706, allocations: 16.7 MB / 1.086 GB, free: 13.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001881/2.706, allocations: 84 kB / 1.086 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003501/2.706, allocations: 180 kB / 1.086 GB, free: 12.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02686/2.733, allocations: 4.179 MB / 1.09 GB, free: 8.609 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01403/2.747, allocations: 2.027 MB / 1.092 GB, free: 6.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4144/3.162, allocations: 22.14 MB / 1.114 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.012/3.174, allocations: 0.5511 MB / 1.115 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002799/3.177, allocations: 0.5353 MB / 1.115 GB, free: 113.9 MB / 474.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 (1077): * Single equations (assignments): 1072 * 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 {(1,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01097/3.188, allocations: 3.114 MB / 1.118 GB, free: 113.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001999/3.19, allocations: 0.5714 MB / 1.119 GB, free: 113.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04426/3.234, allocations: 9.823 MB / 1.128 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000101/3.234, allocations: 37.16 kB / 1.128 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.69e-05/3.234, allocations: 20.5 kB / 1.128 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.74e-05/3.234, allocations: 14.5 kB / 1.128 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0723/3.307, allocations: 19.19 MB / 1.147 GB, free: 107.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.433e-05/3.307, allocations: 2.312 kB / 1.147 GB, free: 107.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005253/3.312, allocations: 0.4957 MB / 1.148 GB, free: 107.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02321/3.335, allocations: 3.676 MB / 1.151 GB, free: 106.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001049/3.337, allocations: 61.53 kB / 1.151 GB, free: 106.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04965/3.386, allocations: 19.04 MB / 1.17 GB, free: 98.21 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/3.386, allocations: 2.938 kB / 1.17 GB, free: 98.21 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04877/3.435, allocations: 14.16 MB / 1.184 GB, free: 93.42 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004354/3.439, allocations: 1.12 MB / 1.185 GB, free: 92.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00229/3.442, allocations: 62.83 kB / 1.185 GB, free: 92.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006633/3.448, allocations: 239.6 kB / 1.185 GB, free: 92.71 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001657/3.45, allocations: 219.8 kB / 1.185 GB, free: 92.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007367/3.451, allocations: 88.83 kB / 1.185 GB, free: 92.66 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01091/3.462, allocations: 3.787 MB / 1.189 GB, free: 89.83 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.934e-06/3.462, allocations: 0 / 1.189 GB, free: 89.83 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01308/3.475, allocations: 1.846 MB / 1.191 GB, free: 88 MB / 474.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 (264): * Single equations (assignments): 259 * 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.001476/3.477, allocations: 215.3 kB / 1.191 GB, free: 87.82 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02485/3.501, allocations: 9.633 MB / 1.201 GB, free: 79.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.908e-06/3.501, allocations: 0 / 1.201 GB, free: 79.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009775/3.511, allocations: 3.748 MB / 1.204 GB, free: 76.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009131/3.52, allocations: 0.7668 MB / 1.205 GB, free: 75.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04589/3.566, allocations: 18.4 MB / 1.223 GB, free: 59.11 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0123/3.579, allocations: 4.999 MB / 1.228 GB, free: 54.12 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01399/3.593, allocations: 2.787 MB / 1.23 GB, free: 51.39 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002526/3.595, allocations: 391.4 kB / 1.231 GB, free: 51.01 MB / 474.7 MB Notification: Performance of SimCode: time 1.402e-06/3.595, allocations: 0 / 1.231 GB, free: 51.01 MB / 474.7 MB Notification: Performance of Templates: time 0.5499/4.145, allocations: 75.63 MB / 1.305 GB, free: 108 MB / 474.7 MB