Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.|bodyOfJoint.body.w_a.2.|joint.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.|bodyOfJoint.body.w_a.2.|joint.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001283/0.001283, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 226.5 MB / 245.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000809/0.0008088, allocations: 101.9 kB / 297.4 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003291/0.0003292, allocations: 8 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3227, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3029/0.6257, allocations: 115.5 MB / 0.5119 GB, free: 97.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/0.626, allocations: 93.19 kB / 0.512 GB, free: 97.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2739/0.9, allocations: 128.3 MB / 0.6373 GB, free: 4.816 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.347e-06/0.9001, allocations: 4 kB / 0.6373 GB, free: 4.812 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004752/0.9005, allocations: 140 kB / 0.6374 GB, free: 4.676 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: 2341 * Number of variables: 2341 Notification: Performance of Generate backend data structure: time 0.02716/0.9277, allocations: 7.266 MB / 0.6445 GB, free: 13.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.9278, allocations: 8.031 kB / 0.6445 GB, free: 13.31 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01328/0.9411, allocations: 2.679 MB / 0.6471 GB, free: 10.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01483/0.9559, allocations: 5.872 MB / 0.6528 GB, free: 4.664 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005897/0.9566, allocations: 0.5101 MB / 0.6533 GB, free: 4.152 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003195/0.9598, allocations: 0.6875 MB / 0.654 GB, free: 3.465 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04835/1.008, allocations: 17.05 MB / 0.6707 GB, free: 1.117 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003343/1.009, allocations: 83.45 kB / 0.6707 GB, free: 1.035 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002/1.011, allocations: 331.8 kB / 0.6711 GB, free: 0.7109 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.4317/1.442, allocations: 1.486 MB / 0.6725 GB, free: 67.68 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03081/1.473, allocations: 14.23 MB / 0.6864 GB, free: 67.63 MB / 442.8 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.07942/1.553, allocations: 72.76 MB / 0.7575 GB, free: 25.47 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0194/1.572, allocations: 7.622 MB / 0.7649 GB, free: 23.21 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004666/1.577, allocations: 3.984 MB / 0.7688 GB, free: 21.55 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02312/1.6, allocations: 16.37 MB / 0.7848 GB, free: 13.26 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.384e-05/1.6, allocations: 66.19 kB / 0.7848 GB, free: 13.2 MB / 442.8 MB Notification: Performance of pre-optimization done (n=266): time 6.192e-06/1.6, allocations: 0 / 0.7848 GB, free: 13.2 MB / 442.8 MB Notification: Performance of matching and sorting (n=340): time 0.1336/1.734, allocations: 44.97 MB / 0.8288 GB, free: 13.31 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2755/2.009, allocations: 15.46 MB / 0.8439 GB, free: 96.6 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008843/2.018, allocations: 5.612 MB / 0.8493 GB, free: 96.29 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009292/2.019, allocations: 78.61 kB / 0.8494 GB, free: 96.25 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003751/2.023, allocations: 4.685 MB / 0.854 GB, free: 94.81 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002162/2.025, allocations: 1.271 MB / 0.8552 GB, free: 94.07 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001058/2.026, allocations: 178.5 kB / 0.8554 GB, free: 94.07 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.000608/2.027, allocations: 0.6879 MB / 0.8561 GB, free: 93.75 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006236/2.033, allocations: 4.074 MB / 0.86 GB, free: 93.73 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009684/2.043, allocations: 9.251 MB / 0.8691 GB, free: 87.13 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0172/2.06, allocations: 14.47 MB / 0.8832 GB, free: 80.51 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002554/2.06, allocations: 51.09 kB / 0.8833 GB, free: 80.51 MB / 474.8 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.0415/2.102, allocations: 17.83 MB / 0.9007 GB, free: 77.15 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003918/2.102, allocations: 80 kB / 0.9008 GB, free: 77.15 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000496/2.103, allocations: 185.3 kB / 0.9009 GB, free: 77.15 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01528/2.118, allocations: 4.958 MB / 0.9058 GB, free: 76.23 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007086/2.125, allocations: 1.983 MB / 0.9077 GB, free: 75.99 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04547/2.171, allocations: 37.16 MB / 0.944 GB, free: 56.01 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00875/2.179, allocations: 0.541 MB / 0.9445 GB, free: 55.84 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002384/2.182, allocations: 0.5545 MB / 0.9451 GB, free: 55.77 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * 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.cylinderColor[3],joint.cylinderColor[2],joint.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1042): * Single equations (assignments): 1031 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,100.0%) 38,(2,100.0%) 23,(2,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.008917/2.191, allocations: 3.225 MB / 0.9482 GB, free: 52.93 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001786/2.193, allocations: 0.5244 MB / 0.9487 GB, free: 52.4 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02425/2.217, allocations: 10.43 MB / 0.9589 GB, free: 44.21 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001301/2.217, allocations: 52 kB / 0.959 GB, free: 44.16 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01952/2.237, allocations: 9.536 MB / 0.9683 GB, free: 36.46 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.092e-05/2.237, allocations: 14.3 kB / 0.9683 GB, free: 36.46 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05234/2.289, allocations: 23.14 MB / 0.9909 GB, free: 17.95 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.715e-05/2.289, allocations: 8.312 kB / 0.9909 GB, free: 17.94 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002445/2.292, allocations: 449.1 kB / 0.9913 GB, free: 17.6 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01162/2.303, allocations: 3.683 MB / 0.9949 GB, free: 14.23 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008932/2.304, allocations: 64.69 kB / 0.995 GB, free: 14.16 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3001/2.604, allocations: 27.25 MB / 1.022 GB, free: 96.03 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01516/2.62, allocations: 12.17 MB / 1.033 GB, free: 93.25 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02402/2.644, allocations: 14.16 MB / 1.047 GB, free: 92.7 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001576/2.645, allocations: 0.5585 MB / 1.048 GB, free: 92.61 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001355/2.647, allocations: 55.41 kB / 1.048 GB, free: 92.61 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003307/2.65, allocations: 221.4 kB / 1.048 GB, free: 92.61 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001082/2.651, allocations: 238.4 kB / 1.048 GB, free: 92.6 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004853/2.652, allocations: 87.56 kB / 1.048 GB, free: 92.6 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.006835/2.658, allocations: 3.49 MB / 1.052 GB, free: 92.42 MB / 490.8 MB Notification: Performance of sort global known variables: time 5.51e-07/2.659, allocations: 0 / 1.052 GB, free: 92.42 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01158/2.67, allocations: 2.039 MB / 1.054 GB, free: 92.42 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 ($STATESET2.x,$STATESET1.x,joint.phi,joint.w) * 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 (206): * Single equations (assignments): 198 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(3,100.0%) 35,(3,100.0%) 25} * Non-linear torn systems: 1 {3 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.001818/2.672, allocations: 287.4 kB / 1.054 GB, free: 92.33 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01761/2.69, allocations: 10.73 MB / 1.065 GB, free: 91.39 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/2.69, allocations: 0 / 1.065 GB, free: 91.39 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006105/2.696, allocations: 4.211 MB / 1.069 GB, free: 89.46 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009081/2.705, allocations: 0.7899 MB / 1.069 GB, free: 89.15 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03477/2.74, allocations: 19.55 MB / 1.089 GB, free: 79.26 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007762/2.748, allocations: 4.941 MB / 1.093 GB, free: 77.59 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001726/2.749, allocations: 409.7 kB / 1.094 GB, free: 77.57 MB / 490.8 MB Notification: Performance of SimCode: time 8.82e-07/2.749, allocations: 0 / 1.094 GB, free: 77.57 MB / 490.8 MB Notification: Performance of Templates: time 0.7114/3.461, allocations: 257.5 MB / 1.345 GB, free: 60 kB / 490.8 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Constraints/RevoluteConstraint/RevoluteConstraint.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bodyOfConstraint.body.w_a[1],bodyOfConstraint.body.w_a[2],bodyOfConstraint.body.w_a[3],bodyOfJoint.body.w_a[2],joint.phi Variables in the result:bodyOfConstraint.body.w_a[1],bodyOfConstraint.body.w_a[2],bodyOfConstraint.body.w_a[3],bodyOfJoint.body.w_a[2],joint.phi,time