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.InitializationConversion.Bodies.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.InitializationConversion.Bodies,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.body.Q.1.|body1.body.Q.2.|body1.body.Q.3.|body1.body.Q.4.|body1.body.frame_a.r_0.1.|body1.body.frame_a.r_0.2.|body1.body.frame_a.r_0.3.|body1.body.w_a.1.|body1.body.w_a.2.|body1.body.w_a.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.body.Q.1.|body2.body.Q.2.|body2.body.Q.3.|body2.body.Q.4.|body2.body.frame_a.r_0.1.|body2.body.frame_a.r_0.2.|body2.body.frame_a.r_0.3.|body2.body.w_a.1.|body2.body.w_a.2.|body2.body.w_a.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.body.Q.1.|body3.body.Q.2.|body3.body.Q.3.|body3.body.Q.4.|body3.body.frame_a.r_0.1.|body3.body.frame_a.r_0.2.|body3.body.frame_a.r_0.3.|body3.body.w_a.1.|body3.body.w_a.2.|body3.body.w_a.3.|body3.v_0.1.|body3.v_0.2.|body3.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.2_cpp_ModelicaTest.MultiBody.InitializationConversion.Bodies") Notification: Performance of loadModel(ModelicaTest): time 2.207/2.207, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.84e-05/2.861e-05, allocations: 4 kB / 309.7 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3268, allocations: 54.85 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1448/0.4716, allocations: 95.29 MB / 459.8 MB, free: 1.156 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.4719, allocations: 72.56 kB / 459.9 MB, free: 1.086 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6906/1.162, allocations: 102.4 MB / 0.5491 GB, free: 105.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.92e-06/1.163, allocations: 1.453 kB / 0.5491 GB, free: 105.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000353/1.163, allocations: 88.28 kB / 0.5492 GB, free: 105.9 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: 1495 * Number of variables: 1495 Notification: Performance of Generate backend data structure: time 0.03628/1.199, allocations: 6.381 MB / 0.5554 GB, free: 103.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/1.199, allocations: 6.875 kB / 0.5554 GB, free: 103.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0406/1.24, allocations: 7.363 MB / 0.5626 GB, free: 103.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05482/1.295, allocations: 18.23 MB / 0.5804 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003819/1.295, allocations: 311.2 kB / 0.5807 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001955/1.297, allocations: 438.4 kB / 0.5812 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0228/1.32, allocations: 10.49 MB / 0.5914 GB, free: 96.51 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002843/1.32, allocations: 88.48 kB / 0.5915 GB, free: 96.49 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001305/1.322, allocations: 206.2 kB / 0.5917 GB, free: 96.38 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001924/1.324, allocations: 1.063 MB / 0.5927 GB, free: 96.18 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01924/1.343, allocations: 9.063 MB / 0.6016 GB, free: 88.51 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06013/1.403, allocations: 51.22 MB / 0.6516 GB, free: 35.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01196/1.415, allocations: 3.822 MB / 0.6553 GB, free: 31.93 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003197/1.418, allocations: 1.952 MB / 0.6572 GB, free: 29.96 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001455/1.418, allocations: 23.97 kB / 0.6573 GB, free: 29.94 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/1.418, allocations: 62.67 kB / 0.6573 GB, free: 29.87 MB / 458.7 MB Notification: Performance of pre-optimization done (n=188): time 7.263e-06/1.418, allocations: 0 / 0.6573 GB, free: 29.87 MB / 458.7 MB Notification: Performance of matching and sorting (n=216): time 0.05349/1.472, allocations: 19.23 MB / 0.6761 GB, free: 10.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003835/1.476, allocations: 6.18 MB / 0.6821 GB, free: 3.484 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009639/1.486, allocations: 4.445 MB / 0.6865 GB, free: 15.05 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005765/1.486, allocations: 60.91 kB / 0.6865 GB, free: 14.98 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003813/1.49, allocations: 3.351 MB / 0.6898 GB, free: 11.64 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001641/1.492, allocations: 0.9065 MB / 0.6907 GB, free: 10.74 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008795/1.493, allocations: 136 kB / 0.6908 GB, free: 10.61 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007862/1.493, allocations: 0.6205 MB / 0.6914 GB, free: 9.98 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007022/1.5, allocations: 3.005 MB / 0.6944 GB, free: 6.973 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01152/1.512, allocations: 7.316 MB / 0.7015 GB, free: 13.52 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009786/1.522, allocations: 4.595 MB / 0.706 GB, free: 8.926 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001363/1.522, allocations: 44 kB / 0.706 GB, free: 8.883 MB / 490.7 MB Notification: Performance of matching and sorting (n=946) (initialization): time 0.3367/1.859, allocations: 15.38 MB / 0.721 GB, free: 113.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000171/1.859, allocations: 70.09 kB / 0.7211 GB, free: 113.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03916/1.898, allocations: 8.917 MB / 0.7298 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04306/1.941, allocations: 6.727 MB / 0.7364 GB, free: 112.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006948/1.948, allocations: 1.688 MB / 0.738 GB, free: 112.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02601/1.974, allocations: 15.69 MB / 0.7534 GB, free: 105.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00986/1.984, allocations: 0.7886 MB / 0.7541 GB, free: 105.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001596/1.986, allocations: 454.5 kB / 0.7546 GB, free: 105.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 694 * Number of states: 0 () * Number of discrete variables: 36 (body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],body1.frameTranslation.color[3],body1.frameTranslation.color[2],body1.frameTranslation.color[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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 (870): * Single equations (assignments): 845 * Array equations: 11 * 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%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,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 prepare postOptimizeDAE: time 0.002035/1.988, allocations: 0.651 MB / 0.7552 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001169/1.989, allocations: 450.5 kB / 0.7556 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001825/1.991, allocations: 0.6173 MB / 0.7562 GB, free: 105 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01901/2.01, allocations: 5.976 MB / 0.7621 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.596e-05/2.01, allocations: 10.69 kB / 0.7621 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-05/2.01, allocations: 10.41 kB / 0.7621 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02587/2.036, allocations: 10.43 MB / 0.7723 GB, free: 101.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.531e-05/2.036, allocations: 4.469 kB / 0.7723 GB, free: 101.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002793/2.039, allocations: 442.3 kB / 0.7727 GB, free: 101.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0164/2.055, allocations: 3.594 MB / 0.7762 GB, free: 100.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006537/2.056, allocations: 90.05 kB / 0.7763 GB, free: 100.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01632/2.072, allocations: 13.61 MB / 0.7896 GB, free: 91.48 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003754/2.076, allocations: 5.861 MB / 0.7953 GB, free: 85.77 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02531/2.101, allocations: 10.65 MB / 0.8057 GB, free: 81.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001649/2.103, allocations: 0.5399 MB / 0.8062 GB, free: 81.17 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001466/2.105, allocations: 71.69 kB / 0.8063 GB, free: 81.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004652/2.109, allocations: 350.4 kB / 0.8066 GB, free: 80.96 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008902/2.11, allocations: 181.6 kB / 0.8068 GB, free: 80.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003085/2.111, allocations: 70.67 kB / 0.8069 GB, free: 80.83 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00702/2.118, allocations: 3.145 MB / 0.81 GB, free: 78.73 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.092e-06/2.118, allocations: 0 / 0.81 GB, free: 78.73 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009217/2.127, allocations: 1.629 MB / 0.8115 GB, free: 77.12 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.body.frame_a.r_0[1],body3.body.frame_a.r_0[2],body3.body.frame_a.r_0[3],body3.body.w_a[1],body3.body.w_a[2],body3.body.w_a[3],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.body.frame_a.r_0[1],body2.body.frame_a.r_0[2],body2.body.frame_a.r_0[3],body2.body.w_a[1],body2.body.w_a[2],body2.body.w_a[3],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.body.frame_a.r_0[1],body1.body.frame_a.r_0[2],body1.body.frame_a.r_0[3],body1.body.w_a[1],body1.body.w_a[2],body1.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],$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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 139 * 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.0008115/2.128, allocations: 217.8 kB / 0.8118 GB, free: 76.93 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01765/2.145, allocations: 9.146 MB / 0.8207 GB, free: 67.92 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.916e-06/2.145, allocations: 1.031 kB / 0.8207 GB, free: 67.92 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009219/2.155, allocations: 4.645 MB / 0.8252 GB, free: 63.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004404/2.159, allocations: 0.6277 MB / 0.8258 GB, free: 62.45 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0228/2.182, allocations: 12.83 MB / 0.8384 GB, free: 49.99 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005061/2.187, allocations: 3.787 MB / 0.8421 GB, free: 46.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001558/2.189, allocations: 375.3 kB / 0.8424 GB, free: 45.84 MB / 490.7 MB Notification: Performance of SimCode: time 1.785e-06/2.189, allocations: 0 / 0.8424 GB, free: 45.84 MB / 490.7 MB Notification: Performance of Templates: time 1.049/3.237, allocations: 337.9 MB / 1.172 GB, free: 121.3 MB / 0.5261 GB