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.Spring2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Forces.Spring2") Notification: Performance of loadModel(ModelicaTest): time 1.876/1.876, allocations: 209.3 MB / 222.4 MB, free: 7.715 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.179e-05/3.191e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1225, allocations: 48.71 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.404/0.5264, allocations: 88.78 MB / 415.3 MB, free: 3.031 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.5267, allocations: 77.7 kB / 415.4 MB, free: 2.992 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3752/0.9019, allocations: 96.05 MB / 0.4995 GB, free: 9.777 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.872e-06/0.902, allocations: 0 / 0.4995 GB, free: 9.777 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000286/0.9023, allocations: 95.94 kB / 0.4995 GB, free: 9.684 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: 1679 * Number of variables: 1679 Notification: Performance of Generate backend data structure: time 0.03112/0.9334, allocations: 5.819 MB / 0.5052 GB, free: 3.797 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.9335, allocations: 8.031 kB / 0.5052 GB, free: 3.789 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0189/0.9524, allocations: 2.883 MB / 0.5081 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02328/0.9757, allocations: 7.173 MB / 0.5151 GB, free: 9.656 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005694/0.9763, allocations: 357.3 kB / 0.5154 GB, free: 9.305 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002328/0.9787, allocations: 479.8 kB / 0.5159 GB, free: 8.836 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2791/1.258, allocations: 12.08 MB / 0.5276 GB, free: 82.81 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003503/1.258, allocations: 73.88 kB / 0.5277 GB, free: 82.81 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001852/1.26, allocations: 234.8 kB / 0.5279 GB, free: 82.81 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002777/1.263, allocations: 1.198 MB / 0.5291 GB, free: 82.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02773/1.291, allocations: 10.14 MB / 0.539 GB, free: 82.76 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07403/1.365, allocations: 57.04 MB / 0.5947 GB, free: 47.33 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01761/1.382, allocations: 5.034 MB / 0.5996 GB, free: 45.57 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004602/1.387, allocations: 2.365 MB / 0.6019 GB, free: 44.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02222/1.409, allocations: 11.13 MB / 0.6128 GB, free: 38.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/1.409, allocations: 61.88 kB / 0.6129 GB, free: 38.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=198): time 6.664e-06/1.409, allocations: 0 / 0.6129 GB, free: 38.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=237): time 0.06802/1.477, allocations: 20.57 MB / 0.633 GB, free: 32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002959/1.48, allocations: 4.614 MB / 0.6375 GB, free: 27.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007832/1.488, allocations: 3.98 MB / 0.6413 GB, free: 25.57 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005775/1.489, allocations: 60.52 kB / 0.6414 GB, free: 25.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002179/1.491, allocations: 3.385 MB / 0.6447 GB, free: 22.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001279/1.492, allocations: 0.9518 MB / 0.6456 GB, free: 21.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007489/1.493, allocations: 143.8 kB / 0.6458 GB, free: 21.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004402/1.494, allocations: 0.6193 MB / 0.6464 GB, free: 20.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00606/1.5, allocations: 3.041 MB / 0.6494 GB, free: 18.22 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008473/1.508, allocations: 7.263 MB / 0.6564 GB, free: 9.355 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008374/1.517, allocations: 4.621 MB / 0.661 GB, free: 5.406 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001156/1.517, allocations: 40 kB / 0.661 GB, free: 5.367 MB / 426.7 MB Notification: Performance of matching and sorting (n=961) (initialization): time 0.0329/1.55, allocations: 12.42 MB / 0.6731 GB, free: 11.07 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001668/1.55, allocations: 72 kB / 0.6732 GB, free: 11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01812/1.568, allocations: 6.126 MB / 0.6792 GB, free: 6.285 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0199/1.588, allocations: 3.109 MB / 0.6822 GB, free: 3.305 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01588/1.604, allocations: 1.751 MB / 0.6839 GB, free: 1.551 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2988/1.903, allocations: 14.77 MB / 0.6983 GB, free: 83.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00951/1.912, allocations: 0.7589 MB / 0.6991 GB, free: 83.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001812/1.914, allocations: 452.4 kB / 0.6995 GB, free: 83.57 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (891): * Single equations (assignments): 871 * 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 {1,1,1} * 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.002394/1.917, allocations: 0.6511 MB / 0.7002 GB, free: 83.47 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/1.918, allocations: 409.8 kB / 0.7005 GB, free: 83.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02157/1.939, allocations: 6.956 MB / 0.7073 GB, free: 83.22 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01897/1.958, allocations: 6.297 MB / 0.7135 GB, free: 83.03 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.049e-05/1.958, allocations: 11.16 kB / 0.7135 GB, free: 83.03 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.846e-05/1.959, allocations: 10.83 kB / 0.7135 GB, free: 83.03 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03873/1.997, allocations: 14.94 MB / 0.7281 GB, free: 82.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.649e-05/1.997, allocations: 3.406 kB / 0.7281 GB, free: 82.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002615/2, allocations: 420.7 kB / 0.7285 GB, free: 82.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01467/2.015, allocations: 3.336 MB / 0.7318 GB, free: 82.07 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006657/2.015, allocations: 70.94 kB / 0.7318 GB, free: 82.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02405/2.039, allocations: 16.54 MB / 0.748 GB, free: 72.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002972/2.043, allocations: 4.418 MB / 0.7523 GB, free: 67.81 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02498/2.068, allocations: 10.83 MB / 0.7629 GB, free: 63.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/2.069, allocations: 490.9 kB / 0.7633 GB, free: 63.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001278/2.07, allocations: 63.62 kB / 0.7634 GB, free: 63.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004176/2.074, allocations: 337.7 kB / 0.7637 GB, free: 63.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009471/2.075, allocations: 181.2 kB / 0.7639 GB, free: 63.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003394/2.076, allocations: 79.75 kB / 0.764 GB, free: 63.51 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00642/2.082, allocations: 2.746 MB / 0.7666 GB, free: 62.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.081e-06/2.082, allocations: 0 / 0.7666 GB, free: 62.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008811/2.091, allocations: 1.48 MB / 0.7681 GB, free: 62.4 MB / 442.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 () * 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.0008734/2.092, allocations: 218.3 kB / 0.7683 GB, free: 62.29 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01941/2.111, allocations: 8.698 MB / 0.7768 GB, free: 59.42 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/2.112, allocations: 0.625 kB / 0.7768 GB, free: 59.42 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01144/2.123, allocations: 4.536 MB / 0.7812 GB, free: 56.44 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00374/2.127, allocations: 0.5065 MB / 0.7817 GB, free: 56.01 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02481/2.152, allocations: 11.79 MB / 0.7932 GB, free: 46.02 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007498/2.159, allocations: 3.734 MB / 0.7969 GB, free: 43.21 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001603/2.161, allocations: 348 kB / 0.7972 GB, free: 42.89 MB / 442.7 MB Notification: Performance of SimCode: time 1.999e-06/2.161, allocations: 0 / 0.7972 GB, free: 42.89 MB / 442.7 MB Notification: Performance of Templates: time 0.8983/3.059, allocations: 277.1 MB / 1.068 GB, free: 125.9 MB / 490.7 MB