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.Planar.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.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadModel(ModelicaTest): time 2.086/2.086, allocations: 209.3 MB / 224.8 MB, free: 184 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004342/0.0004344, allocations: 12 kB / 282.5 MB, free: 9.625 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3758/0.3763, allocations: 48.71 MB / 331.2 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.05535/0.4317, allocations: 38.72 MB / 369.9 MB, free: 7.727 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02543/0.4572, allocations: 9.239 MB / 379.2 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008478/0.4657, allocations: 183.6 kB / 379.3 MB, free: 14.28 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006557/0.4723, allocations: 1.979 MB / 381.3 MB, free: 12.29 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02012/0.4925, allocations: 5.669 MB / 387 MB, free: 6.609 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00283/0.4953, allocations: 0.5226 MB / 387.5 MB, free: 6.086 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005341/0.5007, allocations: 2.452 MB / 390 MB, free: 3.625 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006613/0.5074, allocations: 3.557 MB / 393.5 MB, free: 16 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002359/0.5098, allocations: 1.176 MB / 394.7 MB, free: 14.83 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002733/0.5125, allocations: 1.546 MB / 396.2 MB, free: 13.28 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006633/0.5132, allocations: 172 kB / 396.4 MB, free: 13.11 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002195/0.5154, allocations: 0.8425 MB / 397.2 MB, free: 12.27 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002255/0.5177, allocations: 1.699 MB / 398.9 MB, free: 10.57 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001325/0.5191, allocations: 0.9439 MB / 399.9 MB, free: 9.617 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009523/0.5286, allocations: 6.161 MB / 406 MB, free: 3.441 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.889e-06/0.5286, allocations: 0 / 406 MB, free: 3.441 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.6e-06/0.5287, allocations: 0 / 406 MB, free: 3.441 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001691/0.5288, allocations: 0 / 406 MB, free: 3.441 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: 1910 * Number of variables: 1910 Notification: Performance of Generate backend data structure: time 0.01059/0.5394, allocations: 4.45 MB / 410.5 MB, free: 14.92 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.5395, allocations: 8.031 kB / 410.5 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01679/0.5563, allocations: 3.85 MB / 414.4 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006686/0.563, allocations: 2.615 MB / 417 MB, free: 8.383 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003363/0.5634, allocations: 254.5 kB / 417.2 MB, free: 8.133 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001371/0.5648, allocations: 347.7 kB / 417.6 MB, free: 7.793 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02876/0.5936, allocations: 12.76 MB / 430.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00016/0.5938, allocations: 31.66 kB / 430.4 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008823/0.5947, allocations: 163.8 kB / 430.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006642/0.6013, allocations: 2.969 MB / 433.5 MB, free: 7.332 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02955/0.6309, allocations: 11.4 MB / 444.9 MB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07846/0.7094, allocations: 42.28 MB / 487.2 MB, free: 500 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2364/0.9458, allocations: 4.699 MB / 491.9 MB, free: 127.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001256/0.9471, allocations: 1.319 MB / 493.2 MB, free: 126.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.9472, allocations: 52.28 kB / 493.2 MB, free: 126.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=250): time 7.736e-06/0.9472, allocations: 1.219 kB / 493.2 MB, free: 126.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=268): time 0.05945/1.007, allocations: 20.05 MB / 0.5012 GB, free: 119.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/1.007, allocations: 106.5 kB / 0.5014 GB, free: 119.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005134/1.012, allocations: 3.336 MB / 0.5046 GB, free: 117.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004139/1.012, allocations: 62.7 kB / 0.5047 GB, free: 117.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001757/1.014, allocations: 3.242 MB / 0.5078 GB, free: 114.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001031/1.015, allocations: 0.9722 MB / 0.5088 GB, free: 113.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004129/1.016, allocations: 125.1 kB / 0.5089 GB, free: 113.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003439/1.016, allocations: 0.5711 MB / 0.5095 GB, free: 113.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004565/1.021, allocations: 2.46 MB / 0.5119 GB, free: 110.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006166/1.027, allocations: 5.834 MB / 0.5176 GB, free: 103.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006061/1.033, allocations: 3.767 MB / 0.5212 GB, free: 99.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.302e-05/1.033, allocations: 36 kB / 0.5213 GB, free: 99.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=806) (initialization): time 0.01849/1.051, allocations: 8.991 MB / 0.5301 GB, free: 90.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.784e-05/1.052, allocations: 56 kB / 0.5301 GB, free: 90.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/1.052, allocations: 132 kB / 0.5302 GB, free: 90.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003634/1.055, allocations: 1.066 MB / 0.5313 GB, free: 89.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005401/1.061, allocations: 1.384 MB / 0.5326 GB, free: 87.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008091/1.069, allocations: 5.287 MB / 0.5378 GB, free: 82.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005023/1.074, allocations: 327.8 kB / 0.5381 GB, free: 82.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008833/1.075, allocations: 349.7 kB / 0.5384 GB, free: 81.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 536 * Number of states: 0 () * Number of discrete variables: 39 (axis1.color[3],axis1.color[2],axis1.color[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],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.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 (744): * Single equations (assignments): 737 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004614/1.08, allocations: 2.471 MB / 0.5408 GB, free: 79.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006039/1.08, allocations: 323.8 kB / 0.5412 GB, free: 79.08 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/1.091, allocations: 5.359 MB / 0.5464 GB, free: 73.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.198e-05/1.091, allocations: 53.25 kB / 0.5464 GB, free: 73.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.155e-05/1.091, allocations: 7.844 kB / 0.5464 GB, free: 73.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.896e-05/1.091, allocations: 11.95 kB / 0.5465 GB, free: 73.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02565/1.116, allocations: 13.33 MB / 0.5595 GB, free: 60.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.748e-05/1.116, allocations: 12 kB / 0.5595 GB, free: 60.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002293/1.119, allocations: 424.2 kB / 0.5599 GB, free: 59.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003271/1.122, allocations: 0.8902 MB / 0.5608 GB, free: 58.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004488/1.123, allocations: 57.41 kB / 0.5608 GB, free: 58.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006851/1.129, allocations: 4.639 MB / 0.5653 GB, free: 53.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.344e-05/1.129, allocations: 23.88 kB / 0.5654 GB, free: 53.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0135/1.143, allocations: 8.017 MB / 0.5732 GB, free: 45.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002042/1.145, allocations: 0.7351 MB / 0.5739 GB, free: 44.92 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007977/1.146, allocations: 52 kB / 0.574 GB, free: 44.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002267/1.148, allocations: 151.8 kB / 0.5741 GB, free: 44.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006069/1.149, allocations: 169.5 kB / 0.5743 GB, free: 44.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002422/1.149, allocations: 73.48 kB / 0.5743 GB, free: 44.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003523/1.153, allocations: 2.06 MB / 0.5764 GB, free: 42.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.078e-06/1.153, allocations: 0 / 0.5764 GB, free: 42.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006487/1.159, allocations: 1.13 MB / 0.5775 GB, free: 41.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.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 (209): * Single equations (assignments): 202 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008142/1.16, allocations: 215.1 kB / 0.5777 GB, free: 41.09 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0104/1.17, allocations: 6.015 MB / 0.5835 GB, free: 35.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/1.171, allocations: 0 / 0.5835 GB, free: 35.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004036/1.175, allocations: 2.247 MB / 0.5857 GB, free: 32.83 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00243/1.177, allocations: 407.6 kB / 0.5861 GB, free: 32.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02366/1.201, allocations: 14.41 MB / 0.6002 GB, free: 17.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0066/1.207, allocations: 3.929 MB / 0.604 GB, free: 13.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001463/1.209, allocations: 295.4 kB / 0.6043 GB, free: 13.59 MB / 410.7 MB Notification: Performance of SimCode: time 1.777e-06/1.209, allocations: 0 / 0.6043 GB, free: 13.59 MB / 410.7 MB Notification: Performance of Templates: time 0.3577/1.567, allocations: 83.38 MB / 0.6857 GB, free: 92.09 MB / 426.7 MB