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.17/2.17, allocations: 234.9 MB / 250.5 MB, free: 9.66 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004418/0.0004419, allocations: 12 kB / 314.4 MB, free: 9.668 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2995, allocations: 54.86 MB / 369.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.144/0.4436, allocations: 95.57 MB / 464.8 MB, free: 13.04 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.4439, allocations: 75.97 kB / 464.9 MB, free: 12.96 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6226/1.067, allocations: 96.17 MB / 0.5479 GB, free: 85.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.602e-06/1.067, allocations: 4 kB / 0.5479 GB, free: 85.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003658/1.067, allocations: 91.98 kB / 0.548 GB, free: 84.93 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.05472/1.122, allocations: 6.106 MB / 0.554 GB, free: 78.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.638e-05/1.122, allocations: 12.03 kB / 0.554 GB, free: 78.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01874/1.141, allocations: 2.915 MB / 0.5568 GB, free: 75.81 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01931/1.16, allocations: 7.22 MB / 0.5639 GB, free: 68.53 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000406/1.16, allocations: 353.3 kB / 0.5642 GB, free: 68.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002188/1.163, allocations: 487.8 kB / 0.5647 GB, free: 67.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02697/1.19, allocations: 12.26 MB / 0.5767 GB, free: 54.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002183/1.19, allocations: 75.25 kB / 0.5767 GB, free: 54.13 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001128/1.191, allocations: 235.8 kB / 0.577 GB, free: 53.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002033/1.193, allocations: 1.194 MB / 0.5781 GB, free: 52.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03325/1.226, allocations: 10.48 MB / 0.5884 GB, free: 42.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07187/1.298, allocations: 57.05 MB / 0.6441 GB, free: 15.45 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01873/1.317, allocations: 5.044 MB / 0.649 GB, free: 10.23 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02451/1.342, allocations: 11.13 MB / 0.6599 GB, free: 14.72 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.531e-05/1.342, allocations: 59.75 kB / 0.6599 GB, free: 14.66 MB / 474.7 MB Notification: Performance of pre-optimization done (n=198): time 6.154e-06/1.342, allocations: 0 / 0.6599 GB, free: 14.66 MB / 474.7 MB Notification: Performance of matching and sorting (n=237): time 0.392/1.734, allocations: 24.46 MB / 0.6838 GB, free: 123.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003089/1.737, allocations: 4.643 MB / 0.6884 GB, free: 119.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008889/1.746, allocations: 4.112 MB / 0.6924 GB, free: 119.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005935/1.746, allocations: 58.86 kB / 0.6924 GB, free: 119 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002451/1.749, allocations: 3.387 MB / 0.6957 GB, free: 117.1 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001323/1.75, allocations: 0.9504 MB / 0.6967 GB, free: 116.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007443/1.751, allocations: 143 kB / 0.6968 GB, free: 116.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004587/1.751, allocations: 0.6266 MB / 0.6974 GB, free: 116.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006889/1.758, allocations: 3.194 MB / 0.7005 GB, free: 116.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009531/1.768, allocations: 7.423 MB / 0.7078 GB, free: 110.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009485/1.777, allocations: 4.727 MB / 0.7124 GB, free: 108.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001416/1.778, allocations: 42.62 kB / 0.7124 GB, free: 108.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=961) (initialization): time 0.03455/1.812, allocations: 13.01 MB / 0.7251 GB, free: 104.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/1.812, allocations: 72.61 kB / 0.7252 GB, free: 104.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01765/1.83, allocations: 6.402 MB / 0.7315 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01365/1.844, allocations: 3.347 MB / 0.7347 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006684/1.85, allocations: 1.704 MB / 0.7364 GB, free: 101.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02163/1.872, allocations: 16.31 MB / 0.7523 GB, free: 86.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009271/1.881, allocations: 0.7747 MB / 0.7531 GB, free: 85.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001645/1.883, allocations: 445.7 kB / 0.7535 GB, free: 85.41 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.005862/1.889, allocations: 2.3 MB / 0.7558 GB, free: 83.38 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001032/1.89, allocations: 410.8 kB / 0.7561 GB, free: 82.98 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01879/1.909, allocations: 6.997 MB / 0.763 GB, free: 77.72 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01694/1.926, allocations: 6.343 MB / 0.7692 GB, free: 72.29 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.431e-05/1.926, allocations: 8 kB / 0.7692 GB, free: 72.28 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.566e-05/1.926, allocations: 7.969 kB / 0.7692 GB, free: 72.27 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03691/1.963, allocations: 14.97 MB / 0.7838 GB, free: 57.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.4e-05/1.963, allocations: 7.984 kB / 0.7838 GB, free: 57.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002524/1.966, allocations: 415.4 kB / 0.7842 GB, free: 56.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01279/1.978, allocations: 3.35 MB / 0.7875 GB, free: 53.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006803/1.979, allocations: 73.11 kB / 0.7875 GB, free: 53.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0229/2.002, allocations: 16.93 MB / 0.8041 GB, free: 35.62 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002841/2.005, allocations: 4.464 MB / 0.8084 GB, free: 30.75 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02282/2.028, allocations: 10.89 MB / 0.8191 GB, free: 19.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00142/2.029, allocations: 483.6 kB / 0.8195 GB, free: 19.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001265/2.031, allocations: 63.97 kB / 0.8196 GB, free: 19.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003876/2.034, allocations: 333.1 kB / 0.8199 GB, free: 18.71 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000827/2.035, allocations: 193.6 kB / 0.8201 GB, free: 18.53 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003006/2.036, allocations: 71.95 kB / 0.8202 GB, free: 18.46 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006658/2.042, allocations: 2.878 MB / 0.823 GB, free: 15.58 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.82e-07/2.042, allocations: 0 / 0.823 GB, free: 15.58 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008681/2.051, allocations: 1.501 MB / 0.8244 GB, free: 14.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.0008746/2.052, allocations: 220.7 kB / 0.8247 GB, free: 13.87 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01934/2.071, allocations: 9.25 MB / 0.8337 GB, free: 4.465 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.792e-06/2.071, allocations: 11.84 kB / 0.8337 GB, free: 4.457 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01054/2.082, allocations: 4.586 MB / 0.8382 GB, free: 15.69 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00387/2.086, allocations: 0.4942 MB / 0.8387 GB, free: 15.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3163/2.402, allocations: 15.62 MB / 0.8539 GB, free: 128.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007817/2.41, allocations: 3.738 MB / 0.8576 GB, free: 127.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001699/2.412, allocations: 351.9 kB / 0.8579 GB, free: 127.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.627e-06/2.412, allocations: 0 / 0.8579 GB, free: 127.7 MB / 490.7 MB Notification: Performance of Templates: time 0.6896/3.101, allocations: 277.8 MB / 1.129 GB, free: 82.41 MB / 0.4948 GB