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.SphericalSpherical2.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.SphericalSpherical2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.229/2.229, allocations: 234.9 MB / 250.4 MB, free: 9.699 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004183/0.0004183, allocations: 16 kB / 314.4 MB, free: 9.645 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3486, allocations: 54.86 MB / 369.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical2): time 0.1576/0.5062, allocations: 104.2 MB / 473.5 MB, free: 4.332 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06553/0.5718, allocations: 24.31 MB / 497.8 MB, free: 11.95 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02112/0.593, allocations: 0.5416 MB / 498.3 MB, free: 11.41 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01807/0.6111, allocations: 5.482 MB / 0.492 GB, free: 5.898 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3962/1.007, allocations: 14.36 MB / 0.506 GB, free: 5.238 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01027/1.018, allocations: 1.978 MB / 0.5079 GB, free: 5.211 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.07661/1.094, allocations: 28.79 MB / 0.5361 GB, free: 1.234 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04272/1.137, allocations: 22.14 MB / 0.5577 GB, free: 5.477 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006838/1.144, allocations: 2.841 MB / 0.5604 GB, free: 3.664 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008489/1.153, allocations: 3.992 MB / 0.5643 GB, free: 0.9336 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002921/1.155, allocations: 476 kB / 0.5648 GB, free: 480 kB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006012/1.162, allocations: 1.462 MB / 0.5662 GB, free: 15.23 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008422/1.17, allocations: 5.197 MB / 0.5713 GB, free: 11.53 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00499/1.175, allocations: 2.617 MB / 0.5739 GB, free: 10.68 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02931/1.204, allocations: 20.26 MB / 0.5936 GB, free: 9.137 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/1.204, allocations: 4 kB / 0.5936 GB, free: 9.133 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.276e-06/1.204, allocations: 0 / 0.5936 GB, free: 9.133 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0007423/1.205, allocations: 0 / 0.5936 GB, free: 9.133 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4609 * Number of variables: 4609 Notification: Performance of Generate backend data structure: time 0.05218/1.257, allocations: 13.1 MB / 0.6064 GB, free: 13.17 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/1.257, allocations: 8.031 kB / 0.6064 GB, free: 13.16 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008961/1.266, allocations: 2.504 MB / 0.6089 GB, free: 11.6 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.53/1.796, allocations: 22.38 MB / 0.6307 GB, free: 6.262 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03014/1.827, allocations: 9.745 MB / 0.6403 GB, free: 15.53 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001043/1.828, allocations: 0.882 MB / 0.6411 GB, free: 15.04 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007609/1.835, allocations: 1.525 MB / 0.6426 GB, free: 14 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09587/1.931, allocations: 31.96 MB / 0.6738 GB, free: 5.863 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007416/1.932, allocations: 113.3 kB / 0.6739 GB, free: 5.801 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004711/1.937, allocations: 0.5331 MB / 0.6745 GB, free: 5.66 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01073/1.948, allocations: 4.353 MB / 0.6787 GB, free: 2.141 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6995/2.647, allocations: 26.32 MB / 0.7044 GB, free: 208.5 MB / 0.5418 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.186/2.833, allocations: 110.8 MB / 0.8126 GB, free: 122.8 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06251/2.896, allocations: 12.68 MB / 0.825 GB, free: 110 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005812/2.902, allocations: 4.837 MB / 0.8297 GB, free: 104.5 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001107/2.902, allocations: 77.52 kB / 0.8298 GB, free: 104.4 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=435): time 9.178e-06/2.902, allocations: 0 / 0.8298 GB, free: 104.4 MB / 0.5418 GB Notification: Performance of matching and sorting (n=568): time 1.386/4.288, allocations: 134.5 MB / 0.9612 GB, free: 196.6 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.05387/4.342, allocations: 25.9 MB / 0.9865 GB, free: 179.5 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02543/4.367, allocations: 10.25 MB / 0.9965 GB, free: 171.4 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 0.001646/4.369, allocations: 112.5 kB / 0.9966 GB, free: 171.3 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.006081/4.375, allocations: 8.551 MB / 1.005 GB, free: 162.7 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 0.003581/4.379, allocations: 2.186 MB / 1.007 GB, free: 160.6 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002063/4.381, allocations: 322.7 kB / 1.007 GB, free: 160.3 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0007926/4.382, allocations: 1 MB / 1.008 GB, free: 159.2 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01981/4.401, allocations: 9.698 MB / 1.018 GB, free: 149.5 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02496/4.426, allocations: 18.92 MB / 1.036 GB, free: 126.4 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02536/4.452, allocations: 13.13 MB / 1.049 GB, free: 113.3 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000232/4.452, allocations: 92 kB / 1.049 GB, free: 113.2 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2094) (initialization): time 0.1597/4.612, allocations: 40.74 MB / 1.089 GB, free: 72.34 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001884/4.612, allocations: 144 kB / 1.089 GB, free: 72.2 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1267/4.739, allocations: 27.87 MB / 1.116 GB, free: 44.14 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6163/5.355, allocations: 15.59 MB / 1.132 GB, free: 175.5 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02242/5.378, allocations: 3.853 MB / 1.135 GB, free: 175.5 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1347/5.512, allocations: 62.81 MB / 1.197 GB, free: 142.1 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02704/5.54, allocations: 1.796 MB / 1.198 GB, free: 140.9 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003518/5.543, allocations: 0.9737 MB / 1.199 GB, free: 140 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1467 * Number of states: 0 () * Number of discrete variables: 75 (freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.arrowColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],rs3.arrowColor[3],rs3.arrowColor[2],rs3.arrowColor[1],rs2.arrowColor[3],rs2.arrowColor[2],rs2.arrowColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],sphericalSpherical1.massColor[3],sphericalSpherical1.massColor[2],sphericalSpherical1.massColor[1],sphericalSpherical1.sphereColor[3],sphericalSpherical1.sphereColor[2],sphericalSpherical1.sphereColor[1],sphericalSpherical1.rodColor[3],sphericalSpherical1.rodColor[2],sphericalSpherical1.rodColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],rs1.arrowColor[3],rs1.arrowColor[2],rs1.arrowColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1918): * Single equations (assignments): 1889 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 6 {1,1,4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(8,82.8%) 32,(1,100.0%) 3,(4,93.8%) 20,(7,63.3%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01523/5.558, allocations: 6.191 MB / 1.205 GB, free: 134.4 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002558/5.561, allocations: 0.8836 MB / 1.206 GB, free: 134 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1205/5.681, allocations: 29.44 MB / 1.235 GB, free: 104.6 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1197/5.801, allocations: 27.67 MB / 1.262 GB, free: 76.84 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001349/5.801, allocations: 25.09 kB / 1.262 GB, free: 76.81 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001596/5.802, allocations: 31.89 kB / 1.262 GB, free: 76.78 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5778/6.379, allocations: 64.09 MB / 1.325 GB, free: 166.9 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.894e-05/6.38, allocations: 1.281 kB / 1.325 GB, free: 166.9 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01005/6.39, allocations: 1.051 MB / 1.326 GB, free: 166.9 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09836/6.488, allocations: 15.91 MB / 1.341 GB, free: 166.8 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002034/6.49, allocations: 182.6 kB / 1.341 GB, free: 166.8 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1475/6.638, allocations: 68.57 MB / 1.408 GB, free: 122.2 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0549/6.693, allocations: 25.69 MB / 1.434 GB, free: 95.91 MB / 0.5419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1457/6.838, allocations: 40.84 MB / 1.473 GB, free: 55.3 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003618/6.842, allocations: 0.9882 MB / 1.474 GB, free: 54.79 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004774/6.847, allocations: 132 kB / 1.474 GB, free: 54.66 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01611/6.863, allocations: 0.8957 MB / 1.475 GB, free: 53.76 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003539/6.867, allocations: 452.5 kB / 1.476 GB, free: 53.32 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001821/6.869, allocations: 187.8 kB / 1.476 GB, free: 53.14 MB / 0.5419 GB Notification: Performance of sorting global known variables: time 0.01593/6.884, allocations: 6.466 MB / 1.482 GB, free: 46.72 MB / 0.5419 GB Notification: Performance of sort global known variables: time 7.01e-07/6.885, allocations: 0 / 1.482 GB, free: 46.72 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.02509/6.91, allocations: 4.569 MB / 1.487 GB, free: 42.16 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 32 ($STATESET6.x[2],$STATESET6.x[1],$STATESET5.x[5],$STATESET5.x[4],$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[6],$STATESET4.x[5],$STATESET4.x[4],$STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyBox1.body.w_a[1],bodyBox1.body.w_a[2],bodyBox1.body.w_a[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (411): * Single equations (assignments): 396 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {3,8,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 17,(3,100.0%) 3,(8,82.8%) 29,(7,93.9%) 12,(7,63.3%) 20} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.5287/7.438, allocations: 41.65 MB / 1.527 GB, free: 159.5 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.06146/7.5, allocations: 24.52 MB / 1.551 GB, free: 152.1 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/7.5, allocations: 3.656 kB / 1.551 GB, free: 152.1 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0356/7.536, allocations: 11.93 MB / 1.563 GB, free: 147 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01257/7.548, allocations: 1.352 MB / 1.564 GB, free: 146.5 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1324/7.681, allocations: 74.89 MB / 1.637 GB, free: 75.44 MB / 0.5419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02023/7.701, allocations: 9.439 MB / 1.647 GB, free: 67.72 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01532/7.716, allocations: 6.568 MB / 1.653 GB, free: 61.15 MB / 0.5419 GB Notification: Performance of SimCode: time 1.232e-06/7.716, allocations: 0 / 1.653 GB, free: 61.15 MB / 0.5419 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.58/19.3, allocations: 0.9313 GB / 2.584 GB, free: 160.2 MB / 0.5731 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical2_res.mat does not exist to compare? outputFormat=mat