Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.683/1.683, allocations: 171.1 MB / 187.3 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003551/0.0003552, allocations: 8 kB / 233.8 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08718/0.08756, allocations: 38.76 MB / 272.6 MB, free: 12.2 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4027/0.4904, allocations: 88.99 MB / 361.5 MB, free: 1.32 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003387/0.4908, allocations: 87.52 kB / 361.6 MB, free: 1.273 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6701/1.161, allocations: 97.55 MB / 459.2 MB, free: 73.08 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.066e-06/1.161, allocations: 4 kB / 459.2 MB, free: 73.08 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003235/1.161, allocations: 93.53 kB / 459.3 MB, free: 73.08 MB / 346.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.02452/1.186, allocations: 4.975 MB / 464.2 MB, free: 70.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/1.186, allocations: 7.75 kB / 464.3 MB, free: 70.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04369/1.23, allocations: 4.495 MB / 468.7 MB, free: 70.64 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0184/1.248, allocations: 5.056 MB / 473.8 MB, free: 69.97 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004587/1.249, allocations: 363.1 kB / 474.2 MB, free: 69.95 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002737/1.251, allocations: 475.7 kB / 474.6 MB, free: 69.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03606/1.287, allocations: 12.08 MB / 486.7 MB, free: 65.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000292/1.288, allocations: 62.5 kB / 486.8 MB, free: 65.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002369/1.29, allocations: 232.5 kB / 487 MB, free: 65 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002753/1.293, allocations: 1.195 MB / 488.2 MB, free: 64.78 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03162/1.325, allocations: 9.964 MB / 498.1 MB, free: 60.08 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08145/1.406, allocations: 52.84 MB / 0.5381 GB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02088/1.427, allocations: 5.224 MB / 0.5432 GB, free: 2.742 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02226/1.449, allocations: 8.038 MB / 0.551 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.806e-05/1.45, allocations: 63.8 kB / 0.5511 GB, free: 10.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=216): time 9.618e-06/1.45, allocations: 0 / 0.5511 GB, free: 10.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=237): time 0.3727/1.822, allocations: 19.8 MB / 0.5704 GB, free: 79.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.749e-05/1.823, allocations: 177.2 kB / 0.5706 GB, free: 79.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01377/1.836, allocations: 4.705 MB / 0.5752 GB, free: 79.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006898/1.837, allocations: 62.98 kB / 0.5753 GB, free: 79.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003435/1.841, allocations: 3.293 MB / 0.5785 GB, free: 77.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001692/1.842, allocations: 0.8855 MB / 0.5793 GB, free: 77.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000877/1.843, allocations: 130.8 kB / 0.5795 GB, free: 77.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004859/1.844, allocations: 0.594 MB / 0.58 GB, free: 76.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006669/1.85, allocations: 2.502 MB / 0.5825 GB, free: 76.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009582/1.86, allocations: 6.399 MB / 0.5887 GB, free: 71.78 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009648/1.87, allocations: 3.934 MB / 0.5926 GB, free: 71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001885/1.87, allocations: 39.12 kB / 0.5926 GB, free: 71 MB / 362.7 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.02699/1.897, allocations: 9.294 MB / 0.6017 GB, free: 67.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/1.897, allocations: 65.16 kB / 0.6017 GB, free: 67.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002168/1.897, allocations: 134.6 kB / 0.6019 GB, free: 67.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00382/1.901, allocations: 0.8947 MB / 0.6027 GB, free: 67.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01034/1.912, allocations: 1.599 MB / 0.6043 GB, free: 67.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01162/1.923, allocations: 5.944 MB / 0.6101 GB, free: 64.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008271/1.932, allocations: 376.4 kB / 0.6105 GB, free: 64.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001925/1.934, allocations: 401.2 kB / 0.6109 GB, free: 64.21 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 () * 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.007784/1.941, allocations: 2.355 MB / 0.6132 GB, free: 63.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001419/1.943, allocations: 422.2 kB / 0.6136 GB, free: 62.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01271/1.956, allocations: 4.274 MB / 0.6177 GB, free: 61.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.44e-05/1.956, allocations: 25.61 kB / 0.6178 GB, free: 61.24 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.985e-05/1.956, allocations: 8.359 kB / 0.6178 GB, free: 61.24 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.704e-05/1.956, allocations: 15.03 kB / 0.6178 GB, free: 61.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03271/1.989, allocations: 10.36 MB / 0.6279 GB, free: 57.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.174e-05/1.989, allocations: 7.625 kB / 0.6279 GB, free: 57.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004413/1.993, allocations: 471.6 kB / 0.6284 GB, free: 57.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003229/1.996, allocations: 0.7069 MB / 0.629 GB, free: 57.22 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005888/1.997, allocations: 44.28 kB / 0.6291 GB, free: 57.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01116/2.008, allocations: 5.461 MB / 0.6344 GB, free: 53.19 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.398e-06/2.008, allocations: 11.94 kB / 0.6344 GB, free: 53.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01842/2.027, allocations: 7.514 MB / 0.6418 GB, free: 46.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003411/2.03, allocations: 0.8145 MB / 0.6426 GB, free: 45.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002062/2.032, allocations: 43.38 kB / 0.6426 GB, free: 45.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005568/2.038, allocations: 150.4 kB / 0.6427 GB, free: 45.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001038/2.039, allocations: 147.2 kB / 0.6429 GB, free: 45.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003642/2.039, allocations: 68 kB / 0.643 GB, free: 45.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.01092/2.05, allocations: 3.007 MB / 0.6459 GB, free: 43.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.183e-06/2.05, allocations: 0 / 0.6459 GB, free: 43.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01269/2.063, allocations: 1.158 MB / 0.647 GB, free: 41.88 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.001246/2.064, allocations: 195.8 kB / 0.6472 GB, free: 41.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0195/2.084, allocations: 6.127 MB / 0.6532 GB, free: 36.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.631e-05/2.084, allocations: 4 kB / 0.6532 GB, free: 36.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008173/2.092, allocations: 2.26 MB / 0.6554 GB, free: 34.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005952/2.098, allocations: 485 kB / 0.6559 GB, free: 33.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03441/2.133, allocations: 13.46 MB / 0.669 GB, free: 21.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008917/2.142, allocations: 3.763 MB / 0.6727 GB, free: 18.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002329/2.144, allocations: 340.7 kB / 0.673 GB, free: 18.44 MB / 362.7 MB Notification: Performance of SimCode: time 1.403e-06/2.144, allocations: 0 / 0.673 GB, free: 18.44 MB / 362.7 MB Notification: Performance of Templates: time 0.4443/2.588, allocations: 85.24 MB / 0.7562 GB, free: 49.84 MB / 362.7 MB