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 2.184/2.184, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006457/0.0006457, allocations: 12 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4351/0.4358, allocations: 48.7 MB / 331.4 MB, free: 6.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.192/0.6279, allocations: 104.2 MB / 435.6 MB, free: 6.012 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003401/0.6283, allocations: 79.95 kB / 435.7 MB, free: 5.934 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.473/2.101, allocations: 229.4 MB / 0.6495 GB, free: 30.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.456e-06/2.101, allocations: 0 / 0.6495 GB, free: 30.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008319/2.102, allocations: 280.5 kB / 0.6497 GB, free: 30.37 MB / 426.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.08876/2.191, allocations: 14.54 MB / 0.6639 GB, free: 25.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/2.191, allocations: 6.594 kB / 0.6639 GB, free: 25.66 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01451/2.205, allocations: 2.816 MB / 0.6667 GB, free: 25.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08091/2.286, allocations: 10.86 MB / 0.6773 GB, free: 24.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0565/2.343, allocations: 15.55 MB / 0.6925 GB, free: 23.31 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001525/2.344, allocations: 1.087 MB / 0.6936 GB, free: 23.28 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007911/2.352, allocations: 1.45 MB / 0.695 GB, free: 23.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1056/2.458, allocations: 32.32 MB / 0.7265 GB, free: 15.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001119/2.459, allocations: 152.3 kB / 0.7267 GB, free: 15.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007029/2.466, allocations: 0.6683 MB / 0.7273 GB, free: 15.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005174/2.471, allocations: 2.324 MB / 0.7296 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08672/2.558, allocations: 26 MB / 0.755 GB, free: 14.97 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.684/3.242, allocations: 130.7 MB / 0.8826 GB, free: 17.99 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06473/3.307, allocations: 12.48 MB / 0.8948 GB, free: 17.29 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008822/3.316, allocations: 4.843 MB / 0.8995 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001456/3.316, allocations: 84.42 kB / 0.8996 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=435): time 1.341e-05/3.316, allocations: 0 / 0.8996 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=569): time 1.162/4.478, allocations: 135.3 MB / 1.032 GB, free: 96.51 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.05384/4.532, allocations: 25.89 MB / 1.057 GB, free: 87.83 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02498/4.557, allocations: 8.443 MB / 1.065 GB, free: 87.18 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002271/4.559, allocations: 111.5 kB / 1.065 GB, free: 87.14 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.007913/4.567, allocations: 8.566 MB / 1.074 GB, free: 80.95 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004656/4.572, allocations: 2.19 MB / 1.076 GB, free: 79.36 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002967/4.575, allocations: 319 kB / 1.076 GB, free: 79.11 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001697/4.577, allocations: 0.996 MB / 1.077 GB, free: 78.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02771/4.605, allocations: 9.388 MB / 1.086 GB, free: 75.06 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02892/4.634, allocations: 18.6 MB / 1.104 GB, free: 59.33 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02894/4.663, allocations: 12.82 MB / 1.117 GB, free: 54.48 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003753/4.663, allocations: 91.91 kB / 1.117 GB, free: 54.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2101) (initialization): time 0.146/4.809, allocations: 36.03 MB / 1.152 GB, free: 30.98 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00025/4.809, allocations: 144.8 kB / 1.152 GB, free: 30.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4832/5.292, allocations: 23.17 MB / 1.175 GB, free: 82.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06284/5.355, allocations: 10.61 MB / 1.185 GB, free: 82.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02468/5.38, allocations: 3.92 MB / 1.189 GB, free: 82.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0957/5.476, allocations: 51.02 MB / 1.239 GB, free: 67.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02793/5.504, allocations: 1.795 MB / 1.241 GB, free: 67.61 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004442/5.508, allocations: 0.9783 MB / 1.242 GB, free: 67.48 MB / 0.4948 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 (1937): * Single equations (assignments): 1908 * 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,1,1,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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02063/5.529, allocations: 6.194 MB / 1.248 GB, free: 65.08 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0048/5.534, allocations: 0.8863 MB / 1.249 GB, free: 65.08 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1651/5.699, allocations: 29.05 MB / 1.277 GB, free: 56.91 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.114/5.813, allocations: 27.29 MB / 1.304 GB, free: 41.64 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001276/5.813, allocations: 27.75 kB / 1.304 GB, free: 41.62 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001659/5.813, allocations: 27.91 kB / 1.304 GB, free: 41.59 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5964/6.41, allocations: 63.43 MB / 1.366 GB, free: 77.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.714e-05/6.41, allocations: 7.859 kB / 1.366 GB, free: 77.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009679/6.42, allocations: 1.017 MB / 1.367 GB, free: 77.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09308/6.513, allocations: 15.69 MB / 1.382 GB, free: 77.23 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002124/6.515, allocations: 181.1 kB / 1.382 GB, free: 77.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1439/6.659, allocations: 67.67 MB / 1.448 GB, free: 56.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05458/6.714, allocations: 25.69 MB / 1.473 GB, free: 41.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1403/6.854, allocations: 41.35 MB / 1.514 GB, free: 8.594 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003703/6.858, allocations: 0.9536 MB / 1.515 GB, free: 8.109 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004624/6.862, allocations: 128 kB / 1.515 GB, free: 7.984 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01579/6.878, allocations: 0.9021 MB / 1.516 GB, free: 7.086 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003833/6.882, allocations: 450.3 kB / 1.516 GB, free: 6.652 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001832/6.884, allocations: 184.7 kB / 1.516 GB, free: 6.473 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01703/6.901, allocations: 5.871 MB / 1.522 GB, free: 0.6562 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.32e-07/6.901, allocations: 2.812 kB / 1.522 GB, free: 0.6562 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.4272/7.328, allocations: 4.407 MB / 1.526 GB, free: 92.61 MB / 0.5105 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.1522/7.481, allocations: 42.65 MB / 1.568 GB, free: 89.54 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05698/7.538, allocations: 23.43 MB / 1.591 GB, free: 88.15 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/7.538, allocations: 3.656 kB / 1.591 GB, free: 88.15 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03325/7.571, allocations: 11.76 MB / 1.602 GB, free: 83.09 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0129/7.584, allocations: 1.33 MB / 1.604 GB, free: 82.61 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6551/8.239, allocations: 296.6 MB / 1.893 GB, free: 6.012 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02671/8.266, allocations: 9.428 MB / 1.902 GB, free: 4.977 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01776/8.284, allocations: 6.55 MB / 1.909 GB, free: 4.973 MB / 0.6042 GB Notification: Performance of SimCode: time 1.493e-06/8.284, allocations: 2.625 kB / 1.909 GB, free: 4.973 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.21/20.49, allocations: 0.9261 GB / 2.835 GB, free: 128.2 MB / 0.6042 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