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.363/2.363, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004597/0.0004596, allocations: 16 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3968/0.3973, allocations: 54.86 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1983/0.5956, allocations: 101 MB / 470.3 MB, free: 5.465 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003141/0.596, allocations: 79.8 kB / 470.4 MB, free: 5.391 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6602/1.256, allocations: 75.68 MB / 0.5333 GB, free: 38.72 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.256, allocations: 0 / 0.5333 GB, free: 38.72 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002239/1.257, allocations: 72 kB / 0.5334 GB, free: 38.65 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: 1300 * Number of variables: 1300 Notification: Performance of Generate backend data structure: time 0.02002/1.277, allocations: 3.955 MB / 0.5372 GB, free: 34.63 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/1.277, allocations: 8.031 kB / 0.5372 GB, free: 34.62 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003503/1.28, allocations: 0.6711 MB / 0.5379 GB, free: 33.94 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008164/1.288, allocations: 0.666 MB / 0.5385 GB, free: 33.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009524/1.298, allocations: 2.208 MB / 0.5407 GB, free: 31.01 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003637/1.298, allocations: 295.7 kB / 0.541 GB, free: 30.72 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001986/1.3, allocations: 383.9 kB / 0.5413 GB, free: 30.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02981/1.33, allocations: 8.936 MB / 0.5501 GB, free: 21.03 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001409/1.33, allocations: 19.81 kB / 0.5501 GB, free: 21.01 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001291/1.332, allocations: 175.9 kB / 0.5503 GB, free: 20.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002535/1.334, allocations: 0.831 MB / 0.5511 GB, free: 20 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0255/1.36, allocations: 7.295 MB / 0.5582 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06376/1.424, allocations: 29.02 MB / 0.5865 GB, free: 14.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01502/1.439, allocations: 2.291 MB / 0.5888 GB, free: 12.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01762/1.456, allocations: 7.599 MB / 0.5962 GB, free: 4.391 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.002e-05/1.457, allocations: 39.22 kB / 0.5962 GB, free: 4.344 MB / 426.7 MB Notification: Performance of pre-optimization done (n=81): time 4.158e-06/1.457, allocations: 0 / 0.5962 GB, free: 4.344 MB / 426.7 MB Notification: Performance of matching and sorting (n=97): time 0.03762/1.494, allocations: 7.125 MB / 0.6032 GB, free: 13.17 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/1.494, allocations: 145.6 kB / 0.6033 GB, free: 13 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006736/1.501, allocations: 2.329 MB / 0.6056 GB, free: 10.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002799/1.501, allocations: 45.69 kB / 0.6056 GB, free: 10.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002933/1.504, allocations: 2.381 MB / 0.608 GB, free: 8.191 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007825/1.505, allocations: 399.1 kB / 0.6083 GB, free: 7.797 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004772/1.506, allocations: 76 kB / 0.6084 GB, free: 7.723 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000398/1.506, allocations: 475.2 kB / 0.6089 GB, free: 7.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003312/1.509, allocations: 1.069 MB / 0.6099 GB, free: 6.18 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006058/1.516, allocations: 3.449 MB / 0.6133 GB, free: 1.543 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005146/1.521, allocations: 1.833 MB / 0.6151 GB, free: 15.71 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.487e-05/1.521, allocations: 24 kB / 0.6151 GB, free: 15.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=497) (initialization): time 0.01341/1.534, allocations: 4.325 MB / 0.6193 GB, free: 11.35 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/1.535, allocations: 44.94 kB / 0.6194 GB, free: 11.31 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001733/1.535, allocations: 91.94 kB / 0.6195 GB, free: 11.22 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001884/1.535, allocations: 124 kB / 0.6196 GB, free: 11.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006123/1.541, allocations: 0.9475 MB / 0.6205 GB, free: 10.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002375/1.541, allocations: 167.4 kB / 0.6207 GB, free: 9.984 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004158/1.546, allocations: 191.8 kB / 0.6208 GB, free: 9.797 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009356/1.547, allocations: 228 kB / 0.6211 GB, free: 9.574 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 () * Number of clocked 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.004858/1.551, allocations: 1.599 MB / 0.6226 GB, free: 7.965 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006398/1.552, allocations: 233 kB / 0.6228 GB, free: 7.734 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004154/1.556, allocations: 1.377 MB / 0.6242 GB, free: 6.344 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.006e-05/1.556, allocations: 12 kB / 0.6242 GB, free: 6.332 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/1.556, allocations: 7.938 kB / 0.6242 GB, free: 6.324 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.09e-05/1.556, allocations: 3.984 kB / 0.6242 GB, free: 6.32 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01767/1.574, allocations: 6.167 MB / 0.6302 GB, free: 15.82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.991e-05/1.574, allocations: 16.19 kB / 0.6302 GB, free: 15.81 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001679/1.576, allocations: 247.6 kB / 0.6305 GB, free: 15.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-05/1.576, allocations: 28 kB / 0.6305 GB, free: 15.54 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/1.576, allocations: 40 kB / 0.6305 GB, free: 15.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-05/1.576, allocations: 39.84 kB / 0.6306 GB, free: 15.46 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.43e-05/1.576, allocations: 27.88 kB / 0.6306 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005118/1.581, allocations: 3.573 MB / 0.6341 GB, free: 11.31 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/1.582, allocations: 329.8 kB / 0.6344 GB, free: 10.97 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005474/1.583, allocations: 51.92 kB / 0.6345 GB, free: 10.92 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001601/1.585, allocations: 51.97 kB / 0.6345 GB, free: 10.87 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003355/1.585, allocations: 136 kB / 0.6346 GB, free: 10.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/1.585, allocations: 52 kB / 0.6347 GB, free: 10.68 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004681/1.59, allocations: 1.66 MB / 0.6363 GB, free: 9.016 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.152e-06/1.59, allocations: 0 / 0.6363 GB, free: 9.016 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007402/1.597, allocations: 0.6835 MB / 0.637 GB, free: 8.332 MB / 474.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 () * Number of clocked 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.3568/1.954, allocations: 8.665 MB / 0.6454 GB, free: 125 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00682/1.961, allocations: 2.531 MB / 0.6479 GB, free: 125 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-05/1.961, allocations: 2.344 kB / 0.6479 GB, free: 125 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001544/1.963, allocations: 0.6113 MB / 0.6485 GB, free: 125 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002396/1.965, allocations: 307.6 kB / 0.6488 GB, free: 125 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03845/2.004, allocations: 71.22 MB / 0.7184 GB, free: 58.95 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006096/2.01, allocations: 2.805 MB / 0.7211 GB, free: 58.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003527/2.013, allocations: 1.483 MB / 0.7225 GB, free: 58.19 MB / 474.7 MB Notification: Performance of SimCode: time 1.262e-06/2.013, allocations: 3.5 kB / 0.7226 GB, free: 58.19 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.835/5.848, allocations: 57.75 MB / 0.779 GB, free: 29.91 MB / 474.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