Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Planar.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.451/2.451, allocations: 235 MB / 248 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.591e-05/3.618e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4524/0.4524, allocations: 54.85 MB / 364.6 MB, free: 5.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2077/0.6602, allocations: 99.76 MB / 464.4 MB, free: 12.71 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/0.6605, allocations: 76.95 kB / 464.5 MB, free: 12.64 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8745/1.535, allocations: 116.8 MB / 0.5676 GB, free: 109.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.535, allocations: 3.719 kB / 0.5676 GB, free: 109.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002444/1.535, allocations: 87.62 kB / 0.5677 GB, free: 109.1 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1911 * Number of variables: 1911 Notification: Performance of Generate backend data structure: time 0.01786/1.553, allocations: 4.444 MB / 0.5721 GB, free: 107.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/1.553, allocations: 11.09 kB / 0.5721 GB, free: 107.1 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00518/1.559, allocations: 0.9583 MB / 0.573 GB, free: 106.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02837/1.587, allocations: 3.654 MB / 0.5766 GB, free: 106.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01924/1.606, allocations: 4.798 MB / 0.5813 GB, free: 104.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005527/1.607, allocations: 382.3 kB / 0.5816 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003787/1.611, allocations: 0.4898 MB / 0.5821 GB, free: 104.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03927/1.65, allocations: 12.09 MB / 0.5939 GB, free: 99.4 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003442/1.65, allocations: 39.59 kB / 0.5939 GB, free: 99.36 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003257/1.654, allocations: 222.4 kB / 0.5942 GB, free: 99.18 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003463/1.657, allocations: 1.398 MB / 0.5955 GB, free: 97.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03269/1.69, allocations: 11.14 MB / 0.6064 GB, free: 86.69 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09285/1.783, allocations: 42.75 MB / 0.6482 GB, free: 43.12 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01489/1.798, allocations: 4.704 MB / 0.6527 GB, free: 38.18 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005127/1.803, allocations: 2.409 MB / 0.6551 GB, free: 35.76 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001609/1.805, allocations: 1.317 MB / 0.6564 GB, free: 34.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.884e-05/1.805, allocations: 56.56 kB / 0.6564 GB, free: 34.17 MB / 458.7 MB Notification: Performance of pre-optimization done (n=250): time 8.536e-06/1.805, allocations: 0 / 0.6564 GB, free: 34.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=268): time 0.06373/1.869, allocations: 16.35 MB / 0.6724 GB, free: 17.7 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.285e-05/1.869, allocations: 103.1 kB / 0.6725 GB, free: 17.57 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006621/1.875, allocations: 2.853 MB / 0.6753 GB, free: 14.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006542/1.876, allocations: 64.75 kB / 0.6754 GB, free: 14.65 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002537/1.879, allocations: 3.226 MB / 0.6785 GB, free: 11.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001553/1.88, allocations: 0.9731 MB / 0.6795 GB, free: 10.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007825/1.881, allocations: 123 kB / 0.6796 GB, free: 10.33 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005287/1.882, allocations: 0.5711 MB / 0.6801 GB, free: 9.75 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006223/1.888, allocations: 2.406 MB / 0.6825 GB, free: 7.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008651/1.896, allocations: 5.766 MB / 0.6881 GB, free: 15.91 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009942/1.906, allocations: 3.757 MB / 0.6918 GB, free: 12.15 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001303/1.907, allocations: 36 kB / 0.6918 GB, free: 12.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.02954/1.936, allocations: 8.89 MB / 0.7005 GB, free: 3.215 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/1.936, allocations: 59.94 kB / 0.7006 GB, free: 3.156 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002034/1.937, allocations: 120 kB / 0.7007 GB, free: 3.039 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006052/1.943, allocations: 1.063 MB / 0.7017 GB, free: 1.973 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00962/1.952, allocations: 1.38 MB / 0.7031 GB, free: 0.5898 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.368/2.32, allocations: 5.069 MB / 0.708 GB, free: 107.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006617/2.327, allocations: 327.9 kB / 0.7083 GB, free: 107.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001811/2.329, allocations: 351.1 kB / 0.7087 GB, free: 107.2 MB / 474.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 () * 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.002257/2.331, allocations: 0.5541 MB / 0.7092 GB, free: 107.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009068/2.332, allocations: 320.7 kB / 0.7095 GB, free: 107.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01807/2.35, allocations: 5.308 MB / 0.7147 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001564/2.35, allocations: 54.48 kB / 0.7147 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-05/2.351, allocations: 2.844 kB / 0.7147 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.927e-05/2.351, allocations: 15.91 kB / 0.7148 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04149/2.392, allocations: 13.28 MB / 0.7277 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.871e-05/2.392, allocations: 12.38 kB / 0.7277 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003805/2.396, allocations: 429.3 kB / 0.7281 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005102/2.401, allocations: 0.8829 MB / 0.729 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006282/2.402, allocations: 54.84 kB / 0.7291 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00949/2.411, allocations: 4.416 MB / 0.7334 GB, free: 103.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.715e-05/2.411, allocations: 25.11 kB / 0.7334 GB, free: 103.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02031/2.432, allocations: 9.019 MB / 0.7422 GB, free: 98.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00296/2.435, allocations: 0.7351 MB / 0.7429 GB, free: 98.65 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001295/2.436, allocations: 50.78 kB / 0.743 GB, free: 98.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003315/2.44, allocations: 151.1 kB / 0.7431 GB, free: 98.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008657/2.44, allocations: 159.9 kB / 0.7433 GB, free: 98.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002716/2.441, allocations: 84.92 kB / 0.7433 GB, free: 98.55 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005312/2.446, allocations: 1.95 MB / 0.7452 GB, free: 97.87 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.804e-06/2.446, allocations: 0 / 0.7452 GB, free: 97.87 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008083/2.454, allocations: 1.117 MB / 0.7463 GB, free: 97.75 MB / 474.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 () * 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.022/2.476, allocations: 12.55 MB / 0.7586 GB, free: 90.02 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01363/2.49, allocations: 5.927 MB / 0.7644 GB, free: 88.33 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/2.49, allocations: 2.875 kB / 0.7644 GB, free: 88.33 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005131/2.495, allocations: 2.232 MB / 0.7666 GB, free: 87.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00306/2.498, allocations: 389.5 kB / 0.7669 GB, free: 87.34 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03615/2.534, allocations: 11.95 MB / 0.7786 GB, free: 81.84 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009205/2.544, allocations: 3.934 MB / 0.7825 GB, free: 78.86 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00576/2.55, allocations: 2.274 MB / 0.7847 GB, free: 76.75 MB / 474.7 MB Notification: Performance of SimCode: time 1.312e-06/2.55, allocations: 3.938 kB / 0.7847 GB, free: 76.75 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.685/7.234, allocations: 112 MB / 0.894 GB, free: 122.5 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat