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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.09/2.09, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006547/0.0006548, allocations: 8 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3738/0.3745, allocations: 48.71 MB / 331.4 MB, free: 6.387 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1891/0.5636, allocations: 93.05 MB / 424.4 MB, free: 1.211 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/0.564, allocations: 75.97 kB / 424.5 MB, free: 1.137 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8649/1.429, allocations: 116.5 MB / 0.5284 GB, free: 69.22 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.775e-06/1.429, allocations: 0 / 0.5284 GB, free: 69.22 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003003/1.429, allocations: 95.94 kB / 0.5284 GB, free: 69.13 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.02283/1.452, allocations: 4.682 MB / 0.533 GB, free: 64.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.087e-05/1.452, allocations: 12.03 kB / 0.533 GB, free: 64.36 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005197/1.457, allocations: 0.9522 MB / 0.534 GB, free: 63.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0282/1.486, allocations: 3.659 MB / 0.5375 GB, free: 59.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01803/1.504, allocations: 4.823 MB / 0.5422 GB, free: 54.85 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004778/1.504, allocations: 377.9 kB / 0.5426 GB, free: 54.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003546/1.508, allocations: 499.8 kB / 0.5431 GB, free: 53.99 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03804/1.546, allocations: 12.2 MB / 0.555 GB, free: 41.26 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003636/1.546, allocations: 31.66 kB / 0.555 GB, free: 41.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003434/1.55, allocations: 227.8 kB / 0.5552 GB, free: 41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003461/1.553, allocations: 1.408 MB / 0.5566 GB, free: 39.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03535/1.589, allocations: 11.31 MB / 0.5677 GB, free: 28.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09277/1.682, allocations: 42.72 MB / 0.6094 GB, free: 424 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02257/1.704, allocations: 4.732 MB / 0.614 GB, free: 11.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00278/1.707, allocations: 1.315 MB / 0.6153 GB, free: 9.91 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001207/1.707, allocations: 64.5 kB / 0.6153 GB, free: 9.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 9.688e-06/1.707, allocations: 0 / 0.6153 GB, free: 9.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=268): time 0.5406/2.248, allocations: 19.82 MB / 0.6347 GB, free: 99.17 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/2.248, allocations: 99.73 kB / 0.6348 GB, free: 99.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0117/2.26, allocations: 2.879 MB / 0.6376 GB, free: 98.77 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008787/2.261, allocations: 61.14 kB / 0.6377 GB, free: 98.74 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004455/2.265, allocations: 3.231 MB / 0.6408 GB, free: 97 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002542/2.268, allocations: 0.9714 MB / 0.6418 GB, free: 96.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001326/2.269, allocations: 119.6 kB / 0.6419 GB, free: 96.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001035/2.27, allocations: 0.5702 MB / 0.6424 GB, free: 96.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009998/2.28, allocations: 2.456 MB / 0.6448 GB, free: 96.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01338/2.294, allocations: 5.811 MB / 0.6505 GB, free: 91.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01286/2.307, allocations: 3.76 MB / 0.6542 GB, free: 91.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002224/2.307, allocations: 35.03 kB / 0.6542 GB, free: 91.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.03803/2.345, allocations: 8.977 MB / 0.663 GB, free: 89.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001763/2.345, allocations: 63.81 kB / 0.663 GB, free: 89.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002942/2.346, allocations: 119.1 kB / 0.6632 GB, free: 89.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008454/2.354, allocations: 1.067 MB / 0.6642 GB, free: 89.19 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01266/2.367, allocations: 1.385 MB / 0.6656 GB, free: 89.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01744/2.384, allocations: 5.223 MB / 0.6707 GB, free: 86.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01057/2.395, allocations: 330.8 kB / 0.671 GB, free: 86.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002123/2.397, allocations: 346.5 kB / 0.6713 GB, free: 86.29 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.01031/2.408, allocations: 2.475 MB / 0.6737 GB, free: 85.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001612/2.409, allocations: 320 kB / 0.674 GB, free: 85.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02395/2.433, allocations: 5.346 MB / 0.6792 GB, free: 83.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001607/2.433, allocations: 46.14 kB / 0.6793 GB, free: 83.19 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-05/2.433, allocations: 6.688 kB / 0.6793 GB, free: 83.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.377e-05/2.434, allocations: 13.3 kB / 0.6793 GB, free: 83.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05578/2.489, allocations: 13.31 MB / 0.6923 GB, free: 77.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.927e-05/2.49, allocations: 15.5 kB / 0.6923 GB, free: 77.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004948/2.494, allocations: 424 kB / 0.6927 GB, free: 77.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007257/2.502, allocations: 0.8838 MB / 0.6936 GB, free: 76.63 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008726/2.503, allocations: 60.91 kB / 0.6936 GB, free: 76.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01406/2.517, allocations: 4.562 MB / 0.6981 GB, free: 72.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.133e-05/2.517, allocations: 15.94 kB / 0.6981 GB, free: 72.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02919/2.546, allocations: 9.088 MB / 0.707 GB, free: 64.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003827/2.55, allocations: 0.7312 MB / 0.7077 GB, free: 63.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00184/2.552, allocations: 48.81 kB / 0.7078 GB, free: 63.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004837/2.557, allocations: 151.2 kB / 0.7079 GB, free: 63.27 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001267/2.558, allocations: 159.7 kB / 0.7081 GB, free: 63.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005435/2.559, allocations: 81.52 kB / 0.7081 GB, free: 63.09 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007584/2.566, allocations: 1.977 MB / 0.7101 GB, free: 61.47 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.192e-06/2.566, allocations: 3.656 kB / 0.7101 GB, free: 61.47 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01305/2.579, allocations: 1.124 MB / 0.7112 GB, free: 60.36 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.03145/2.611, allocations: 12.6 MB / 0.7235 GB, free: 48.52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01999/2.631, allocations: 6.015 MB / 0.7293 GB, free: 43.22 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.598e-05/2.631, allocations: 3.938 kB / 0.7293 GB, free: 43.22 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008659/2.64, allocations: 2.248 MB / 0.7315 GB, free: 41.22 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005079/2.645, allocations: 395.5 kB / 0.7319 GB, free: 40.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4753/3.12, allocations: 117.4 MB / 0.8466 GB, free: 62.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01038/3.131, allocations: 3.925 MB / 0.8504 GB, free: 61.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00647/3.137, allocations: 2.277 MB / 0.8526 GB, free: 61.69 MB / 442.7 MB Notification: Performance of SimCode: time 1.313e-06/3.137, allocations: 3.844 kB / 0.8526 GB, free: 61.69 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.737/7.875, allocations: 111.3 MB / 0.9614 GB, free: 112.6 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat