Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint") Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003751/0.0003754, allocations: 8 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07994/0.08034, allocations: 44.51 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.3585/0.4389, allocations: 70.31 MB / 378.7 MB, free: 7.191 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03869/0.4776, allocations: 16.65 MB / 395.3 MB, free: 6.762 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01659/0.4942, allocations: 365 kB / 395.7 MB, free: 6.703 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01081/0.5051, allocations: 3.626 MB / 399.3 MB, free: 4.988 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03242/0.5376, allocations: 9.898 MB / 409.2 MB, free: 2.012 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005894/0.5435, allocations: 1.211 MB / 410.4 MB, free: 1.684 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007935/0.5515, allocations: 3.957 MB / 414.4 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01633/0.5679, allocations: 9.436 MB / 423.8 MB, free: 13.36 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003968/0.5719, allocations: 1.655 MB / 425.5 MB, free: 12.03 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004043/0.576, allocations: 2.013 MB / 427.5 MB, free: 10.37 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001136/0.5771, allocations: 224 kB / 427.7 MB, free: 10.15 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004294/0.5815, allocations: 1.439 MB / 429.1 MB, free: 8.941 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00394/0.5854, allocations: 2.614 MB / 431.7 MB, free: 6.809 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001991/0.5875, allocations: 1.346 MB / 433.1 MB, free: 6.078 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01416/0.6017, allocations: 9.574 MB / 442.7 MB, free: 13.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.519e-06/0.6017, allocations: 0 / 442.7 MB, free: 13.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.6017, allocations: 0 / 442.7 MB, free: 13.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002404/0.602, allocations: 0 / 442.7 MB, free: 13.77 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2366 * Number of variables: 2366 Notification: Performance of Generate backend data structure: time 0.01951/0.6215, allocations: 7.195 MB / 449.9 MB, free: 7.168 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.6216, allocations: 8.031 kB / 449.9 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01291/0.6345, allocations: 2.726 MB / 452.6 MB, free: 4.543 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01195/0.6465, allocations: 4.783 MB / 457.4 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005503/0.6471, allocations: 423.9 kB / 457.8 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00267/0.6498, allocations: 0.6566 MB / 458.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04314/0.6929, allocations: 16.94 MB / 475.4 MB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002583/0.6932, allocations: 59.47 kB / 475.4 MB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001439/0.6947, allocations: 263.2 kB / 475.7 MB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00521/0.6999, allocations: 2.553 MB / 478.3 MB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04124/0.7412, allocations: 14.6 MB / 492.9 MB, free: 11.72 MB / 394.7 MB 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.6284/1.37, allocations: 63.77 MB / 0.5436 GB, free: 119.2 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02542/1.395, allocations: 7.315 MB / 0.5507 GB, free: 118.5 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02792/1.423, allocations: 16.01 MB / 0.5664 GB, free: 111.4 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.511e-05/1.423, allocations: 66.83 kB / 0.5664 GB, free: 111.4 MB / 426.8 MB Notification: Performance of pre-optimization done (n=248): time 7.051e-06/1.423, allocations: 0 / 0.5664 GB, free: 111.4 MB / 426.8 MB Notification: Performance of matching and sorting (n=264): time 0.08216/1.505, allocations: 27.83 MB / 0.5936 GB, free: 88.66 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001132/1.507, allocations: 1.622 MB / 0.5952 GB, free: 86.88 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009898/1.516, allocations: 6.199 MB / 0.6012 GB, free: 80.67 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005424/1.517, allocations: 63.34 kB / 0.6013 GB, free: 80.6 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003064/1.52, allocations: 4.666 MB / 0.6059 GB, free: 75.96 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001344/1.521, allocations: 1.036 MB / 0.6069 GB, free: 74.94 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007648/1.522, allocations: 173.6 kB / 0.607 GB, free: 74.77 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0005504/1.523, allocations: 0.694 MB / 0.6077 GB, free: 74.07 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006337/1.529, allocations: 3.363 MB / 0.611 GB, free: 70.7 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009069/1.538, allocations: 8.781 MB / 0.6196 GB, free: 59.37 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009712/1.548, allocations: 5.294 MB / 0.6247 GB, free: 54.18 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/1.548, allocations: 52 kB / 0.6248 GB, free: 54.12 MB / 426.8 MB Notification: Performance of matching and sorting (n=1163) (initialization): time 0.03585/1.584, allocations: 14.54 MB / 0.639 GB, free: 39.5 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001462/1.584, allocations: 84 kB / 0.6391 GB, free: 39.42 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01912/1.603, allocations: 6.763 MB / 0.6457 GB, free: 32.57 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01464/1.618, allocations: 3.252 MB / 0.6488 GB, free: 29.29 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008345/1.627, allocations: 2.09 MB / 0.6509 GB, free: 27.2 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02209/1.649, allocations: 16.28 MB / 0.6668 GB, free: 10.12 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008481/1.657, allocations: 0.575 MB / 0.6673 GB, free: 9.543 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001415/1.659, allocations: 0.5287 MB / 0.6679 GB, free: 9.016 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 872 * Number of states: 0 () * Number of discrete variables: 57 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.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],springOfConstraint.color[3],springOfConstraint.color[2],springOfConstraint.color[1],springOfConstraint.massColor[3],springOfConstraint.massColor[2],springOfConstraint.massColor[1],springOfJoint.color[3],springOfJoint.color[2],springOfJoint.color[1],springOfJoint.massColor[3],springOfJoint.massColor[2],springOfJoint.massColor[1],bodyOfConstraint.color[3],bodyOfConstraint.color[2],bodyOfConstraint.color[1],bodyOfConstraint.body.sphereColor[3],bodyOfConstraint.body.sphereColor[2],bodyOfConstraint.body.sphereColor[1],bodyOfConstraint.frameTranslation.color[3],bodyOfConstraint.frameTranslation.color[2],bodyOfConstraint.frameTranslation.color[1],bodyOfJoint.color[3],bodyOfJoint.color[2],bodyOfJoint.color[1],bodyOfJoint.body.sphereColor[3],bodyOfJoint.body.sphereColor[2],bodyOfJoint.body.sphereColor[1],bodyOfJoint.frameTranslation.color[3],bodyOfJoint.frameTranslation.color[2],bodyOfJoint.frameTranslation.color[1],sensorConstraintRelative.arrowColor[3],sensorConstraintRelative.arrowColor[2],sensorConstraintRelative.arrowColor[1],constraint.sphereColor[3],constraint.sphereColor[2],constraint.sphereColor[1],joint.sphereColor[3],joint.sphereColor[2],joint.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1099): * Single equations (assignments): 1083 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 3,(3,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006755/1.665, allocations: 3.212 MB / 0.671 GB, free: 5.793 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/1.667, allocations: 0.5128 MB / 0.6715 GB, free: 5.273 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01545/1.682, allocations: 6.535 MB / 0.6779 GB, free: 14.64 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01524/1.697, allocations: 5.613 MB / 0.6834 GB, free: 8.938 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01453/1.712, allocations: 5.443 MB / 0.6887 GB, free: 3.406 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.53e-05/1.712, allocations: 15.95 kB / 0.6887 GB, free: 3.391 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2708/1.983, allocations: 17.26 MB / 0.7056 GB, free: 149.9 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.793e-05/1.983, allocations: 7.875 kB / 0.7056 GB, free: 149.9 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002917/1.986, allocations: 0.4905 MB / 0.706 GB, free: 149.9 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006771/1.993, allocations: 1.844 MB / 0.7078 GB, free: 149.5 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005761/1.993, allocations: 69.38 kB / 0.7079 GB, free: 149.5 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01419/2.007, allocations: 9.974 MB / 0.7176 GB, free: 143.8 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009864/2.008, allocations: 1.492 MB / 0.7191 GB, free: 142.3 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01905/2.028, allocations: 9.749 MB / 0.7286 GB, free: 138.6 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001497/2.029, allocations: 0.5867 MB / 0.7292 GB, free: 138.5 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001352/2.03, allocations: 64.5 kB / 0.7293 GB, free: 138.4 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003786/2.034, allocations: 220.3 kB / 0.7295 GB, free: 138.4 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008024/2.035, allocations: 190.7 kB / 0.7297 GB, free: 138.3 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003291/2.035, allocations: 86.25 kB / 0.7297 GB, free: 138.3 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.007197/2.043, allocations: 3.908 MB / 0.7335 GB, free: 136.3 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.379e-06/2.043, allocations: 0 / 0.7335 GB, free: 136.3 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.0094/2.052, allocations: 1.711 MB / 0.7352 GB, free: 134.8 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],joint.w_rel[1],joint.w_rel[2],joint.w_rel[3],bodyOfConstraint.body.w_a[1],bodyOfConstraint.body.w_a[2],bodyOfConstraint.body.w_a[3],freeMotionScalarInit.derd[1].u,freeMotionScalarInit.derd[2].u,freeMotionScalarInit.derd[3].u) * 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 (221): * Single equations (assignments): 211 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 3,(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00113/2.053, allocations: 276.2 kB / 0.7355 GB, free: 134.6 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.0166/2.07, allocations: 9.034 MB / 0.7443 GB, free: 125.6 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/2.07, allocations: 4 kB / 0.7443 GB, free: 125.6 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0066/2.077, allocations: 3.344 MB / 0.7476 GB, free: 122.1 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004663/2.081, allocations: 0.7701 MB / 0.7483 GB, free: 121.4 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03163/2.113, allocations: 18.62 MB / 0.7665 GB, free: 102.8 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008976/2.122, allocations: 4.965 MB / 0.7714 GB, free: 97.84 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001915/2.124, allocations: 435.4 kB / 0.7718 GB, free: 97.41 MB / 442.8 MB Notification: Performance of SimCode: time 1.778e-06/2.124, allocations: 8 kB / 0.7718 GB, free: 97.41 MB / 442.8 MB Notification: Performance of Templates: time 0.8183/2.942, allocations: 278 MB / 1.043 GB, free: 147.2 MB / 458.8 MB