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.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.393/2.393, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004598/0.0004595, allocations: 16 kB / 282.7 MB, free: 9.543 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3582, allocations: 48.7 MB / 331.4 MB, free: 6.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1658/0.524, allocations: 93.65 MB / 425 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/0.5244, allocations: 83.95 kB / 425.1 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5708/1.095, allocations: 74.46 MB / 499.6 MB, free: 91.88 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.096e-06/1.095, allocations: 0 / 499.6 MB, free: 91.88 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001802/1.095, allocations: 71.06 kB / 499.6 MB, free: 91.88 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: 1289 * Number of variables: 1289 Notification: Performance of Generate backend data structure: time 0.01463/1.11, allocations: 3.74 MB / 0.4916 GB, free: 90.31 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/1.11, allocations: 15 kB / 0.4916 GB, free: 90.31 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003065/1.113, allocations: 0.659 MB / 0.4922 GB, free: 90.24 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006103/1.119, allocations: 0.6755 MB / 0.4929 GB, free: 90 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007576/1.127, allocations: 2.197 MB / 0.495 GB, free: 89.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003788/1.127, allocations: 292.5 kB / 0.4953 GB, free: 89.37 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002002/1.129, allocations: 383.3 kB / 0.4957 GB, free: 89.26 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02935/1.159, allocations: 8.561 MB / 0.504 GB, free: 85.73 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001581/1.159, allocations: 18.72 kB / 0.5041 GB, free: 85.72 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001371/1.16, allocations: 172.7 kB / 0.5042 GB, free: 85.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002413/1.163, allocations: 0.7857 MB / 0.505 GB, free: 85.47 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02392/1.187, allocations: 6.786 MB / 0.5116 GB, free: 83.32 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05493/1.242, allocations: 27.73 MB / 0.5387 GB, free: 55.79 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01073/1.253, allocations: 1.941 MB / 0.5406 GB, free: 53.81 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01157/1.264, allocations: 6.337 MB / 0.5468 GB, free: 46.98 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/1.264, allocations: 47.16 kB / 0.5468 GB, free: 46.92 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 4.158e-06/1.264, allocations: 0 / 0.5468 GB, free: 46.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=95): time 0.02734/1.292, allocations: 6.292 MB / 0.553 GB, free: 40.58 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/1.292, allocations: 145.5 kB / 0.5531 GB, free: 40.41 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004517/1.296, allocations: 2.195 MB / 0.5553 GB, free: 38.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002434/1.297, allocations: 41.7 kB / 0.5553 GB, free: 38.15 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001734/1.298, allocations: 2.377 MB / 0.5576 GB, free: 35.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005019/1.299, allocations: 388.3 kB / 0.558 GB, free: 35.39 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002783/1.299, allocations: 76 kB / 0.5581 GB, free: 35.32 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002214/1.299, allocations: 466.8 kB / 0.5585 GB, free: 34.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002248/1.302, allocations: 0.9364 MB / 0.5594 GB, free: 33.92 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00365/1.305, allocations: 3.224 MB / 0.5626 GB, free: 29.55 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003781/1.309, allocations: 1.677 MB / 0.5642 GB, free: 27.87 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.408e-05/1.309, allocations: 24 kB / 0.5642 GB, free: 27.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=480) (initialization): time 0.009963/1.319, allocations: 3.982 MB / 0.5681 GB, free: 23.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.022e-05/1.319, allocations: 40 kB / 0.5682 GB, free: 23.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-05/1.32, allocations: 84 kB / 0.5682 GB, free: 23.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001272/1.32, allocations: 120 kB / 0.5683 GB, free: 23.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005022/1.325, allocations: 0.8935 MB / 0.5692 GB, free: 22.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000163/1.325, allocations: 159.4 kB / 0.5694 GB, free: 22.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003746/1.329, allocations: 167.9 kB / 0.5695 GB, free: 22.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008209/1.33, allocations: 224 kB / 0.5697 GB, free: 22.19 MB / 394.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: 37 (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],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],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 (480): * Single equations (assignments): 480 * 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.004239/1.334, allocations: 1.593 MB / 0.5713 GB, free: 20.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005518/1.334, allocations: 213.2 kB / 0.5715 GB, free: 20.38 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00302/1.337, allocations: 1.125 MB / 0.5726 GB, free: 19.24 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.859e-05/1.338, allocations: 11.98 kB / 0.5726 GB, free: 19.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/1.338, allocations: 8 kB / 0.5726 GB, free: 19.22 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/1.338, allocations: 3.984 kB / 0.5726 GB, free: 19.22 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01496/1.353, allocations: 6.155 MB / 0.5786 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.568e-05/1.353, allocations: 20.94 kB / 0.5787 GB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001517/1.354, allocations: 243.6 kB / 0.5789 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-05/1.354, allocations: 32 kB / 0.5789 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001666/1.354, allocations: 47.95 kB / 0.579 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.237e-05/1.354, allocations: 39.86 kB / 0.579 GB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.217e-05/1.355, allocations: 39.75 kB / 0.579 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003643/1.358, allocations: 3.753 MB / 0.5827 GB, free: 7.863 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008716/1.359, allocations: 329.9 kB / 0.583 GB, free: 7.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004745/1.36, allocations: 47.98 kB / 0.5831 GB, free: 7.473 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/1.361, allocations: 43.98 kB / 0.5831 GB, free: 7.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002398/1.361, allocations: 155.4 kB / 0.5833 GB, free: 7.277 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.932e-05/1.361, allocations: 63.44 kB / 0.5833 GB, free: 7.219 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003515/1.365, allocations: 1.6 MB / 0.5849 GB, free: 5.609 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.365, allocations: 0 / 0.5849 GB, free: 5.609 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0047/1.37, allocations: 0.6484 MB / 0.5855 GB, free: 4.961 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 89 * 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 (133): * Single equations (assignments): 133 * 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.006305/1.376, allocations: 9.638 MB / 0.5949 GB, free: 10.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006039/1.382, allocations: 2.294 MB / 0.5972 GB, free: 8.418 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-05/1.382, allocations: 4.5 kB / 0.5972 GB, free: 8.414 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/1.384, allocations: 0.5765 MB / 0.5977 GB, free: 7.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002261/1.386, allocations: 308.9 kB / 0.598 GB, free: 7.543 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3248/1.711, allocations: 68.83 MB / 0.6652 GB, free: 68.27 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006257/1.717, allocations: 2.811 MB / 0.668 GB, free: 67.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003197/1.721, allocations: 1.49 MB / 0.6694 GB, free: 67.51 MB / 426.7 MB Notification: Performance of SimCode: time 1.242e-06/1.721, allocations: 0 / 0.6694 GB, free: 67.51 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.687/5.408, allocations: 56.01 MB / 0.7241 GB, free: 44.35 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSP_res.mat does not exist to compare? outputFormat=mat