Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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.3_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002036/0.002036, allocations: 178.8 kB / 17.39 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.558/2.558, allocations: 205.4 MB / 223.5 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009944/0.0009944, allocations: 85.5 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004532/0.0004533, allocations: 8 kB / 328.2 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5231/0.5236, allocations: 47.57 MB / 375.8 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.09708/0.6208, allocations: 77.87 MB / 453.6 MB, free: 2.641 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.07114/0.6921, allocations: 16.51 MB / 470.1 MB, free: 2.07 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03983/0.732, allocations: 394.9 kB / 470.5 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02303/0.7551, allocations: 3.635 MB / 474.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05431/0.8095, allocations: 10.63 MB / 484.8 MB, free: 3.367 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01051/0.8201, allocations: 1.186 MB / 486 MB, free: 2.18 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01943/0.8395, allocations: 8.209 MB / 494.2 MB, free: 9.953 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.5226/1.362, allocations: 10.66 MB / 0.493 GB, free: 9.273 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008498/1.371, allocations: 2.078 MB / 0.495 GB, free: 9.273 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008253/1.379, allocations: 3.044 MB / 0.498 GB, free: 9.273 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001868/1.381, allocations: 224.3 kB / 0.4982 GB, free: 9.273 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006033/1.387, allocations: 1.669 MB / 0.4998 GB, free: 9.273 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00698/1.394, allocations: 2.881 MB / 0.5027 GB, free: 9.273 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009625/1.404, allocations: 3.069 MB / 0.5057 GB, free: 9.242 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02534/1.429, allocations: 9.609 MB / 0.515 GB, free: 8.676 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.339e-05/1.429, allocations: 0 / 0.515 GB, free: 8.676 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.777e-06/1.429, allocations: 3.281 kB / 0.515 GB, free: 8.676 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.001217/1.43, allocations: 0 / 0.515 GB, free: 8.676 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2401 * Number of variables: 2401 Notification: Performance of Generate backend data structure: time 0.04012/1.47, allocations: 6.892 MB / 0.5218 GB, free: 5.086 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.433e-05/1.471, allocations: 8.594 kB / 0.5218 GB, free: 5.086 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0141/1.485, allocations: 2.399 MB / 0.5241 GB, free: 3.934 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01847/1.503, allocations: 4.356 MB / 0.5284 GB, free: 2.496 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009987/1.504, allocations: 443 kB / 0.5288 GB, free: 2.484 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006243/1.511, allocations: 0.668 MB / 0.5295 GB, free: 2.445 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06702/1.578, allocations: 16.92 MB / 0.546 GB, free: 12.83 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007147/1.578, allocations: 62.16 kB / 0.546 GB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004004/1.582, allocations: 272.6 kB / 0.5463 GB, free: 12.72 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005549/1.588, allocations: 2.589 MB / 0.5488 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0468/1.635, allocations: 14.54 MB / 0.563 GB, free: 500 kB / 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.1608/1.796, allocations: 64.05 MB / 0.6256 GB, free: 11.75 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0269/1.823, allocations: 7.444 MB / 0.6328 GB, free: 5.695 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009278/1.832, allocations: 3.794 MB / 0.6366 GB, free: 2.137 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04626/1.879, allocations: 16.62 MB / 0.6528 GB, free: 1.098 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001164/1.879, allocations: 68.56 kB / 0.6528 GB, free: 1.02 MB / 474.7 MB Notification: Performance of pre-optimization done (n=262): time 1.552e-05/1.879, allocations: 0 / 0.6528 GB, free: 1.02 MB / 474.7 MB Notification: Performance of matching and sorting (n=272): time 0.8713/2.75, allocations: 26.9 MB / 0.6791 GB, free: 199.2 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/2.75, allocations: 162.7 kB / 0.6793 GB, free: 199.1 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01607/2.766, allocations: 5.851 MB / 0.685 GB, free: 196.9 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001478/2.768, allocations: 65.31 kB / 0.6851 GB, free: 196.9 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005634/2.773, allocations: 4.851 MB / 0.6898 GB, free: 193.2 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003029/2.777, allocations: 1.06 MB / 0.6908 GB, free: 192.4 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001435/2.778, allocations: 179.1 kB / 0.691 GB, free: 192.3 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001037/2.779, allocations: 0.6949 MB / 0.6917 GB, free: 191.8 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008707/2.788, allocations: 3.287 MB / 0.6949 GB, free: 190.7 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01504/2.803, allocations: 8.729 MB / 0.7034 GB, free: 182.3 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02933/2.832, allocations: 13.05 MB / 0.7161 GB, free: 169.8 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0008986/2.833, allocations: 56 kB / 0.7162 GB, free: 169.8 MB / 490.8 MB Notification: Performance of matching and sorting (n=1183) (initialization): time 0.08235/2.916, allocations: 14.6 MB / 0.7305 GB, free: 157.4 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.001446/2.917, allocations: 91.94 kB / 0.7305 GB, free: 157.4 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03258/2.95, allocations: 6.568 MB / 0.737 GB, free: 151.4 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02204/2.972, allocations: 3.231 MB / 0.7401 GB, free: 148.1 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01543/2.988, allocations: 2.125 MB / 0.7422 GB, free: 146 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02847/3.016, allocations: 15.79 MB / 0.7576 GB, free: 129.4 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02289/3.039, allocations: 0.5317 MB / 0.7581 GB, free: 128.9 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007032/3.046, allocations: 0.5319 MB / 0.7586 GB, free: 128.4 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 875 * Number of states: 0 () * Number of discrete variables: 60 (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 (1123): * Single equations (assignments): 1109 * 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.02576/3.072, allocations: 3.243 MB / 0.7618 GB, free: 125.1 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005104/3.077, allocations: 0.5128 MB / 0.7623 GB, free: 124.6 MB / 490.8 MB 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 224 equation(s) and 218 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01597/3.093, allocations: 2.55 MB / 0.7648 GB, free: 122 MB / 490.8 MB Error: post-optimization module wrapFunctionCalls (simulation) failed.