Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 1.992/1.992, allocations: 209.4 MB / 217.3 MB, free: 4.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.082e-05/2.087e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2641, allocations: 48.68 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1454/0.4096, allocations: 98.16 MB / 418.2 MB, free: 14.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/0.4099, allocations: 75.95 kB / 418.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6745/1.084, allocations: 133 MB / 0.5383 GB, free: 22.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.989e-06/1.084, allocations: 0 / 0.5383 GB, free: 22.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000392/1.085, allocations: 132 kB / 0.5385 GB, free: 22.05 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: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.02115/1.106, allocations: 7.033 MB / 0.5453 GB, free: 14.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/1.106, allocations: 12.03 kB / 0.5453 GB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0386/1.145, allocations: 7.557 MB / 0.5527 GB, free: 7.348 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02712/1.172, allocations: 9.782 MB / 0.5623 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004242/1.172, allocations: 208 kB / 0.5625 GB, free: 13.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002718/1.175, allocations: 395.8 kB / 0.5628 GB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02328/1.198, allocations: 9.652 MB / 0.5723 GB, free: 3.227 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03462/1.233, allocations: 14.2 MB / 0.5861 GB, free: 3.582 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003999/1.233, allocations: 99.11 kB / 0.5862 GB, free: 3.484 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00172/1.235, allocations: 44 kB / 0.5863 GB, free: 3.441 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003105/1.238, allocations: 1.576 MB / 0.5878 GB, free: 1.863 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3452/1.583, allocations: 73.58 MB / 0.6597 GB, free: 24.21 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007928/1.591, allocations: 5.133 MB / 0.6647 GB, free: 22.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005746/1.597, allocations: 3.703 MB / 0.6683 GB, free: 20.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002582/1.6, allocations: 2.259 MB / 0.6705 GB, free: 18.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.955e-05/1.6, allocations: 72.09 kB / 0.6706 GB, free: 18.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=295): time 7.793e-06/1.6, allocations: 0 / 0.6706 GB, free: 18.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=374): time 0.1226/1.723, allocations: 39.62 MB / 0.7093 GB, free: 15.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001934/1.723, allocations: 273.5 kB / 0.7095 GB, free: 15.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01062/1.733, allocations: 4.642 MB / 0.7141 GB, free: 11.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007909/1.734, allocations: 29.7 kB / 0.7141 GB, free: 11.51 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004886/1.739, allocations: 4.619 MB / 0.7186 GB, free: 7.414 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002211/1.741, allocations: 1.332 MB / 0.7199 GB, free: 6.211 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000885/1.742, allocations: 0 / 0.7199 GB, free: 6.211 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008832/1.743, allocations: 0.7138 MB / 0.7206 GB, free: 5.602 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008215/1.751, allocations: 3.617 MB / 0.7241 GB, free: 2.359 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02022/1.772, allocations: 9.252 MB / 0.7332 GB, free: 8.492 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01187/1.784, allocations: 5.551 MB / 0.7386 GB, free: 3.949 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001888/1.784, allocations: 52 kB / 0.7386 GB, free: 3.898 MB / 442.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04598/1.83, allocations: 15.34 MB / 0.7536 GB, free: 7.391 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000171/1.83, allocations: 84 kB / 0.7537 GB, free: 7.309 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002876/1.83, allocations: 192.1 kB / 0.7539 GB, free: 7.121 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01769/1.848, allocations: 4.121 MB / 0.7579 GB, free: 4.273 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009476/1.858, allocations: 2.096 MB / 0.76 GB, free: 2.441 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3102/2.168, allocations: 21.06 MB / 0.7805 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009929/2.178, allocations: 388.8 kB / 0.7809 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002021/2.18, allocations: 0.5402 MB / 0.7814 GB, free: 100.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1114): * Single equations (assignments): 1109 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002986/2.183, allocations: 0.5795 MB / 0.782 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001414/2.184, allocations: 0.5423 MB / 0.7825 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02956/2.214, allocations: 9.553 MB / 0.7918 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-05/2.214, allocations: 42.42 kB / 0.7919 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.925e-05/2.214, allocations: 18.47 kB / 0.7919 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.717e-05/2.214, allocations: 15.23 kB / 0.7919 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04954/2.264, allocations: 18.09 MB / 0.8096 GB, free: 96.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.821e-05/2.264, allocations: 3.875 kB / 0.8096 GB, free: 96.65 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003643/2.267, allocations: 0.5225 MB / 0.8101 GB, free: 96.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01652/2.284, allocations: 3.562 MB / 0.8136 GB, free: 96.09 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007321/2.285, allocations: 13.73 kB / 0.8136 GB, free: 96.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03441/2.319, allocations: 17.68 MB / 0.8309 GB, free: 88.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.983e-06/2.319, allocations: 3.344 kB / 0.8309 GB, free: 88.27 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03413/2.353, allocations: 14.23 MB / 0.8448 GB, free: 82.98 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003337/2.357, allocations: 1.079 MB / 0.8458 GB, free: 81.98 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001368/2.358, allocations: 5.594 kB / 0.8458 GB, free: 81.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004419/2.363, allocations: 186.5 kB / 0.846 GB, free: 81.88 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001205/2.364, allocations: 238.3 kB / 0.8462 GB, free: 81.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004102/2.364, allocations: 99.14 kB / 0.8463 GB, free: 81.64 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006305/2.371, allocations: 3.118 MB / 0.8494 GB, free: 78.97 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.94e-07/2.371, allocations: 0 / 0.8494 GB, free: 78.97 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01047/2.381, allocations: 1.605 MB / 0.8509 GB, free: 77.38 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (277): * Single equations (assignments): 272 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009508/2.382, allocations: 169.5 kB / 0.8511 GB, free: 77.25 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01645/2.399, allocations: 9.149 MB / 0.86 GB, free: 69.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.891e-06/2.399, allocations: 0 / 0.86 GB, free: 69.41 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006908/2.406, allocations: 3.643 MB / 0.8636 GB, free: 66.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00424/2.41, allocations: 0.5981 MB / 0.8642 GB, free: 65.67 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03107/2.441, allocations: 13.7 MB / 0.8775 GB, free: 53.72 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01029/2.451, allocations: 4.997 MB / 0.8824 GB, free: 50.08 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002037/2.453, allocations: 432.3 kB / 0.8828 GB, free: 49.67 MB / 458.7 MB Notification: Performance of SimCode: time 1.974e-06/2.453, allocations: 4 kB / 0.8828 GB, free: 49.67 MB / 458.7 MB Notification: Performance of Templates: time 0.5902/3.044, allocations: 142.8 MB / 1.022 GB, free: 49.6 MB / 458.7 MB