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.001287/0.001287, allocations: 110.2 kB / 17.75 MB, free: 5.352 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.001131/0.001132, allocations: 185.4 kB / 18.68 MB, free: 4.426 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.308/1.308, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009684/0.0009684, allocations: 43.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.217, allocations: 49.43 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.01772/0.2348, allocations: 18.67 MB / 420.1 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01144/0.2462, allocations: 6.19 MB / 426.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002545/0.2488, allocations: 147.6 kB / 426.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009806/0.2587, allocations: 6.04 MB / 432.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006188/0.2649, allocations: 2.679 MB / 435.1 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00476/0.2696, allocations: 2.51 MB / 437.6 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008541/0.2782, allocations: 6.955 MB / 444.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009211/0.2874, allocations: 8.057 MB / 452.7 MB, free: 5.406 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003812/0.2913, allocations: 2.777 MB / 455.4 MB, free: 2.621 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004806/0.2961, allocations: 3.528 MB / 459 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00162/0.2977, allocations: 0.6289 MB / 459.6 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004144/0.3019, allocations: 2.001 MB / 461.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003818/0.3057, allocations: 3.41 MB / 465 MB, free: 9.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005228/0.311, allocations: 3.792 MB / 468.8 MB, free: 5.219 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01232/0.3233, allocations: 12.17 MB / 481 MB, free: 9.004 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3233, allocations: 8 kB / 481 MB, free: 8.996 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3233, allocations: 0 / 481 MB, free: 8.996 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002573/0.3236, allocations: 0 / 481 MB, free: 8.996 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.01599/0.3396, allocations: 8.509 MB / 489.5 MB, free: 400 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3396, allocations: 8.031 kB / 489.5 MB, free: 392 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007723/0.3474, allocations: 2.366 MB / 491.8 MB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007736/0.3551, allocations: 4.339 MB / 496.2 MB, free: 9.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002697/0.3554, allocations: 432.5 kB / 496.6 MB, free: 9.168 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001506/0.3569, allocations: 0.6596 MB / 497.3 MB, free: 8.508 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02736/0.3843, allocations: 16.62 MB / 0.5018 GB, free: 6.965 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002106/0.3846, allocations: 71.45 kB / 0.5019 GB, free: 6.895 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009822/0.3855, allocations: 259.8 kB / 0.5022 GB, free: 6.641 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003706/0.3893, allocations: 2.522 MB / 0.5046 GB, free: 4.109 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02826/0.4175, allocations: 14.29 MB / 0.5186 GB, free: 5.793 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.391/0.8085, allocations: 63 MB / 0.5801 GB, free: 84.39 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01857/0.8271, allocations: 7.27 MB / 0.5872 GB, free: 80.57 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003856/0.831, allocations: 3.749 MB / 0.5909 GB, free: 76.81 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0185/0.8495, allocations: 16.44 MB / 0.6069 GB, free: 60.08 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.8496, allocations: 67.75 kB / 0.607 GB, free: 60.01 MB / 462.1 MB Notification: Performance of pre-optimization done (n=253): time 4.318e-06/0.8496, allocations: 0 / 0.607 GB, free: 60.01 MB / 462.1 MB Notification: Performance of matching and sorting (n=263): time 0.05418/0.9038, allocations: 26.89 MB / 0.6332 GB, free: 33.24 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.9039, allocations: 157.9 kB / 0.6334 GB, free: 33.06 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005638/0.9095, allocations: 5.794 MB / 0.6391 GB, free: 27.36 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004235/0.9099, allocations: 65.7 kB / 0.6391 GB, free: 27.29 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001804/0.9118, allocations: 4.96 MB / 0.644 GB, free: 22.67 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007559/0.9125, allocations: 1.072 MB / 0.645 GB, free: 21.61 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001689/0.9142, allocations: 1.809 MB / 0.6468 GB, free: 19.79 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.164e-05/0.9143, allocations: 305.1 kB / 0.6471 GB, free: 19.49 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003531/0.9178, allocations: 3.258 MB / 0.6502 GB, free: 16.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004961/0.9228, allocations: 8.613 MB / 0.6587 GB, free: 4.977 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01227/0.935, allocations: 12.85 MB / 0.6712 GB, free: 5.477 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.111e-05/0.9351, allocations: 56 kB / 0.6713 GB, free: 5.422 MB / 478.1 MB Notification: Performance of matching and sorting (n=1161) (initialization): time 0.02802/0.9632, allocations: 14.48 MB / 0.6854 GB, free: 6.859 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000128/0.9633, allocations: 88 kB / 0.6855 GB, free: 6.773 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01577/0.9791, allocations: 6.474 MB / 0.6918 GB, free: 216 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01333/0.9925, allocations: 3.222 MB / 0.695 GB, free: 12.96 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007044/0.9995, allocations: 2.086 MB / 0.697 GB, free: 10.87 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02092/1.02, allocations: 17 MB / 0.7136 GB, free: 9.031 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006249/1.027, allocations: 0.5249 MB / 0.7141 GB, free: 8.508 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001242/1.028, allocations: 0.5156 MB / 0.7146 GB, free: 7.992 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.005349/1.033, allocations: 3.182 MB / 0.7177 GB, free: 4.801 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00113/1.034, allocations: 0.5355 MB / 0.7182 GB, free: 4.262 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.00448/1.039, allocations: 2.487 MB / 0.7207 GB, free: 1.758 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