Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00275/0.002755, allocations: 360.5 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.315/4.315, allocations: 388.9 MB / 405.6 MB, free: 10.31 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.003518/0.003518, allocations: 237.3 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.5264/0.5264, allocations: 80.02 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004816/0.0004821, allocations: 19.97 kB / 0.6265 GB, free: 96.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1154, allocations: 54.85 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4842/0.5997, allocations: 99.29 MB / 0.777 GB, free: 2.254 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/0.6, allocations: 81.64 kB / 0.7771 GB, free: 2.211 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.924/1.524, allocations: 127.6 MB / 0.9018 GB, free: 94.67 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.876e-06/1.524, allocations: 0 / 0.9018 GB, free: 94.67 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004564/1.525, allocations: 116 kB / 0.9019 GB, free: 94.66 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: 2209 * Number of variables: 2209 Notification: Performance of Generate backend data structure: time 0.03252/1.557, allocations: 6.485 MB / 0.9082 GB, free: 92.25 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/1.557, allocations: 9.344 kB / 0.9082 GB, free: 92.25 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0456/1.603, allocations: 5.541 MB / 0.9136 GB, free: 91.82 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02257/1.625, allocations: 7.136 MB / 0.9206 GB, free: 91.07 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006919/1.626, allocations: 438 kB / 0.921 GB, free: 91.05 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004326/1.631, allocations: 0.5772 MB / 0.9216 GB, free: 91.05 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05009/1.681, allocations: 15.29 MB / 0.9365 GB, free: 89.05 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004468/1.681, allocations: 57.94 kB / 0.9366 GB, free: 89.04 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003806/1.685, allocations: 269.5 kB / 0.9368 GB, free: 89.03 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004308/1.689, allocations: 1.696 MB / 0.9385 GB, free: 89.01 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06196/1.751, allocations: 14.66 MB / 0.9528 GB, free: 87.98 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1235/1.875, allocations: 56.13 MB / 1.008 GB, free: 51.32 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.029/1.904, allocations: 7.936 MB / 1.015 GB, free: 44.5 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009519/1.914, allocations: 4.731 MB / 1.02 GB, free: 40.31 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002616/1.916, allocations: 2.209 MB / 1.022 GB, free: 37.87 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.908e-05/1.916, allocations: 76.22 kB / 1.022 GB, free: 37.79 MB / 474.7 MB Notification: Performance of pre-optimization done (n=367): time 8.856e-06/1.916, allocations: 0 / 1.022 GB, free: 37.79 MB / 474.7 MB Notification: Performance of matching and sorting (n=419): time 0.2473/2.164, allocations: 39.58 MB / 1.061 GB, free: 1.859 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.712e-05/2.164, allocations: 120 kB / 1.061 GB, free: 1.723 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01101/2.175, allocations: 4.34 MB / 1.065 GB, free: 13.37 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001247/2.176, allocations: 89.7 kB / 1.065 GB, free: 13.27 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004979/2.181, allocations: 3.896 MB / 1.069 GB, free: 9.367 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00334/2.185, allocations: 1.49 MB / 1.071 GB, free: 7.891 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001358/2.186, allocations: 152 kB / 1.071 GB, free: 7.742 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0008923/2.187, allocations: 0.6404 MB / 1.071 GB, free: 7.098 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01151/2.198, allocations: 3.892 MB / 1.075 GB, free: 3.203 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3654/2.564, allocations: 7.701 MB / 1.083 GB, free: 95.11 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01426/2.578, allocations: 5.43 MB / 1.088 GB, free: 95.05 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002427/2.579, allocations: 36.94 kB / 1.088 GB, free: 95.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.0474/2.626, allocations: 14.04 MB / 1.102 GB, free: 94.66 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001437/2.626, allocations: 65.25 kB / 1.102 GB, free: 94.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002431/2.626, allocations: 133.2 kB / 1.102 GB, free: 94.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01335/2.64, allocations: 2.615 MB / 1.104 GB, free: 94.63 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01461/2.654, allocations: 1.942 MB / 1.106 GB, free: 94.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02949/2.684, allocations: 13.64 MB / 1.12 GB, free: 91.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009142/2.693, allocations: 475.2 kB / 1.12 GB, free: 91.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001951/2.695, allocations: 434.7 kB / 1.121 GB, free: 91.73 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 594 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[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 (920): * Single equations (assignments): 912 * Array equations: 6 * 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 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008745/2.704, allocations: 2.9 MB / 1.123 GB, free: 91.48 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001377/2.705, allocations: 468.3 kB / 1.124 GB, free: 91.48 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03247/2.738, allocations: 10.41 MB / 1.134 GB, free: 89.32 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001378/2.738, allocations: 64.94 kB / 1.134 GB, free: 89.31 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.308e-05/2.738, allocations: 9.812 kB / 1.134 GB, free: 89.31 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.917e-05/2.738, allocations: 21.42 kB / 1.134 GB, free: 89.31 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06052/2.799, allocations: 21.04 MB / 1.155 GB, free: 82.31 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-05/2.799, allocations: 13.09 kB / 1.155 GB, free: 82.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007335/2.806, allocations: 0.7865 MB / 1.155 GB, free: 82.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01277/2.819, allocations: 2.395 MB / 1.158 GB, free: 81.91 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001152/2.82, allocations: 81.5 kB / 1.158 GB, free: 81.86 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02706/2.847, allocations: 12.37 MB / 1.17 GB, free: 76.12 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.356e-05/2.847, allocations: 23 kB / 1.17 GB, free: 76.12 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0407/2.888, allocations: 14.84 MB / 1.184 GB, free: 64.34 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00459/2.893, allocations: 1.158 MB / 1.186 GB, free: 63.28 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002071/2.895, allocations: 76.52 kB / 1.186 GB, free: 63.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005924/2.901, allocations: 291.3 kB / 1.186 GB, free: 63.03 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00162/2.902, allocations: 262.7 kB / 1.186 GB, free: 62.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007994/2.903, allocations: 118.9 kB / 1.186 GB, free: 62.75 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006855/2.91, allocations: 2.711 MB / 1.189 GB, free: 60.54 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.22e-07/2.91, allocations: 0 / 1.189 GB, free: 60.54 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01075/2.921, allocations: 1.654 MB / 1.191 GB, free: 58.89 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * Array equations: 6 * 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%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00157/2.923, allocations: 229.2 kB / 1.191 GB, free: 58.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02302/2.946, allocations: 9.733 MB / 1.2 GB, free: 50.21 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.719e-05/2.946, allocations: 4 kB / 1.2 GB, free: 50.21 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01054/2.956, allocations: 4.237 MB / 1.204 GB, free: 46.48 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00855/2.965, allocations: 0.6997 MB / 1.205 GB, free: 45.89 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04267/3.008, allocations: 18.42 MB / 1.223 GB, free: 29.09 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01816/3.026, allocations: 4.74 MB / 1.228 GB, free: 25.37 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01306/3.039, allocations: 2.739 MB / 1.23 GB, free: 22.64 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003129/3.042, allocations: 343.3 kB / 1.231 GB, free: 22.3 MB / 490.7 MB Notification: Performance of SimCode: time 1.563e-06/3.042, allocations: 0 / 1.231 GB, free: 22.3 MB / 490.7 MB Notification: Performance of Templates: time 0.582/3.624, allocations: 65.21 MB / 1.294 GB, free: 98.51 MB / 0.4949 GB