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.Parts.FreeBodies2.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.Parts.FreeBodies2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.r_0.1.|body.r_0.2.|body.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.|bodyBox.body.Q.1.|bodyBox.body.Q.2.|bodyBox.body.Q.3.|bodyBox.body.Q.4.|bodyBox.body.w_a.1.|bodyBox.body.w_a.2.|bodyBox.body.w_a.3.|bodyBox.r_0.1.|bodyBox.r_0.2.|bodyBox.r_0.3.|bodyBox.v_0.1.|bodyBox.v_0.2.|bodyBox.v_0.3.|bodyCylinder.body.Q.1.|bodyCylinder.body.Q.2.|bodyCylinder.body.Q.3.|bodyCylinder.body.Q.4.|bodyCylinder.body.w_a.1.|bodyCylinder.body.w_a.2.|bodyCylinder.body.w_a.3.|bodyCylinder.r_0.1.|bodyCylinder.r_0.2.|bodyCylinder.r_0.3.|bodyCylinder.v_0.1.|bodyCylinder.v_0.2.|bodyCylinder.v_0.3.|bodyShape.body.Q.1.|bodyShape.body.Q.2.|bodyShape.body.Q.3.|bodyShape.body.Q.4.|bodyShape.body.w_a.1.|bodyShape.body.w_a.2.|bodyShape.body.w_a.3.|bodyShape.r_0.1.|bodyShape.r_0.2.|bodyShape.r_0.3.|bodyShape.v_0.1.|bodyShape.v_0.2.|bodyShape.v_0.3.|pointMass.r_0.1.|pointMass.r_0.2.|pointMass.r_0.3.|pointMass.v_0.1.|pointMass.v_0.2.|pointMass.v_0.3.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2") Notification: Performance of loadModel(ModelicaTest): time 1.93/1.93, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.79e-05/2.816e-05, allocations: 4 kB / 277.8 MB, free: 15.29 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08693/0.08698, allocations: 48.7 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4398/0.5268, allocations: 92.58 MB / 419.1 MB, free: 15.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.5271, allocations: 74.2 kB / 419.2 MB, free: 15.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7818/1.309, allocations: 142.4 MB / 0.5484 GB, free: 71.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.323e-06/1.309, allocations: 0 / 0.5484 GB, free: 71.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005073/1.31, allocations: 152.8 kB / 0.5486 GB, free: 71.18 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: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.04501/1.355, allocations: 8.679 MB / 0.5571 GB, free: 68.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/1.355, allocations: 8.906 kB / 0.5571 GB, free: 68.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04256/1.397, allocations: 7.693 MB / 0.5646 GB, free: 67.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03241/1.43, allocations: 10.94 MB / 0.5753 GB, free: 66.94 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006321/1.43, allocations: 0.5544 MB / 0.5758 GB, free: 66.92 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003108/1.433, allocations: 0.7663 MB / 0.5765 GB, free: 66.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04545/1.479, allocations: 17.45 MB / 0.5936 GB, free: 62.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005297/1.48, allocations: 105.9 kB / 0.5937 GB, free: 62.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002997/1.483, allocations: 354 kB / 0.594 GB, free: 62.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003291/1.486, allocations: 1.608 MB / 0.5956 GB, free: 62.56 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03808/1.524, allocations: 14.03 MB / 0.6093 GB, free: 58.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1038/1.628, allocations: 79 MB / 0.6864 GB, free: 1.855 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2888/1.917, allocations: 6.901 MB / 0.6932 GB, free: 80.18 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006305/1.923, allocations: 3.208 MB / 0.6963 GB, free: 80.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03134/1.955, allocations: 14.68 MB / 0.7106 GB, free: 77.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.243e-05/1.955, allocations: 63.8 kB / 0.7107 GB, free: 77.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=259): time 7.349e-06/1.955, allocations: 0 / 0.7107 GB, free: 77.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=287): time 0.08481/2.039, allocations: 22.99 MB / 0.7332 GB, free: 72.78 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004369/2.044, allocations: 6.248 MB / 0.7393 GB, free: 66.99 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01348/2.057, allocations: 5.76 MB / 0.7449 GB, free: 66.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007011/2.058, allocations: 69.25 kB / 0.745 GB, free: 66.42 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003883/2.062, allocations: 5.064 MB / 0.7499 GB, free: 63.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001759/2.064, allocations: 1.178 MB / 0.751 GB, free: 62.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001233/2.065, allocations: 189.1 kB / 0.7512 GB, free: 62.12 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009351/2.066, allocations: 0.7272 MB / 0.7519 GB, free: 61.63 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007966/2.074, allocations: 3.793 MB / 0.7556 GB, free: 60.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01125/2.085, allocations: 9.586 MB / 0.765 GB, free: 51.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01153/2.097, allocations: 5.896 MB / 0.7708 GB, free: 49.55 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001859/2.097, allocations: 58.25 kB / 0.7708 GB, free: 49.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.03702/2.134, allocations: 14.93 MB / 0.7854 GB, free: 44.83 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00016/2.134, allocations: 91.06 kB / 0.7855 GB, free: 44.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01702/2.151, allocations: 6.722 MB / 0.792 GB, free: 42.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01084/2.162, allocations: 2.83 MB / 0.7948 GB, free: 40.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009825/2.172, allocations: 2.354 MB / 0.7971 GB, free: 38.28 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0112/2.183, allocations: 11.27 MB / 0.8081 GB, free: 27.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01194/2.195, allocations: 0.8678 MB / 0.809 GB, free: 26.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002203/2.198, allocations: 0.5855 MB / 0.8095 GB, free: 25.93 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 933 * Number of states: 0 () * Number of discrete variables: 75 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.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 (1204): * Single equations (assignments): 1179 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 11 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,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: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.003425/2.201, allocations: 0.8635 MB / 0.8104 GB, free: 25.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001638/2.203, allocations: 0.5823 MB / 0.8109 GB, free: 24.48 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0205/2.223, allocations: 7.538 MB / 0.8183 GB, free: 18.57 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01754/2.241, allocations: 6.693 MB / 0.8248 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.481e-05/2.241, allocations: 4 kB / 0.8248 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.052e-05/2.241, allocations: 20.36 kB / 0.8249 GB, free: 13.24 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01892/2.26, allocations: 7.428 MB / 0.8321 GB, free: 7.574 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.638e-05/2.26, allocations: 0 / 0.8321 GB, free: 7.574 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004272/2.264, allocations: 0.5999 MB / 0.8327 GB, free: 7.121 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01212/2.276, allocations: 3.133 MB / 0.8358 GB, free: 4.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008192/2.277, allocations: 95.58 kB / 0.8359 GB, free: 4.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02051/2.298, allocations: 14.03 MB / 0.8496 GB, free: 7.047 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2812/2.579, allocations: 6.013 MB / 0.8554 GB, free: 77.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02773/2.607, allocations: 11.64 MB / 0.8668 GB, free: 76.95 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003849/2.611, allocations: 1.126 MB / 0.8679 GB, free: 76.86 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001737/2.613, allocations: 79.41 kB / 0.868 GB, free: 76.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005244/2.618, allocations: 376.2 kB / 0.8683 GB, free: 76.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001064/2.619, allocations: 218.2 kB / 0.8685 GB, free: 76.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004367/2.619, allocations: 91.17 kB / 0.8686 GB, free: 76.86 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01049/2.63, allocations: 4.006 MB / 0.8725 GB, free: 76.61 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.063e-06/2.63, allocations: 3.844 kB / 0.8725 GB, free: 76.61 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01201/2.642, allocations: 2.004 MB / 0.8745 GB, free: 76.61 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$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],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.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],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 216 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.001017/2.643, allocations: 237.3 kB / 0.8747 GB, free: 76.53 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02247/2.666, allocations: 10.73 MB / 0.8852 GB, free: 75.32 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.057e-06/2.666, allocations: 1.203 kB / 0.8852 GB, free: 75.32 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01267/2.678, allocations: 5.311 MB / 0.8904 GB, free: 73.78 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005891/2.684, allocations: 0.8309 MB / 0.8912 GB, free: 73.74 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03899/2.723, allocations: 17.27 MB / 0.9081 GB, free: 69.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01182/2.735, allocations: 5.406 MB / 0.9134 GB, free: 68.51 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002347/2.737, allocations: 488.8 kB / 0.9138 GB, free: 68.51 MB / 458.7 MB Notification: Performance of SimCode: time 2.473e-06/2.738, allocations: 0 / 0.9138 GB, free: 68.51 MB / 458.7 MB Notification: Performance of Templates: time 1.602/4.339, allocations: 0.5004 GB / 1.414 GB, free: 113.5 MB / 490.7 MB