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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001214, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007512/0.0007513, allocations: 95.52 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002496/0.0002497, allocations: 7.984 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2163, allocations: 50.4 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3198/0.5362, allocations: 114.6 MB / 0.504 GB, free: 46.44 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/0.5364, allocations: 91.55 kB / 0.504 GB, free: 46.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2837/0.8201, allocations: 128.1 MB / 0.6292 GB, free: 4.926 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.8202, allocations: 0 / 0.6292 GB, free: 4.926 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004514/0.8206, allocations: 144 kB / 0.6293 GB, free: 4.785 MB / 410.7 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.02817/0.8488, allocations: 7.461 MB / 0.6366 GB, free: 13.24 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.8489, allocations: 8.031 kB / 0.6366 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01454/0.8634, allocations: 2.892 MB / 0.6394 GB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02082/0.8843, allocations: 7.859 MB / 0.6471 GB, free: 2.379 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006039/0.885, allocations: 0.5137 MB / 0.6476 GB, free: 1.863 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003843/0.8888, allocations: 0.695 MB / 0.6483 GB, free: 1.168 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.247/1.136, allocations: 17.32 MB / 0.6652 GB, free: 66.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002928/1.136, allocations: 76.84 kB / 0.6653 GB, free: 66.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001361/1.138, allocations: 333.1 kB / 0.6656 GB, free: 66.32 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001814/1.139, allocations: 1.489 MB / 0.6671 GB, free: 66.31 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02739/1.167, allocations: 14.52 MB / 0.6812 GB, free: 66.26 MB / 442.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.07983/1.247, allocations: 74.36 MB / 0.7539 GB, free: 38.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01897/1.266, allocations: 7.398 MB / 0.7611 GB, free: 36.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02483/1.291, allocations: 16.28 MB / 0.777 GB, free: 28.14 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.796e-05/1.291, allocations: 63.12 kB / 0.777 GB, free: 28.09 MB / 458.7 MB Notification: Performance of pre-optimization done (n=253): time 8.095e-06/1.291, allocations: 0 / 0.777 GB, free: 28.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=269): time 0.07391/1.365, allocations: 27.95 MB / 0.8043 GB, free: 11.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001252/1.366, allocations: 1.615 MB / 0.8059 GB, free: 9.762 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01086/1.377, allocations: 5.126 MB / 0.8109 GB, free: 5.488 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007748/1.378, allocations: 68.98 kB / 0.811 GB, free: 5.418 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004557/1.382, allocations: 4.792 MB / 0.8157 GB, free: 1.145 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00183/1.384, allocations: 1.047 MB / 0.8167 GB, free: 232 kB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00137/1.385, allocations: 176 kB / 0.8169 GB, free: 56 kB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.002224/1.388, allocations: 0.7666 MB / 0.8176 GB, free: 15.7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006457/1.394, allocations: 3.246 MB / 0.8208 GB, free: 12.95 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01139/1.406, allocations: 8.582 MB / 0.8292 GB, free: 2.469 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2548/1.66, allocations: 5.162 MB / 0.8342 GB, free: 93.71 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001227/1.661, allocations: 52.97 kB / 0.8342 GB, free: 93.71 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.02512/1.686, allocations: 13.5 MB / 0.8474 GB, free: 92.96 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002466/1.686, allocations: 83.41 kB / 0.8475 GB, free: 92.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01069/1.697, allocations: 5.665 MB / 0.853 GB, free: 92.52 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006099/1.703, allocations: 2.102 MB / 0.8551 GB, free: 92.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007319/1.71, allocations: 2.083 MB / 0.8571 GB, free: 92.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01281/1.723, allocations: 14.34 MB / 0.8711 GB, free: 84.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006873/1.73, allocations: 0.562 MB / 0.8717 GB, free: 84.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001682/1.732, allocations: 0.5266 MB / 0.8722 GB, free: 84.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 865 * Number of states: 0 () * Number of discrete variables: 62 (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.arrow.arrowLine.twoHeadedArrow,sensorConstraintRelative.arrow.headAtOrigin,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 (1097): * Single equations (assignments): 1083 * 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.007049/1.739, allocations: 3.186 MB / 0.8753 GB, free: 84.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001184/1.74, allocations: 0.5154 MB / 0.8758 GB, free: 84.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01157/1.752, allocations: 6.384 MB / 0.882 GB, free: 83.75 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009366/1.761, allocations: 5.487 MB / 0.8874 GB, free: 83.28 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01008/1.771, allocations: 5.877 MB / 0.8931 GB, free: 81.83 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.581e-05/1.771, allocations: 17.34 kB / 0.8932 GB, free: 81.83 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03327/1.804, allocations: 16.68 MB / 0.9095 GB, free: 75.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.451e-05/1.804, allocations: 12.92 kB / 0.9095 GB, free: 75.76 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002367/1.807, allocations: 496.8 kB / 0.9099 GB, free: 75.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005177/1.812, allocations: 1.795 MB / 0.9117 GB, free: 75.41 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006199/1.813, allocations: 65.41 kB / 0.9118 GB, free: 75.38 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01044/1.823, allocations: 9.941 MB / 0.9215 GB, free: 69.62 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000772/1.824, allocations: 1.478 MB / 0.9229 GB, free: 68.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01475/1.839, allocations: 10.36 MB / 0.933 GB, free: 59.89 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001891/1.841, allocations: 0.5572 MB / 0.9336 GB, free: 59.33 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001541/1.842, allocations: 66.03 kB / 0.9336 GB, free: 59.28 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00325/1.846, allocations: 210.4 kB / 0.9338 GB, free: 59.16 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006346/1.846, allocations: 189.9 kB / 0.934 GB, free: 59.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003328/1.847, allocations: 79.23 kB / 0.9341 GB, free: 58.96 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007999/1.855, allocations: 3.571 MB / 0.9376 GB, free: 56.03 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.855, allocations: 0 / 0.9376 GB, free: 56.03 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01024/1.865, allocations: 1.674 MB / 0.9392 GB, free: 54.38 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (223): * Single equations (assignments): 213 * 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.001364/1.866, allocations: 268 kB / 0.9395 GB, free: 54.15 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0141/1.88, allocations: 8.819 MB / 0.9481 GB, free: 46.38 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/1.88, allocations: 4 kB / 0.9481 GB, free: 46.38 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005117/1.886, allocations: 3.302 MB / 0.9513 GB, free: 43.43 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004786/1.89, allocations: 0.7755 MB / 0.9521 GB, free: 42.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03283/1.923, allocations: 17.62 MB / 0.9693 GB, free: 26.66 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00911/1.932, allocations: 4.932 MB / 0.9741 GB, free: 23.03 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007506/1.94, allocations: 2.869 MB / 0.9769 GB, free: 21.25 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00113/1.941, allocations: 357.5 kB / 0.9772 GB, free: 20.92 MB / 474.7 MB Notification: Performance of SimCode: time 8.82e-07/1.941, allocations: 0 / 0.9772 GB, free: 20.92 MB / 474.7 MB Notification: Performance of Templates: time 0.3516/2.293, allocations: 58.48 MB / 1.034 GB, free: 95.2 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Constraints/SphericalConstraint/SphericalConstraint.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches