Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 2.174/2.174, allocations: 235.1 MB / 243 MB, free: 9.492 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.011e-05/2.021e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2829, allocations: 54.85 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1572/0.4401, allocations: 105 MB / 463 MB, free: 5.797 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.4404, allocations: 75.95 kB / 463.1 MB, free: 5.723 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7409/1.181, allocations: 133.1 MB / 0.5822 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.992e-06/1.181, allocations: 4 kB / 0.5822 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004351/1.182, allocations: 132 kB / 0.5824 GB, free: 0.8594 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02343/1.205, allocations: 7.02 MB / 0.5892 GB, free: 9.762 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/1.205, allocations: 12.03 kB / 0.5892 GB, free: 9.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04143/1.247, allocations: 7.561 MB / 0.5966 GB, free: 2.168 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02995/1.277, allocations: 9.79 MB / 0.6062 GB, free: 8.293 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004369/1.277, allocations: 208 kB / 0.6064 GB, free: 8.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002701/1.28, allocations: 395.7 kB / 0.6068 GB, free: 7.703 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02313/1.303, allocations: 9.652 MB / 0.6162 GB, free: 14.04 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3177/1.621, allocations: 14.2 MB / 0.6301 GB, free: 67.67 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007124/1.622, allocations: 101.7 kB / 0.6301 GB, free: 67.67 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002866/1.624, allocations: 44.56 kB / 0.6302 GB, free: 67.67 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003567/1.628, allocations: 1.573 MB / 0.6317 GB, free: 67.66 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0932/1.721, allocations: 73.61 MB / 0.7036 GB, free: 24.92 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008319/1.73, allocations: 5.128 MB / 0.7086 GB, free: 23.99 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006134/1.736, allocations: 3.703 MB / 0.7122 GB, free: 22.34 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002801/1.739, allocations: 2.27 MB / 0.7145 GB, free: 20.29 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.147e-05/1.739, allocations: 65.66 kB / 0.7145 GB, free: 20.23 MB / 458.7 MB Notification: Performance of pre-optimization done (n=295): time 8.882e-06/1.739, allocations: 0 / 0.7145 GB, free: 20.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=374): time 0.1303/1.869, allocations: 39.63 MB / 0.7532 GB, free: 7.367 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.894e-05/1.869, allocations: 277.8 kB / 0.7535 GB, free: 7.078 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009727/1.879, allocations: 4.642 MB / 0.758 GB, free: 5.051 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007702/1.88, allocations: 25.7 kB / 0.758 GB, free: 5.02 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003383/1.883, allocations: 4.63 MB / 0.7626 GB, free: 0.9453 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001991/1.885, allocations: 1.327 MB / 0.7639 GB, free: 15.74 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001231/1.887, allocations: 0 / 0.7639 GB, free: 15.74 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001013/1.888, allocations: 0.7088 MB / 0.7646 GB, free: 15.14 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0084/1.896, allocations: 3.618 MB / 0.7681 GB, free: 11.89 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01386/1.91, allocations: 8.89 MB / 0.7768 GB, free: 1.148 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01998/1.93, allocations: 5.988 MB / 0.7826 GB, free: 13.75 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001958/1.93, allocations: 55.94 kB / 0.7827 GB, free: 13.69 MB / 490.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.0464/1.977, allocations: 15.34 MB / 0.7976 GB, free: 1.164 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001788/1.977, allocations: 84.22 kB / 0.7977 GB, free: 1.082 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003066/1.977, allocations: 188 kB / 0.7979 GB, free: 0.8984 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02487/2.002, allocations: 4.472 MB / 0.8023 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009345/2.011, allocations: 2.097 MB / 0.8043 GB, free: 13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3402/2.352, allocations: 21.05 MB / 0.8249 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009334/2.361, allocations: 383.6 kB / 0.8252 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001909/2.363, allocations: 0.5466 MB / 0.8258 GB, free: 107.9 MB / 0.4948 GB 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.002079/2.365, allocations: 0.5804 MB / 0.8263 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001265/2.366, allocations: 0.5381 MB / 0.8269 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02731/2.394, allocations: 9.562 MB / 0.8362 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.583e-05/2.394, allocations: 41.75 kB / 0.8362 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.891e-05/2.394, allocations: 21.09 kB / 0.8363 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.477e-05/2.394, allocations: 21.16 kB / 0.8363 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05001/2.444, allocations: 18.09 MB / 0.854 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.105e-05/2.444, allocations: 3.25 kB / 0.854 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003359/2.447, allocations: 0.5167 MB / 0.8545 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01575/2.463, allocations: 3.567 MB / 0.8579 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007216/2.464, allocations: 16.97 kB / 0.858 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03422/2.498, allocations: 17.67 MB / 0.8752 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/2.498, allocations: 6.5 kB / 0.8752 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03366/2.532, allocations: 14.24 MB / 0.8891 GB, free: 95.85 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003326/2.535, allocations: 1.087 MB / 0.8902 GB, free: 95.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001296/2.537, allocations: 3.594 kB / 0.8902 GB, free: 95.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004075/2.541, allocations: 185.4 kB / 0.8904 GB, free: 95.28 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001072/2.542, allocations: 231.5 kB / 0.8906 GB, free: 95.24 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004308/2.542, allocations: 95.34 kB / 0.8907 GB, free: 95.22 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006903/2.549, allocations: 3.126 MB / 0.8937 GB, free: 94.12 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.269e-06/2.549, allocations: 3.562 kB / 0.8937 GB, free: 94.12 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01068/2.56, allocations: 1.601 MB / 0.8953 GB, free: 94.12 MB / 0.4948 GB 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.001051/2.561, allocations: 168.9 kB / 0.8955 GB, free: 94.04 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01698/2.578, allocations: 9.149 MB / 0.9044 GB, free: 90.97 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.918e-06/2.578, allocations: 0 / 0.9044 GB, free: 90.97 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006664/2.585, allocations: 3.634 MB / 0.908 GB, free: 87.79 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003915/2.589, allocations: 0.5864 MB / 0.9085 GB, free: 87.31 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02936/2.618, allocations: 13.7 MB / 0.9219 GB, free: 75.36 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009917/2.628, allocations: 5.011 MB / 0.9268 GB, free: 71.71 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002095/2.63, allocations: 426.3 kB / 0.9272 GB, free: 71.3 MB / 0.4948 GB Notification: Performance of SimCode: time 2.242e-06/2.63, allocations: 3.188 kB / 0.9272 GB, free: 71.3 MB / 0.4948 GB Notification: Performance of Templates: time 0.4933/3.124, allocations: 142.8 MB / 1.067 GB, free: 80.14 MB / 0.4948 GB