Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 179.4 kB / 8.517 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.224/1.224, allocations: 221.4 MB / 230.3 MB, free: 7.672 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008994/0.0008993, allocations: 90.03 kB / 281.2 MB, free: 5.477 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1856/0.1856, allocations: 44.14 MB / 376.1 MB, free: 3.199 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.248e-06/9.267e-06, allocations: 4.219 kB / 444 MB, free: 15.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.125, allocations: 61.9 MB / 0.4941 GB, free: 1.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3134/0.4384, allocations: 104 MB / 0.5957 GB, free: 8.699 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/0.4387, allocations: 71.97 kB / 0.5958 GB, free: 8.629 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.2431/0.6819, allocations: 93.66 MB / 0.6872 GB, free: 10.18 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002033/0.6822, allocations: 87.94 kB / 0.6873 GB, free: 10.1 MB / 0.4948 GB 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.01463/0.6968, allocations: 4.192 MB / 0.6914 GB, free: 5.84 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.6968, allocations: 15.97 kB / 0.6914 GB, free: 5.824 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01494/0.7118, allocations: 2.899 MB / 0.6942 GB, free: 2.914 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1887/0.9006, allocations: 4.374 MB / 0.6985 GB, free: 175.3 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003058/0.9009, allocations: 142.4 kB / 0.6986 GB, free: 175.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00252/0.9035, allocations: 258.4 kB / 0.6989 GB, free: 175.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01329/0.9168, allocations: 8.348 MB / 0.707 GB, free: 175.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02087/0.9377, allocations: 10.91 MB / 0.7177 GB, free: 173.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002461/0.938, allocations: 35.28 kB / 0.7177 GB, free: 173.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002027/0.94, allocations: 14.47 kB / 0.7178 GB, free: 173.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001674/0.9417, allocations: 1.418 MB / 0.7191 GB, free: 173.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05287/0.9946, allocations: 39.36 MB / 0.7576 GB, free: 153.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00564/1, allocations: 5.232 MB / 0.7627 GB, free: 150.7 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003784/1.004, allocations: 3.083 MB / 0.7657 GB, free: 149.4 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01649/1.021, allocations: 11.65 MB / 0.7771 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/1.021, allocations: 55.7 kB / 0.7771 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=219): time 4.749e-06/1.021, allocations: 0 / 0.7771 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=249): time 0.03015/1.051, allocations: 16.02 MB / 0.7928 GB, free: 128.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/1.051, allocations: 75.72 kB / 0.7928 GB, free: 128 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003825/1.055, allocations: 2.686 MB / 0.7955 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000297/1.055, allocations: 29.7 kB / 0.7955 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001151/1.056, allocations: 3.058 MB / 0.7985 GB, free: 123 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007424/1.057, allocations: 0.8919 MB / 0.7993 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002589/1.057, allocations: 0 / 0.7993 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002457/1.057, allocations: 0.5728 MB / 0.7999 GB, free: 121.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003173/1.061, allocations: 2.818 MB / 0.8027 GB, free: 119.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004457/1.065, allocations: 6.175 MB / 0.8087 GB, free: 111.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004545/1.07, allocations: 4.21 MB / 0.8128 GB, free: 108.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.604e-05/1.07, allocations: 32 kB / 0.8128 GB, free: 108.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=825) (initialization): time 0.01526/1.085, allocations: 9.456 MB / 0.8221 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/1.085, allocations: 4 kB / 0.8221 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001249/1.085, allocations: 120 kB / 0.8222 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003426/1.089, allocations: 1.286 MB / 0.8234 GB, free: 99.28 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005329/1.094, allocations: 1.423 MB / 0.8248 GB, free: 98.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008074/1.102, allocations: 6.789 MB / 0.8315 GB, free: 92.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006264/1.108, allocations: 235.1 kB / 0.8317 GB, free: 91.83 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002139/1.111, allocations: 374.7 kB / 0.832 GB, free: 91.48 MB / 0.4948 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.001775/1.112, allocations: 404.9 kB / 0.8324 GB, free: 91.09 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008038/1.113, allocations: 292.2 kB / 0.8327 GB, free: 90.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01035/1.124, allocations: 5.979 MB / 0.8385 GB, free: 85.89 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.693e-05/1.124, allocations: 39.8 kB / 0.8386 GB, free: 85.86 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.59e-05/1.124, allocations: 4 kB / 0.8386 GB, free: 85.85 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-05/1.124, allocations: 8.062 kB / 0.8386 GB, free: 85.85 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01991/1.144, allocations: 11.32 MB / 0.8496 GB, free: 74.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/1.144, allocations: 3.984 kB / 0.8496 GB, free: 74.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002049/1.146, allocations: 359.5 kB / 0.85 GB, free: 74.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003245/1.149, allocations: 1.1 MB / 0.8511 GB, free: 73.44 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004653/1.15, allocations: 4 kB / 0.8511 GB, free: 73.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006807/1.156, allocations: 5.908 MB / 0.8568 GB, free: 67.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/1.156, allocations: 3.625 kB / 0.8568 GB, free: 67.41 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0123/1.169, allocations: 9.07 MB / 0.8657 GB, free: 58.31 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009562/1.17, allocations: 341.2 kB / 0.866 GB, free: 57.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006616/1.17, allocations: 4 kB / 0.866 GB, free: 57.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001604/1.172, allocations: 99.83 kB / 0.8661 GB, free: 57.86 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002785/1.172, allocations: 97.84 kB / 0.8662 GB, free: 57.76 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000189/1.172, allocations: 56 kB / 0.8663 GB, free: 57.71 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002527/1.175, allocations: 1.768 MB / 0.868 GB, free: 55.94 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005914/1.181, allocations: 0.9882 MB / 0.869 GB, free: 54.95 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.0006904/1.182, allocations: 157.7 kB / 0.8691 GB, free: 54.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009735/1.191, allocations: 6.592 MB / 0.8755 GB, free: 48.23 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/1.191, allocations: 0 / 0.8755 GB, free: 48.23 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003615/1.195, allocations: 2.608 MB / 0.8781 GB, free: 45.61 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/1.197, allocations: 232.5 kB / 0.8783 GB, free: 45.39 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01702/1.214, allocations: 9.229 MB / 0.8873 GB, free: 36.11 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005021/1.219, allocations: 3.94 MB / 0.8912 GB, free: 32.15 MB / 0.4948 GB Notification: Performance of SimCode: time 7.41e-07/1.219, allocations: 0 / 0.8912 GB, free: 32.15 MB / 0.4948 GB Notification: Performance of Templates: time 0.2578/1.477, allocations: 43.91 MB / 0.9341 GB, free: 150.1 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_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