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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.94/1.94, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.947e-05/1.951e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3033, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1356/0.439, allocations: 88.11 MB / 408.1 MB, free: 8.328 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.4393, allocations: 75.89 kB / 408.2 MB, free: 8.254 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5988/1.038, allocations: 94.02 MB / 0.4904 GB, free: 69.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.071e-06/1.038, allocations: 0 / 0.4904 GB, free: 69.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003634/1.039, allocations: 91.05 kB / 0.4905 GB, free: 69.49 MB / 378.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.03464/1.073, allocations: 5.821 MB / 0.4962 GB, free: 63.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/1.073, allocations: 8.031 kB / 0.4962 GB, free: 63.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01901/1.092, allocations: 2.88 MB / 0.499 GB, free: 60.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01944/1.112, allocations: 7.166 MB / 0.506 GB, free: 53.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000284/1.112, allocations: 148 kB / 0.5062 GB, free: 53.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001869/1.114, allocations: 287.9 kB / 0.5064 GB, free: 53.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01459/1.129, allocations: 7.089 MB / 0.5134 GB, free: 46.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02039/1.149, allocations: 10.64 MB / 0.5238 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002159/1.149, allocations: 75.25 kB / 0.5238 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000899/1.15, allocations: 40 kB / 0.5239 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001871/1.152, allocations: 1.198 MB / 0.525 GB, free: 32.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07476/1.227, allocations: 56.13 MB / 0.5799 GB, free: 7.086 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006923/1.234, allocations: 3.47 MB / 0.5832 GB, free: 3.449 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004682/1.239, allocations: 2.228 MB / 0.5854 GB, free: 1.207 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001234/1.24, allocations: 0.6753 MB / 0.5861 GB, free: 428 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.953e-05/1.24, allocations: 59.81 kB / 0.5861 GB, free: 360 kB / 410.7 MB Notification: Performance of pre-optimization done (n=205): time 6.706e-06/1.24, allocations: 0 / 0.5861 GB, free: 360 kB / 410.7 MB Notification: Performance of matching and sorting (n=238): time 0.3036/1.544, allocations: 20 MB / 0.6057 GB, free: 111.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.127e-05/1.544, allocations: 261.2 kB / 0.6059 GB, free: 111.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007502/1.551, allocations: 3.453 MB / 0.6093 GB, free: 110.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005989/1.552, allocations: 29.3 kB / 0.6093 GB, free: 110.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00243/1.554, allocations: 3.476 MB / 0.6127 GB, free: 109.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001342/1.556, allocations: 0.9268 MB / 0.6136 GB, free: 109 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007316/1.556, allocations: 3.938 kB / 0.6136 GB, free: 109 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005101/1.557, allocations: 0.6274 MB / 0.6142 GB, free: 108.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005903/1.563, allocations: 2.922 MB / 0.6171 GB, free: 108.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008399/1.571, allocations: 7.261 MB / 0.6242 GB, free: 103 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008555/1.58, allocations: 4.52 MB / 0.6286 GB, free: 103 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001675/1.58, allocations: 43.28 kB / 0.6286 GB, free: 103 MB / 426.7 MB Notification: Performance of matching and sorting (n=985) (initialization): time 0.03036/1.61, allocations: 11.57 MB / 0.6399 GB, free: 100.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/1.611, allocations: 72.19 kB / 0.64 GB, free: 100.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01563/1.626, allocations: 5.945 MB / 0.6458 GB, free: 98.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01289/1.639, allocations: 3.036 MB / 0.6488 GB, free: 98.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007868/1.647, allocations: 1.791 MB / 0.6505 GB, free: 97.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0182/1.665, allocations: 14.08 MB / 0.6643 GB, free: 88.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01075/1.676, allocations: 0.6345 MB / 0.6649 GB, free: 87.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001791/1.678, allocations: 461.9 kB / 0.6653 GB, free: 87.21 MB / 426.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 (915): * Single equations (assignments): 895 * 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.002314/1.68, allocations: 0.4982 MB / 0.6658 GB, free: 86.71 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000981/1.681, allocations: 379.1 kB / 0.6662 GB, free: 86.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01762/1.699, allocations: 6.696 MB / 0.6727 GB, free: 81.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01577/1.715, allocations: 6.077 MB / 0.6787 GB, free: 76.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.875e-05/1.715, allocations: 11.94 kB / 0.6787 GB, free: 76.79 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.769e-05/1.715, allocations: 14.59 kB / 0.6787 GB, free: 76.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03398/1.749, allocations: 14.35 MB / 0.6927 GB, free: 64.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.74e-05/1.749, allocations: 0 / 0.6927 GB, free: 64.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002445/1.751, allocations: 415.4 kB / 0.6931 GB, free: 63.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01232/1.764, allocations: 3.283 MB / 0.6963 GB, free: 60.37 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006528/1.764, allocations: 43.94 kB / 0.6963 GB, free: 60.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02086/1.785, allocations: 16.01 MB / 0.712 GB, free: 43.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002541/1.788, allocations: 4.244 MB / 0.7161 GB, free: 39.05 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02204/1.81, allocations: 10.41 MB / 0.7263 GB, free: 28.49 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/1.811, allocations: 448 kB / 0.7267 GB, free: 28.03 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/1.812, allocations: 27.97 kB / 0.7267 GB, free: 28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003722/1.816, allocations: 295.5 kB / 0.727 GB, free: 27.71 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009473/1.817, allocations: 189.5 kB / 0.7272 GB, free: 27.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003081/1.817, allocations: 71.95 kB / 0.7273 GB, free: 27.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004521/1.822, allocations: 2.288 MB / 0.7295 GB, free: 25.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.035e-06/1.822, allocations: 4 kB / 0.7295 GB, free: 25.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008961/1.831, allocations: 1.357 MB / 0.7308 GB, free: 23.8 MB / 426.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.0008117/1.832, allocations: 178.8 kB / 0.731 GB, free: 23.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01725/1.849, allocations: 8.354 MB / 0.7392 GB, free: 15.17 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.437e-06/1.849, allocations: 0 / 0.7392 GB, free: 15.17 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009774/1.859, allocations: 4.462 MB / 0.7435 GB, free: 10.54 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003056/1.862, allocations: 403.6 kB / 0.7439 GB, free: 10.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02527/1.887, allocations: 11.59 MB / 0.7552 GB, free: 14.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009169/1.896, allocations: 3.716 MB / 0.7588 GB, free: 10.87 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001768/1.898, allocations: 343.3 kB / 0.7592 GB, free: 10.54 MB / 442.7 MB Notification: Performance of SimCode: time 2.228e-06/1.898, allocations: 0 / 0.7592 GB, free: 10.54 MB / 442.7 MB Notification: Performance of Templates: time 0.8584/2.757, allocations: 273.8 MB / 1.027 GB, free: 62.86 MB / 458.7 MB