Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Torque.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.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004246/0.004251, allocations: 359.7 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 3.76/3.76, allocations: 388.9 MB / 405.6 MB, free: 9.586 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.003552/0.003552, allocations: 222.1 kB / 451 MB, free: 145 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.5582/0.5582, allocations: 80.03 MB / 0.5627 GB, free: 19.76 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004598/0.0004599, allocations: 12 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1028, allocations: 54.87 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4881/0.5909, allocations: 101.5 MB / 0.7792 GB, free: 104 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.5913, allocations: 84.77 kB / 0.7793 GB, free: 60 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9577/1.549, allocations: 130.9 MB / 0.9071 GB, free: 87.19 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.246e-06/1.549, allocations: 3.562 kB / 0.9071 GB, free: 87.19 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.004663/1.554, allocations: 135 kB / 0.9073 GB, free: 87.19 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: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.0562/1.61, allocations: 6.936 MB / 0.914 GB, free: 84.39 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/1.61, allocations: 10.28 kB / 0.914 GB, free: 84.39 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04484/1.655, allocations: 5.497 MB / 0.9194 GB, free: 83.93 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02014/1.675, allocations: 6.236 MB / 0.9255 GB, free: 83.08 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007597/1.676, allocations: 0.4964 MB / 0.926 GB, free: 83.07 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003519/1.679, allocations: 0.6738 MB / 0.9266 GB, free: 83.06 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0458/1.725, allocations: 16.06 MB / 0.9423 GB, free: 79.06 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004706/1.726, allocations: 90.78 kB / 0.9424 GB, free: 79.06 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002984/1.729, allocations: 324.5 kB / 0.9427 GB, free: 79.06 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003524/1.732, allocations: 1.559 MB / 0.9442 GB, free: 79.04 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03713/1.77, allocations: 12.95 MB / 0.9569 GB, free: 78.8 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1061/1.876, allocations: 72.87 MB / 1.028 GB, free: 24.88 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02479/1.901, allocations: 6.371 MB / 1.034 GB, free: 19.58 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007236/1.908, allocations: 3.719 MB / 1.038 GB, free: 16.26 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0223/1.93, allocations: 9.206 MB / 1.047 GB, free: 8.492 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.304e-05/1.93, allocations: 72.25 kB / 1.047 GB, free: 8.418 MB / 474.7 MB Notification: Performance of pre-optimization done (n=269): time 6.943e-06/1.93, allocations: 0 / 1.047 GB, free: 8.418 MB / 474.7 MB Notification: Performance of matching and sorting (n=311): time 0.6275/2.558, allocations: 30.21 MB / 1.076 GB, free: 97.29 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/2.558, allocations: 241.7 kB / 1.077 GB, free: 97.04 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02154/2.58, allocations: 6.904 MB / 1.083 GB, free: 96.67 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008602/2.581, allocations: 73.53 kB / 1.084 GB, free: 96.64 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005439/2.586, allocations: 4.826 MB / 1.088 GB, free: 95.42 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00202/2.588, allocations: 1.176 MB / 1.089 GB, free: 94.88 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001389/2.589, allocations: 183 kB / 1.09 GB, free: 94.88 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0008494/2.59, allocations: 0.6879 MB / 1.09 GB, free: 94.56 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01036/2.601, allocations: 3.564 MB / 1.094 GB, free: 94.54 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01496/2.616, allocations: 8.891 MB / 1.102 GB, free: 87.75 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/2.628, allocations: 5.495 MB / 1.108 GB, free: 87.72 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002115/2.628, allocations: 53.56 kB / 1.108 GB, free: 87.72 MB / 490.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.03753/2.666, allocations: 13.63 MB / 1.121 GB, free: 86.78 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000151/2.666, allocations: 85.53 kB / 1.121 GB, free: 86.78 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003126/2.666, allocations: 187.8 kB / 1.121 GB, free: 86.78 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006868/2.673, allocations: 1.676 MB / 1.123 GB, free: 86.53 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01351/2.687, allocations: 2.128 MB / 1.125 GB, free: 86.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02084/2.708, allocations: 11.37 MB / 1.136 GB, free: 80.22 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01122/2.719, allocations: 0.5303 MB / 1.137 GB, free: 80.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002286/2.721, allocations: 0.5339 MB / 1.137 GB, free: 79.99 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * Number of states: 0 () * Number of discrete variables: 60 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1104): * Single equations (assignments): 1099 * 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%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009538/2.731, allocations: 3.228 MB / 1.14 GB, free: 78.57 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001909/2.733, allocations: 0.5872 MB / 1.141 GB, free: 78.25 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01984/2.753, allocations: 6.701 MB / 1.148 GB, free: 75.81 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.28e-05/2.753, allocations: 31.36 kB / 1.148 GB, free: 75.81 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.755e-05/2.753, allocations: 10.72 kB / 1.148 GB, free: 75.81 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.947e-05/2.753, allocations: 14.62 kB / 1.148 GB, free: 75.81 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0434/2.796, allocations: 15.14 MB / 1.162 GB, free: 70.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-05/2.797, allocations: 3.844 kB / 1.162 GB, free: 70.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005627/2.802, allocations: 0.5589 MB / 1.163 GB, free: 70.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006278/2.809, allocations: 1.384 MB / 1.164 GB, free: 70.04 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007608/2.809, allocations: 65.62 kB / 1.164 GB, free: 69.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02014/2.829, allocations: 10.51 MB / 1.175 GB, free: 64.33 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/2.83, allocations: 7.219 kB / 1.175 GB, free: 64.33 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0268/2.856, allocations: 10.94 MB / 1.185 GB, free: 55.01 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004294/2.861, allocations: 1.152 MB / 1.186 GB, free: 53.93 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002303/2.863, allocations: 56.72 kB / 1.186 GB, free: 53.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005801/2.869, allocations: 201.7 kB / 1.187 GB, free: 53.75 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001145/2.87, allocations: 196.6 kB / 1.187 GB, free: 53.63 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000438/2.871, allocations: 77.95 kB / 1.187 GB, free: 53.56 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01128/2.882, allocations: 4.414 MB / 1.191 GB, free: 49.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.11e-07/2.882, allocations: 3.531 kB / 1.191 GB, free: 49.95 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01201/2.894, allocations: 1.653 MB / 1.193 GB, free: 48.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (254): * Single equations (assignments): 249 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001291/2.895, allocations: 202.9 kB / 1.193 GB, free: 48.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02011/2.915, allocations: 8.81 MB / 1.202 GB, free: 40.41 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/2.915, allocations: 3.719 kB / 1.202 GB, free: 40.41 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00931/2.925, allocations: 3.373 MB / 1.205 GB, free: 37.45 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009773/2.935, allocations: 0.744 MB / 1.206 GB, free: 36.81 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04794/2.983, allocations: 18.31 MB / 1.224 GB, free: 20.06 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0121/2.995, allocations: 5.027 MB / 1.228 GB, free: 16.37 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01356/3.008, allocations: 2.97 MB / 1.231 GB, free: 14.45 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00307/3.011, allocations: 410.3 kB / 1.232 GB, free: 14.07 MB / 490.7 MB Notification: Performance of SimCode: time 1.443e-06/3.012, allocations: 0 / 1.232 GB, free: 14.07 MB / 490.7 MB Notification: Performance of Templates: time 0.6436/3.655, allocations: 63.61 MB / 1.294 GB, free: 94.95 MB / 0.4949 GB