Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint") 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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009464/0.0009465, allocations: 198.8 kB / 18.05 MB, free: 3.629 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 226.5 MB / 245.3 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000806/0.0008058, allocations: 95.45 kB / 297.4 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000251/0.0002511, allocations: 8 kB / 357.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3233, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.07427/0.3976, allocations: 77.17 MB / 485.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.05504/0.4527, allocations: 16.45 MB / 0.4905 GB, free: 13.81 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02488/0.4776, allocations: 386.9 kB / 0.4909 GB, free: 13.43 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01708/0.4947, allocations: 3.627 MB / 0.4944 GB, free: 9.789 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.5256/1.02, allocations: 10.56 MB / 0.5048 GB, free: 4.211 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00977/1.03, allocations: 1.177 MB / 0.5059 GB, free: 4.191 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01942/1.05, allocations: 8.293 MB / 0.514 GB, free: 4.148 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02173/1.071, allocations: 10.61 MB / 0.5244 GB, free: 18.8 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007107/1.079, allocations: 2.04 MB / 0.5264 GB, free: 18.8 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00749/1.086, allocations: 2.954 MB / 0.5292 GB, free: 18.79 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001978/1.088, allocations: 217.6 kB / 0.5294 GB, free: 18.79 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00677/1.095, allocations: 1.663 MB / 0.5311 GB, free: 18.78 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006511/1.102, allocations: 2.813 MB / 0.5338 GB, free: 18.78 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00878/1.11, allocations: 3.013 MB / 0.5368 GB, free: 18.75 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01665/1.127, allocations: 9.426 MB / 0.546 GB, free: 13.66 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.128e-05/1.127, allocations: 0 / 0.546 GB, free: 13.66 MB / 394.7 MB Notification: Performance of FrontEnd: time 6.683e-06/1.127, allocations: 2.656 kB / 0.546 GB, free: 13.66 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008336/1.128, allocations: 0 / 0.546 GB, free: 13.66 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2352 * Number of variables: 2352 Notification: Performance of Generate backend data structure: time 0.02914/1.157, allocations: 6.904 MB / 0.5527 GB, free: 8.422 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.777e-05/1.157, allocations: 8.031 kB / 0.5527 GB, free: 8.414 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01272/1.17, allocations: 2.429 MB / 0.5551 GB, free: 6.043 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01525/1.185, allocations: 4.13 MB / 0.5591 GB, free: 3.066 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006898/1.186, allocations: 432.7 kB / 0.5595 GB, free: 2.832 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005325/1.191, allocations: 0.6545 MB / 0.5602 GB, free: 2.387 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05374/1.245, allocations: 16.62 MB / 0.5764 GB, free: 5.594 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003651/1.246, allocations: 63.47 kB / 0.5765 GB, free: 5.562 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001532/1.247, allocations: 269.6 kB / 0.5767 GB, free: 5.484 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004632/1.252, allocations: 2.525 MB / 0.5792 GB, free: 3.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04213/1.294, allocations: 14.26 MB / 0.5931 GB, free: 9.477 MB / 426.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.1308/1.425, allocations: 63.16 MB / 0.6548 GB, free: 1.492 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0227/1.448, allocations: 7.367 MB / 0.662 GB, free: 9.988 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006835/1.455, allocations: 3.74 MB / 0.6656 GB, free: 6.246 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02903/1.484, allocations: 16.41 MB / 0.6817 GB, free: 5.422 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.318e-05/1.484, allocations: 63.19 kB / 0.6817 GB, free: 5.352 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=253): time 6.031e-06/1.484, allocations: 0 / 0.6817 GB, free: 5.352 MB / 0.4948 GB Notification: Performance of matching and sorting (n=263): time 0.4972/1.981, allocations: 26.48 MB / 0.7076 GB, free: 196.3 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/1.981, allocations: 153.6 kB / 0.7077 GB, free: 196.1 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006739/1.988, allocations: 5.744 MB / 0.7133 GB, free: 194 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0004898/1.988, allocations: 65.48 kB / 0.7134 GB, free: 194 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.002102/1.99, allocations: 4.769 MB / 0.7181 GB, free: 190.3 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008936/1.991, allocations: 1.032 MB / 0.7191 GB, free: 189.6 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003371/1.992, allocations: 176.1 kB / 0.7192 GB, free: 189.5 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.000322/1.992, allocations: 0.6789 MB / 0.7199 GB, free: 188.9 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003871/1.996, allocations: 3.221 MB / 0.723 GB, free: 187.3 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005455/2.001, allocations: 8.58 MB / 0.7314 GB, free: 176.2 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01068/2.012, allocations: 12.82 MB / 0.7439 GB, free: 160.8 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001233/2.012, allocations: 52 kB / 0.744 GB, free: 160.8 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1161) (initialization): time 0.0289/2.041, allocations: 14.46 MB / 0.7581 GB, free: 146.2 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/2.041, allocations: 90.97 kB / 0.7582 GB, free: 146.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01429/2.055, allocations: 6.535 MB / 0.7646 GB, free: 139.5 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01211/2.068, allocations: 3.32 MB / 0.7678 GB, free: 136.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006781/2.074, allocations: 2.078 MB / 0.7699 GB, free: 134.1 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01723/2.092, allocations: 15.81 MB / 0.7853 GB, free: 117.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009015/2.101, allocations: 0.5227 MB / 0.7858 GB, free: 116.9 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00131/2.102, allocations: 0.5195 MB / 0.7863 GB, free: 116.4 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 862 * Number of states: 0 () * Number of discrete variables: 62 (sensorConstraintRelative.arrow.arrowLine.twoHeadedArrow,sensorConstraintRelative.arrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (1101): * Single equations (assignments): 1087 * Array equations: 6 * 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.005083/2.107, allocations: 3.185 MB / 0.7894 GB, free: 113.2 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000902/2.108, allocations: 0.5091 MB / 0.7899 GB, free: 112.7 MB / 0.4949 GB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too many equations, over-determined system. The model has 214 equation(s) and 208 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003479/2.112, allocations: 2.473 MB / 0.7923 GB, free: 110.2 MB / 0.4949 GB Error: post-optimization module wrapFunctionCalls (simulation) failed.