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.JointRRR.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.JointRRR,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.449/2.449, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.228e-05/3.23e-05, allocations: 4 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4195/0.4196, allocations: 54.84 MB / 364.6 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2378/0.6575, allocations: 102.8 MB / 467.5 MB, free: 9.598 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003625/0.6579, allocations: 79.95 kB / 467.5 MB, free: 9.52 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6962/1.354, allocations: 73.64 MB / 0.5285 GB, free: 107.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.517e-06/1.354, allocations: 1 kB / 0.5285 GB, free: 107.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002502/1.354, allocations: 77.92 kB / 0.5286 GB, free: 107.6 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: 1385 * Number of variables: 1385 Notification: Performance of Generate backend data structure: time 0.0186/1.373, allocations: 4.089 MB / 0.5326 GB, free: 107 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/1.373, allocations: 11.16 kB / 0.5326 GB, free: 107 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003607/1.377, allocations: 0.708 MB / 0.5333 GB, free: 106.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00784/1.385, allocations: 0.7457 MB / 0.534 GB, free: 106.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01098/1.396, allocations: 2.563 MB / 0.5365 GB, free: 106.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005599/1.396, allocations: 321.6 kB / 0.5368 GB, free: 106.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002488/1.399, allocations: 416.9 kB / 0.5372 GB, free: 106.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0387/1.438, allocations: 9.841 MB / 0.5468 GB, free: 105.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002441/1.438, allocations: 20.95 kB / 0.5468 GB, free: 105.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002315/1.44, allocations: 186.7 kB / 0.547 GB, free: 105.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002887/1.443, allocations: 0.8675 MB / 0.5479 GB, free: 105.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02954/1.473, allocations: 8.362 MB / 0.556 GB, free: 104.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06725/1.54, allocations: 31.85 MB / 0.5871 GB, free: 85.11 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01539/1.555, allocations: 2.994 MB / 0.5901 GB, free: 84.21 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003301/1.559, allocations: 1.546 MB / 0.5916 GB, free: 83.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01884/1.578, allocations: 8.967 MB / 0.6003 GB, free: 77.87 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.367e-05/1.578, allocations: 50.92 kB / 0.6004 GB, free: 77.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=91): time 4.869e-06/1.578, allocations: 0 / 0.6004 GB, free: 77.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=108): time 0.04043/1.618, allocations: 7.618 MB / 0.6078 GB, free: 74.78 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/1.618, allocations: 123.7 kB / 0.6079 GB, free: 74.63 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005894/1.624, allocations: 2.493 MB / 0.6104 GB, free: 72.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003276/1.625, allocations: 41.7 kB / 0.6104 GB, free: 72.36 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001953/1.627, allocations: 2.479 MB / 0.6128 GB, free: 70.12 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006781/1.627, allocations: 425 kB / 0.6132 GB, free: 69.76 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005395/1.628, allocations: 84 kB / 0.6133 GB, free: 69.68 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000268/1.628, allocations: 482.4 kB / 0.6138 GB, free: 69.25 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003654/1.632, allocations: 1.4 MB / 0.6151 GB, free: 67.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005114/1.637, allocations: 3.721 MB / 0.6188 GB, free: 63.31 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005048/1.642, allocations: 2.218 MB / 0.6209 GB, free: 61.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.185e-05/1.642, allocations: 27.56 kB / 0.621 GB, free: 61.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=523) (initialization): time 0.01352/1.656, allocations: 5.003 MB / 0.6259 GB, free: 56.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.148e-05/1.656, allocations: 41 kB / 0.6259 GB, free: 56.87 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001163/1.656, allocations: 80 kB / 0.626 GB, free: 56.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001429/1.656, allocations: 124 kB / 0.6261 GB, free: 56.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006829/1.663, allocations: 0.9966 MB / 0.6271 GB, free: 55.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001626/1.663, allocations: 166.1 kB / 0.6272 GB, free: 55.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005193/1.669, allocations: 248.4 kB / 0.6275 GB, free: 55.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009379/1.67, allocations: 239.5 kB / 0.6277 GB, free: 55.21 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * Number of states: 0 () * Number of discrete variables: 46 (n1_a1.color[3],n1_a1.color[2],n1_a1.color[1],prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointRRR.rodColor[3],jointRRR.rodColor[2],jointRRR.rodColor[1],jointRRR.cylinderColor[3],jointRRR.cylinderColor[2],jointRRR.cylinderColor[1],jointRRR.jointUSR.revolute.positiveBranch,jointRRR.jointUSR.rod1Color[3],jointRRR.jointUSR.rod1Color[2],jointRRR.jointUSR.rod1Color[1],jointRRR.jointUSR.cylinderColor[3],jointRRR.jointUSR.cylinderColor[2],jointRRR.jointUSR.cylinderColor[1],jointRRR.jointUSR.sphereColor[3],jointRRR.jointUSR.sphereColor[2],jointRRR.jointUSR.sphereColor[1],jointRRR.jointUSR.revoluteColor[3],jointRRR.jointUSR.revoluteColor[2],jointRRR.jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.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 (521): * Single equations (assignments): 520 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008519/1.67, allocations: 427.6 kB / 0.6281 GB, free: 54.79 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006213/1.671, allocations: 236.9 kB / 0.6283 GB, free: 54.56 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004724/1.676, allocations: 2.04 MB / 0.6303 GB, free: 52.79 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.985e-05/1.676, allocations: 12 kB / 0.6303 GB, free: 52.77 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/1.676, allocations: 0 / 0.6303 GB, free: 52.77 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.05e-05/1.676, allocations: 6.516 kB / 0.6303 GB, free: 52.77 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01729/1.693, allocations: 6.981 MB / 0.6371 GB, free: 46.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.108e-05/1.693, allocations: 20 kB / 0.6372 GB, free: 46.56 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002355/1.696, allocations: 293.5 kB / 0.6374 GB, free: 46.31 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-05/1.696, allocations: 28 kB / 0.6375 GB, free: 46.29 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002117/1.696, allocations: 48 kB / 0.6375 GB, free: 46.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.463e-05/1.696, allocations: 39.2 kB / 0.6376 GB, free: 46.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-05/1.696, allocations: 27.88 kB / 0.6376 GB, free: 46.18 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005117/1.701, allocations: 4.239 MB / 0.6417 GB, free: 41.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001172/1.702, allocations: 348.8 kB / 0.6421 GB, free: 41.25 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008633/1.703, allocations: 51.89 kB / 0.6421 GB, free: 41.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002408/1.706, allocations: 74.75 kB / 0.6422 GB, free: 41.14 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004821/1.706, allocations: 152.5 kB / 0.6423 GB, free: 41.03 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/1.707, allocations: 60 kB / 0.6424 GB, free: 40.97 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004183/1.711, allocations: 1.758 MB / 0.6441 GB, free: 39.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.453e-06/1.711, allocations: 0 / 0.6441 GB, free: 39.39 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005647/1.716, allocations: 0.7616 MB / 0.6448 GB, free: 38.64 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (155): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006576/1.723, allocations: 9.542 MB / 0.6542 GB, free: 28.72 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00701/1.73, allocations: 3.16 MB / 0.6572 GB, free: 25.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.018e-05/1.73, allocations: 4 kB / 0.6572 GB, free: 25.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002051/1.732, allocations: 0.873 MB / 0.6581 GB, free: 24.99 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00248/1.735, allocations: 323.6 kB / 0.6584 GB, free: 24.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02446/1.759, allocations: 7.956 MB / 0.6662 GB, free: 16.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006455/1.766, allocations: 3.025 MB / 0.6691 GB, free: 13.88 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003996/1.77, allocations: 1.612 MB / 0.6707 GB, free: 12.27 MB / 458.7 MB Notification: Performance of SimCode: time 1.583e-06/1.77, allocations: 0 / 0.6707 GB, free: 12.27 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.893/5.663, allocations: 64.76 MB / 0.7339 GB, free: 123.5 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointRRR_res.mat does not exist to compare? outputFormat=mat