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.SphericalSpherical2.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.SphericalSpherical2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.862/1.862, allocations: 209.2 MB / 224.8 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004235/0.0004236, allocations: 12 kB / 282.6 MB, free: 9.609 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3513, allocations: 48.71 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical2): time 0.1561/0.5075, allocations: 104.2 MB / 435.5 MB, free: 6.082 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06842/0.576, allocations: 24.28 MB / 459.7 MB, free: 13.74 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02308/0.5991, allocations: 0.5377 MB / 460.3 MB, free: 13.2 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01888/0.618, allocations: 5.49 MB / 465.8 MB, free: 7.684 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3713/0.9894, allocations: 14.35 MB / 480.1 MB, free: 5.461 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01092/1, allocations: 1.997 MB / 482.1 MB, free: 5.43 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.07765/1.078, allocations: 28.79 MB / 0.4989 GB, free: 1.562 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04414/1.122, allocations: 22.13 MB / 0.5205 GB, free: 5.391 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007358/1.13, allocations: 2.842 MB / 0.5233 GB, free: 3.582 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008809/1.139, allocations: 3.989 MB / 0.5272 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003192/1.142, allocations: 476 kB / 0.5277 GB, free: 396 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006304/1.148, allocations: 1.446 MB / 0.5291 GB, free: 15.16 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.009031/1.157, allocations: 5.201 MB / 0.5342 GB, free: 11.45 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005358/1.163, allocations: 2.618 MB / 0.5367 GB, free: 10.61 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03038/1.193, allocations: 20.25 MB / 0.5565 GB, free: 9.07 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/1.193, allocations: 0 / 0.5565 GB, free: 9.07 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.193, allocations: 0 / 0.5565 GB, free: 9.07 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007878/1.194, allocations: 0 / 0.5565 GB, free: 9.07 MB / 442.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.05326/1.247, allocations: 13.1 MB / 0.5693 GB, free: 13.11 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/1.247, allocations: 8.031 kB / 0.5693 GB, free: 13.1 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009348/1.257, allocations: 2.499 MB / 0.5717 GB, free: 11.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5341/1.791, allocations: 22.27 MB / 0.5935 GB, free: 6.297 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03136/1.822, allocations: 9.723 MB / 0.603 GB, free: 15.58 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001102/1.823, allocations: 0.8885 MB / 0.6038 GB, free: 15.08 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008484/1.832, allocations: 1.526 MB / 0.6053 GB, free: 14.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09842/1.93, allocations: 31.96 MB / 0.6365 GB, free: 5.91 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007837/1.931, allocations: 112.8 kB / 0.6367 GB, free: 5.852 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004874/1.936, allocations: 0.5324 MB / 0.6372 GB, free: 5.707 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01097/1.947, allocations: 4.348 MB / 0.6414 GB, free: 2.195 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6321/2.579, allocations: 26.33 MB / 0.6671 GB, free: 190.2 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1876/2.767, allocations: 110.7 MB / 0.7752 GB, free: 84.88 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06306/2.83, allocations: 12.68 MB / 0.7876 GB, free: 72.04 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005813/2.836, allocations: 4.837 MB / 0.7923 GB, free: 66.46 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000107/2.836, allocations: 77.52 kB / 0.7924 GB, free: 66.37 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=435): time 8.015e-06/2.836, allocations: 4 kB / 0.7924 GB, free: 66.37 MB / 0.4949 GB Notification: Performance of matching and sorting (n=568): time 1.334/4.17, allocations: 134.5 MB / 0.9238 GB, free: 155.4 MB / 0.495 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.05267/4.223, allocations: 25.9 MB / 0.9491 GB, free: 128.6 MB / 0.495 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01763/4.241, allocations: 10.26 MB / 0.9591 GB, free: 118.4 MB / 0.495 GB Notification: Performance of collectPreVariables (initialization): time 0.001699/4.242, allocations: 112.2 kB / 0.9592 GB, free: 118.3 MB / 0.495 GB Notification: Performance of collectInitialEqns (initialization): time 0.005939/4.248, allocations: 8.544 MB / 0.9676 GB, free: 109.8 MB / 0.495 GB Notification: Performance of collectInitialBindings (initialization): time 0.003667/4.252, allocations: 2.185 MB / 0.9697 GB, free: 107.6 MB / 0.495 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002098/4.254, allocations: 324.1 kB / 0.97 GB, free: 107.3 MB / 0.495 GB Notification: Performance of setup shared object (initialization): time 0.0008675/4.255, allocations: 0.9913 MB / 0.971 GB, free: 106.3 MB / 0.495 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02024/4.275, allocations: 9.581 MB / 0.9803 GB, free: 96.72 MB / 0.495 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02521/4.301, allocations: 18.8 MB / 0.9987 GB, free: 73.61 MB / 0.495 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02637/4.327, allocations: 13.01 MB / 1.011 GB, free: 60.57 MB / 0.495 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002311/4.327, allocations: 92 kB / 1.011 GB, free: 60.48 MB / 0.495 GB Notification: Performance of matching and sorting (n=2094) (initialization): time 0.4396/4.767, allocations: 37.05 MB / 1.048 GB, free: 150.2 MB / 0.495 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002821/4.767, allocations: 142.2 kB / 1.048 GB, free: 150.2 MB / 0.495 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09375/4.861, allocations: 24.17 MB / 1.071 GB, free: 145.5 MB / 0.495 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06964/4.931, allocations: 11.66 MB / 1.083 GB, free: 142.3 MB / 0.495 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02376/4.955, allocations: 3.858 MB / 1.087 GB, free: 141.6 MB / 0.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1022/5.057, allocations: 54.59 MB / 1.14 GB, free: 93.66 MB / 0.495 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02689/5.084, allocations: 1.782 MB / 1.142 GB, free: 91.92 MB / 0.495 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003458/5.087, allocations: 0.9713 MB / 1.143 GB, free: 90.95 MB / 0.495 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): 6 * Torn equation systems: 8 * 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: 2 {1,1} * 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: 4 {3 1,3 1,3 1,3 1} Notification: Performance of prepare postOptimizeDAE: time 0.01553/5.103, allocations: 6.193 MB / 1.149 GB, free: 84.98 MB / 0.495 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002604/5.105, allocations: 0.8821 MB / 1.149 GB, free: 84.57 MB / 0.495 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1224/5.228, allocations: 29.45 MB / 1.178 GB, free: 54.98 MB / 0.495 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1186/5.347, allocations: 27.67 MB / 1.205 GB, free: 27.15 MB / 0.495 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001176/5.347, allocations: 28 kB / 1.205 GB, free: 27.12 MB / 0.495 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001549/5.347, allocations: 27.89 kB / 1.205 GB, free: 27.1 MB / 0.495 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5294/5.876, allocations: 64.09 MB / 1.268 GB, free: 132.6 MB / 0.495 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.547e-05/5.876, allocations: 3.094 kB / 1.268 GB, free: 132.6 MB / 0.495 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01005/5.886, allocations: 1.046 MB / 1.269 GB, free: 132.5 MB / 0.495 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09917/5.986, allocations: 15.91 MB / 1.284 GB, free: 126 MB / 0.495 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001851/5.988, allocations: 176.7 kB / 1.285 GB, free: 125.8 MB / 0.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1389/6.127, allocations: 68.56 MB / 1.352 GB, free: 56.53 MB / 0.495 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05364/6.18, allocations: 25.7 MB / 1.377 GB, free: 30.19 MB / 0.495 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4703/6.651, allocations: 40.84 MB / 1.417 GB, free: 139.8 MB / 0.495 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003171/6.654, allocations: 0.9798 MB / 1.417 GB, free: 139.6 MB / 0.495 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004365/6.658, allocations: 135.2 kB / 1.418 GB, free: 139.6 MB / 0.495 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01554/6.674, allocations: 0.8943 MB / 1.419 GB, free: 139.5 MB / 0.495 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003115/6.677, allocations: 452.3 kB / 1.419 GB, free: 139.4 MB / 0.495 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001345/6.678, allocations: 180.7 kB / 1.419 GB, free: 139.4 MB / 0.495 GB Notification: Performance of sorting global known variables: time 0.01459/6.693, allocations: 6.468 MB / 1.425 GB, free: 137.3 MB / 0.495 GB Notification: Performance of sort global known variables: time 6.11e-07/6.693, allocations: 2.781 kB / 1.425 GB, free: 137.3 MB / 0.495 GB Notification: Performance of remove unused functions: time 0.02244/6.715, allocations: 4.49 MB / 1.43 GB, free: 136.9 MB / 0.495 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.1446/6.86, allocations: 41.65 MB / 1.47 GB, free: 112.9 MB / 0.495 GB Notification: Performance of simCode: created initialization part: time 0.05518/6.915, allocations: 24.29 MB / 1.494 GB, free: 88.62 MB / 0.495 GB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/6.915, allocations: 4 kB / 1.494 GB, free: 88.61 MB / 0.495 GB Notification: Performance of simCode: created simulation system equations: time 0.03283/6.948, allocations: 11.94 MB / 1.506 GB, free: 76.59 MB / 0.495 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01157/6.96, allocations: 1.347 MB / 1.507 GB, free: 75.3 MB / 0.495 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4851/7.445, allocations: 74.87 MB / 1.58 GB, free: 122.4 MB / 0.495 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02601/7.471, allocations: 9.442 MB / 1.59 GB, free: 121.4 MB / 0.495 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01601/7.487, allocations: 6.561 MB / 1.596 GB, free: 121.4 MB / 0.495 GB Notification: Performance of SimCode: time 7.11e-07/7.487, allocations: 4.406 kB / 1.596 GB, free: 121.4 MB / 0.495 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.39/18.87, allocations: 0.9279 GB / 2.524 GB, free: 159.5 MB / 0.5419 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical2_res.mat does not exist to compare? outputFormat=mat