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.JointUSR.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.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.414/2.414, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.346e-05/4.369e-05, allocations: 4 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4586/0.4587, allocations: 54.85 MB / 364.6 MB, free: 5.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.208/0.6667, allocations: 100.9 MB / 465.5 MB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003499/0.6671, allocations: 71.97 kB / 465.6 MB, free: 11.48 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6618/1.329, allocations: 75.77 MB / 0.5287 GB, free: 110.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.036e-06/1.329, allocations: 0 / 0.5287 GB, free: 110.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002838/1.329, allocations: 70.5 kB / 0.5287 GB, free: 110.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: 1300 * Number of variables: 1300 Notification: Performance of Generate backend data structure: time 0.02249/1.352, allocations: 3.795 MB / 0.5324 GB, free: 110 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.947e-05/1.352, allocations: 10.41 kB / 0.5324 GB, free: 110 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003525/1.355, allocations: 0.6608 MB / 0.5331 GB, free: 109.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006991/1.363, allocations: 0.6725 MB / 0.5337 GB, free: 109.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009586/1.372, allocations: 2.209 MB / 0.5359 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004861/1.373, allocations: 292.8 kB / 0.5362 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00224/1.375, allocations: 380.2 kB / 0.5365 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03383/1.409, allocations: 8.836 MB / 0.5452 GB, free: 108.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002289/1.409, allocations: 24.05 kB / 0.5452 GB, free: 108.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002177/1.411, allocations: 169.5 kB / 0.5454 GB, free: 108.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00292/1.414, allocations: 0.8392 MB / 0.5462 GB, free: 108.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02568/1.44, allocations: 7.16 MB / 0.5532 GB, free: 108.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05879/1.499, allocations: 29.01 MB / 0.5815 GB, free: 90.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01557/1.515, allocations: 2.267 MB / 0.5837 GB, free: 89.61 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003076/1.518, allocations: 1.054 MB / 0.5847 GB, free: 89.14 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02008/1.538, allocations: 7.595 MB / 0.5922 GB, free: 84.04 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.71e-05/1.538, allocations: 51.84 kB / 0.5922 GB, free: 83.99 MB / 458.7 MB Notification: Performance of pre-optimization done (n=81): time 5.541e-06/1.538, allocations: 0 / 0.5922 GB, free: 83.99 MB / 458.7 MB Notification: Performance of matching and sorting (n=97): time 0.04464/1.583, allocations: 6.484 MB / 0.5985 GB, free: 81.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.658e-05/1.583, allocations: 143 kB / 0.5987 GB, free: 81.04 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008041/1.591, allocations: 2.308 MB / 0.6009 GB, free: 80.11 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003299/1.591, allocations: 41.48 kB / 0.601 GB, free: 80.07 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00284/1.594, allocations: 2.395 MB / 0.6033 GB, free: 78.19 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008277/1.595, allocations: 400.9 kB / 0.6037 GB, free: 77.91 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006369/1.596, allocations: 74.38 kB / 0.6038 GB, free: 77.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004892/1.596, allocations: 474.6 kB / 0.6042 GB, free: 77.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004438/1.601, allocations: 1.039 MB / 0.6052 GB, free: 77.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006784/1.607, allocations: 3.425 MB / 0.6086 GB, free: 73.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006269/1.614, allocations: 1.835 MB / 0.6104 GB, free: 71.85 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001228/1.614, allocations: 24 kB / 0.6104 GB, free: 71.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=497) (initialization): time 0.01599/1.63, allocations: 4.266 MB / 0.6146 GB, free: 68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/1.63, allocations: 48.03 kB / 0.6146 GB, free: 67.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001571/1.63, allocations: 91.56 kB / 0.6147 GB, free: 67.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002059/1.631, allocations: 124 kB / 0.6148 GB, free: 67.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00706/1.638, allocations: 0.9465 MB / 0.6157 GB, free: 66.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002/1.638, allocations: 169.2 kB / 0.6159 GB, free: 66.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004338/1.642, allocations: 199.1 kB / 0.6161 GB, free: 66.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008459/1.643, allocations: 232 kB / 0.6163 GB, free: 66.37 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 388 * Number of states: 0 () * Number of discrete variables: 40 (jointUSR.revolute.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],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],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 (497): * Single equations (assignments): 497 * 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 prepare postOptimizeDAE: time 0.0008973/1.644, allocations: 431.5 kB / 0.6167 GB, free: 65.95 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005931/1.645, allocations: 221.1 kB / 0.6169 GB, free: 65.73 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003596/1.648, allocations: 1.362 MB / 0.6183 GB, free: 64.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.039e-05/1.648, allocations: 15.95 kB / 0.6183 GB, free: 64.52 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/1.648, allocations: 0 / 0.6183 GB, free: 64.52 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/1.648, allocations: 3.141 kB / 0.6183 GB, free: 64.52 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01557/1.664, allocations: 6.165 MB / 0.6243 GB, free: 59.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.611e-05/1.664, allocations: 16 kB / 0.6243 GB, free: 59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001744/1.666, allocations: 239.2 kB / 0.6245 GB, free: 58.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.778e-05/1.666, allocations: 31.94 kB / 0.6246 GB, free: 58.77 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001544/1.666, allocations: 40 kB / 0.6246 GB, free: 58.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.658e-05/1.666, allocations: 31.73 kB / 0.6246 GB, free: 58.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.891e-05/1.666, allocations: 28.56 kB / 0.6247 GB, free: 58.68 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003684/1.67, allocations: 3.552 MB / 0.6281 GB, free: 54.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/1.671, allocations: 325.2 kB / 0.6284 GB, free: 54.38 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005198/1.672, allocations: 47.56 kB / 0.6285 GB, free: 54.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001856/1.673, allocations: 55.11 kB / 0.6285 GB, free: 54.29 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003267/1.674, allocations: 133.3 kB / 0.6287 GB, free: 54.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/1.674, allocations: 59.78 kB / 0.6287 GB, free: 54.13 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003969/1.678, allocations: 1.638 MB / 0.6303 GB, free: 52.66 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.678, allocations: 4 kB / 0.6303 GB, free: 52.65 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005061/1.683, allocations: 0.6757 MB / 0.631 GB, free: 51.98 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 130 * 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.004926/1.688, allocations: 8.656 MB / 0.6394 GB, free: 42.92 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005788/1.694, allocations: 2.49 MB / 0.6419 GB, free: 40.62 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.007e-05/1.694, allocations: 7.938 kB / 0.6419 GB, free: 40.61 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001382/1.695, allocations: 0.5994 MB / 0.6425 GB, free: 40.06 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002637/1.698, allocations: 304.3 kB / 0.6428 GB, free: 39.79 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02261/1.721, allocations: 6.992 MB / 0.6496 GB, free: 33.42 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005666/1.726, allocations: 2.809 MB / 0.6523 GB, free: 31.25 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003263/1.73, allocations: 1.484 MB / 0.6538 GB, free: 29.88 MB / 458.7 MB Notification: Performance of SimCode: time 1.623e-06/1.73, allocations: 4 kB / 0.6538 GB, free: 29.88 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.501/5.231, allocations: 58.49 MB / 0.7109 GB, free: 4.082 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointUSR_res.mat does not exist to compare? outputFormat=mat