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.Spring2.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.Spring2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.|body1.Q.1.|body1.Q.2.|body1.Q.3.|body1.Q.4.|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.Q.1.|body2.Q.2.|body2.Q.3.|body2.Q.4.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring2") Notification: Performance of loadModel(ModelicaTest): time 2.3/2.3, allocations: 235.1 MB / 243 MB, free: 9.5 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.605e-05/2.63e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.278, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1478/0.4258, allocations: 94.82 MB / 452.9 MB, free: 15.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.4261, allocations: 75.91 kB / 452.9 MB, free: 15.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6217/1.048, allocations: 94.18 MB / 0.5343 GB, free: 33.71 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.928e-06/1.048, allocations: 0 / 0.5343 GB, free: 33.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002313/1.048, allocations: 95.98 kB / 0.5344 GB, free: 33.61 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1679 * Number of variables: 1679 Notification: Performance of Generate backend data structure: time 0.02902/1.077, allocations: 5.812 MB / 0.5401 GB, free: 27.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/1.077, allocations: 15.97 kB / 0.5401 GB, free: 27.72 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01779/1.095, allocations: 2.915 MB / 0.5429 GB, free: 24.79 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01982/1.115, allocations: 7.186 MB / 0.5499 GB, free: 17.54 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003129/1.115, allocations: 152 kB / 0.5501 GB, free: 17.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001893/1.117, allocations: 287.8 kB / 0.5504 GB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01464/1.132, allocations: 7.086 MB / 0.5573 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02272/1.155, allocations: 10.64 MB / 0.5677 GB, free: 14.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002959/1.155, allocations: 71.34 kB / 0.5677 GB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001699/1.157, allocations: 36 kB / 0.5678 GB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002682/1.159, allocations: 1.202 MB / 0.569 GB, free: 12.85 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08899/1.248, allocations: 56.15 MB / 0.6238 GB, free: 2.863 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.275/1.523, allocations: 3.461 MB / 0.6272 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004411/1.528, allocations: 2.212 MB / 0.6293 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001001/1.529, allocations: 0.6668 MB / 0.63 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.413e-05/1.529, allocations: 63 kB / 0.63 GB, free: 104 MB / 458.7 MB Notification: Performance of pre-optimization done (n=205): time 7.982e-06/1.529, allocations: 0 / 0.63 GB, free: 104 MB / 458.7 MB Notification: Performance of matching and sorting (n=238): time 0.05265/1.582, allocations: 20.01 MB / 0.6496 GB, free: 99.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.125e-05/1.582, allocations: 253.7 kB / 0.6498 GB, free: 99.62 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006644/1.588, allocations: 3.457 MB / 0.6532 GB, free: 99.24 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000586/1.589, allocations: 29.45 kB / 0.6532 GB, free: 99.21 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002526/1.592, allocations: 3.471 MB / 0.6566 GB, free: 97.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001348/1.593, allocations: 0.9278 MB / 0.6575 GB, free: 96.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007212/1.594, allocations: 3.469 kB / 0.6575 GB, free: 96.73 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004881/1.594, allocations: 0.6279 MB / 0.6581 GB, free: 96.41 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005759/1.6, allocations: 2.937 MB / 0.661 GB, free: 96.39 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008244/1.608, allocations: 7.276 MB / 0.6681 GB, free: 90.61 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008338/1.617, allocations: 4.536 MB / 0.6725 GB, free: 89.28 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001393/1.617, allocations: 46.98 kB / 0.6726 GB, free: 89.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=985) (initialization): time 0.03234/1.649, allocations: 11.86 MB / 0.6842 GB, free: 86.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001219/1.649, allocations: 76.06 kB / 0.6842 GB, free: 86.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01794/1.667, allocations: 6.187 MB / 0.6903 GB, free: 84.24 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01311/1.68, allocations: 3.272 MB / 0.6935 GB, free: 82.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006905/1.687, allocations: 1.746 MB / 0.6952 GB, free: 80.56 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01943/1.707, allocations: 15.13 MB / 0.71 GB, free: 66.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009336/1.716, allocations: 0.6257 MB / 0.7106 GB, free: 66.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001616/1.718, allocations: 460.8 kB / 0.711 GB, free: 65.71 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 705 * Number of states: 0 () * Number of discrete variables: 42 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (906): * Single equations (assignments): 886 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00162/1.72, allocations: 0.4889 MB / 0.7115 GB, free: 65.21 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009799/1.721, allocations: 386.9 kB / 0.7119 GB, free: 64.84 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01735/1.738, allocations: 6.706 MB / 0.7184 GB, free: 59.83 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0155/1.753, allocations: 6.074 MB / 0.7243 GB, free: 55.29 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.412e-05/1.754, allocations: 11.95 kB / 0.7243 GB, free: 55.28 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-05/1.754, allocations: 15.11 kB / 0.7244 GB, free: 55.28 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03322/1.787, allocations: 14.35 MB / 0.7384 GB, free: 42.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.107e-05/1.787, allocations: 4 kB / 0.7384 GB, free: 42.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002472/1.789, allocations: 415.6 kB / 0.7388 GB, free: 41.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01244/1.802, allocations: 3.278 MB / 0.742 GB, free: 38.68 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006308/1.803, allocations: 47.94 kB / 0.742 GB, free: 38.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02096/1.824, allocations: 16.01 MB / 0.7576 GB, free: 21.97 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002702/1.826, allocations: 4.235 MB / 0.7618 GB, free: 17.37 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02306/1.849, allocations: 10.42 MB / 0.772 GB, free: 6.797 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00142/1.851, allocations: 440 kB / 0.7724 GB, free: 6.344 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00149/1.852, allocations: 27.97 kB / 0.7724 GB, free: 6.316 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004153/1.857, allocations: 295.5 kB / 0.7727 GB, free: 6.027 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001006/1.858, allocations: 185.6 kB / 0.7729 GB, free: 5.848 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004904/1.858, allocations: 75.94 kB / 0.7729 GB, free: 5.773 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005519/1.864, allocations: 2.291 MB / 0.7752 GB, free: 3.473 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.201e-06/1.864, allocations: 0 / 0.7752 GB, free: 3.473 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00958/1.873, allocations: 1.37 MB / 0.7765 GB, free: 2.109 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 36 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 163 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009195/1.874, allocations: 183.1 kB / 0.7767 GB, free: 1.934 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02062/1.895, allocations: 8.723 MB / 0.7852 GB, free: 9.074 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.349e-06/1.895, allocations: 0 / 0.7852 GB, free: 9.074 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01348/1.909, allocations: 4.463 MB / 0.7896 GB, free: 4.441 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003724/1.912, allocations: 397.4 kB / 0.7899 GB, free: 4.051 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03119/1.944, allocations: 11.6 MB / 0.8013 GB, free: 8.508 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2878/2.231, allocations: 3.725 MB / 0.8049 GB, free: 123.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001672/2.233, allocations: 340.7 kB / 0.8052 GB, free: 123.8 MB / 490.7 MB Notification: Performance of SimCode: time 1.99e-06/2.233, allocations: 0.75 kB / 0.8052 GB, free: 123.8 MB / 490.7 MB Notification: Performance of Templates: time 0.6349/2.868, allocations: 274.5 MB / 1.073 GB, free: 90.01 MB / 0.4948 GB