Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 1.985/1.985, allocations: 209.2 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006766/0.0006769, allocations: 12 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4151/0.4158, allocations: 48.7 MB / 331.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1779/0.5937, allocations: 93.05 MB / 424.8 MB, free: 1.359 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003446/0.5941, allocations: 79.95 kB / 424.9 MB, free: 1.281 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.806/1.4, allocations: 117.2 MB / 0.5294 GB, free: 68.1 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.408e-06/1.4, allocations: 4 kB / 0.5294 GB, free: 68.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002985/1.401, allocations: 88 kB / 0.5295 GB, free: 68.01 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.01908/1.42, allocations: 4.685 MB / 0.5341 GB, free: 63.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/1.42, allocations: 12.03 kB / 0.5341 GB, free: 63.24 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02809/1.448, allocations: 3.659 MB / 0.5377 GB, free: 59.57 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01797/1.466, allocations: 4.823 MB / 0.5424 GB, free: 54.7 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004704/1.466, allocations: 381.9 kB / 0.5427 GB, free: 54.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003444/1.47, allocations: 495.8 kB / 0.5432 GB, free: 53.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03832/1.508, allocations: 12.24 MB / 0.5552 GB, free: 41.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003174/1.509, allocations: 31.66 kB / 0.5552 GB, free: 41.04 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003201/1.512, allocations: 227.8 kB / 0.5554 GB, free: 40.81 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003543/1.515, allocations: 1.401 MB / 0.5568 GB, free: 39.41 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03347/1.549, allocations: 11.33 MB / 0.5678 GB, free: 28.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09692/1.646, allocations: 42.72 MB / 0.6096 GB, free: 204 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01769/1.664, allocations: 4.728 MB / 0.6142 GB, free: 11.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002049/1.666, allocations: 1.315 MB / 0.6155 GB, free: 9.699 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.8e-05/1.666, allocations: 60.52 kB / 0.6155 GB, free: 9.633 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 6.502e-06/1.666, allocations: 0 / 0.6155 GB, free: 9.633 MB / 426.7 MB Notification: Performance of matching and sorting (n=268): time 0.4905/2.156, allocations: 20.04 MB / 0.6351 GB, free: 99.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/2.156, allocations: 99.53 kB / 0.6352 GB, free: 99.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01187/2.168, allocations: 3.234 MB / 0.6383 GB, free: 99.02 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007322/2.169, allocations: 60.95 kB / 0.6384 GB, free: 98.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00363/2.173, allocations: 3.228 MB / 0.6415 GB, free: 97.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002068/2.175, allocations: 0.9757 MB / 0.6425 GB, free: 96.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008732/2.176, allocations: 115.8 kB / 0.6426 GB, free: 96.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007407/2.177, allocations: 0.5736 MB / 0.6432 GB, free: 96.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00861/2.185, allocations: 2.447 MB / 0.6456 GB, free: 96.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008886/2.194, allocations: 5.84 MB / 0.6513 GB, free: 92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00851/2.203, allocations: 3.763 MB / 0.6549 GB, free: 91.97 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001681/2.203, allocations: 35.12 kB / 0.655 GB, free: 91.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.02584/2.229, allocations: 8.976 MB / 0.6637 GB, free: 89.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000118/2.229, allocations: 56.81 kB / 0.6638 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002143/2.229, allocations: 120.7 kB / 0.6639 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00555/2.235, allocations: 1.068 MB / 0.6649 GB, free: 89.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008487/2.243, allocations: 1.384 MB / 0.6663 GB, free: 89.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0114/2.255, allocations: 5.221 MB / 0.6714 GB, free: 86.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006869/2.262, allocations: 327 kB / 0.6717 GB, free: 86.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001634/2.263, allocations: 354 kB / 0.672 GB, free: 86.32 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.007739/2.271, allocations: 2.47 MB / 0.6745 GB, free: 85.24 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001005/2.272, allocations: 318.8 kB / 0.6748 GB, free: 85.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01614/2.288, allocations: 5.347 MB / 0.68 GB, free: 83.24 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001309/2.288, allocations: 51.8 kB / 0.68 GB, free: 83.23 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.681e-05/2.288, allocations: 8.969 kB / 0.68 GB, free: 83.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.866e-05/2.289, allocations: 12.34 kB / 0.6801 GB, free: 83.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03736/2.326, allocations: 13.31 MB / 0.6931 GB, free: 77.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.432e-05/2.326, allocations: 9.969 kB / 0.6931 GB, free: 77.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003521/2.33, allocations: 424.9 kB / 0.6935 GB, free: 77.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004878/2.334, allocations: 0.8875 MB / 0.6943 GB, free: 76.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006321/2.335, allocations: 56.97 kB / 0.6944 GB, free: 76.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009661/2.345, allocations: 4.565 MB / 0.6988 GB, free: 72.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-05/2.345, allocations: 19.88 kB / 0.6989 GB, free: 72.89 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02154/2.366, allocations: 7.987 MB / 0.7067 GB, free: 65.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00372/2.37, allocations: 0.7276 MB / 0.7074 GB, free: 65.15 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00145/2.372, allocations: 61.58 kB / 0.7074 GB, free: 65.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004179/2.376, allocations: 139 kB / 0.7076 GB, free: 65.01 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009697/2.377, allocations: 173.2 kB / 0.7077 GB, free: 64.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003979/2.377, allocations: 77.09 kB / 0.7078 GB, free: 64.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00639/2.384, allocations: 1.976 MB / 0.7097 GB, free: 63.21 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.12e-07/2.384, allocations: 0 / 0.7097 GB, free: 63.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0117/2.395, allocations: 1.119 MB / 0.7108 GB, free: 62.1 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.001229/2.397, allocations: 210.8 kB / 0.711 GB, free: 61.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02693/2.424, allocations: 5.998 MB / 0.7169 GB, free: 56.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.115e-05/2.424, allocations: 0 / 0.7169 GB, free: 56.66 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006161/2.43, allocations: 2.253 MB / 0.7191 GB, free: 54.65 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01413/2.444, allocations: 388.3 kB / 0.7195 GB, free: 54.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05468/2.499, allocations: 14.41 MB / 0.7335 GB, free: 41.03 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009305/2.508, allocations: 3.935 MB / 0.7374 GB, free: 38.03 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00204/2.51, allocations: 295.3 kB / 0.7376 GB, free: 37.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.152e-06/2.51, allocations: 0 / 0.7376 GB, free: 37.75 MB / 426.7 MB Notification: Performance of Templates: time 0.5833/3.094, allocations: 82.85 MB / 0.8186 GB, free: 95.67 MB / 442.7 MB