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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.112/2.112, allocations: 209.4 MB / 217.3 MB, free: 4.18 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.225e-05/2.238e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3144, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1465/0.461, allocations: 92.3 MB / 412.3 MB, free: 4.109 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.4613, allocations: 71.97 kB / 412.4 MB, free: 4.039 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6275/1.089, allocations: 114.4 MB / 0.5144 GB, free: 45.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.959e-06/1.089, allocations: 0 / 0.5144 GB, free: 45.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001965/1.089, allocations: 92 kB / 0.5145 GB, free: 45.21 MB / 378.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.01334/1.102, allocations: 4.448 MB / 0.5189 GB, free: 40.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/1.102, allocations: 8.031 kB / 0.5189 GB, free: 40.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01922/1.122, allocations: 3.663 MB / 0.5225 GB, free: 37.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01366/1.135, allocations: 4.792 MB / 0.5271 GB, free: 32.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/1.136, allocations: 160 kB / 0.5273 GB, free: 32.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002303/1.138, allocations: 295.8 kB / 0.5276 GB, free: 31.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01646/1.155, allocations: 8.451 MB / 0.5358 GB, free: 23.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02532/1.18, allocations: 11.19 MB / 0.5467 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001946/1.18, allocations: 43.61 kB / 0.5468 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001379/1.182, allocations: 16 kB / 0.5468 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002251/1.184, allocations: 1.389 MB / 0.5482 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07439/1.258, allocations: 39.72 MB / 0.5869 GB, free: 1.539 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2854/1.544, allocations: 4.368 MB / 0.5912 GB, free: 86.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004128/1.548, allocations: 2.371 MB / 0.5935 GB, free: 86.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001266/1.549, allocations: 1.315 MB / 0.5948 GB, free: 85.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/1.549, allocations: 62.09 kB / 0.5949 GB, free: 85.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=252): time 7.076e-06/1.549, allocations: 0 / 0.5949 GB, free: 85.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=271): time 0.04615/1.595, allocations: 18.88 MB / 0.6133 GB, free: 83.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/1.596, allocations: 104.1 kB / 0.6134 GB, free: 83.78 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00434/1.6, allocations: 2.644 MB / 0.616 GB, free: 83.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004062/1.6, allocations: 27.73 kB / 0.616 GB, free: 83.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002003/1.602, allocations: 3.363 MB / 0.6193 GB, free: 81.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001081/1.603, allocations: 0.9666 MB / 0.6202 GB, free: 80.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004228/1.604, allocations: 0 / 0.6202 GB, free: 80.93 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003999/1.604, allocations: 0.5957 MB / 0.6208 GB, free: 80.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004128/1.608, allocations: 2.39 MB / 0.6232 GB, free: 80.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006301/1.615, allocations: 6.015 MB / 0.629 GB, free: 75.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006781/1.622, allocations: 3.822 MB / 0.6328 GB, free: 74.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001029/1.622, allocations: 33.47 kB / 0.6328 GB, free: 74.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=859) (initialization): time 0.01915/1.641, allocations: 8.52 MB / 0.6411 GB, free: 71.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.759e-05/1.641, allocations: 58.75 kB / 0.6412 GB, free: 71.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001354/1.641, allocations: 127.9 kB / 0.6413 GB, free: 71.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003762/1.645, allocations: 1.079 MB / 0.6424 GB, free: 71.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006007/1.651, allocations: 1.48 MB / 0.6438 GB, free: 71.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008225/1.659, allocations: 4.864 MB / 0.6485 GB, free: 68.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005745/1.665, allocations: 218.1 kB / 0.6488 GB, free: 68.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001232/1.666, allocations: 380.7 kB / 0.6491 GB, free: 68.91 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (797): * Single equations (assignments): 790 * 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.001204/1.668, allocations: 446.6 kB / 0.6495 GB, free: 68.55 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006429/1.668, allocations: 315.7 kB / 0.6498 GB, free: 68.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01098/1.679, allocations: 5.184 MB / 0.6549 GB, free: 64.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.327e-05/1.679, allocations: 48.39 kB / 0.655 GB, free: 64.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/1.679, allocations: 4 kB / 0.655 GB, free: 64.37 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.194e-05/1.679, allocations: 11.48 kB / 0.655 GB, free: 64.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02448/1.704, allocations: 12.03 MB / 0.6667 GB, free: 54.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.593e-05/1.704, allocations: 12 kB / 0.6667 GB, free: 54.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002326/1.706, allocations: 435.5 kB / 0.6671 GB, free: 53.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003551/1.71, allocations: 0.8802 MB / 0.668 GB, free: 53.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004773/1.71, allocations: 23.38 kB / 0.668 GB, free: 53.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006684/1.717, allocations: 4.222 MB / 0.6721 GB, free: 49.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.457e-05/1.717, allocations: 19.88 kB / 0.6722 GB, free: 49.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01438/1.732, allocations: 8.965 MB / 0.6809 GB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002134/1.734, allocations: 0.7139 MB / 0.6816 GB, free: 40.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008449/1.735, allocations: 19.05 kB / 0.6816 GB, free: 40.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002274/1.737, allocations: 113.5 kB / 0.6817 GB, free: 40.47 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000577/1.737, allocations: 176.5 kB / 0.6819 GB, free: 40.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002563/1.738, allocations: 72 kB / 0.682 GB, free: 40.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003525/1.741, allocations: 1.73 MB / 0.6837 GB, free: 38.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.241e-06/1.741, allocations: 4 kB / 0.6837 GB, free: 38.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007115/1.748, allocations: 0.9734 MB / 0.6846 GB, free: 37.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 205 * 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.0007483/1.749, allocations: 170.7 kB / 0.6848 GB, free: 37.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009894/1.759, allocations: 5.811 MB / 0.6905 GB, free: 32.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/1.759, allocations: 0 / 0.6905 GB, free: 32.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003683/1.763, allocations: 2.186 MB / 0.6926 GB, free: 30.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/1.765, allocations: 269.1 kB / 0.6929 GB, free: 30.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02102/1.786, allocations: 10.26 MB / 0.7029 GB, free: 20.92 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006607/1.793, allocations: 3.927 MB / 0.7067 GB, free: 17.92 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/1.794, allocations: 290.5 kB / 0.707 GB, free: 17.65 MB / 410.7 MB Notification: Performance of SimCode: time 1.88e-06/1.794, allocations: 2.734 kB / 0.707 GB, free: 17.65 MB / 410.7 MB Notification: Performance of Templates: time 0.3784/2.173, allocations: 81.36 MB / 0.7865 GB, free: 100.7 MB / 442.7 MB