Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadModel(Modelica): time 1.633/1.633, allocations: 171.2 MB / 184.2 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.626e-05/2.645e-05, allocations: 4 kB / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2065, allocations: 38.77 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.3398, allocations: 88.92 MB / 356.5 MB, free: 384 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/0.3401, allocations: 87.94 kB / 356.6 MB, free: 296 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.511/0.8512, allocations: 97.12 MB / 453.7 MB, free: 9.176 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.197e-06/0.8512, allocations: 4 kB / 453.7 MB, free: 9.172 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002637/0.8515, allocations: 95.98 kB / 453.8 MB, free: 9.078 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1732 * Number of variables: 1732 Notification: Performance of Generate backend data structure: time 0.01544/0.8669, allocations: 4.654 MB / 458.5 MB, free: 4.359 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.867, allocations: 8.031 kB / 458.5 MB, free: 4.352 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.025/0.892, allocations: 4.494 MB / 463 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01664/0.9087, allocations: 5.046 MB / 468 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004986/0.9092, allocations: 361.4 kB / 468.4 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001973/0.9112, allocations: 475.8 kB / 468.8 MB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03123/0.9425, allocations: 11.95 MB / 480.8 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002179/0.9427, allocations: 59.41 kB / 480.8 MB, free: 12.85 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001346/0.9441, allocations: 227.9 kB / 481.1 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00228/0.9464, allocations: 1.199 MB / 482.3 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02781/0.9742, allocations: 9.823 MB / 492.1 MB, free: 1.578 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3088/1.283, allocations: 52.83 MB / 0.5321 GB, free: 28.22 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01542/1.299, allocations: 5.194 MB / 0.5372 GB, free: 27.55 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004125/1.303, allocations: 2.613 MB / 0.5398 GB, free: 27.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01501/1.318, allocations: 8.032 MB / 0.5476 GB, free: 23.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.147e-05/1.318, allocations: 57.09 kB / 0.5477 GB, free: 23.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=216): time 6.489e-06/1.318, allocations: 1.641 kB / 0.5477 GB, free: 23.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=237): time 0.05407/1.372, allocations: 16.69 MB / 0.564 GB, free: 17.49 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.252e-05/1.372, allocations: 181.1 kB / 0.5641 GB, free: 17.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007675/1.38, allocations: 4.154 MB / 0.5682 GB, free: 15.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004356/1.38, allocations: 61.02 kB / 0.5682 GB, free: 15.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002078/1.382, allocations: 3.292 MB / 0.5715 GB, free: 13.26 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009858/1.383, allocations: 0.8869 MB / 0.5723 GB, free: 12.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005256/1.384, allocations: 136.6 kB / 0.5725 GB, free: 12.51 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003993/1.384, allocations: 0.5867 MB / 0.573 GB, free: 12.08 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004657/1.389, allocations: 2.453 MB / 0.5754 GB, free: 11.24 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008567/1.398, allocations: 6.314 MB / 0.5816 GB, free: 4.633 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/1.408, allocations: 3.922 MB / 0.5854 GB, free: 1.582 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001452/1.408, allocations: 42.91 kB / 0.5855 GB, free: 1.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.04708/1.455, allocations: 9.703 MB / 0.5949 GB, free: 11.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001783/1.455, allocations: 67.7 kB / 0.595 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002819/1.456, allocations: 136 kB / 0.5951 GB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004281/1.46, allocations: 0.9114 MB / 0.596 GB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01082/1.471, allocations: 1.599 MB / 0.5976 GB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01499/1.486, allocations: 5.773 MB / 0.6032 GB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009361/1.495, allocations: 372 kB / 0.6036 GB, free: 3.332 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001399/1.497, allocations: 407.2 kB / 0.604 GB, free: 2.949 MB / 362.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 () * 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.001693/1.498, allocations: 0.6062 MB / 0.6046 GB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001059/1.499, allocations: 414.6 kB / 0.605 GB, free: 1.926 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.018/1.518, allocations: 4.655 MB / 0.6095 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.336e-05/1.518, allocations: 31.59 kB / 0.6095 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.892e-05/1.518, allocations: 7.703 kB / 0.6095 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.564e-05/1.518, allocations: 11.41 kB / 0.6095 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02796/1.546, allocations: 10.35 MB / 0.6197 GB, free: 5.633 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.263e-05/1.546, allocations: 8 kB / 0.6197 GB, free: 5.625 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003258/1.549, allocations: 471.8 kB / 0.6201 GB, free: 5.164 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002703/1.552, allocations: 0.7149 MB / 0.6208 GB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004966/1.552, allocations: 47.98 kB / 0.6209 GB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.224/1.776, allocations: 5.312 MB / 0.626 GB, free: 84.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.992e-06/1.776, allocations: 7.625 kB / 0.6261 GB, free: 84.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01336/1.79, allocations: 8.236 MB / 0.6341 GB, free: 83.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002418/1.792, allocations: 0.8147 MB / 0.6349 GB, free: 83.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008996/1.793, allocations: 45.47 kB / 0.6349 GB, free: 83.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00242/1.796, allocations: 146.1 kB / 0.6351 GB, free: 83.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004314/1.796, allocations: 146.1 kB / 0.6352 GB, free: 83.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000233/1.796, allocations: 69.41 kB / 0.6353 GB, free: 83.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005574/1.802, allocations: 2.968 MB / 0.6382 GB, free: 83.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.191e-06/1.802, allocations: 0 / 0.6382 GB, free: 83.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006853/1.809, allocations: 1.149 MB / 0.6393 GB, free: 83.07 MB / 378.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 () * 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.0005566/1.809, allocations: 198.1 kB / 0.6395 GB, free: 82.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01113/1.821, allocations: 6.036 MB / 0.6454 GB, free: 82.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.727e-06/1.821, allocations: 3.25 kB / 0.6454 GB, free: 82.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004336/1.825, allocations: 2.235 MB / 0.6476 GB, free: 82.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003059/1.828, allocations: 483 kB / 0.648 GB, free: 82.65 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02044/1.849, allocations: 9.767 MB / 0.6576 GB, free: 80.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006101/1.855, allocations: 3.763 MB / 0.6612 GB, free: 80 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001726/1.856, allocations: 346.6 kB / 0.6616 GB, free: 79.99 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-06/1.856, allocations: 0 / 0.6616 GB, free: 79.99 MB / 378.7 MB Notification: Performance of Templates: time 0.1199/1.976, allocations: 85.23 MB / 0.7448 GB, free: 20.23 MB / 378.7 MB