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") [: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 trunk/package.mo): time 0.00101/0.00101, allocations: 190.8 kB / 8.533 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 225.5 MB / 234.4 MB, free: 3.422 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009455/0.0009455, allocations: 91.17 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.174/0.174, allocations: 45.15 MB / 383.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.877e-06/8.897e-06, allocations: 4 kB / 452.6 MB, free: 76.23 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1277, allocations: 63.24 MB / 0.5038 GB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3486/0.4763, allocations: 104.9 MB / 0.6063 GB, free: 14.29 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.4766, allocations: 75.48 kB / 0.6063 GB, free: 14.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.2507/0.7273, allocations: 94.43 MB / 0.6985 GB, free: 7.941 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003671/0.7278, allocations: 79.98 kB / 0.6986 GB, free: 7.863 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.01952/0.7473, allocations: 4.247 MB / 0.7028 GB, free: 3.551 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.7474, allocations: 12.03 kB / 0.7028 GB, free: 3.539 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01608/0.7634, allocations: 2.899 MB / 0.7056 GB, free: 0.6289 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01235/0.7758, allocations: 3.829 MB / 0.7093 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003328/0.7762, allocations: 148 kB / 0.7095 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002994/0.7792, allocations: 259.9 kB / 0.7097 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01777/0.797, allocations: 8.351 MB / 0.7179 GB, free: 3.984 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02785/0.8249, allocations: 10.89 MB / 0.7285 GB, free: 8.551 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003125/0.8253, allocations: 39.64 kB / 0.7286 GB, free: 8.512 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002917/0.8282, allocations: 16 kB / 0.7286 GB, free: 8.496 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002406/0.8306, allocations: 1.423 MB / 0.73 GB, free: 7.066 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2763/1.107, allocations: 39.35 MB / 0.7684 GB, free: 180.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00587/1.113, allocations: 5.236 MB / 0.7735 GB, free: 179.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003278/1.116, allocations: 3.078 MB / 0.7765 GB, free: 179.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01464/1.131, allocations: 11.65 MB / 0.7879 GB, free: 175.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/1.131, allocations: 59.78 kB / 0.788 GB, free: 175.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=219): time 5.801e-06/1.131, allocations: 3.531 kB / 0.788 GB, free: 175.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=249): time 0.0312/1.162, allocations: 16.01 MB / 0.8036 GB, free: 174.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/1.162, allocations: 71.12 kB / 0.8037 GB, free: 174.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00394/1.166, allocations: 2.695 MB / 0.8063 GB, free: 173.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004732/1.167, allocations: 28.8 kB / 0.8063 GB, free: 173.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001427/1.168, allocations: 3.06 MB / 0.8093 GB, free: 170.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009357/1.169, allocations: 0.8912 MB / 0.8102 GB, free: 170.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002562/1.169, allocations: 0 / 0.8102 GB, free: 170.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003133/1.17, allocations: 0.5753 MB / 0.8107 GB, free: 169.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003126/1.173, allocations: 2.817 MB / 0.8135 GB, free: 168.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004617/1.177, allocations: 6.181 MB / 0.8195 GB, free: 163.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005146/1.183, allocations: 4.211 MB / 0.8236 GB, free: 162.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-05/1.183, allocations: 33.78 kB / 0.8237 GB, free: 162.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=825) (initialization): time 0.01783/1.201, allocations: 9.445 MB / 0.8329 GB, free: 159.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/1.201, allocations: 6.156 kB / 0.8329 GB, free: 159.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002004/1.201, allocations: 119.7 kB / 0.833 GB, free: 159.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004012/1.205, allocations: 1.281 MB / 0.8343 GB, free: 159.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006075/1.211, allocations: 1.422 MB / 0.8357 GB, free: 157.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008806/1.22, allocations: 6.789 MB / 0.8423 GB, free: 151.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006336/1.226, allocations: 234.6 kB / 0.8425 GB, free: 151.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001511/1.228, allocations: 369.8 kB / 0.8429 GB, free: 151.4 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 (755): * Single equations (assignments): 748 * 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.001172/1.229, allocations: 413.2 kB / 0.8433 GB, free: 150.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007857/1.23, allocations: 296 kB / 0.8435 GB, free: 150.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008862/1.239, allocations: 5.968 MB / 0.8494 GB, free: 145.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.769e-05/1.239, allocations: 39.52 kB / 0.8494 GB, free: 145.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/1.239, allocations: 4 kB / 0.8494 GB, free: 145.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.226e-05/1.239, allocations: 10.48 kB / 0.8494 GB, free: 145.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01813/1.257, allocations: 11.32 MB / 0.8605 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/1.257, allocations: 0 / 0.8605 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002031/1.259, allocations: 355.5 kB / 0.8608 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003147/1.262, allocations: 1.103 MB / 0.8619 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003399/1.263, allocations: 14.94 kB / 0.8619 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006782/1.269, allocations: 5.912 MB / 0.8677 GB, free: 130.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.269, allocations: 0 / 0.8677 GB, free: 130.2 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0119/1.281, allocations: 9.064 MB / 0.8765 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/1.282, allocations: 340.4 kB / 0.8768 GB, free: 122 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005863/1.283, allocations: 4 kB / 0.8769 GB, free: 122 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001666/1.285, allocations: 99.62 kB / 0.8769 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003111/1.285, allocations: 98.92 kB / 0.877 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002056/1.285, allocations: 55.05 kB / 0.8771 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002961/1.288, allocations: 1.77 MB / 0.8788 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004895/1.293, allocations: 0.9984 MB / 0.8798 GB, free: 119.3 MB / 0.5261 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.000469/1.294, allocations: 154.3 kB / 0.8799 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008586/1.302, allocations: 6.599 MB / 0.8864 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/1.302, allocations: 0 / 0.8864 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003561/1.306, allocations: 2.6 MB / 0.8889 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001743/1.308, allocations: 238.8 kB / 0.8892 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01921/1.327, allocations: 9.222 MB / 0.8982 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006729/1.334, allocations: 3.939 MB / 0.902 GB, free: 99.31 MB / 0.5261 GB Notification: Performance of SimCode: time 1.002e-06/1.334, allocations: 0 / 0.902 GB, free: 99.31 MB / 0.5261 GB Notification: Performance of Templates: time 0.07534/1.409, allocations: 43.9 MB / 0.9449 GB, free: 57.58 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