Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyBox.body.Q.1.|bodyBox.body.Q.2.|bodyBox.body.Q.3.|bodyBox.body.Q.4.|bodyBox.body.w_a.1.|bodyBox.body.w_a.2.|bodyBox.body.w_a.3.|bodyBox.v_0.1.|bodyBox.v_0.2.|bodyBox.v_0.3.|bodyBox1.body.Q.1.|bodyBox1.body.Q.2.|bodyBox1.body.Q.3.|bodyBox1.body.Q.4.|bodyBox1.body.w_a.1.|bodyBox1.body.w_a.2.|bodyBox1.body.w_a.3.|bodyBox2.body.Q.1.|bodyBox2.body.Q.2.|bodyBox2.body.Q.3.|bodyBox2.body.Q.4.|bodyBox2.body.frame_a.r_0.1.|bodyBox2.body.frame_a.r_0.2.|bodyBox2.body.frame_a.r_0.3.|bodyBox2.body.w_a.1.|bodyBox2.body.w_a.2.|bodyBox2.body.w_a.3.|bodyBox2.v_0.1.|bodyBox2.v_0.2.|bodyBox2.v_0.3.|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universalSpherical.rRod_0.1.|universalSpherical.rRod_0.2.|universalSpherical.rRod_0.3.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.341/2.341, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004416/0.0004418, allocations: 12 kB / 314.3 MB, free: 9.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2788, allocations: 54.87 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.UniversalSpherical): time 0.1398/0.4186, allocations: 104.8 MB / 474 MB, free: 1.668 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.3757/0.7944, allocations: 24.57 MB / 498.5 MB, free: 15.82 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02404/0.8185, allocations: 0.5421 MB / 499.1 MB, free: 15.82 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01675/0.8353, allocations: 5.519 MB / 0.4928 GB, free: 14.02 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04804/0.8834, allocations: 14.38 MB / 0.5068 GB, free: 9.715 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009489/0.8929, allocations: 2.089 MB / 0.5089 GB, free: 9.152 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0583/0.9512, allocations: 28.41 MB / 0.5366 GB, free: 8.27 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04197/0.9932, allocations: 22.47 MB / 0.5585 GB, free: 7.945 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006513/0.9998, allocations: 2.885 MB / 0.5614 GB, free: 5.668 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007922/1.008, allocations: 4.028 MB / 0.5653 GB, free: 2.395 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002599/1.01, allocations: 492 kB / 0.5658 GB, free: 1.914 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005638/1.016, allocations: 1.646 MB / 0.5674 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007786/1.024, allocations: 5.146 MB / 0.5724 GB, free: 12.34 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004456/1.028, allocations: 2.652 MB / 0.575 GB, free: 10.98 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02939/1.058, allocations: 20.68 MB / 0.5952 GB, free: 9.062 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.668e-06/1.058, allocations: 0 / 0.5952 GB, free: 9.062 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.771e-06/1.058, allocations: 0 / 0.5952 GB, free: 9.062 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005347/1.058, allocations: 0 / 0.5952 GB, free: 9.062 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: 4698 * Number of variables: 4698 Notification: Performance of Generate backend data structure: time 0.04268/1.101, allocations: 14 MB / 0.6089 GB, free: 12.3 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/1.101, allocations: 8.031 kB / 0.6089 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.275/1.376, allocations: 22.38 MB / 0.6307 GB, free: 6.945 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0259/1.402, allocations: 9.46 MB / 0.64 GB, free: 14.33 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001105/1.403, allocations: 0.8958 MB / 0.6408 GB, free: 13.51 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005621/1.409, allocations: 1.465 MB / 0.6423 GB, free: 12.13 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6174/2.026, allocations: 32.69 MB / 0.6742 GB, free: 196.1 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006903/2.027, allocations: 107.6 kB / 0.6743 GB, free: 196 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003779/2.031, allocations: 0.534 MB / 0.6748 GB, free: 196 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008371/2.039, allocations: 4.492 MB / 0.6792 GB, free: 196 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0705/2.11, allocations: 27.63 MB / 0.7062 GB, free: 183.6 MB / 0.5262 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1559/2.266, allocations: 112.9 MB / 0.8164 GB, free: 69.27 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04356/2.309, allocations: 13.26 MB / 0.8294 GB, free: 55.87 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05173/2.361, allocations: 31.28 MB / 0.8599 GB, free: 23.65 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.744e-05/2.361, allocations: 81.5 kB / 0.86 GB, free: 23.56 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=427): time 8.95e-06/2.361, allocations: 0 / 0.86 GB, free: 23.56 MB / 0.5262 GB Notification: Performance of matching and sorting (n=555): time 0.9757/3.337, allocations: 119.7 MB / 0.9769 GB, free: 127.3 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03788/3.375, allocations: 24.23 MB / 1.001 GB, free: 102.3 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01671/3.392, allocations: 9.913 MB / 1.01 GB, free: 92.46 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.001328/3.393, allocations: 107.7 kB / 1.01 GB, free: 92.36 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.005414/3.399, allocations: 8.624 MB / 1.019 GB, free: 83.76 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.003109/3.402, allocations: 2.138 MB / 1.021 GB, free: 81.64 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001748/3.403, allocations: 322.7 kB / 1.021 GB, free: 81.32 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.000903/3.404, allocations: 0.9918 MB / 1.022 GB, free: 80.32 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01652/3.421, allocations: 9.659 MB / 1.032 GB, free: 70.66 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02192/3.443, allocations: 18.91 MB / 1.05 GB, free: 47.22 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02251/3.465, allocations: 13.12 MB / 1.063 GB, free: 34.05 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002443/3.466, allocations: 92 kB / 1.063 GB, free: 33.96 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2084) (initialization): time 0.4141/3.88, allocations: 38.32 MB / 1.1 GB, free: 156.4 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002477/3.88, allocations: 141.1 kB / 1.101 GB, free: 156.4 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08066/3.961, allocations: 25.48 MB / 1.125 GB, free: 145.4 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05877/4.02, allocations: 12.86 MB / 1.138 GB, free: 132.6 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0161/4.036, allocations: 3.957 MB / 1.142 GB, free: 128.6 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07942/4.115, allocations: 56.39 MB / 1.197 GB, free: 71.05 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01906/4.134, allocations: 1.725 MB / 1.199 GB, free: 69.37 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00319/4.138, allocations: 0.9777 MB / 1.2 GB, free: 68.39 MB / 0.5263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1473 * Number of states: 0 () * Number of discrete variables: 69 (init2.arrowColor[3],init2.arrowColor[2],init2.arrowColor[1],init.arrowColor[3],init.arrowColor[2],init.arrowColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],universalSpherical1.cylinderColor[3],universalSpherical1.cylinderColor[2],universalSpherical1.cylinderColor[1],universalSpherical1.sphereColor[3],universalSpherical1.sphereColor[2],universalSpherical1.sphereColor[1],universalSpherical1.rodColor[3],universalSpherical1.rodColor[2],universalSpherical1.rodColor[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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],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],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (1949): * Single equations (assignments): 1922 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * 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: 5 {1,1,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 8,(8,76.6%) 20,(1,100.0%) 3,(1,100.0%) 9,(4,87.5%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01374/4.151, allocations: 6.268 MB / 1.206 GB, free: 62.19 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002808/4.154, allocations: 0.8681 MB / 1.206 GB, free: 61.79 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07714/4.231, allocations: 28.05 MB / 1.234 GB, free: 33.8 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.07312/4.305, allocations: 26.21 MB / 1.259 GB, free: 7.578 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.691e-05/4.305, allocations: 20 kB / 1.259 GB, free: 7.559 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001219/4.305, allocations: 27.89 kB / 1.26 GB, free: 7.531 MB / 0.5263 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4786/4.784, allocations: 59.51 MB / 1.318 GB, free: 137.1 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-05/4.784, allocations: 1.406 kB / 1.318 GB, free: 137.1 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007142/4.791, allocations: 1.14 MB / 1.319 GB, free: 137.1 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08686/4.878, allocations: 14.26 MB / 1.333 GB, free: 129.3 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001585/4.879, allocations: 171.9 kB / 1.333 GB, free: 129.1 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09164/4.971, allocations: 62.67 MB / 1.394 GB, free: 65.64 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03811/5.009, allocations: 23.98 MB / 1.417 GB, free: 41.14 MB / 0.5263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09136/5.101, allocations: 39.54 MB / 1.456 GB, free: 1.957 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3163/5.417, allocations: 2.513 MB / 1.459 GB, free: 146.4 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002905/5.42, allocations: 128.6 kB / 1.459 GB, free: 146.4 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009906/5.43, allocations: 0.8615 MB / 1.459 GB, free: 146.4 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002655/5.432, allocations: 424.9 kB / 1.46 GB, free: 146.3 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001302/5.434, allocations: 175.2 kB / 1.46 GB, free: 146.3 MB / 0.5263 GB Notification: Performance of sorting global known variables: time 0.0131/5.447, allocations: 6.207 MB / 1.466 GB, free: 146.1 MB / 0.5263 GB Notification: Performance of sort global known variables: time 1.181e-06/5.447, allocations: 0 / 1.466 GB, free: 146.1 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.02106/5.468, allocations: 4.388 MB / 1.47 GB, free: 146.1 MB / 0.5263 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 30 ($STATESET5.x[5],$STATESET5.x[4],$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[6],$STATESET3.x[5],$STATESET3.x[4],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$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],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (436): * Single equations (assignments): 421 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {3,8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 6,(4,87.5%) 6,(1,100.0%) 4,(4,93.8%) 8,(8,76.6%) 20,(7,93.9%) 12} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001944/5.47, allocations: 299.4 kB / 1.471 GB, free: 146 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 0.04598/5.516, allocations: 23.95 MB / 1.494 GB, free: 140.8 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 9.131e-06/5.516, allocations: 0.6562 kB / 1.494 GB, free: 140.8 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 0.02377/5.54, allocations: 11.37 MB / 1.505 GB, free: 135.7 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008749/5.549, allocations: 1.301 MB / 1.506 GB, free: 135.2 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07608/5.625, allocations: 41.82 MB / 1.547 GB, free: 100.6 MB / 0.5263 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02019/5.645, allocations: 9.461 MB / 1.557 GB, free: 93.66 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005869/5.651, allocations: 0.8217 MB / 1.557 GB, free: 92.95 MB / 0.5263 GB Notification: Performance of SimCode: time 2.214e-06/5.651, allocations: 0 / 1.557 GB, free: 92.95 MB / 0.5263 GB Notification: Performance of Templates: time 2.506/8.156, allocations: 0.8696 GB / 2.427 GB, free: 40.44 MB / 0.5575 GB