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.266/2.266, allocations: 234.9 MB / 250.5 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004458/0.0004461, allocations: 12 kB / 314.3 MB, free: 9.648 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2951, allocations: 54.85 MB / 369.2 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.InitializationConversion.Bodies): time 0.05603/0.3511, allocations: 41.65 MB / 410.8 MB, free: 3.016 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02686/0.3781, allocations: 10.25 MB / 421.1 MB, free: 8.738 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007855/0.386, allocations: 211.4 kB / 421.3 MB, free: 8.531 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006554/0.3925, allocations: 2.088 MB / 423.4 MB, free: 6.434 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02109/0.4137, allocations: 6.222 MB / 429.6 MB, free: 200 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003299/0.417, allocations: 0.7801 MB / 430.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03852/0.4556, allocations: 18.19 MB / 448.6 MB, free: 13.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00668/0.4623, allocations: 3.521 MB / 452.1 MB, free: 9.609 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00303/0.4654, allocations: 1.39 MB / 453.5 MB, free: 8.215 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003757/0.4692, allocations: 1.913 MB / 455.4 MB, free: 6.297 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008658/0.4701, allocations: 160 kB / 455.5 MB, free: 6.141 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003315/0.4734, allocations: 1.252 MB / 456.8 MB, free: 4.887 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003204/0.4767, allocations: 2.022 MB / 458.8 MB, free: 2.859 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001667/0.4784, allocations: 0.9518 MB / 459.8 MB, free: 1.898 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.4886, allocations: 6.48 MB / 466.2 MB, free: 11.4 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.4886, allocations: 0 / 466.2 MB, free: 11.4 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.124e-06/0.4886, allocations: 0 / 466.2 MB, free: 11.4 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000186/0.4888, allocations: 0 / 466.2 MB, free: 11.4 MB / 394.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.01686/0.5057, allocations: 5.439 MB / 471.7 MB, free: 5.887 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.5058, allocations: 8.031 kB / 471.7 MB, free: 5.879 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1214/0.6272, allocations: 11.72 MB / 483.4 MB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01481/0.6421, allocations: 5.905 MB / 489.3 MB, free: 4.156 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003311/0.6424, allocations: 225.8 kB / 489.5 MB, free: 3.934 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002862/0.6453, allocations: 0.6591 MB / 490.2 MB, free: 3.273 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02471/0.6701, allocations: 10.61 MB / 0.4891 GB, free: 7.879 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002439/0.6704, allocations: 71.42 kB / 0.4891 GB, free: 7.809 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000896/0.6713, allocations: 147.8 kB / 0.4893 GB, free: 7.664 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004132/0.6754, allocations: 1.928 MB / 0.4911 GB, free: 5.738 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2825/0.9579, allocations: 9.656 MB / 0.5006 GB, free: 118.7 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.05714/1.015, allocations: 44.28 MB / 0.5438 GB, free: 80.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01019/1.025, allocations: 4.039 MB / 0.5478 GB, free: 76.67 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001927/1.026, allocations: 27.7 kB / 0.5478 GB, free: 76.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/1.026, allocations: 60.7 kB / 0.5478 GB, free: 76.58 MB / 426.7 MB Notification: Performance of pre-optimization done (n=190): time 6.099e-06/1.026, allocations: 2 kB / 0.5478 GB, free: 76.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.06038/1.086, allocations: 23.42 MB / 0.5707 GB, free: 52.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003949/1.09, allocations: 6.233 MB / 0.5768 GB, free: 45.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009741/1.1, allocations: 6.088 MB / 0.5827 GB, free: 39.63 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004975/1.1, allocations: 57.7 kB / 0.5828 GB, free: 39.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002378/1.103, allocations: 3.29 MB / 0.586 GB, free: 36.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001288/1.104, allocations: 0.9115 MB / 0.5869 GB, free: 35.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006461/1.105, allocations: 150.8 kB / 0.587 GB, free: 35.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003965/1.105, allocations: 0.6204 MB / 0.5877 GB, free: 34.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006051/1.111, allocations: 3.278 MB / 0.5909 GB, free: 31.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00819/1.119, allocations: 7.55 MB / 0.5982 GB, free: 21.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008082/1.128, allocations: 4.816 MB / 0.6029 GB, free: 16.86 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001275/1.128, allocations: 44 kB / 0.603 GB, free: 16.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.05611/1.184, allocations: 16.9 MB / 0.6195 GB, free: 15.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001457/1.184, allocations: 68 kB / 0.6195 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04551/1.23, allocations: 10.37 MB / 0.6297 GB, free: 5.367 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04773/1.277, allocations: 7.979 MB / 0.6375 GB, free: 13.33 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007148/1.285, allocations: 1.704 MB / 0.6391 GB, free: 11.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04347/1.328, allocations: 21.35 MB / 0.66 GB, free: 5.477 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00904/1.337, allocations: 0.7681 MB / 0.6607 GB, free: 4.707 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001533/1.339, allocations: 451.5 kB / 0.6612 GB, free: 4.27 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 683 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (863): * Single equations (assignments): 838 * 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.005934/1.345, allocations: 2.336 MB / 0.6634 GB, free: 1.922 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001362/1.346, allocations: 450.2 kB / 0.6639 GB, free: 1.477 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001852/1.348, allocations: 0.6219 MB / 0.6645 GB, free: 0.8516 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02069/1.369, allocations: 6.228 MB / 0.6706 GB, free: 10.57 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.192e-05/1.369, allocations: 11.95 kB / 0.6706 GB, free: 10.56 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.113e-05/1.369, allocations: 7.969 kB / 0.6706 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2944/1.663, allocations: 10.65 MB / 0.681 GB, free: 162.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.683e-05/1.663, allocations: 3.344 kB / 0.681 GB, free: 162.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003249/1.667, allocations: 493.9 kB / 0.6815 GB, free: 162.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0172/1.684, allocations: 3.679 MB / 0.685 GB, free: 162.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00058/1.684, allocations: 94.28 kB / 0.6851 GB, free: 162.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0169/1.701, allocations: 13.9 MB / 0.6987 GB, free: 154 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003834/1.705, allocations: 5.924 MB / 0.7045 GB, free: 148.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02537/1.731, allocations: 10.61 MB / 0.7149 GB, free: 144.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/1.732, allocations: 0.5708 MB / 0.7154 GB, free: 144.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/1.733, allocations: 71.23 kB / 0.7155 GB, free: 144.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003985/1.737, allocations: 340.4 kB / 0.7158 GB, free: 144.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000608/1.738, allocations: 197.8 kB / 0.716 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002663/1.738, allocations: 70.55 kB / 0.7161 GB, free: 144.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0104/1.749, allocations: 4.012 MB / 0.72 GB, free: 142.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.383e-06/1.749, allocations: 0 / 0.72 GB, free: 142.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009057/1.758, allocations: 1.753 MB / 0.7217 GB, free: 141.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 141 * 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 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,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.0009097/1.759, allocations: 284.4 kB / 0.722 GB, free: 140.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01965/1.778, allocations: 9.58 MB / 0.7313 GB, free: 131.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.987e-06/1.778, allocations: 0 / 0.7313 GB, free: 131.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009572/1.788, allocations: 4.765 MB / 0.736 GB, free: 126.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004155/1.792, allocations: 0.6444 MB / 0.7366 GB, free: 126 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03555/1.828, allocations: 17.05 MB / 0.7532 GB, free: 109.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01303/1.841, allocations: 3.802 MB / 0.757 GB, free: 105.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003913/1.845, allocations: 387.3 kB / 0.7573 GB, free: 104.9 MB / 490.7 MB Notification: Performance of SimCode: time 2.724e-06/1.845, allocations: 0 / 0.7573 GB, free: 104.9 MB / 490.7 MB Notification: Performance of Templates: time 0.9707/2.815, allocations: 342 MB / 1.091 GB, free: 139.9 MB / 0.4948 GB