Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Universal.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Joints.Universal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Universal") translateModel(ModelicaTest.MultiBody.Joints.Universal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Universal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001474, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000861/0.0008612, allocations: 106.4 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2094/0.2094, allocations: 45.15 MB / 383.8 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.478e-05/1.479e-05, allocations: 4 kB / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1187, allocations: 63.24 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4327/0.5515, allocations: 105 MB / 0.6069 GB, free: 13.84 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.5518, allocations: 78.39 kB / 0.607 GB, free: 13.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2334/0.7852, allocations: 95.6 MB / 0.7004 GB, free: 6.16 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.7852, allocations: 4 kB / 0.7004 GB, free: 6.156 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001627/0.7854, allocations: 76 kB / 0.7004 GB, free: 6.082 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01265/0.798, allocations: 4.278 MB / 0.7046 GB, free: 1.738 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.7981, allocations: 12.03 kB / 0.7046 GB, free: 1.727 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0155/0.8136, allocations: 3.609 MB / 0.7081 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009345/0.823, allocations: 3.813 MB / 0.7119 GB, free: 10.24 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001965/0.8233, allocations: 144 kB / 0.712 GB, free: 10.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001523/0.8248, allocations: 263.9 kB / 0.7123 GB, free: 9.844 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01372/0.8385, allocations: 8.16 MB / 0.7202 GB, free: 1.676 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02208/0.8606, allocations: 10.71 MB / 0.7307 GB, free: 6.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002578/0.8609, allocations: 31.66 kB / 0.7307 GB, free: 6.398 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002062/0.863, allocations: 20 kB / 0.7307 GB, free: 6.379 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002279/0.8653, allocations: 1.349 MB / 0.7321 GB, free: 5.027 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.35/1.215, allocations: 38.96 MB / 0.7701 GB, free: 117.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006546/1.222, allocations: 5.092 MB / 0.7751 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003824/1.226, allocations: 2.927 MB / 0.7779 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001498/1.227, allocations: 1.884 MB / 0.7798 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/1.227, allocations: 57.8 kB / 0.7798 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=264): time 6.091e-06/1.227, allocations: 1.375 kB / 0.7798 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=285): time 0.03188/1.259, allocations: 16.62 MB / 0.7961 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/1.259, allocations: 76.78 kB / 0.7961 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00397/1.263, allocations: 2.447 MB / 0.7985 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001985/1.264, allocations: 25.7 kB / 0.7985 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001323/1.265, allocations: 3.068 MB / 0.8015 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006936/1.266, allocations: 0.9977 MB / 0.8025 GB, free: 111 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002457/1.266, allocations: 3.062 kB / 0.8025 GB, free: 111 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002459/1.266, allocations: 0.5765 MB / 0.8031 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002781/1.269, allocations: 2.727 MB / 0.8057 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003778/1.273, allocations: 6.081 MB / 0.8117 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003957/1.277, allocations: 4.078 MB / 0.8157 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.133e-05/1.277, allocations: 34.62 kB / 0.8157 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01271/1.289, allocations: 9.398 MB / 0.8249 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.533e-05/1.29, allocations: 54.88 kB / 0.8249 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001781/1.29, allocations: 118.9 kB / 0.825 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003264/1.293, allocations: 1.385 MB / 0.8264 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00472/1.298, allocations: 1.461 MB / 0.8278 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007751/1.305, allocations: 6.802 MB / 0.8345 GB, free: 97.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005158/1.311, allocations: 303.4 kB / 0.8348 GB, free: 97.03 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001689/1.312, allocations: 367.8 kB / 0.8351 GB, free: 96.98 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 541 * Number of states: 0 () * Number of discrete variables: 32 (axis1.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],axis2.headAtOrigin,axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (758): * Single equations (assignments): 751 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002205/1.315, allocations: 407.8 kB / 0.8355 GB, free: 96.64 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001222/1.316, allocations: 293.3 kB / 0.8358 GB, free: 96.48 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01136/1.327, allocations: 6.406 MB / 0.842 GB, free: 94.36 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.038e-05/1.327, allocations: 51.56 kB / 0.8421 GB, free: 94.36 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.91e-05/1.327, allocations: 3.969 kB / 0.8421 GB, free: 94.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.939e-05/1.327, allocations: 14.58 kB / 0.8421 GB, free: 94.36 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02058/1.348, allocations: 12.8 MB / 0.8546 GB, free: 87.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.926e-05/1.348, allocations: 7.125 kB / 0.8546 GB, free: 87.97 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001885/1.35, allocations: 459.3 kB / 0.855 GB, free: 87.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002931/1.353, allocations: 1.215 MB / 0.8562 GB, free: 86.82 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002297/1.353, allocations: 12 kB / 0.8562 GB, free: 86.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006593/1.36, allocations: 6.144 MB / 0.8622 GB, free: 81.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/1.36, allocations: 8 kB / 0.8622 GB, free: 81.43 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01179/1.372, allocations: 10.27 MB / 0.8723 GB, free: 72.09 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/1.373, allocations: 336.6 kB / 0.8726 GB, free: 71.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008131/1.373, allocations: 11.28 kB / 0.8726 GB, free: 71.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002145/1.376, allocations: 166.5 kB / 0.8728 GB, free: 71.65 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003422/1.376, allocations: 164.1 kB / 0.8729 GB, free: 71.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002014/1.376, allocations: 79.8 kB / 0.873 GB, free: 71.46 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002929/1.379, allocations: 1.603 MB / 0.8746 GB, free: 70.07 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.2e-07/1.379, allocations: 0 / 0.8746 GB, free: 70.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005182/1.384, allocations: 0.9939 MB / 0.8755 GB, free: 69.09 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 213 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000507/1.385, allocations: 172.6 kB / 0.8757 GB, free: 68.93 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008203/1.393, allocations: 6.64 MB / 0.8822 GB, free: 62.92 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/1.393, allocations: 1.125 kB / 0.8822 GB, free: 62.92 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002787/1.396, allocations: 2.676 MB / 0.8848 GB, free: 60.48 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/1.398, allocations: 254.7 kB / 0.885 GB, free: 60.27 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01758/1.416, allocations: 9.566 MB / 0.8944 GB, free: 51.62 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004322/1.42, allocations: 3.681 MB / 0.898 GB, free: 48.8 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005363/1.425, allocations: 2.316 MB / 0.9002 GB, free: 47.32 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/1.426, allocations: 234.8 kB / 0.9005 GB, free: 47.11 MB / 0.5261 GB Notification: Performance of SimCode: time 8.51e-07/1.426, allocations: 0 / 0.9005 GB, free: 47.11 MB / 0.5261 GB Notification: Performance of Templates: time 0.05833/1.485, allocations: 34.53 MB / 0.9342 GB, free: 14.98 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Universal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Universal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Universal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Universal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Universal.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Universal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Universal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Universal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Universal/Universal.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Universal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,universal.phi_a,universal.phi_b,universal.w_a,universal.w_b Variables in the result:axis1.animation,axis1.quantity,axis2.animation,axis2.quantity,body.I[1,1],body.I[1,2],body.I[1,3],body.I[2,1],body.I[2,2],body.I[2,3],body.I[3,1],body.I[3,2],body.I[3,3],body.I_11,body.I_21,body.I_22,body.I_31,body.I_32,body.I_33,body.Q_start[1],body.Q_start[2],body.Q_start[3],body.Q_start[4],body.R_start.T[1,1],body.R_start.T[1,2],body.R_start.T[1,3],body.R_start.T[2,1],body.R_start.T[2,2],body.R_start.T[2,3],body.R_start.T[3,1],body.R_start.T[3,2],body.R_start.T[3,3],body.R_start.w[1],body.R_start.w[2],body.R_start.w[3],body.angles_fixed,body.angles_start[1],body.angles_start[2],body.angles_start[3],body.animation,body.cylinderDiameter,body.enforceStates,body.m,body.phi_start[1],body.phi_start[2],body.phi_start[3],body.r_CM[1],body.r_CM[2],body.r_CM[3],body.sequence_angleStates[1],body.sequence_angleStates[2],body.sequence_angleStates[3],body.sequence_start[1],body.sequence_start[2],body.sequence_start[3],body.sphereDiameter,body.useQuaternions,body.w_0_fixed,body.w_0_start[1],body.w_0_start[2],body.w_0_start[3],body.z_0_fixed,body.z_0_start[1],body.z_0_start[2],body.z_0_start[3],frame_a.animation,frame_a.animation2,frame_a.showLabels,frame_a.showLabels2,frame_a.x_label.n,frame_a.y_label.n,frame_a.z_label.n,frame_a1.animation,frame_a1.animation2,frame_a1.showLabels,frame_a1.showLabels2,frame_a1.x_label.n,frame_a1.y_label.n,frame_a1.z_label.n,time,universal.animation,universal.cylinderDiameter,universal.cylinderLength,universal.n_a[1],universal.n_a[2],universal.n_a[3],universal.n_b[1],universal.n_b[2],universal.n_b[3],universal.phi_a,universal.phi_b,universal.revolute_a.animation,universal.revolute_a.constantTorque.tau_constant,universal.revolute_a.constantTorque.useSupport,universal.revolute_a.cylinderDiameter,universal.revolute_a.cylinderLength,universal.revolute_a.e[1],universal.revolute_a.e[2],universal.revolute_a.e[3],universal.revolute_a.fixed.phi0,universal.revolute_a.n[1],universal.revolute_a.n[2],universal.revolute_a.n[3],universal.revolute_a.stateSelect,universal.revolute_b.animation,universal.revolute_b.constantTorque.tau_constant,universal.revolute_b.constantTorque.useSupport,universal.revolute_b.cylinderDiameter,universal.revolute_b.cylinderLength,universal.revolute_b.e[1],universal.revolute_b.e[2],universal.revolute_b.e[3],universal.revolute_b.fixed.phi0,universal.revolute_b.n[1],universal.revolute_b.n[2],universal.revolute_b.n[3],universal.revolute_b.stateSelect,universal.stateSelect,universal.w_a,universal.w_b,world.animateGravity,world.animateGround,world.animateWorld,world.axisDiameter,world.axisLength,world.axisShowLabels,world.defaultArrowDiameter,world.defaultAxisLength,world.defaultBodyDiameter,world.defaultForceLength,world.defaultForceWidth,world.defaultFrameDiameterFraction,world.defaultJointLength,world.defaultJointWidth,world.defaultN_to_m,world.defaultNm_to_m,world.defaultSpecularCoefficient,world.defaultWidthFraction,world.driveTrainMechanics3D,world.enableAnimation,world.g,world.gravityArrowDiameter,world.gravityArrowLength,world.gravityArrowTail[1],world.gravityArrowTail[2],world.gravityArrowTail[3],world.gravityHeadLength,world.gravityHeadWidth,world.gravityLineLength,world.gravitySphereDiameter,world.gravityType,world.groundAxis_u[1],world.groundAxis_u[2],world.groundAxis_u[3],world.groundLength_u,world.groundLength_v,world.headLength,world.headWidth,world.labelStart,world.lineLength,world.lineWidth,world.mu,world.n[1],world.n[2],world.n[3],world.ndim,world.ndim2,world.ndim_pointGravity,world.nominalLength,world.scaledLabel