Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001473/0.001473, allocations: 109.3 kB / 18.35 MB, free: 4.793 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.001698/0.001698, allocations: 190.9 kB / 19.29 MB, free: 3.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 47.92 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06925/0.0704, allocations: 46.63 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.01844/0.08887, allocations: 19.47 MB / 348.2 MB, free: 188 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.1002, allocations: 6.269 MB / 354.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002264/0.1025, allocations: 147.6 kB / 354.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009559/0.1121, allocations: 6.048 MB / 360.7 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0056/0.1177, allocations: 2.653 MB / 363.3 MB, free: 1.016 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004663/0.1224, allocations: 2.506 MB / 365.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008136/0.1306, allocations: 7.082 MB / 372.9 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1429/0.2734, allocations: 8.093 MB / 381 MB, free: 16.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004103/0.2776, allocations: 2.836 MB / 383.8 MB, free: 16.21 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004355/0.2819, allocations: 3.593 MB / 387.4 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001206/0.2832, allocations: 0.6423 MB / 388.1 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003384/0.2866, allocations: 1.996 MB / 390.1 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002462/0.289, allocations: 3.434 MB / 393.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002957/0.292, allocations: 3.862 MB / 397.4 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008332/0.3003, allocations: 12.35 MB / 409.7 MB, free: 9.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.3004, allocations: 0 / 409.7 MB, free: 9.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3004, allocations: 0 / 409.7 MB, free: 9.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002048/0.3006, allocations: 0 / 409.7 MB, free: 9.242 MB / 318.1 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.01379/0.3144, allocations: 8.427 MB / 418.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.3144, allocations: 6.656 kB / 418.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00765/0.3221, allocations: 2.349 MB / 420.5 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007921/0.33, allocations: 4.457 MB / 424.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002871/0.3303, allocations: 441.3 kB / 425.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001567/0.3319, allocations: 0.6687 MB / 426 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02802/0.36, allocations: 16.92 MB / 443 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001469/0.3601, allocations: 58.91 kB / 443 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006644/0.3608, allocations: 269.9 kB / 443.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003651/0.3645, allocations: 2.594 MB / 445.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02824/0.3927, allocations: 14.56 MB / 460.4 MB, free: 11.69 MB / 366.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.07581/0.4686, allocations: 63.76 MB / 0.5119 GB, free: 11.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02163/0.4902, allocations: 7.38 MB / 0.5191 GB, free: 3.598 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004725/0.495, allocations: 3.805 MB / 0.5228 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1585/0.6535, allocations: 16.62 MB / 0.5391 GB, free: 156.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.6536, allocations: 58.73 kB / 0.5391 GB, free: 156.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=262): time 5.69e-06/0.6536, allocations: 0 / 0.5391 GB, free: 156.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.06106/0.7147, allocations: 26.98 MB / 0.5655 GB, free: 147.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.7147, allocations: 153 kB / 0.5656 GB, free: 147.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006228/0.721, allocations: 5.882 MB / 0.5714 GB, free: 145.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003708/0.7213, allocations: 61.33 kB / 0.5714 GB, free: 145.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001903/0.7233, allocations: 4.851 MB / 0.5762 GB, free: 141.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008482/0.7241, allocations: 1.063 MB / 0.5772 GB, free: 141.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001919/0.726, allocations: 1.821 MB / 0.579 GB, free: 139.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.495e-05/0.7261, allocations: 308.9 kB / 0.5793 GB, free: 139.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003774/0.7299, allocations: 3.323 MB / 0.5825 GB, free: 136.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005425/0.7353, allocations: 8.766 MB / 0.5911 GB, free: 125.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01017/0.7455, allocations: 13.08 MB / 0.6038 GB, free: 110.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.57e-05/0.7456, allocations: 56 kB / 0.6039 GB, free: 110.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=1183) (initialization): time 0.02492/0.7705, allocations: 14.68 MB / 0.6182 GB, free: 95.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.888e-05/0.7706, allocations: 91.94 kB / 0.6183 GB, free: 95.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01419/0.7848, allocations: 6.576 MB / 0.6247 GB, free: 88.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01228/0.7971, allocations: 3.229 MB / 0.6279 GB, free: 85.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00629/0.8034, allocations: 2.121 MB / 0.63 GB, free: 83.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0162/0.8197, allocations: 17.02 MB / 0.6466 GB, free: 65.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006513/0.8262, allocations: 0.5304 MB / 0.6471 GB, free: 64.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006749/0.8269, allocations: 0.5375 MB / 0.6476 GB, free: 64.3 MB / 446.1 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 (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.003839/0.8307, allocations: 3.232 MB / 0.6508 GB, free: 61.06 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007613/0.8315, allocations: 0.5168 MB / 0.6513 GB, free: 60.54 MB / 446.1 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.003239/0.8348, allocations: 2.548 MB / 0.6538 GB, free: 57.98 MB / 446.1 MB Error: post-optimization module wrapFunctionCalls (simulation) failed. Error: Internal error SimCode DAEmode: The model Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint could not be translated