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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.446/2.446, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.042e-05/3.052e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3516, allocations: 54.86 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1941/0.5457, allocations: 110.3 MB / 468.4 MB, free: 448 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/0.546, allocations: 75.95 kB / 468.5 MB, free: 372 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.491/2.037, allocations: 223.4 MB / 0.6756 GB, free: 41.52 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.647e-06/2.037, allocations: 0 / 0.6756 GB, free: 41.52 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008905/2.038, allocations: 284.9 kB / 0.6759 GB, free: 41.51 MB / 458.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.08305/2.121, allocations: 13.78 MB / 0.6894 GB, free: 37.11 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/2.121, allocations: 7.562 kB / 0.6894 GB, free: 37.11 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08053/2.201, allocations: 10.93 MB / 0.7 GB, free: 36.26 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06768/2.269, allocations: 15.51 MB / 0.7152 GB, free: 34.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009079/2.27, allocations: 475.2 kB / 0.7156 GB, free: 34.84 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006905/2.277, allocations: 0.8591 MB / 0.7165 GB, free: 34.82 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04819/2.325, allocations: 18.11 MB / 0.7342 GB, free: 32.81 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07474/2.4, allocations: 26.81 MB / 0.7603 GB, free: 8.352 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001243/2.401, allocations: 148.5 kB / 0.7605 GB, free: 8.277 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007101/2.408, allocations: 72 kB / 0.7606 GB, free: 8.207 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006711/2.415, allocations: 2.334 MB / 0.7628 GB, free: 6.25 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6237/3.039, allocations: 125 MB / 0.8849 GB, free: 29.36 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.014/3.053, allocations: 7.249 MB / 0.892 GB, free: 28.69 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01067/3.064, allocations: 5.629 MB / 0.8975 GB, free: 28.64 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006182/3.07, allocations: 4.84 MB / 0.9022 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001265/3.07, allocations: 86.53 kB / 0.9023 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=435): time 8.876e-06/3.07, allocations: 0 / 0.9023 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of matching and sorting (n=569): time 0.4256/3.496, allocations: 98.85 MB / 0.9988 GB, free: 9.871 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002276/3.496, allocations: 340.6 kB / 0.9992 GB, free: 9.473 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02064/3.517, allocations: 7.496 MB / 1.006 GB, free: 3.137 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001781/3.519, allocations: 29.7 kB / 1.007 GB, free: 3.102 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00996/3.528, allocations: 8.705 MB / 1.015 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004832/3.533, allocations: 2.121 MB / 1.017 GB, free: 9.621 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003289/3.537, allocations: 6 kB / 1.017 GB, free: 9.617 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.00168/3.538, allocations: 1.01 MB / 1.018 GB, free: 8.793 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02226/3.561, allocations: 8.968 MB / 1.027 GB, free: 0.7344 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4344/3.995, allocations: 19.29 MB / 1.046 GB, free: 112.5 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02731/4.023, allocations: 12.5 MB / 1.058 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005353/4.023, allocations: 96.16 kB / 1.058 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2145) (initialization): time 0.1213/4.145, allocations: 34.16 MB / 1.091 GB, free: 111.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002697/4.145, allocations: 149.2 kB / 1.091 GB, free: 111.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08389/4.229, allocations: 22.94 MB / 1.114 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0644/4.293, allocations: 10.86 MB / 1.124 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02431/4.318, allocations: 3.94 MB / 1.128 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08504/4.403, allocations: 47.2 MB / 1.174 GB, free: 69.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02775/4.43, allocations: 1.504 MB / 1.176 GB, free: 68.54 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00458/4.435, allocations: 0.9974 MB / 1.177 GB, free: 67.61 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1520 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1969): * Single equations (assignments): 1940 * 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.006113/4.441, allocations: 0.9308 MB / 1.178 GB, free: 66.88 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.1118/4.553, allocations: 27.62 MB / 1.205 GB, free: 44.79 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003586/4.557, allocations: 0.8424 MB / 1.206 GB, free: 44.29 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5582/5.115, allocations: 28.39 MB / 1.233 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1154/5.23, allocations: 26.75 MB / 1.259 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001096/5.231, allocations: 25 kB / 1.259 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001999/5.231, allocations: 26.48 kB / 1.259 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1951/5.426, allocations: 60.27 MB / 1.318 GB, free: 88.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.701e-05/5.426, allocations: 9.781 kB / 1.318 GB, free: 88.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01001/5.436, allocations: 1.019 MB / 1.319 GB, free: 88.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.094/5.53, allocations: 15.6 MB / 1.335 GB, free: 84.59 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001889/5.532, allocations: 96.64 kB / 1.335 GB, free: 84.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1241/5.656, allocations: 61.49 MB / 1.395 GB, free: 31.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.04915/5.705, allocations: 23.45 MB / 1.418 GB, free: 7.832 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5434/6.249, allocations: 40.51 MB / 1.457 GB, free: 96.82 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003343/6.252, allocations: 0.8932 MB / 1.458 GB, free: 96.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004023/6.256, allocations: 40.69 kB / 1.458 GB, free: 96.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01569/6.272, allocations: 0.8193 MB / 1.459 GB, free: 96.73 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003725/6.276, allocations: 448.9 kB / 1.459 GB, free: 96.72 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001647/6.277, allocations: 181.5 kB / 1.459 GB, free: 96.72 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01386/6.291, allocations: 4.991 MB / 1.464 GB, free: 96.47 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.61e-07/6.291, allocations: 3.781 kB / 1.464 GB, free: 96.47 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02675/6.318, allocations: 4.268 MB / 1.469 GB, free: 96.47 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 32 ($STATESET139809618678157.x[2],$STATESET139809618678157.x[1],$STATESET139809618678156.x[5],$STATESET139809618678156.x[4],$STATESET139809618678156.x[3],$STATESET139809618678156.x[2],$STATESET139809618678156.x[1],$STATESET139809618678155.x[6],$STATESET139809618678155.x[5],$STATESET139809618678155.x[4],$STATESET139809618678155.x[3],$STATESET139809618678155.x[2],$STATESET139809618678155.x[1],$STATESET139809618678154.x[3],$STATESET139809618678154.x[2],$STATESET139809618678154.x[1],$STATESET139809618678153.x[2],$STATESET139809618678153.x[1],$STATESET139809618678152.x[5],$STATESET139809618678152.x[4],$STATESET139809618678152.x[3],$STATESET139809618678152.x[2],$STATESET139809618678152.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 () * 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.1368/6.455, allocations: 41.79 MB / 1.509 GB, free: 87.79 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.05066/6.506, allocations: 22.79 MB / 1.532 GB, free: 79.08 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/6.506, allocations: 3.25 kB / 1.532 GB, free: 79.08 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.03108/6.537, allocations: 11.37 MB / 1.543 GB, free: 69.13 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01151/6.548, allocations: 1.118 MB / 1.544 GB, free: 68.25 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1269/6.675, allocations: 37.12 MB / 1.58 GB, free: 36.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02485/6.7, allocations: 9.422 MB / 1.589 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01724/6.718, allocations: 6.512 MB / 1.596 GB, free: 23.92 MB / 0.5417 GB Notification: Performance of SimCode: time 1.873e-06/6.718, allocations: 0 / 1.596 GB, free: 23.92 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.29/18.01, allocations: 0.9268 GB / 2.522 GB, free: 115.2 MB / 0.5886 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