Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Universal.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(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_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Joints.Universal") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008742/0.0008743, allocations: 187.4 kB / 7.807 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.018/1.018, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008499/0.0008499, allocations: 95.7 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1564/0.1564, allocations: 43.5 MB / 352.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.444e-06/7.464e-06, allocations: 4 kB / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2291, allocations: 58.84 MB / 476.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1125/0.3417, allocations: 102.5 MB / 0.5655 GB, free: 12.38 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001563/0.3419, allocations: 71.97 kB / 0.5656 GB, free: 12.31 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.3599/0.7018, allocations: 92.45 MB / 0.6559 GB, free: 108.4 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.315e-05/0.7019, allocations: 89.23 kB / 0.656 GB, free: 108.4 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1766 * Number of variables: 1766 Notification: Performance of Generate backend data structure: time 0.005967/0.7079, allocations: 4.202 MB / 0.6601 GB, free: 106.6 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.7079, allocations: 10.53 kB / 0.6601 GB, free: 106.6 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01126/0.7192, allocations: 2.903 MB / 0.6629 GB, free: 106.3 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008389/0.7276, allocations: 4.526 MB / 0.6673 GB, free: 105.7 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.7277, allocations: 143.7 kB / 0.6675 GB, free: 105.7 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007178/0.7284, allocations: 261 kB / 0.6677 GB, free: 105.7 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00891/0.7374, allocations: 8.374 MB / 0.6759 GB, free: 105.7 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01231/0.7497, allocations: 10.91 MB / 0.6866 GB, free: 101.7 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001252/0.7498, allocations: 35 kB / 0.6866 GB, free: 101.7 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006152/0.7505, allocations: 14 kB / 0.6866 GB, free: 101.7 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00164/0.7521, allocations: 1.415 MB / 0.688 GB, free: 101.5 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04269/0.7948, allocations: 39.27 MB / 0.7263 GB, free: 75.33 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004097/0.7989, allocations: 5.225 MB / 0.7314 GB, free: 70.32 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002867/0.8018, allocations: 3.091 MB / 0.7345 GB, free: 67.49 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01347/0.8153, allocations: 11.66 MB / 0.7458 GB, free: 56.66 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.026e-05/0.8153, allocations: 52.56 kB / 0.7459 GB, free: 56.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=219): time 3.427e-06/0.8153, allocations: 0 / 0.7459 GB, free: 56.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=249): time 0.02628/0.8416, allocations: 16.09 MB / 0.7616 GB, free: 41.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.563e-05/0.8417, allocations: 73.41 kB / 0.7617 GB, free: 41.11 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002808/0.8445, allocations: 2.71 MB / 0.7643 GB, free: 38.39 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001515/0.8446, allocations: 25.7 kB / 0.7643 GB, free: 38.36 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009914/0.8456, allocations: 3.079 MB / 0.7673 GB, free: 35.23 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005062/0.8462, allocations: 0.894 MB / 0.7682 GB, free: 34.32 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.8464, allocations: 0 / 0.7682 GB, free: 34.32 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002312/0.8466, allocations: 0.5786 MB / 0.7688 GB, free: 33.74 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002766/0.8494, allocations: 2.824 MB / 0.7715 GB, free: 30.91 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003983/0.8534, allocations: 6.21 MB / 0.7776 GB, free: 23.01 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004515/0.8579, allocations: 4.227 MB / 0.7817 GB, free: 18.78 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.363e-05/0.858, allocations: 32 kB / 0.7818 GB, free: 18.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=831) (initialization): time 0.01189/0.8699, allocations: 9.485 MB / 0.791 GB, free: 9.266 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.8699, allocations: 7.906 kB / 0.791 GB, free: 9.258 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.648e-05/0.87, allocations: 120 kB / 0.7911 GB, free: 9.141 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003135/0.8731, allocations: 1.281 MB / 0.7924 GB, free: 7.855 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004294/0.8774, allocations: 1.439 MB / 0.7938 GB, free: 6.414 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007355/0.8848, allocations: 6.79 MB / 0.8004 GB, free: 15.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004609/0.8894, allocations: 247.7 kB / 0.8007 GB, free: 15.28 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000702/0.8901, allocations: 368 kB / 0.801 GB, free: 14.92 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 547 * Number of states: 0 () * Number of discrete variables: 30 (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.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 (761): * Single equations (assignments): 754 * 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%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000804/0.891, allocations: 409.9 kB / 0.8014 GB, free: 14.51 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004041/0.8914, allocations: 292.2 kB / 0.8017 GB, free: 14.22 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009664/0.901, allocations: 5.99 MB / 0.8075 GB, free: 8.215 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.351e-05/0.9011, allocations: 39.98 kB / 0.8076 GB, free: 8.176 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/0.9011, allocations: 4 kB / 0.8076 GB, free: 8.172 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-05/0.9012, allocations: 11.97 kB / 0.8076 GB, free: 8.16 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01997/0.9212, allocations: 11.3 MB / 0.8186 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.9212, allocations: 0 / 0.8186 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001937/0.9232, allocations: 359.5 kB / 0.819 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003278/0.9265, allocations: 1.117 MB / 0.8201 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002338/0.9267, allocations: 7.984 kB / 0.8201 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007615/0.9343, allocations: 5.912 MB / 0.8258 GB, free: 5.359 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.9344, allocations: 0 / 0.8258 GB, free: 5.359 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.143/1.077, allocations: 9.069 MB / 0.8347 GB, free: 178.9 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00169/1.079, allocations: 0.7849 MB / 0.8355 GB, free: 178.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007797/1.08, allocations: 0 / 0.8355 GB, free: 178.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001755/1.082, allocations: 102 kB / 0.8356 GB, free: 178.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003332/1.082, allocations: 100.2 kB / 0.8357 GB, free: 178.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001942/1.082, allocations: 58.38 kB / 0.8357 GB, free: 178.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002366/1.085, allocations: 1.789 MB / 0.8375 GB, free: 178.6 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004262/1.089, allocations: 0.998 MB / 0.8384 GB, free: 178.6 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (186): * Single equations (assignments): 179 * 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 {(4,75.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004268/1.089, allocations: 142.4 kB / 0.8386 GB, free: 178.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007196/1.097, allocations: 6.614 MB / 0.845 GB, free: 178.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.097, allocations: 3.5 kB / 0.845 GB, free: 178.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002889/1.099, allocations: 2.6 MB / 0.8476 GB, free: 178.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/1.1, allocations: 220.8 kB / 0.8478 GB, free: 178.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01416/1.115, allocations: 9.249 MB / 0.8568 GB, free: 176.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004348/1.119, allocations: 3.952 MB / 0.8607 GB, free: 176 MB / 0.4948 GB Notification: Performance of SimCode: time 4.81e-07/1.119, allocations: 0 / 0.8607 GB, free: 176 MB / 0.4948 GB Notification: Performance of Templates: time 0.0643/1.183, allocations: 43.84 MB / 0.9035 GB, free: 163.6 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Universal.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Universal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Universal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Universal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Universal.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Universal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Universal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Universal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Universal/Universal.csv","../files/ModelicaTest_3.2.3_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,axis2.animation,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],body.z_a_start[1],body.z_a_start[2],body.z_a_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.mue,world.n[1],world.n[2],world.n[3],world.ndim,world.ndim2,world.ndim_pointGravity,world.nominalLength,world.scaledLabel