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.459/2.459, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004555/0.0004556, allocations: 12 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3518, allocations: 54.86 MB / 369.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5357/0.8875, allocations: 111 MB / 480.4 MB, free: 40.79 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/0.8879, allocations: 88.53 kB / 480.4 MB, free: 40.78 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.236/2.124, allocations: 229.6 MB / 0.6934 GB, free: 56.03 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.084e-06/2.124, allocations: 0 / 0.6934 GB, free: 56.03 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0009223/2.125, allocations: 282 kB / 0.6936 GB, free: 56.02 MB / 490.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.1172/2.242, allocations: 14.53 MB / 0.7078 GB, free: 51.32 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/2.242, allocations: 9.25 kB / 0.7078 GB, free: 51.32 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01363/2.256, allocations: 2.811 MB / 0.7106 GB, free: 51.13 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08156/2.337, allocations: 10.92 MB / 0.7212 GB, free: 50.27 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05444/2.392, allocations: 15.58 MB / 0.7365 GB, free: 48.95 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001412/2.393, allocations: 1.088 MB / 0.7375 GB, free: 48.92 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00746/2.401, allocations: 1.45 MB / 0.7389 GB, free: 48.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1103/2.511, allocations: 32.32 MB / 0.7705 GB, free: 39.83 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001326/2.512, allocations: 156.2 kB / 0.7706 GB, free: 39.81 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008092/2.521, allocations: 0.6572 MB / 0.7713 GB, free: 39.39 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007318/2.528, allocations: 2.332 MB / 0.7736 GB, free: 38.99 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09747/2.626, allocations: 26 MB / 0.799 GB, free: 19.31 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6364/3.262, allocations: 130.7 MB / 0.9266 GB, free: 26.05 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07795/3.34, allocations: 12.46 MB / 0.9387 GB, free: 25.36 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006339/3.346, allocations: 4.836 MB / 0.9435 GB, free: 21.37 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001273/3.347, allocations: 85.36 kB / 0.9435 GB, free: 21.32 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=435): time 8.827e-06/3.347, allocations: 0 / 0.9435 GB, free: 21.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=569): time 1.273/4.619, allocations: 135.1 MB / 1.075 GB, free: 122.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.05491/4.674, allocations: 25.89 MB / 1.101 GB, free: 114.3 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02323/4.698, allocations: 8.438 MB / 1.109 GB, free: 113.9 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001919/4.7, allocations: 117.6 kB / 1.109 GB, free: 113.9 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.007974/4.708, allocations: 8.573 MB / 1.117 GB, free: 110.1 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004642/4.712, allocations: 2.192 MB / 1.12 GB, free: 108.9 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003644/4.716, allocations: 319.6 kB / 1.12 GB, free: 108.9 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.002353/4.718, allocations: 0.9914 MB / 1.121 GB, free: 108.5 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02374/4.742, allocations: 9.411 MB / 1.13 GB, free: 108.5 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03068/4.773, allocations: 18.61 MB / 1.148 GB, free: 95.72 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02995/4.803, allocations: 12.85 MB / 1.161 GB, free: 90.87 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003622/4.803, allocations: 93.34 kB / 1.161 GB, free: 90.87 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2101) (initialization): time 0.1282/4.932, allocations: 36.43 MB / 1.196 GB, free: 79.47 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002545/4.932, allocations: 144 kB / 1.197 GB, free: 79.47 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09097/5.023, allocations: 23.46 MB / 1.219 GB, free: 69.79 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06515/5.088, allocations: 10.94 MB / 1.23 GB, free: 62.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02393/5.112, allocations: 3.85 MB / 1.234 GB, free: 59.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5568/5.669, allocations: 52.9 MB / 1.286 GB, free: 101.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0391/5.708, allocations: 1.81 MB / 1.287 GB, free: 101.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005313/5.713, allocations: 0.9738 MB / 1.288 GB, free: 101.7 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1475 * 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 (1925): * Single equations (assignments): 1896 * 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.02136/5.735, allocations: 6.202 MB / 1.294 GB, free: 101.5 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003169/5.738, allocations: 0.8782 MB / 1.295 GB, free: 101.5 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1224/5.86, allocations: 29.05 MB / 1.324 GB, free: 99.96 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1686/6.029, allocations: 27.28 MB / 1.35 GB, free: 92.54 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001349/6.029, allocations: 27.12 kB / 1.35 GB, free: 92.54 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001651/6.03, allocations: 31.56 kB / 1.35 GB, free: 92.54 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2035/6.233, allocations: 63.44 MB / 1.412 GB, free: 60.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-05/6.233, allocations: 4 kB / 1.412 GB, free: 60.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009571/6.243, allocations: 1.015 MB / 1.413 GB, free: 59.31 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09319/6.336, allocations: 15.69 MB / 1.429 GB, free: 43.7 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002002/6.338, allocations: 182.1 kB / 1.429 GB, free: 43.53 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.562/6.9, allocations: 67.66 MB / 1.495 GB, free: 96.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05463/6.955, allocations: 25.7 MB / 1.52 GB, free: 88.09 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1413/7.096, allocations: 41.35 MB / 1.56 GB, free: 76.16 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003759/7.1, allocations: 0.9465 MB / 1.561 GB, free: 76 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004545/7.104, allocations: 133.4 kB / 1.561 GB, free: 75.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0159/7.12, allocations: 0.9017 MB / 1.562 GB, free: 75.85 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004026/7.124, allocations: 453.3 kB / 1.563 GB, free: 75.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001863/7.126, allocations: 187.4 kB / 1.563 GB, free: 75.76 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01681/7.143, allocations: 5.865 MB / 1.569 GB, free: 73.84 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.322e-06/7.143, allocations: 3.031 kB / 1.569 GB, free: 73.84 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02682/7.17, allocations: 4.427 MB / 1.573 GB, free: 73.48 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (412): * Single equations (assignments): 397 * 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.1431/7.313, allocations: 42.65 MB / 1.615 GB, free: 50.03 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.05764/7.371, allocations: 23.95 MB / 1.638 GB, free: 29.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/7.371, allocations: 1.938 kB / 1.638 GB, free: 29.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0335/7.405, allocations: 11.75 MB / 1.649 GB, free: 19.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0129/7.417, allocations: 1.344 MB / 1.651 GB, free: 18.64 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.212/8.629, allocations: 296.9 MB / 1.941 GB, free: 154.8 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03827/8.668, allocations: 9.44 MB / 1.95 GB, free: 153.8 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02573/8.694, allocations: 6.551 MB / 1.956 GB, free: 153.8 MB / 0.6823 GB Notification: Performance of SimCode: time 2.345e-06/8.694, allocations: 0 / 1.956 GB, free: 153.8 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.99/20.69, allocations: 0.927 GB / 2.883 GB, free: 135.1 MB / 0.6823 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