Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002869/0.002868, allocations: 361 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.061/4.061, allocations: 388.9 MB / 405.6 MB, free: 10.32 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.003904/0.003904, allocations: 236.4 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.4951/0.4951, allocations: 80.03 MB / 0.5627 GB, free: 19.85 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005234/0.0005237, allocations: 12 kB / 0.6265 GB, free: 96.53 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/0.09916, allocations: 54.86 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4899/0.5891, allocations: 105.8 MB / 0.7834 GB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.5895, allocations: 78.09 kB / 0.7835 GB, free: 11.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9622/1.552, allocations: 134.6 MB / 0.915 GB, free: 90.12 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.552, allocations: 1.219 kB / 0.915 GB, free: 90.12 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005311/1.552, allocations: 133 kB / 0.9151 GB, free: 90.12 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2299 * Number of variables: 2299 Notification: Performance of Generate backend data structure: time 0.03265/1.585, allocations: 7.459 MB / 0.9224 GB, free: 87.25 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/1.585, allocations: 6.781 kB / 0.9224 GB, free: 87.25 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05317/1.638, allocations: 5.855 MB / 0.9281 GB, free: 86.79 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04125/1.679, allocations: 8.378 MB / 0.9363 GB, free: 85.89 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009128/1.68, allocations: 488.9 kB / 0.9368 GB, free: 85.88 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004942/1.685, allocations: 0.6554 MB / 0.9374 GB, free: 85.87 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07497/1.76, allocations: 16.53 MB / 0.9536 GB, free: 81.89 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009105/1.761, allocations: 105.8 kB / 0.9537 GB, free: 81.88 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004508/1.766, allocations: 315.3 kB / 0.954 GB, free: 81.88 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0055/1.772, allocations: 1.581 MB / 0.9555 GB, free: 81.85 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06499/1.837, allocations: 13.53 MB / 0.9687 GB, free: 79.36 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1626/1.999, allocations: 74.17 MB / 1.041 GB, free: 17.22 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03745/2.037, allocations: 7.724 MB / 1.049 GB, free: 10.93 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008746/2.046, allocations: 4.021 MB / 1.053 GB, free: 7.328 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04746/2.093, allocations: 18.55 MB / 1.071 GB, free: 4.52 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.132e-05/2.093, allocations: 68.5 kB / 1.071 GB, free: 4.441 MB / 490.7 MB Notification: Performance of pre-optimization done (n=286): time 6.973e-06/2.093, allocations: 4 kB / 1.071 GB, free: 4.438 MB / 490.7 MB Notification: Performance of matching and sorting (n=367): time 0.7198/2.813, allocations: 50.66 MB / 1.12 GB, free: 96.71 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/2.813, allocations: 274.5 kB / 1.121 GB, free: 96.42 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01377/2.827, allocations: 6.07 MB / 1.126 GB, free: 95.91 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001022/2.828, allocations: 86.89 kB / 1.127 GB, free: 95.88 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00475/2.833, allocations: 4.755 MB / 1.131 GB, free: 93.75 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00232/2.835, allocations: 1.351 MB / 1.133 GB, free: 92.96 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001553/2.837, allocations: 181.7 kB / 1.133 GB, free: 92.96 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007298/2.838, allocations: 0.6973 MB / 1.133 GB, free: 92.64 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01404/2.852, allocations: 3.811 MB / 1.137 GB, free: 92.29 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01405/2.866, allocations: 9.022 MB / 1.146 GB, free: 84.09 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01343/2.879, allocations: 5.673 MB / 1.151 GB, free: 81.94 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001786/2.879, allocations: 52.12 kB / 1.151 GB, free: 81.94 MB / 490.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.06244/2.942, allocations: 16.71 MB / 1.168 GB, free: 76.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001329/2.942, allocations: 80 kB / 1.168 GB, free: 76.05 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003298/2.942, allocations: 188 kB / 1.168 GB, free: 75.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02339/2.966, allocations: 4.131 MB / 1.172 GB, free: 73.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0131/2.979, allocations: 2.052 MB / 1.174 GB, free: 71.23 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05539/3.034, allocations: 22.13 MB / 1.196 GB, free: 52.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01212/3.047, allocations: 0.5506 MB / 1.196 GB, free: 51.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00234/3.049, allocations: 0.529 MB / 1.197 GB, free: 51.38 MB / 490.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.009303/3.058, allocations: 3.124 MB / 1.2 GB, free: 48.64 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001681/3.06, allocations: 0.5708 MB / 1.2 GB, free: 48.06 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03978/3.1, allocations: 9.841 MB / 1.21 GB, free: 40.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-05/3.1, allocations: 44.66 kB / 1.21 GB, free: 40.46 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.572e-05/3.1, allocations: 16 kB / 1.21 GB, free: 40.45 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.783e-05/3.1, allocations: 17.86 kB / 1.21 GB, free: 40.45 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06506/3.165, allocations: 19.26 MB / 1.229 GB, free: 21.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.438e-05/3.165, allocations: 4 kB / 1.229 GB, free: 21.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005106/3.17, allocations: 0.4993 MB / 1.229 GB, free: 20.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02175/3.192, allocations: 3.617 MB / 1.233 GB, free: 17.29 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009414/3.193, allocations: 72.48 kB / 1.233 GB, free: 17.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04819/3.241, allocations: 19.05 MB / 1.252 GB, free: 13.91 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.289e-06/3.241, allocations: 0 / 1.252 GB, free: 13.91 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4365/3.678, allocations: 14.23 MB / 1.265 GB, free: 100.9 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004532/3.683, allocations: 1.118 MB / 1.267 GB, free: 100.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002714/3.685, allocations: 60.92 kB / 1.267 GB, free: 100.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006768/3.692, allocations: 232.3 kB / 1.267 GB, free: 100.8 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001697/3.694, allocations: 222.5 kB / 1.267 GB, free: 100.8 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009145/3.695, allocations: 92.67 kB / 1.267 GB, free: 100.8 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01558/3.71, allocations: 3.787 MB / 1.271 GB, free: 100.6 MB / 0.4949 GB Notification: Performance of sort global known variables: time 8.22e-07/3.711, allocations: 0 / 1.271 GB, free: 100.6 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01322/3.724, allocations: 1.851 MB / 1.273 GB, free: 100.6 MB / 0.4949 GB 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.00148/3.725, allocations: 222.8 kB / 1.273 GB, free: 100.5 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02954/3.755, allocations: 9.72 MB / 1.282 GB, free: 100.1 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/3.755, allocations: 6.156 kB / 1.282 GB, free: 100.1 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.00956/3.764, allocations: 3.791 MB / 1.286 GB, free: 99.76 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009615/3.774, allocations: 0.7734 MB / 1.287 GB, free: 99.73 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05782/3.832, allocations: 18.44 MB / 1.305 GB, free: 93.13 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01624/3.848, allocations: 5.013 MB / 1.31 GB, free: 92.26 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01876/3.867, allocations: 2.803 MB / 1.312 GB, free: 92.2 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003371/3.871, allocations: 385.5 kB / 1.313 GB, free: 92.2 MB / 0.4949 GB Notification: Performance of SimCode: time 1.493e-06/3.871, allocations: 0 / 1.313 GB, free: 92.2 MB / 0.4949 GB Notification: Performance of Templates: time 0.2024/4.073, allocations: 75.72 MB / 1.387 GB, free: 51.09 MB / 0.4949 GB