Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.308/2.308, allocations: 234.9 MB / 251.1 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005927/0.000593, allocations: 16 kB / 314.9 MB, free: 9.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3672, allocations: 54.85 MB / 369.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1739/0.5412, allocations: 95.56 MB / 465.4 MB, free: 13.05 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.5416, allocations: 79.97 kB / 465.4 MB, free: 12.97 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8024/1.344, allocations: 97.35 MB / 0.5496 GB, free: 83.85 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.404e-06/1.344, allocations: 4 kB / 0.5496 GB, free: 83.85 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003224/1.344, allocations: 95.92 kB / 0.5497 GB, free: 83.75 MB / 426.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.04974/1.394, allocations: 6.106 MB / 0.5557 GB, free: 77.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/1.394, allocations: 12.03 kB / 0.5557 GB, free: 77.56 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03845/1.433, allocations: 2.915 MB / 0.5585 GB, free: 74.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0403/1.473, allocations: 7.216 MB / 0.5656 GB, free: 67.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007031/1.474, allocations: 353.3 kB / 0.5659 GB, free: 67.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003689/1.478, allocations: 483.8 kB / 0.5664 GB, free: 66.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05608/1.534, allocations: 12.3 MB / 0.5784 GB, free: 53.01 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004738/1.534, allocations: 82.36 kB / 0.5784 GB, free: 52.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002983/1.537, allocations: 231.9 kB / 0.5787 GB, free: 52.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004652/1.542, allocations: 1.194 MB / 0.5798 GB, free: 51.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09519/1.637, allocations: 10.49 MB / 0.5901 GB, free: 40.99 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1139/1.751, allocations: 57.04 MB / 0.6458 GB, free: 14.24 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02648/1.778, allocations: 5.038 MB / 0.6507 GB, free: 9.035 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0428/1.821, allocations: 11.14 MB / 0.6616 GB, free: 13.52 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.043e-05/1.821, allocations: 51.81 kB / 0.6616 GB, free: 13.46 MB / 474.7 MB Notification: Performance of pre-optimization done (n=198): time 6.502e-06/1.821, allocations: 4 kB / 0.6616 GB, free: 13.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=237): time 0.4674/2.288, allocations: 24.46 MB / 0.6855 GB, free: 123.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003709/2.292, allocations: 4.646 MB / 0.6901 GB, free: 119.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01154/2.303, allocations: 4.592 MB / 0.6945 GB, free: 118.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008018/2.304, allocations: 61.02 kB / 0.6946 GB, free: 118.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003115/2.307, allocations: 3.385 MB / 0.6979 GB, free: 116.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00168/2.309, allocations: 0.9563 MB / 0.6988 GB, free: 116.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009803/2.31, allocations: 146.2 kB / 0.699 GB, free: 116.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004612/2.311, allocations: 0.6219 MB / 0.6996 GB, free: 115.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009212/2.32, allocations: 3.189 MB / 0.7027 GB, free: 115.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01204/2.332, allocations: 7.454 MB / 0.71 GB, free: 109.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01263/2.345, allocations: 4.727 MB / 0.7146 GB, free: 107.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002058/2.345, allocations: 44.66 kB / 0.7146 GB, free: 107.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=961) (initialization): time 0.04613/2.391, allocations: 13.01 MB / 0.7273 GB, free: 103.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001269/2.391, allocations: 79.08 kB / 0.7274 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02587/2.417, allocations: 6.399 MB / 0.7337 GB, free: 102.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0202/2.437, allocations: 3.346 MB / 0.7369 GB, free: 101.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01049/2.448, allocations: 1.7 MB / 0.7386 GB, free: 99.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02874/2.477, allocations: 16.31 MB / 0.7545 GB, free: 84.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01206/2.489, allocations: 0.7623 MB / 0.7553 GB, free: 84.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002115/2.491, allocations: 456.6 kB / 0.7557 GB, free: 83.74 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (882): * Single equations (assignments): 862 * 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.007396/2.498, allocations: 2.301 MB / 0.758 GB, free: 81.71 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001235/2.5, allocations: 406.8 kB / 0.7583 GB, free: 81.31 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02761/2.527, allocations: 6.996 MB / 0.7652 GB, free: 76.06 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02498/2.552, allocations: 6.338 MB / 0.7714 GB, free: 70.64 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.258e-05/2.552, allocations: 8 kB / 0.7714 GB, free: 70.63 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.025e-05/2.552, allocations: 15.95 kB / 0.7714 GB, free: 70.62 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04942/2.602, allocations: 14.97 MB / 0.786 GB, free: 55.56 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.92e-05/2.602, allocations: 4 kB / 0.786 GB, free: 55.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003991/2.606, allocations: 415.4 kB / 0.7864 GB, free: 55.15 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01885/2.625, allocations: 3.344 MB / 0.7897 GB, free: 51.77 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008791/2.626, allocations: 79.92 kB / 0.7898 GB, free: 51.69 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03014/2.656, allocations: 16.93 MB / 0.8063 GB, free: 34 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003412/2.659, allocations: 4.465 MB / 0.8106 GB, free: 29.12 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03252/2.692, allocations: 10.4 MB / 0.8208 GB, free: 18.61 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001807/2.694, allocations: 495.5 kB / 0.8213 GB, free: 18.11 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00199/2.696, allocations: 63.97 kB / 0.8213 GB, free: 18.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005863/2.702, allocations: 331.3 kB / 0.8216 GB, free: 17.72 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001176/2.703, allocations: 189.6 kB / 0.8218 GB, free: 17.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000335/2.703, allocations: 75.95 kB / 0.8219 GB, free: 17.46 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008652/2.712, allocations: 2.882 MB / 0.8247 GB, free: 14.58 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.022e-06/2.712, allocations: 0 / 0.8247 GB, free: 14.58 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01067/2.723, allocations: 1.496 MB / 0.8262 GB, free: 13.09 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 164 * 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.001258/2.724, allocations: 210.8 kB / 0.8264 GB, free: 12.88 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02712/2.751, allocations: 9.255 MB / 0.8354 GB, free: 3.473 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/2.751, allocations: 7.75 kB / 0.8354 GB, free: 3.469 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01651/2.768, allocations: 4.589 MB / 0.8399 GB, free: 14.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005534/2.773, allocations: 0.4897 MB / 0.8404 GB, free: 14.21 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3915/3.165, allocations: 15.67 MB / 0.8557 GB, free: 123 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009487/3.175, allocations: 3.742 MB / 0.8593 GB, free: 122.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002108/3.177, allocations: 351.3 kB / 0.8597 GB, free: 122.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.403e-06/3.177, allocations: 1.422 kB / 0.8597 GB, free: 122.2 MB / 490.7 MB Notification: Performance of Templates: time 0.8241/4.001, allocations: 277.8 MB / 1.131 GB, free: 96.66 MB / 0.5105 GB