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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.297/2.297, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.732e-05/2.752e-05, allocations: 4 kB / 309.7 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3236, allocations: 54.85 MB / 364.5 MB, free: 5.359 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1461/0.4698, allocations: 95.49 MB / 460 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002518/0.4701, allocations: 71.97 kB / 460.1 MB, free: 0.7734 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.664/1.134, allocations: 96.22 MB / 0.5433 GB, free: 103.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.042e-06/1.134, allocations: 0 / 0.5433 GB, free: 103.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002736/1.134, allocations: 95.31 kB / 0.5434 GB, free: 103.2 MB / 458.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.03152/1.166, allocations: 5.822 MB / 0.5491 GB, free: 101.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/1.166, allocations: 10 kB / 0.5491 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01894/1.185, allocations: 2.919 MB / 0.5519 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02156/1.207, allocations: 7.192 MB / 0.5589 GB, free: 100.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004261/1.207, allocations: 358.3 kB / 0.5593 GB, free: 100.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002124/1.209, allocations: 479.3 kB / 0.5597 GB, free: 100.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02966/1.239, allocations: 12.09 MB / 0.5715 GB, free: 97.02 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002473/1.239, allocations: 68.28 kB / 0.5716 GB, free: 97.02 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001387/1.241, allocations: 239.1 kB / 0.5718 GB, free: 97.01 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00213/1.243, allocations: 1.195 MB / 0.573 GB, free: 96.99 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02581/1.269, allocations: 10.15 MB / 0.5829 GB, free: 94.37 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07234/1.341, allocations: 57.05 MB / 0.6386 GB, free: 46.44 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01668/1.358, allocations: 5.02 MB / 0.6435 GB, free: 41.91 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004373/1.362, allocations: 2.363 MB / 0.6458 GB, free: 39.54 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02231/1.385, allocations: 11.14 MB / 0.6567 GB, free: 28.08 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.135e-05/1.385, allocations: 55.81 kB / 0.6568 GB, free: 28.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=198): time 6.916e-06/1.385, allocations: 4 kB / 0.6568 GB, free: 28.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=237): time 0.06582/1.45, allocations: 20.57 MB / 0.6769 GB, free: 7.297 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003014/1.453, allocations: 4.609 MB / 0.6814 GB, free: 2.227 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009056/1.463, allocations: 3.973 MB / 0.6852 GB, free: 14.24 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000631/1.463, allocations: 57.7 kB / 0.6853 GB, free: 14.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003662/1.467, allocations: 3.396 MB / 0.6886 GB, free: 10.79 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001698/1.469, allocations: 0.9454 MB / 0.6895 GB, free: 9.848 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008157/1.47, allocations: 147.3 kB / 0.6897 GB, free: 9.707 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006799/1.47, allocations: 0.6208 MB / 0.6903 GB, free: 9.078 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007526/1.478, allocations: 3.048 MB / 0.6933 GB, free: 6.027 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01186/1.49, allocations: 7.281 MB / 0.7004 GB, free: 12.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01041/1.5, allocations: 4.633 MB / 0.7049 GB, free: 8.023 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001414/1.5, allocations: 40 kB / 0.7049 GB, free: 7.984 MB / 490.7 MB Notification: Performance of matching and sorting (n=961) (initialization): time 0.315/1.815, allocations: 12.72 MB / 0.7174 GB, free: 114.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001546/1.816, allocations: 72.98 kB / 0.7174 GB, free: 114.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01876/1.834, allocations: 6.363 MB / 0.7236 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01454/1.849, allocations: 3.351 MB / 0.7269 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007517/1.856, allocations: 1.698 MB / 0.7286 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02315/1.88, allocations: 15.93 MB / 0.7441 GB, free: 106.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009774/1.889, allocations: 0.7652 MB / 0.7449 GB, free: 106.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001599/1.891, allocations: 450.8 kB / 0.7453 GB, free: 106.1 MB / 490.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 (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.001656/1.893, allocations: 0.6441 MB / 0.7459 GB, free: 106 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009743/1.894, allocations: 412.7 kB / 0.7463 GB, free: 106 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02046/1.914, allocations: 6.962 MB / 0.7531 GB, free: 105.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01822/1.933, allocations: 6.299 MB / 0.7593 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.352e-05/1.933, allocations: 7.656 kB / 0.7593 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.544e-05/1.933, allocations: 14.77 kB / 0.7593 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04176/1.974, allocations: 14.93 MB / 0.7739 GB, free: 100.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.127e-05/1.975, allocations: 7.562 kB / 0.7739 GB, free: 100.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005832/1.98, allocations: 417.1 kB / 0.7743 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04933/2.03, allocations: 3.334 MB / 0.7775 GB, free: 99.73 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001334/2.031, allocations: 79.39 kB / 0.7776 GB, free: 99.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05174/2.083, allocations: 16.55 MB / 0.7938 GB, free: 89.64 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003061/2.086, allocations: 4.413 MB / 0.7981 GB, free: 85.39 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02389/2.11, allocations: 10.83 MB / 0.8087 GB, free: 78.93 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001408/2.112, allocations: 495.4 kB / 0.8091 GB, free: 78.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001341/2.113, allocations: 60.69 kB / 0.8092 GB, free: 78.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004149/2.117, allocations: 335.4 kB / 0.8095 GB, free: 78.12 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009344/2.118, allocations: 181.8 kB / 0.8097 GB, free: 77.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003111/2.118, allocations: 77.2 kB / 0.8098 GB, free: 77.87 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00599/2.124, allocations: 2.749 MB / 0.8124 GB, free: 75.12 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.799e-06/2.124, allocations: 3.781 kB / 0.8124 GB, free: 75.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008884/2.133, allocations: 1.493 MB / 0.8139 GB, free: 73.63 MB / 490.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.0008775/2.134, allocations: 217.4 kB / 0.8141 GB, free: 73.45 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01841/2.153, allocations: 9.069 MB / 0.823 GB, free: 64.51 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.928e-06/2.153, allocations: 6.469 kB / 0.823 GB, free: 64.51 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01013/2.163, allocations: 4.537 MB / 0.8274 GB, free: 59.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003448/2.166, allocations: 0.5006 MB / 0.8279 GB, free: 59.32 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02389/2.19, allocations: 11.8 MB / 0.8394 GB, free: 47.68 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006588/2.197, allocations: 3.739 MB / 0.8431 GB, free: 43.93 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00157/2.199, allocations: 347.3 kB / 0.8434 GB, free: 43.59 MB / 490.7 MB Notification: Performance of SimCode: time 1.929e-06/2.199, allocations: 0 / 0.8434 GB, free: 43.59 MB / 490.7 MB Notification: Performance of Templates: time 0.9316/3.13, allocations: 277.8 MB / 1.115 GB, free: 138.4 MB / 0.5105 GB