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.Joints.Revolute2.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.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadModel(ModelicaTest): time 1.902/1.902, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007456/0.0007458, allocations: 16 kB / 282.5 MB, free: 9.641 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3098, allocations: 48.7 MB / 331.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.07433/0.3842, allocations: 52.48 MB / 383.7 MB, free: 9.941 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03207/0.4163, allocations: 12.33 MB / 396 MB, free: 13.57 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01113/0.4275, allocations: 263.3 kB / 396.3 MB, free: 13.31 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008534/0.4361, allocations: 2.695 MB / 399 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02679/0.4629, allocations: 7.769 MB / 406.7 MB, free: 2.816 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004214/0.4672, allocations: 0.9128 MB / 407.6 MB, free: 1.902 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02423/0.4915, allocations: 11.38 MB / 419 MB, free: 6.512 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009446/0.5009, allocations: 4.999 MB / 424 MB, free: 1.449 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003418/0.5044, allocations: 1.592 MB / 425.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00426/0.5087, allocations: 2.294 MB / 427.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001039/0.5098, allocations: 220 kB / 428.1 MB, free: 13.34 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002973/0.5128, allocations: 1.018 MB / 429.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00373/0.5165, allocations: 2.408 MB / 431.5 MB, free: 9.902 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001875/0.5185, allocations: 1.205 MB / 432.7 MB, free: 8.688 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01168/0.5302, allocations: 7.818 MB / 440.6 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.022e-06/0.5302, allocations: 4 kB / 440.6 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.72e-06/0.5302, allocations: 0 / 440.6 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001873/0.5304, allocations: 0 / 440.6 MB, free: 0.8477 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2208 * Number of variables: 2208 Notification: Performance of Generate backend data structure: time 0.0182/0.5486, allocations: 6.589 MB / 447.2 MB, free: 10.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.5487, allocations: 12.03 kB / 447.2 MB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0413/0.59, allocations: 7.067 MB / 454.2 MB, free: 3.078 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01221/0.6023, allocations: 4.977 MB / 459.2 MB, free: 14.04 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003964/0.6027, allocations: 320.2 kB / 459.5 MB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001793/0.6045, allocations: 447.5 kB / 460 MB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2628/0.8674, allocations: 16.03 MB / 476 MB, free: 110.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002706/0.8677, allocations: 60.2 kB / 476 MB, free: 110.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001351/0.8691, allocations: 201.8 kB / 476.2 MB, free: 110.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006409/0.8755, allocations: 3.247 MB / 479.5 MB, free: 110.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03617/0.9117, allocations: 14.98 MB / 494.5 MB, free: 104.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08484/0.9966, allocations: 56.01 MB / 0.5376 GB, free: 51.25 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02192/1.019, allocations: 8.185 MB / 0.5456 GB, free: 42.83 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001979/1.021, allocations: 2.21 MB / 0.5477 GB, free: 40.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.709e-05/1.021, allocations: 73.06 kB / 0.5478 GB, free: 40.17 MB / 394.7 MB Notification: Performance of pre-optimization done (n=367): time 9.21e-06/1.021, allocations: 4 kB / 0.5478 GB, free: 40.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=419): time 0.1309/1.152, allocations: 40.78 MB / 0.5876 GB, free: 15.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/1.152, allocations: 120 kB / 0.5877 GB, free: 15.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009379/1.161, allocations: 4.805 MB / 0.5924 GB, free: 10.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000834/1.162, allocations: 85.7 kB / 0.5925 GB, free: 10.19 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003761/1.166, allocations: 3.762 MB / 0.5962 GB, free: 6.422 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002416/1.168, allocations: 1.493 MB / 0.5976 GB, free: 4.941 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007399/1.169, allocations: 148 kB / 0.5978 GB, free: 4.797 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000668/1.17, allocations: 0.6412 MB / 0.5984 GB, free: 4.148 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008735/1.179, allocations: 3.923 MB / 0.6022 GB, free: 228 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01274/1.191, allocations: 7.706 MB / 0.6098 GB, free: 6.707 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01166/1.203, allocations: 5.465 MB / 0.6151 GB, free: 1.227 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/1.203, allocations: 40 kB / 0.6151 GB, free: 1.188 MB / 426.7 MB Notification: Performance of matching and sorting (n=1014) (initialization): time 0.03681/1.24, allocations: 13.99 MB / 0.6288 GB, free: 3.156 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001287/1.24, allocations: 63.98 kB / 0.6289 GB, free: 3.094 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002075/1.24, allocations: 132 kB / 0.629 GB, free: 2.965 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01049/1.251, allocations: 2.702 MB / 0.6316 GB, free: 260 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2448/1.496, allocations: 1.769 MB / 0.6333 GB, free: 141.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02537/1.521, allocations: 14.55 MB / 0.6476 GB, free: 136.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007126/1.528, allocations: 0.4888 MB / 0.648 GB, free: 136 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001504/1.53, allocations: 428.2 kB / 0.6484 GB, free: 135.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 589 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (917): * Single equations (assignments): 909 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006209/1.536, allocations: 2.911 MB / 0.6513 GB, free: 134.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009785/1.537, allocations: 466.4 kB / 0.6517 GB, free: 134.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02239/1.559, allocations: 10.54 MB / 0.662 GB, free: 131.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001021/1.56, allocations: 67.77 kB / 0.6621 GB, free: 131.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.233e-05/1.56, allocations: 8.938 kB / 0.6621 GB, free: 131.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.88e-05/1.56, allocations: 18.56 kB / 0.6621 GB, free: 131.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04539/1.605, allocations: 21.42 MB / 0.683 GB, free: 116.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.814e-05/1.605, allocations: 12 kB / 0.683 GB, free: 116.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004011/1.609, allocations: 0.6825 MB / 0.6837 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008919/1.618, allocations: 2.48 MB / 0.6861 GB, free: 113.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008334/1.619, allocations: 87.27 kB / 0.6862 GB, free: 113.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02067/1.64, allocations: 13.32 MB / 0.6992 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.209e-05/1.64, allocations: 15.94 kB / 0.6992 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02816/1.668, allocations: 15.06 MB / 0.7139 GB, free: 84.92 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003268/1.671, allocations: 1.204 MB / 0.7151 GB, free: 83.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001098/1.672, allocations: 80.69 kB / 0.7152 GB, free: 83.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003483/1.676, allocations: 304.6 kB / 0.7155 GB, free: 83.32 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009434/1.677, allocations: 261.7 kB / 0.7157 GB, free: 83.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004236/1.677, allocations: 112.8 kB / 0.7158 GB, free: 82.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00511/1.682, allocations: 3.078 MB / 0.7189 GB, free: 79.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.163e-06/1.683, allocations: 0 / 0.7189 GB, free: 79.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007867/1.69, allocations: 1.68 MB / 0.7205 GB, free: 78.21 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * 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 (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001001/1.691, allocations: 250.5 kB / 0.7207 GB, free: 77.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01708/1.709, allocations: 9.785 MB / 0.7303 GB, free: 68.22 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.558e-05/1.709, allocations: 4 kB / 0.7303 GB, free: 68.22 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007941/1.717, allocations: 4.308 MB / 0.7345 GB, free: 63.89 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00403/1.721, allocations: 0.6437 MB / 0.7351 GB, free: 63.26 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03202/1.753, allocations: 19.14 MB / 0.7538 GB, free: 44.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008205/1.761, allocations: 4.752 MB / 0.7585 GB, free: 39.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002569/1.764, allocations: 419.3 kB / 0.7589 GB, free: 38.84 MB / 442.7 MB Notification: Performance of SimCode: time 1.846e-06/1.764, allocations: 0 / 0.7589 GB, free: 38.84 MB / 442.7 MB Notification: Performance of Templates: time 0.4267/2.19, allocations: 137.3 MB / 0.8929 GB, free: 53.82 MB / 442.7 MB