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.001455/0.001456, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.043/2.043, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 92.03 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.118e-05/2.127e-05, allocations: 0 / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3432, allocations: 47.57 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1901/0.5334, allocations: 112.4 MB / 474.8 MB, free: 5.824 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000324/0.5338, allocations: 88.8 kB / 474.9 MB, free: 5.738 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.754/1.288, allocations: 125.8 MB / 0.5866 GB, free: 57.04 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.677e-06/1.288, allocations: 0 / 0.5866 GB, free: 57.04 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0005029/1.288, allocations: 151.1 kB / 0.5868 GB, free: 56.9 MB / 395.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.03464/1.323, allocations: 7.108 MB / 0.5937 GB, free: 49.73 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/1.323, allocations: 12.03 kB / 0.5937 GB, free: 49.72 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02304/1.346, allocations: 2.916 MB / 0.5966 GB, free: 46.79 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02992/1.376, allocations: 8.19 MB / 0.6046 GB, free: 38.59 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000529/1.377, allocations: 232 kB / 0.6048 GB, free: 38.37 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004053/1.381, allocations: 423.8 kB / 0.6052 GB, free: 37.95 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02655/1.407, allocations: 10.2 MB / 0.6152 GB, free: 27.76 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03986/1.447, allocations: 14.87 MB / 0.6297 GB, free: 11.54 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004768/1.448, allocations: 83.28 kB / 0.6298 GB, free: 11.46 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003418/1.451, allocations: 43.95 kB / 0.6298 GB, free: 11.41 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003658/1.455, allocations: 1.529 MB / 0.6313 GB, free: 9.883 MB / 395.1 MB Warning: The model contains alias variables with conflicting start and/or 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.7268/2.182, allocations: 74.62 MB / 0.7042 GB, free: 29.68 MB / 411.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009022/2.191, allocations: 4.555 MB / 0.7086 GB, free: 29.01 MB / 411.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007533/2.198, allocations: 3.299 MB / 0.7118 GB, free: 28.98 MB / 411.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002273/2.201, allocations: 1.339 MB / 0.7131 GB, free: 27.84 MB / 411.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.445e-05/2.201, allocations: 63.47 kB / 0.7132 GB, free: 27.8 MB / 411.2 MB Notification: Performance of pre-optimization done (n=273): time 7.354e-06/2.201, allocations: 2.469 kB / 0.7132 GB, free: 27.8 MB / 411.2 MB Notification: Performance of matching and sorting (n=291): time 0.09685/2.298, allocations: 23.58 MB / 0.7362 GB, free: 22.45 MB / 411.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.897e-05/2.298, allocations: 158.1 kB / 0.7364 GB, free: 22.29 MB / 411.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01293/2.311, allocations: 4.631 MB / 0.7409 GB, free: 20.62 MB / 411.2 MB Notification: Performance of collectPreVariables (initialization): time 0.0009683/2.312, allocations: 30.14 kB / 0.7409 GB, free: 20.59 MB / 411.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.004779/2.317, allocations: 4.79 MB / 0.7456 GB, free: 16.92 MB / 411.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.002334/2.319, allocations: 1.096 MB / 0.7467 GB, free: 16.12 MB / 411.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001488/2.321, allocations: 3.812 kB / 0.7467 GB, free: 16.12 MB / 411.2 MB Notification: Performance of setup shared object (initialization): time 0.001023/2.322, allocations: 0.7015 MB / 0.7474 GB, free: 15.64 MB / 411.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008522/2.33, allocations: 3.18 MB / 0.7505 GB, free: 14.5 MB / 411.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01191/2.342, allocations: 8.699 MB / 0.759 GB, free: 5.902 MB / 411.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0126/2.355, allocations: 5.181 MB / 0.764 GB, free: 4.223 MB / 411.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002859/2.355, allocations: 55.38 kB / 0.7641 GB, free: 4.223 MB / 411.2 MB Notification: Performance of matching and sorting (n=1210) (initialization): time 0.04139/2.397, allocations: 12.53 MB / 0.7763 GB, free: 15.08 MB / 427.2 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002097/2.397, allocations: 99.38 kB / 0.7764 GB, free: 14.99 MB / 427.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0212/2.418, allocations: 5.717 MB / 0.782 GB, free: 10.3 MB / 427.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01214/2.43, allocations: 2.145 MB / 0.7841 GB, free: 8.789 MB / 427.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01598/2.446, allocations: 2.198 MB / 0.7862 GB, free: 6.891 MB / 427.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02741/2.474, allocations: 13.83 MB / 0.7997 GB, free: 10.01 MB / 443.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01181/2.486, allocations: 422.8 kB / 0.8001 GB, free: 9.703 MB / 443.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003066/2.489, allocations: 0.5523 MB / 0.8007 GB, free: 9.16 MB / 443.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 902 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1156): * Single equations (assignments): 1142 * 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.004512/2.493, allocations: 0.6052 MB / 0.8013 GB, free: 8.555 MB / 443.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001917/2.495, allocations: 0.4975 MB / 0.8018 GB, free: 8.051 MB / 443.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02491/2.52, allocations: 6.401 MB / 0.808 GB, free: 2.914 MB / 443.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0211/2.542, allocations: 5.589 MB / 0.8135 GB, free: 14.53 MB / 459.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01869/2.56, allocations: 5.396 MB / 0.8187 GB, free: 10.11 MB / 459.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001088/2.56, allocations: 16.03 kB / 0.8187 GB, free: 10.11 MB / 459.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3798/2.94, allocations: 16.55 MB / 0.8349 GB, free: 108.3 MB / 459.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.504e-05/2.94, allocations: 10.16 kB / 0.8349 GB, free: 108.3 MB / 459.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005064/2.945, allocations: 0.5302 MB / 0.8354 GB, free: 108.3 MB / 459.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009493/2.955, allocations: 1.797 MB / 0.8372 GB, free: 108.3 MB / 459.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008027/2.956, allocations: 30 kB / 0.8372 GB, free: 108.3 MB / 459.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01793/2.974, allocations: 9.452 MB / 0.8464 GB, free: 104.7 MB / 459.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001128/2.975, allocations: 1.415 MB / 0.8478 GB, free: 103.4 MB / 459.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0274/3.002, allocations: 11.11 MB / 0.8587 GB, free: 100.6 MB / 459.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002107/3.005, allocations: 0.5468 MB / 0.8592 GB, free: 100.5 MB / 459.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002089/3.007, allocations: 28.05 kB / 0.8592 GB, free: 100.5 MB / 459.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00565/3.012, allocations: 178.4 kB / 0.8594 GB, free: 100.5 MB / 459.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001232/3.014, allocations: 203.9 kB / 0.8596 GB, free: 100.5 MB / 459.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004147/3.014, allocations: 90.14 kB / 0.8597 GB, free: 100.5 MB / 459.2 MB Notification: Performance of sorting global known variables: time 0.008998/3.023, allocations: 3.105 MB / 0.8627 GB, free: 100.3 MB / 459.2 MB Notification: Performance of sort global known variables: time 1.002e-06/3.023, allocations: 0 / 0.8627 GB, free: 100.3 MB / 459.2 MB Notification: Performance of remove unused functions: time 0.01319/3.036, allocations: 1.537 MB / 0.8642 GB, free: 100.3 MB / 459.2 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * Number of states: 12 ($STATESET0.x[3],$STATESET0.x[2],$STATESET0.x[1],joint.w_rel[1],joint.w_rel[2],joint.w_rel[3],bodyOfConstraint.body.w_a[1],bodyOfConstraint.body.w_a[2],bodyOfConstraint.body.w_a[3],freeMotionScalarInit.derd[1].u,freeMotionScalarInit.derd[2].u,freeMotionScalarInit.derd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (246): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 2 {(3,100.0%) 3,(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001706/3.038, allocations: 242.2 kB / 0.8645 GB, free: 100.2 MB / 459.2 MB Notification: Performance of simCode: created initialization part: time 0.02146/3.06, allocations: 8.569 MB / 0.8728 GB, free: 99.3 MB / 459.2 MB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/3.06, allocations: 0 / 0.8728 GB, free: 99.3 MB / 459.2 MB Notification: Performance of simCode: created simulation system equations: time 0.01006/3.07, allocations: 3.369 MB / 0.8761 GB, free: 98.66 MB / 459.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006997/3.077, allocations: 0.6644 MB / 0.8768 GB, free: 98.64 MB / 459.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03772/3.115, allocations: 13.4 MB / 0.8898 GB, free: 94.49 MB / 459.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01237/3.127, allocations: 5.023 MB / 0.8948 GB, free: 92.83 MB / 459.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002652/3.13, allocations: 428.4 kB / 0.8952 GB, free: 92.81 MB / 459.2 MB Notification: Performance of SimCode: time 1.783e-06/3.13, allocations: 0 / 0.8952 GB, free: 92.81 MB / 459.2 MB Notification: Performance of Templates: time 1.186/4.316, allocations: 277.7 MB / 1.166 GB, free: 127.6 MB / 475.2 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Constraints/SphericalConstraint/SphericalConstraint.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches