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.908/1.908, allocations: 209.3 MB / 224.8 MB, free: 1.207 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004407/0.000441, allocations: 12 kB / 282.5 MB, free: 9.773 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08858/0.08905, allocations: 48.72 MB / 331.2 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring2): time 0.2674/0.3565, allocations: 41.49 MB / 372.7 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02798/0.3846, allocations: 10.06 MB / 382.7 MB, free: 15.99 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01068/0.3953, allocations: 203.8 kB / 382.9 MB, free: 15.96 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007029/0.4024, allocations: 2.084 MB / 385 MB, free: 14.44 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02237/0.4248, allocations: 6.018 MB / 391 MB, free: 9.039 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003763/0.4286, allocations: 0.7956 MB / 391.8 MB, free: 8.242 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006917/0.4355, allocations: 3.077 MB / 394.9 MB, free: 5.164 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008925/0.4445, allocations: 4.642 MB / 399.6 MB, free: 472 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002825/0.4474, allocations: 1.242 MB / 400.8 MB, free: 15.21 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003585/0.451, allocations: 1.756 MB / 402.6 MB, free: 13.45 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001053/0.4521, allocations: 171.9 kB / 402.7 MB, free: 13.28 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002841/0.455, allocations: 0.8893 MB / 403.6 MB, free: 12.39 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002895/0.4579, allocations: 1.835 MB / 405.5 MB, free: 10.55 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001516/0.4594, allocations: 0.9362 MB / 406.4 MB, free: 9.609 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009683/0.4691, allocations: 5.982 MB / 412.4 MB, free: 3.613 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.527e-06/0.4692, allocations: 0 / 412.4 MB, free: 3.613 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.077e-06/0.4692, allocations: 0 / 412.4 MB, free: 3.613 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000188/0.4694, allocations: 0 / 412.4 MB, free: 3.613 MB / 330.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.01324/0.4826, allocations: 4.88 MB / 417.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.4827, allocations: 12.03 kB / 417.3 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01357/0.4963, allocations: 2.595 MB / 419.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008242/0.5046, allocations: 3.434 MB / 423.3 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004313/0.5051, allocations: 278.8 kB / 423.6 MB, free: 8.281 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002576/0.5077, allocations: 0.5851 MB / 424.1 MB, free: 7.695 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02945/0.5371, allocations: 11.88 MB / 436 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001999/0.5374, allocations: 55.53 kB / 436.1 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008756/0.5383, allocations: 179.8 kB / 436.3 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004463/0.5428, allocations: 2.088 MB / 438.3 MB, free: 8.684 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02896/0.5718, allocations: 10.56 MB / 448.9 MB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08151/0.6533, allocations: 46.92 MB / 495.8 MB, free: 13.95 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01864/0.672, allocations: 5.079 MB / 0.4892 GB, free: 8.707 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2505/0.9226, allocations: 11.16 MB / 0.5001 GB, free: 138.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.178e-05/0.9227, allocations: 58.3 kB / 0.5001 GB, free: 138.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=198): time 7.377e-06/0.9227, allocations: 4.562 kB / 0.5001 GB, free: 138.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=237): time 0.08138/1.004, allocations: 24.69 MB / 0.5242 GB, free: 130.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00315/1.007, allocations: 4.605 MB / 0.5287 GB, free: 126 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00898/1.016, allocations: 4.869 MB / 0.5335 GB, free: 124.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005786/1.017, allocations: 62.34 kB / 0.5335 GB, free: 124.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002356/1.019, allocations: 3.396 MB / 0.5369 GB, free: 121.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001395/1.021, allocations: 0.9492 MB / 0.5378 GB, free: 120.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007384/1.022, allocations: 144.7 kB / 0.5379 GB, free: 120.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004848/1.022, allocations: 0.6237 MB / 0.5385 GB, free: 119.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006522/1.029, allocations: 3.189 MB / 0.5417 GB, free: 117.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00854/1.037, allocations: 7.478 MB / 0.549 GB, free: 108.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008497/1.046, allocations: 4.718 MB / 0.5536 GB, free: 103.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001172/1.046, allocations: 40 kB / 0.5536 GB, free: 103.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=967) (initialization): time 0.03157/1.077, allocations: 13.13 MB / 0.5664 GB, free: 90.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/1.078, allocations: 72.97 kB / 0.5665 GB, free: 90.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01688/1.095, allocations: 6.612 MB / 0.573 GB, free: 83.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01321/1.108, allocations: 3.696 MB / 0.5766 GB, free: 79.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006509/1.114, allocations: 1.661 MB / 0.5782 GB, free: 78.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0225/1.137, allocations: 16.71 MB / 0.5945 GB, free: 60.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008185/1.145, allocations: 0.6501 MB / 0.5951 GB, free: 59.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001375/1.147, allocations: 452.9 kB / 0.5956 GB, free: 59.54 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 685 * 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 (888): * Single equations (assignments): 868 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 6 * 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: 0 * 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: 3 {3 1,3 1,3 1} Notification: Performance of prepare postOptimizeDAE: time 0.004939/1.151, allocations: 2.3 MB / 0.5978 GB, free: 57.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009714/1.152, allocations: 414.7 kB / 0.5982 GB, free: 56.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01803/1.171, allocations: 7.009 MB / 0.6051 GB, free: 49.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01655/1.187, allocations: 6.36 MB / 0.6113 GB, free: 43.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-05/1.187, allocations: 11.95 kB / 0.6113 GB, free: 43.35 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.376e-05/1.187, allocations: 11.95 kB / 0.6113 GB, free: 43.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03465/1.222, allocations: 14.99 MB / 0.6259 GB, free: 28.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.482e-05/1.222, allocations: 4 kB / 0.6259 GB, free: 28.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002524/1.225, allocations: 428.1 kB / 0.6263 GB, free: 27.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01235/1.237, allocations: 3.358 MB / 0.6296 GB, free: 24.41 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006279/1.238, allocations: 71.94 kB / 0.6297 GB, free: 24.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02372/1.261, allocations: 16.89 MB / 0.6462 GB, free: 6.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003038/1.264, allocations: 4.457 MB / 0.6505 GB, free: 1.773 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0267/1.291, allocations: 10.42 MB / 0.6607 GB, free: 7.246 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001565/1.293, allocations: 491.6 kB / 0.6612 GB, free: 6.738 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001375/1.294, allocations: 60.61 kB / 0.6612 GB, free: 6.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003995/1.298, allocations: 296.3 kB / 0.6615 GB, free: 6.391 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001013/1.299, allocations: 193.5 kB / 0.6617 GB, free: 6.199 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003531/1.3, allocations: 76.66 kB / 0.6618 GB, free: 6.125 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007543/1.307, allocations: 3.078 MB / 0.6648 GB, free: 3.047 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.869e-06/1.307, allocations: 4 kB / 0.6648 GB, free: 3.043 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00939/1.317, allocations: 1.517 MB / 0.6663 GB, free: 1.531 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 () * 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 {(4,100.0%),(3,100.0%),(4,100.0%),(3,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.001036/1.318, allocations: 223.1 kB / 0.6665 GB, free: 1.312 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.2572/1.575, allocations: 9.301 MB / 0.6756 GB, free: 144.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/1.575, allocations: 1.281 kB / 0.6756 GB, free: 144.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01216/1.587, allocations: 4.597 MB / 0.6801 GB, free: 142.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003722/1.591, allocations: 0.5094 MB / 0.6806 GB, free: 142.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02848/1.619, allocations: 15.71 MB / 0.6959 GB, free: 134 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007029/1.627, allocations: 3.731 MB / 0.6995 GB, free: 132.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00162/1.628, allocations: 359.9 kB / 0.6999 GB, free: 132.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.857e-06/1.628, allocations: 0 / 0.6999 GB, free: 132.6 MB / 442.7 MB Notification: Performance of Templates: time 0.634/2.262, allocations: 278.1 MB / 0.9715 GB, free: 14.05 MB / 442.7 MB