Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadModel(Modelica): time 1.819/1.819, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003383/0.0003384, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09005/0.09041, allocations: 44.5 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4098/0.5003, allocations: 94.73 MB / 403.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.5006, allocations: 94.23 kB / 403.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3875/0.8881, allocations: 97.63 MB / 0.4897 GB, free: 3.008 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.8882, allocations: 0 / 0.4897 GB, free: 3.008 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003084/0.8885, allocations: 95.98 kB / 0.4898 GB, free: 2.914 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1734 * Number of variables: 1734 Notification: Performance of Generate backend data structure: time 0.02019/0.9087, allocations: 4.968 MB / 0.4946 GB, free: 13.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.9088, allocations: 12.03 kB / 0.4946 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03411/0.9429, allocations: 4.498 MB / 0.499 GB, free: 9.352 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02014/0.9631, allocations: 5.069 MB / 0.504 GB, free: 4.219 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005305/0.9637, allocations: 361.5 kB / 0.5043 GB, free: 3.863 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00244/0.9661, allocations: 471.8 kB / 0.5048 GB, free: 3.402 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03687/1.003, allocations: 12.08 MB / 0.5166 GB, free: 6.258 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003021/1.003, allocations: 63.39 kB / 0.5166 GB, free: 6.195 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00198/1.005, allocations: 227.9 kB / 0.5168 GB, free: 5.973 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002971/1.008, allocations: 1.195 MB / 0.518 GB, free: 4.777 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2939/1.302, allocations: 9.972 MB / 0.5278 GB, free: 81.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07798/1.38, allocations: 52.86 MB / 0.5794 GB, free: 52.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02042/1.401, allocations: 5.218 MB / 0.5845 GB, free: 51.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01852/1.419, allocations: 8.039 MB / 0.5923 GB, free: 47.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.725e-05/1.419, allocations: 54.16 kB / 0.5924 GB, free: 47.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=216): time 6.082e-06/1.419, allocations: 6.906 kB / 0.5924 GB, free: 47.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=237): time 0.07915/1.499, allocations: 19.83 MB / 0.6117 GB, free: 40.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.504e-05/1.499, allocations: 182.2 kB / 0.6119 GB, free: 40.31 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008948/1.508, allocations: 4.691 MB / 0.6165 GB, free: 38.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005958/1.508, allocations: 66.34 kB / 0.6166 GB, free: 38.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002703/1.511, allocations: 3.297 MB / 0.6198 GB, free: 36.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001442/1.513, allocations: 0.89 MB / 0.6206 GB, free: 35.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00076/1.513, allocations: 134.6 kB / 0.6208 GB, free: 35.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003902/1.514, allocations: 0.5901 MB / 0.6214 GB, free: 34.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005533/1.519, allocations: 2.508 MB / 0.6238 GB, free: 34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008409/1.528, allocations: 6.394 MB / 0.63 GB, free: 27.97 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008524/1.536, allocations: 3.934 MB / 0.6339 GB, free: 26.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/1.536, allocations: 36.88 kB / 0.6339 GB, free: 26.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.02388/1.56, allocations: 9.299 MB / 0.643 GB, free: 19.49 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.992e-05/1.561, allocations: 60 kB / 0.6431 GB, free: 19.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001421/1.561, allocations: 140 kB / 0.6432 GB, free: 19.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003388/1.564, allocations: 0.9044 MB / 0.6441 GB, free: 18.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009691/1.574, allocations: 1.597 MB / 0.6456 GB, free: 17.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/1.585, allocations: 5.92 MB / 0.6514 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00743/1.592, allocations: 384.1 kB / 0.6518 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00106/1.593, allocations: 398.7 kB / 0.6522 GB, free: 11.22 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 39 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 812 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005965/1.599, allocations: 2.358 MB / 0.6545 GB, free: 9.145 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/1.6, allocations: 428.6 kB / 0.6549 GB, free: 8.727 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/1.612, allocations: 4.263 MB / 0.659 GB, free: 5.219 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.769e-05/1.612, allocations: 28 kB / 0.6591 GB, free: 5.191 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/1.612, allocations: 8 kB / 0.6591 GB, free: 5.184 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.576e-05/1.612, allocations: 10.5 kB / 0.6591 GB, free: 5.184 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02988/1.642, allocations: 10.42 MB / 0.6693 GB, free: 12.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.301e-05/1.642, allocations: 8.609 kB / 0.6693 GB, free: 12.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004555/1.646, allocations: 479.2 kB / 0.6697 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003361/1.65, allocations: 0.6982 MB / 0.6704 GB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004027/1.65, allocations: 48 kB / 0.6705 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01217/1.662, allocations: 5.455 MB / 0.6758 GB, free: 7.043 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/1.663, allocations: 7.938 kB / 0.6758 GB, free: 7.035 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01912/1.682, allocations: 7.514 MB / 0.6831 GB, free: 352 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2744/1.956, allocations: 0.8138 MB / 0.6839 GB, free: 92.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001344/1.958, allocations: 42.25 kB / 0.684 GB, free: 92.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003103/1.961, allocations: 140.6 kB / 0.6841 GB, free: 92.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000456/1.961, allocations: 143.4 kB / 0.6842 GB, free: 92.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002507/1.961, allocations: 68.16 kB / 0.6843 GB, free: 92.34 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008052/1.969, allocations: 3.015 MB / 0.6872 GB, free: 92.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.97, allocations: 2.156 kB / 0.6872 GB, free: 92.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007739/1.977, allocations: 1.154 MB / 0.6884 GB, free: 92.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (198): * Single equations (assignments): 194 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007557/1.978, allocations: 191.3 kB / 0.6886 GB, free: 92.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01439/1.992, allocations: 6.13 MB / 0.6945 GB, free: 91.92 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.908e-06/1.993, allocations: 1.375 kB / 0.6945 GB, free: 91.92 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006242/1.999, allocations: 2.264 MB / 0.6967 GB, free: 91.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003775/2.003, allocations: 483.2 kB / 0.6972 GB, free: 91.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02857/2.031, allocations: 13.47 MB / 0.7104 GB, free: 86.95 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006793/2.038, allocations: 3.765 MB / 0.714 GB, free: 86.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002249/2.04, allocations: 338.7 kB / 0.7144 GB, free: 86.13 MB / 426.7 MB Notification: Performance of SimCode: time 1.282e-06/2.04, allocations: 0 / 0.7144 GB, free: 86.13 MB / 426.7 MB Notification: Performance of Templates: time 0.1497/2.19, allocations: 85.26 MB / 0.7976 GB, free: 41.14 MB / 426.7 MB