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.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.246/2.246, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006227/0.0006228, allocations: 12 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3508, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1842/0.535, allocations: 100.2 MB / 469.5 MB, free: 6.289 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.5354, allocations: 83.89 kB / 469.6 MB, free: 6.207 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6533/1.189, allocations: 74.45 MB / 0.5313 GB, free: 40.72 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.189, allocations: 0 / 0.5313 GB, free: 40.72 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001713/1.189, allocations: 72 kB / 0.5314 GB, free: 40.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: 1289 * Number of variables: 1289 Notification: Performance of Generate backend data structure: time 0.0151/1.204, allocations: 3.748 MB / 0.535 GB, free: 36.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/1.204, allocations: 12.03 kB / 0.535 GB, free: 36.82 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002799/1.207, allocations: 0.6553 MB / 0.5357 GB, free: 36.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005973/1.213, allocations: 0.6737 MB / 0.5363 GB, free: 35.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007299/1.22, allocations: 2.193 MB / 0.5385 GB, free: 33.24 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003495/1.221, allocations: 295.8 kB / 0.5388 GB, free: 32.95 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001775/1.223, allocations: 387.9 kB / 0.5391 GB, free: 32.57 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02883/1.251, allocations: 8.56 MB / 0.5475 GB, free: 23.62 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001688/1.252, allocations: 19.81 kB / 0.5475 GB, free: 23.6 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001217/1.253, allocations: 171.9 kB / 0.5477 GB, free: 23.43 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002355/1.255, allocations: 0.7798 MB / 0.5484 GB, free: 22.65 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0237/1.279, allocations: 6.783 MB / 0.5551 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05613/1.335, allocations: 27.72 MB / 0.5821 GB, free: 3.383 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01135/1.347, allocations: 1.945 MB / 0.584 GB, free: 1.402 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01375/1.36, allocations: 6.348 MB / 0.5902 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.62e-05/1.36, allocations: 43.22 kB / 0.5903 GB, free: 10.47 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 4.068e-06/1.36, allocations: 0 / 0.5903 GB, free: 10.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=95): time 0.03108/1.392, allocations: 6.295 MB / 0.5964 GB, free: 4.117 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/1.392, allocations: 137.5 kB / 0.5966 GB, free: 3.953 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005823/1.398, allocations: 2.199 MB / 0.5987 GB, free: 1.734 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002256/1.398, allocations: 41.7 kB / 0.5987 GB, free: 1.688 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002719/1.401, allocations: 2.374 MB / 0.6011 GB, free: 15.28 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006558/1.401, allocations: 383.2 kB / 0.6014 GB, free: 14.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004115/1.402, allocations: 72 kB / 0.6015 GB, free: 14.83 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000397/1.402, allocations: 474.8 kB / 0.6019 GB, free: 14.36 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003096/1.405, allocations: 0.9325 MB / 0.6029 GB, free: 13.43 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005066/1.41, allocations: 3.224 MB / 0.606 GB, free: 9.055 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004258/1.415, allocations: 1.681 MB / 0.6076 GB, free: 7.375 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.048e-05/1.415, allocations: 27.94 kB / 0.6077 GB, free: 7.348 MB / 442.7 MB Notification: Performance of matching and sorting (n=480) (initialization): time 0.01193/1.427, allocations: 3.986 MB / 0.6116 GB, free: 3.355 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.462e-05/1.427, allocations: 42.03 kB / 0.6116 GB, free: 3.316 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001506/1.427, allocations: 84 kB / 0.6117 GB, free: 3.234 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001797/1.427, allocations: 120 kB / 0.6118 GB, free: 3.117 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005597/1.433, allocations: 0.8932 MB / 0.6127 GB, free: 2.223 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000216/1.433, allocations: 163.4 kB / 0.6128 GB, free: 2.062 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003602/1.437, allocations: 167.9 kB / 0.613 GB, free: 1.898 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007596/1.437, allocations: 220 kB / 0.6132 GB, free: 1.684 MB / 442.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.004378/1.442, allocations: 1.585 MB / 0.6147 GB, free: 92 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000615/1.442, allocations: 221.1 kB / 0.615 GB, free: 15.87 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003252/1.446, allocations: 1.13 MB / 0.6161 GB, free: 14.73 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/1.446, allocations: 8 kB / 0.6161 GB, free: 14.72 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/1.446, allocations: 8 kB / 0.6161 GB, free: 14.71 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.051e-05/1.446, allocations: 7.969 kB / 0.6161 GB, free: 14.71 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01575/1.462, allocations: 6.147 MB / 0.6221 GB, free: 8.203 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.873e-05/1.462, allocations: 20 kB / 0.6221 GB, free: 8.184 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/1.463, allocations: 243.5 kB / 0.6223 GB, free: 7.945 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.707e-05/1.463, allocations: 32 kB / 0.6224 GB, free: 7.914 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001505/1.464, allocations: 44.62 kB / 0.6224 GB, free: 7.871 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.646e-05/1.464, allocations: 39.86 kB / 0.6224 GB, free: 7.832 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.041e-05/1.464, allocations: 31.88 kB / 0.6225 GB, free: 7.801 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005266/1.469, allocations: 3.773 MB / 0.6262 GB, free: 3.332 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009707/1.47, allocations: 322 kB / 0.6265 GB, free: 2.996 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000529/1.471, allocations: 51.98 kB / 0.6265 GB, free: 2.945 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001558/1.472, allocations: 51.94 kB / 0.6266 GB, free: 2.895 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003003/1.472, allocations: 143.4 kB / 0.6267 GB, free: 2.754 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/1.473, allocations: 60 kB / 0.6268 GB, free: 2.695 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004515/1.477, allocations: 1.604 MB / 0.6283 GB, free: 1.082 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.477, allocations: 0 / 0.6283 GB, free: 1.082 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005073/1.482, allocations: 0.6484 MB / 0.629 GB, free: 444 kB / 458.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.007911/1.49, allocations: 9.626 MB / 0.6384 GB, free: 6.18 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006264/1.497, allocations: 2.294 MB / 0.6406 GB, free: 3.902 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.131e-05/1.497, allocations: 4 kB / 0.6406 GB, free: 3.898 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001666/1.498, allocations: 0.5779 MB / 0.6412 GB, free: 3.324 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/1.501, allocations: 309.3 kB / 0.6415 GB, free: 3.02 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3794/1.88, allocations: 68.83 MB / 0.7087 GB, free: 70.04 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008636/1.889, allocations: 2.801 MB / 0.7114 GB, free: 69.29 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005047/1.894, allocations: 1.494 MB / 0.7129 GB, free: 69.28 MB / 474.7 MB Notification: Performance of SimCode: time 1.543e-06/1.894, allocations: 2.719 kB / 0.7129 GB, free: 69.28 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.589/5.483, allocations: 55.99 MB / 0.7676 GB, free: 42.07 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointUSP_res.mat does not exist to compare? outputFormat=mat