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.JointRRP.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.JointRRP,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointRRP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.048/2.048, allocations: 209.2 MB / 224.8 MB, free: 0.6289 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006279/0.000628, allocations: 16 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3801/0.3808, allocations: 48.7 MB / 331.4 MB, free: 6.414 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1875/0.5684, allocations: 95.85 MB / 427.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/0.5688, allocations: 75.97 kB / 427.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6645/1.233, allocations: 72.02 MB / 499.3 MB, free: 91.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.296e-06/1.233, allocations: 4 kB / 499.3 MB, free: 91.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002328/1.234, allocations: 80.39 kB / 499.4 MB, free: 91.41 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: 1377 * Number of variables: 1377 Notification: Performance of Generate backend data structure: time 0.0167/1.25, allocations: 4.08 MB / 0.4917 GB, free: 89.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/1.25, allocations: 9 kB / 0.4917 GB, free: 89.73 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003323/1.254, allocations: 0.6998 MB / 0.4924 GB, free: 89.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006869/1.261, allocations: 0.7313 MB / 0.4931 GB, free: 89.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009018/1.27, allocations: 2.582 MB / 0.4956 GB, free: 88.37 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000416/1.27, allocations: 324.6 kB / 0.4959 GB, free: 88.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002354/1.273, allocations: 422.7 kB / 0.4963 GB, free: 88.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03375/1.306, allocations: 9.167 MB / 0.5053 GB, free: 84.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002104/1.307, allocations: 18.62 kB / 0.5053 GB, free: 84.29 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001845/1.308, allocations: 186 kB / 0.5055 GB, free: 84.17 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002513/1.311, allocations: 0.81 MB / 0.5063 GB, free: 84.01 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02628/1.337, allocations: 7.308 MB / 0.5134 GB, free: 81.28 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06003/1.397, allocations: 29.66 MB / 0.5424 GB, free: 52.1 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01155/1.409, allocations: 2.176 MB / 0.5445 GB, free: 49.88 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01614/1.425, allocations: 6.738 MB / 0.5511 GB, free: 42.65 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.226e-05/1.425, allocations: 51.12 kB / 0.5511 GB, free: 42.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 7.364e-06/1.425, allocations: 0 / 0.5511 GB, free: 42.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=98): time 0.04293/1.468, allocations: 7.492 MB / 0.5584 GB, free: 35.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.863e-05/1.469, allocations: 171.2 kB / 0.5586 GB, free: 34.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00696/1.475, allocations: 2.39 MB / 0.5609 GB, free: 32.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003018/1.476, allocations: 41.7 kB / 0.561 GB, free: 32.38 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002579/1.478, allocations: 2.494 MB / 0.5634 GB, free: 29.89 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006987/1.479, allocations: 404.9 kB / 0.5638 GB, free: 29.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004314/1.48, allocations: 80 kB / 0.5639 GB, free: 29.42 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003279/1.48, allocations: 475.3 kB / 0.5643 GB, free: 28.95 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003953/1.484, allocations: 1.093 MB / 0.5654 GB, free: 27.85 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006029/1.49, allocations: 3.416 MB / 0.5687 GB, free: 23.29 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005539/1.496, allocations: 1.86 MB / 0.5705 GB, free: 21.42 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.879e-05/1.496, allocations: 24 kB / 0.5706 GB, free: 21.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=503) (initialization): time 0.01232/1.508, allocations: 4.36 MB / 0.5748 GB, free: 17.03 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/1.508, allocations: 44 kB / 0.5749 GB, free: 16.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001033/1.508, allocations: 80 kB / 0.5749 GB, free: 16.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001305/1.509, allocations: 127.9 kB / 0.5751 GB, free: 16.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005733/1.514, allocations: 0.9442 MB / 0.576 GB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001782/1.515, allocations: 166.7 kB / 0.5761 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004312/1.519, allocations: 207.6 kB / 0.5763 GB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008793/1.52, allocations: 232 kB / 0.5766 GB, free: 15.25 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * Number of states: 0 () * Number of discrete variables: 43 (jointRRP.jointUSP.prismatic.positiveBranch,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],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (501): * Single equations (assignments): 500 * 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.00491/1.525, allocations: 1.753 MB / 0.5783 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006138/1.525, allocations: 233 kB / 0.5785 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003011/1.528, allocations: 1.179 MB / 0.5796 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.859e-05/1.528, allocations: 11.98 kB / 0.5797 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/1.528, allocations: 7.953 kB / 0.5797 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.926e-05/1.528, allocations: 7.969 kB / 0.5797 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01815/1.547, allocations: 6.808 MB / 0.5863 GB, free: 4.863 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.869e-05/1.547, allocations: 24.22 kB / 0.5863 GB, free: 4.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002027/1.549, allocations: 291.5 kB / 0.5866 GB, free: 4.555 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.852e-05/1.549, allocations: 32 kB / 0.5867 GB, free: 4.523 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001637/1.549, allocations: 59.98 kB / 0.5867 GB, free: 4.465 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.789e-05/1.549, allocations: 39.86 kB / 0.5867 GB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.66e-05/1.549, allocations: 35.81 kB / 0.5868 GB, free: 4.391 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005848/1.555, allocations: 4.617 MB / 0.5913 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/1.556, allocations: 349.8 kB / 0.5916 GB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009535/1.557, allocations: 59.98 kB / 0.5917 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002594/1.56, allocations: 63.97 kB / 0.5917 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004565/1.56, allocations: 163.3 kB / 0.5919 GB, free: 14.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001817/1.561, allocations: 68 kB / 0.592 GB, free: 14.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005667/1.566, allocations: 1.773 MB / 0.5937 GB, free: 12.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.232e-06/1.566, allocations: 0 / 0.5937 GB, free: 12.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006009/1.572, allocations: 0.7031 MB / 0.5944 GB, free: 11.91 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 100 * Number of states: 0 () * 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 (147): * Single equations (assignments): 147 * 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.01128/1.584, allocations: 11.04 MB / 0.6052 GB, free: 180 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008342/1.592, allocations: 2.632 MB / 0.6077 GB, free: 13.56 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-05/1.592, allocations: 8.125 kB / 0.6077 GB, free: 13.55 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002256/1.595, allocations: 0.7226 MB / 0.6084 GB, free: 12.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003074/1.598, allocations: 335.8 kB / 0.6088 GB, free: 12.52 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4322/2.03, allocations: 70.45 MB / 0.6776 GB, free: 52.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01039/2.04, allocations: 3.035 MB / 0.6805 GB, free: 52.13 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005062/2.046, allocations: 1.625 MB / 0.6821 GB, free: 52.12 MB / 426.7 MB Notification: Performance of SimCode: time 1.613e-06/2.046, allocations: 3.375 kB / 0.6821 GB, free: 52.12 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.827/5.872, allocations: 62.59 MB / 0.7432 GB, free: 25.59 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointRRP_res.mat does not exist to compare? outputFormat=mat