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.71/1.71, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003566, allocations: 8 kB / 233.2 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06971/0.07009, allocations: 38.78 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2428/0.3129, allocations: 47.48 MB / 319.4 MB, free: 7.07 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02566/0.3386, allocations: 11.25 MB / 330.7 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01066/0.3493, allocations: 234 kB / 330.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008164/0.3576, allocations: 2.404 MB / 333.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02506/0.3827, allocations: 6.901 MB / 340.2 MB, free: 9.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003693/0.3864, allocations: 0.6241 MB / 340.8 MB, free: 8.445 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.02194/0.4084, allocations: 9.911 MB / 350.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009743/0.4182, allocations: 5.073 MB / 355.8 MB, free: 9.387 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002475/0.4207, allocations: 1.137 MB / 356.9 MB, free: 8.246 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002994/0.4237, allocations: 1.495 MB / 358.4 MB, free: 6.746 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007889/0.4245, allocations: 164 kB / 358.6 MB, free: 6.586 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002787/0.4273, allocations: 0.987 MB / 359.6 MB, free: 5.598 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002762/0.4301, allocations: 1.785 MB / 361.4 MB, free: 3.809 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001371/0.4316, allocations: 0.9401 MB / 362.3 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009792/0.4414, allocations: 6.403 MB / 368.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.632e-06/0.4414, allocations: 0 / 368.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.948e-06/0.4414, allocations: 3.984 kB / 368.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001657/0.4416, allocations: 3.938 kB / 368.7 MB, free: 12.43 MB / 298.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.01316/0.4548, allocations: 4.873 MB / 373.6 MB, free: 7.492 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.4548, allocations: 8.031 kB / 373.6 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03216/0.487, allocations: 5.119 MB / 378.7 MB, free: 2.352 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008217/0.4953, allocations: 3.093 MB / 381.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003452/0.4956, allocations: 266.7 kB / 382.1 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001328/0.497, allocations: 351.7 kB / 382.4 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02854/0.5255, allocations: 11.77 MB / 394.2 MB, free: 2.113 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001775/0.5258, allocations: 43.58 kB / 394.2 MB, free: 2.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001129/0.5269, allocations: 171.8 kB / 394.4 MB, free: 1.902 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004623/0.5316, allocations: 2.221 MB / 396.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02734/0.5589, allocations: 9.979 MB / 406.6 MB, free: 5.684 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2843/0.8433, allocations: 44.28 MB / 450.9 MB, free: 100.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01735/0.8607, allocations: 5.411 MB / 456.3 MB, free: 100.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01627/0.877, allocations: 8.04 MB / 464.3 MB, free: 97.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.034e-05/0.8771, allocations: 59.25 kB / 464.4 MB, free: 97.53 MB / 362.7 MB Notification: Performance of pre-optimization done (n=216): time 6.615e-06/0.8771, allocations: 5.094 kB / 464.4 MB, free: 97.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=237): time 0.0664/0.9435, allocations: 20.69 MB / 485.1 MB, free: 86.15 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.219e-05/0.9437, allocations: 183.5 kB / 485.3 MB, free: 85.94 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008819/0.9525, allocations: 4.845 MB / 490.1 MB, free: 81.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004511/0.953, allocations: 62.64 kB / 490.2 MB, free: 81.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002295/0.9553, allocations: 3.276 MB / 493.4 MB, free: 77.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001051/0.9564, allocations: 0.8819 MB / 494.3 MB, free: 76.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005691/0.9569, allocations: 132 kB / 494.4 MB, free: 76.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000376/0.9573, allocations: 0.5955 MB / 495 MB, free: 76.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005229/0.9626, allocations: 2.562 MB / 497.6 MB, free: 73.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007047/0.9697, allocations: 6.446 MB / 0.4922 GB, free: 65.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007289/0.977, allocations: 3.996 MB / 0.4961 GB, free: 61.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.68e-05/0.9771, allocations: 44 kB / 0.4962 GB, free: 61.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=871) (initialization): time 0.01999/0.9972, allocations: 9.45 MB / 0.5054 GB, free: 52.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/0.9973, allocations: 71.58 kB / 0.5055 GB, free: 52.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001418/0.9975, allocations: 136 kB / 0.5056 GB, free: 51.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002908/1, allocations: 0.961 MB / 0.5065 GB, free: 50.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006431/1.007, allocations: 1.571 MB / 0.5081 GB, free: 49.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009502/1.016, allocations: 6.265 MB / 0.5142 GB, free: 43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006104/1.023, allocations: 380.2 kB / 0.5146 GB, free: 42.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001075/1.024, allocations: 401.9 kB / 0.5149 GB, free: 42.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * 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 (813): * Single equations (assignments): 807 * Array equations: 5 * 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.00467/1.028, allocations: 2.362 MB / 0.5173 GB, free: 39.87 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008374/1.029, allocations: 418.6 kB / 0.5177 GB, free: 39.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009622/1.039, allocations: 4.386 MB / 0.5219 GB, free: 35.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.116e-05/1.039, allocations: 28.75 kB / 0.522 GB, free: 35.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.552e-05/1.039, allocations: 4 kB / 0.522 GB, free: 35.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.362e-05/1.039, allocations: 15.95 kB / 0.522 GB, free: 35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0226/1.062, allocations: 10.54 MB / 0.5323 GB, free: 24.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.629e-05/1.062, allocations: 7.375 kB / 0.5323 GB, free: 24.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002592/1.064, allocations: 432 kB / 0.5327 GB, free: 23.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00252/1.067, allocations: 0.7655 MB / 0.5334 GB, free: 23.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004414/1.067, allocations: 47.94 kB / 0.5335 GB, free: 23.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008889/1.076, allocations: 5.799 MB / 0.5391 GB, free: 17.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.789e-06/1.076, allocations: 8 kB / 0.5392 GB, free: 17.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/1.09, allocations: 7.671 MB / 0.5466 GB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002237/1.092, allocations: 0.8429 MB / 0.5475 GB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009118/1.093, allocations: 39.95 kB / 0.5475 GB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002538/1.096, allocations: 139.8 kB / 0.5476 GB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004999/1.096, allocations: 153.6 kB / 0.5478 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002366/1.096, allocations: 67.98 kB / 0.5479 GB, free: 8.203 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00544/1.102, allocations: 3.12 MB / 0.5509 GB, free: 5.086 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.102, allocations: 0 / 0.5509 GB, free: 5.086 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006496/1.108, allocations: 1.17 MB / 0.552 GB, free: 3.922 MB / 362.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.0008177/1.109, allocations: 200.3 kB / 0.5522 GB, free: 3.723 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01229/1.121, allocations: 6.231 MB / 0.5583 GB, free: 13.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/1.122, allocations: 3.938 kB / 0.5583 GB, free: 13.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005591/1.127, allocations: 2.31 MB / 0.5606 GB, free: 11.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003173/1.13, allocations: 483.2 kB / 0.561 GB, free: 10.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2201/1.35, allocations: 13.48 MB / 0.5742 GB, free: 131.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007881/1.358, allocations: 3.766 MB / 0.5779 GB, free: 130.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00184/1.36, allocations: 349 kB / 0.5782 GB, free: 130.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.488e-06/1.36, allocations: 0 / 0.5782 GB, free: 130.5 MB / 378.7 MB Notification: Performance of Templates: time 0.1198/1.48, allocations: 85.79 MB / 0.662 GB, free: 59.63 MB / 378.7 MB