Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 106.6 kB / 17.74 MB, free: 5.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 194.9 kB / 18.68 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009711/0.0009711, allocations: 47.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2102/0.2112, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.01919/0.2305, allocations: 18.65 MB / 420.1 MB, free: 6.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01145/0.2419, allocations: 6.207 MB / 426.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002676/0.2446, allocations: 147.5 kB / 426.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01045/0.2551, allocations: 6.04 MB / 432.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005713/0.2609, allocations: 2.671 MB / 435.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004673/0.2655, allocations: 2.51 MB / 437.6 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008314/0.2739, allocations: 6.966 MB / 444.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008719/0.2826, allocations: 8.046 MB / 452.6 MB, free: 5.414 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003715/0.2863, allocations: 2.781 MB / 455.4 MB, free: 2.625 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00466/0.291, allocations: 3.517 MB / 458.9 MB, free: 15.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001493/0.2925, allocations: 0.6328 MB / 459.6 MB, free: 14.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003817/0.2964, allocations: 2.005 MB / 461.6 MB, free: 12.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003648/0.3, allocations: 3.422 MB / 465 MB, free: 9.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004986/0.305, allocations: 3.788 MB / 468.8 MB, free: 5.219 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01125/0.3163, allocations: 12.11 MB / 480.9 MB, free: 9.062 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3163, allocations: 3.844 kB / 480.9 MB, free: 9.062 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3163, allocations: 0 / 480.9 MB, free: 9.062 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.00015/0.3165, allocations: 4 kB / 480.9 MB, free: 9.059 MB / 398.1 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.01619/0.3327, allocations: 8.302 MB / 489.2 MB, free: 0.6719 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.3327, allocations: 8.031 kB / 489.2 MB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008541/0.3413, allocations: 2.331 MB / 491.6 MB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008577/0.3499, allocations: 4.317 MB / 495.9 MB, free: 9.922 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00034/0.3502, allocations: 435.3 kB / 496.3 MB, free: 9.496 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001843/0.3521, allocations: 0.6517 MB / 496.9 MB, free: 8.844 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03081/0.3829, allocations: 16.63 MB / 0.5015 GB, free: 7.293 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002296/0.3832, allocations: 63.45 kB / 0.5016 GB, free: 7.23 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001325/0.3845, allocations: 263.8 kB / 0.5019 GB, free: 6.973 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00376/0.3883, allocations: 2.518 MB / 0.5043 GB, free: 4.445 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02849/0.4168, allocations: 14.28 MB / 0.5183 GB, free: 6.145 MB / 446.1 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.3831/0.7999, allocations: 62.89 MB / 0.5797 GB, free: 84.68 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01962/0.8196, allocations: 7.268 MB / 0.5868 GB, free: 80.96 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003383/0.823, allocations: 3.762 MB / 0.5904 GB, free: 77.36 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01951/0.8425, allocations: 16.41 MB / 0.6065 GB, free: 60.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.8425, allocations: 67.97 kB / 0.6065 GB, free: 60.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=253): time 4.358e-06/0.8425, allocations: 0 / 0.6065 GB, free: 60.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=263): time 0.05896/0.9015, allocations: 26.52 MB / 0.6324 GB, free: 33.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.9016, allocations: 158.5 kB / 0.6326 GB, free: 33.56 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005719/0.9073, allocations: 5.779 MB / 0.6382 GB, free: 27.76 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004027/0.9077, allocations: 64.98 kB / 0.6383 GB, free: 27.69 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001781/0.9095, allocations: 4.77 MB / 0.643 GB, free: 22.93 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007352/0.9103, allocations: 1.028 MB / 0.644 GB, free: 21.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001731/0.912, allocations: 1.792 MB / 0.6457 GB, free: 20.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.314e-05/0.9121, allocations: 309.1 kB / 0.646 GB, free: 19.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003619/0.9157, allocations: 3.25 MB / 0.6492 GB, free: 16.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005151/0.9208, allocations: 8.615 MB / 0.6576 GB, free: 5.309 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0125/0.9334, allocations: 12.85 MB / 0.6701 GB, free: 5.812 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001049/0.9335, allocations: 60 kB / 0.6702 GB, free: 5.754 MB / 478.1 MB Notification: Performance of matching and sorting (n=1161) (initialization): time 0.02921/0.9627, allocations: 14.45 MB / 0.6843 GB, free: 7.207 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.582e-05/0.9628, allocations: 95.97 kB / 0.6844 GB, free: 7.113 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01645/0.9793, allocations: 6.473 MB / 0.6907 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01365/0.993, allocations: 3.232 MB / 0.6939 GB, free: 13.3 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006538/0.9995, allocations: 2.074 MB / 0.6959 GB, free: 11.22 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02128/1.021, allocations: 17.01 MB / 0.7125 GB, free: 9.375 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006026/1.027, allocations: 0.5149 MB / 0.713 GB, free: 8.859 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008778/1.028, allocations: 0.5234 MB / 0.7135 GB, free: 8.336 MB / 0.5138 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 (not torn): 3 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,3,100.0%), (3,3,100.0%), (2,1,100.0%), (2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00484/1.033, allocations: 3.175 MB / 0.7166 GB, free: 5.152 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001062/1.034, allocations: 0.5015 MB / 0.7171 GB, free: 4.645 MB / 0.5138 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.004859/1.039, allocations: 2.485 MB / 0.7195 GB, free: 2.141 MB / 0.5138 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. Error: Internal error SimCode DAEmode: The model Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint could not be translated