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.014/2.014, allocations: 209.3 MB / 224.9 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004418/0.0004419, allocations: 8 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2899, allocations: 48.7 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1403/0.4302, allocations: 93.05 MB / 424.3 MB, free: 1.336 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/0.4305, allocations: 79.95 kB / 424.4 MB, free: 1.258 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6523/1.083, allocations: 116.5 MB / 0.5282 GB, free: 69.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.912e-06/1.083, allocations: 0 / 0.5282 GB, free: 69.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002048/1.083, allocations: 99.92 kB / 0.5283 GB, free: 69.36 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: 1910 * Number of variables: 1910 Notification: Performance of Generate backend data structure: time 0.01391/1.097, allocations: 4.693 MB / 0.5329 GB, free: 64.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/1.097, allocations: 8.031 kB / 0.5329 GB, free: 64.58 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01894/1.116, allocations: 3.663 MB / 0.5365 GB, free: 60.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01386/1.13, allocations: 4.807 MB / 0.5412 GB, free: 56.04 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004125/1.13, allocations: 381.9 kB / 0.5415 GB, free: 55.67 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002477/1.133, allocations: 499.8 kB / 0.542 GB, free: 55.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02976/1.163, allocations: 12.19 MB / 0.5539 GB, free: 42.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002258/1.163, allocations: 39.66 kB / 0.554 GB, free: 42.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002173/1.165, allocations: 223.8 kB / 0.5542 GB, free: 42.19 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002582/1.168, allocations: 1.397 MB / 0.5555 GB, free: 40.79 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02613/1.194, allocations: 11.33 MB / 0.5666 GB, free: 29.45 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07192/1.266, allocations: 42.72 MB / 0.6083 GB, free: 1.594 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01315/1.279, allocations: 4.723 MB / 0.6129 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001779/1.281, allocations: 1.323 MB / 0.6142 GB, free: 11.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.77e-05/1.281, allocations: 52.52 kB / 0.6143 GB, free: 11.04 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 8.396e-06/1.281, allocations: 4 kB / 0.6143 GB, free: 11.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=268): time 0.3082/1.589, allocations: 19.82 MB / 0.6336 GB, free: 99.81 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/1.589, allocations: 101.1 kB / 0.6337 GB, free: 99.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005817/1.595, allocations: 2.871 MB / 0.6365 GB, free: 99.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004426/1.596, allocations: 60.2 kB / 0.6366 GB, free: 99.38 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00218/1.598, allocations: 3.235 MB / 0.6398 GB, free: 97.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001213/1.599, allocations: 0.9795 MB / 0.6407 GB, free: 96.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005232/1.6, allocations: 122.1 kB / 0.6408 GB, free: 96.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004076/1.6, allocations: 0.5728 MB / 0.6414 GB, free: 96.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005135/1.605, allocations: 2.451 MB / 0.6438 GB, free: 96.64 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006994/1.612, allocations: 5.807 MB / 0.6495 GB, free: 92.36 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007027/1.619, allocations: 3.76 MB / 0.6531 GB, free: 92.32 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.645e-05/1.619, allocations: 36.25 kB / 0.6532 GB, free: 92.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.02106/1.641, allocations: 8.976 MB / 0.6619 GB, free: 90.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/1.641, allocations: 54.06 kB / 0.662 GB, free: 90.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001454/1.641, allocations: 121.3 kB / 0.6621 GB, free: 90.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004205/1.645, allocations: 1.06 MB / 0.6631 GB, free: 90.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006039/1.651, allocations: 1.382 MB / 0.6645 GB, free: 89.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009136/1.66, allocations: 5.235 MB / 0.6696 GB, free: 87.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005537/1.666, allocations: 318.5 kB / 0.6699 GB, free: 87.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001092/1.667, allocations: 355.9 kB / 0.6702 GB, free: 87.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * 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 (743): * Single equations (assignments): 736 * 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%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005414/1.672, allocations: 2.47 MB / 0.6726 GB, free: 86.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007383/1.673, allocations: 322.7 kB / 0.673 GB, free: 85.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01151/1.685, allocations: 5.341 MB / 0.6782 GB, free: 84.11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.949e-05/1.685, allocations: 54.16 kB / 0.6782 GB, free: 84.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/1.685, allocations: 3.594 kB / 0.6782 GB, free: 84.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.482e-05/1.685, allocations: 11.53 kB / 0.6782 GB, free: 84.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02967/1.715, allocations: 13.32 MB / 0.6912 GB, free: 79.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.329e-05/1.715, allocations: 11.62 kB / 0.6913 GB, free: 79.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002553/1.717, allocations: 424.9 kB / 0.6917 GB, free: 79.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003874/1.721, allocations: 0.8899 MB / 0.6925 GB, free: 78.87 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004815/1.722, allocations: 55.19 kB / 0.6926 GB, free: 78.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007255/1.729, allocations: 4.565 MB / 0.697 GB, free: 74.82 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.47e-05/1.729, allocations: 19.94 kB / 0.6971 GB, free: 74.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01438/1.743, allocations: 9.086 MB / 0.7059 GB, free: 66.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002104/1.746, allocations: 0.7349 MB / 0.7067 GB, free: 65.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001006/1.747, allocations: 56.5 kB / 0.7067 GB, free: 65.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004742/1.751, allocations: 143.3 kB / 0.7068 GB, free: 65.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001024/1.752, allocations: 166.7 kB / 0.707 GB, free: 65.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005894/1.753, allocations: 81.03 kB / 0.7071 GB, free: 65.31 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008507/1.762, allocations: 1.976 MB / 0.709 GB, free: 63.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.701e-06/1.762, allocations: 0 / 0.709 GB, free: 63.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01487/1.777, allocations: 1.118 MB / 0.7101 GB, free: 62.59 MB / 426.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.001341/1.778, allocations: 214.4 kB / 0.7103 GB, free: 62.38 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0226/1.801, allocations: 5.996 MB / 0.7162 GB, free: 57.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.288e-05/1.801, allocations: 0 / 0.7162 GB, free: 57.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008483/1.809, allocations: 2.254 MB / 0.7184 GB, free: 55.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004848/1.814, allocations: 395 kB / 0.7187 GB, free: 54.76 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03547/1.85, allocations: 14.35 MB / 0.7328 GB, free: 41.52 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007338/1.857, allocations: 3.928 MB / 0.7366 GB, free: 38.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/1.859, allocations: 288.4 kB / 0.7369 GB, free: 38.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.675e-06/1.859, allocations: 2.516 kB / 0.7369 GB, free: 38.25 MB / 426.7 MB Notification: Performance of Templates: time 0.3734/2.232, allocations: 82.85 MB / 0.8178 GB, free: 99.29 MB / 442.7 MB