Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 109.5 kB / 17.78 MB, free: 5.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 188 kB / 18.7 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2411/0.2411, allocations: 44.19 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 63.91 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4835/0.485, allocations: 60.82 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02533/0.5104, allocations: 18.2 MB / 0.5367 GB, free: 6.219 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0164/0.5269, allocations: 5.282 MB / 0.5418 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005741/0.5326, allocations: 110.8 kB / 0.542 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008076/0.5407, allocations: 3.061 MB / 0.5449 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009843/0.5507, allocations: 2.58 MB / 0.5475 GB, free: 14.13 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003298/0.5541, allocations: 1.015 MB / 0.5485 GB, free: 13.46 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0134/0.5675, allocations: 7.487 MB / 0.5558 GB, free: 6.23 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006/0.5735, allocations: 4.168 MB / 0.5598 GB, free: 2.008 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004763/0.5783, allocations: 2.27 MB / 0.5621 GB, free: 15.73 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005419/0.5838, allocations: 3.236 MB / 0.5652 GB, free: 12.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001515/0.5853, allocations: 452 kB / 0.5656 GB, free: 12.04 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003476/0.5888, allocations: 1.307 MB / 0.5669 GB, free: 10.73 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003492/0.5923, allocations: 2.84 MB / 0.5697 GB, free: 7.887 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005182/0.5975, allocations: 3.208 MB / 0.5728 GB, free: 4.66 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01555/0.6131, allocations: 10.01 MB / 0.5826 GB, free: 10.61 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/0.6131, allocations: 0 / 0.5826 GB, free: 10.61 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.6131, allocations: 0 / 0.5826 GB, free: 10.61 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000398/0.6135, allocations: 0 / 0.5826 GB, free: 10.61 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.01856/0.6321, allocations: 7.208 MB / 0.5896 GB, free: 3.324 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.6322, allocations: 8.031 kB / 0.5897 GB, free: 3.316 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01556/0.6477, allocations: 3.837 MB / 0.5934 GB, free: 15.46 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01001/0.6578, allocations: 4.12 MB / 0.5974 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000331/0.6581, allocations: 316.4 kB / 0.5977 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002868/0.661, allocations: 439.7 kB / 0.5981 GB, free: 10.54 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03575/0.6968, allocations: 15.59 MB / 0.6134 GB, free: 10.22 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003576/0.6972, allocations: 55.5 kB / 0.6134 GB, free: 10.17 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001061/0.6983, allocations: 207.7 kB / 0.6136 GB, free: 9.965 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007164/0.7055, allocations: 3.372 MB / 0.6169 GB, free: 6.59 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03412/0.7396, allocations: 14.81 MB / 0.6314 GB, free: 7.762 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0932/0.8328, allocations: 54.99 MB / 0.6851 GB, free: 15.58 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01856/0.8515, allocations: 8.209 MB / 0.6931 GB, free: 7.141 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007112/0.8586, allocations: 4.832 MB / 0.6978 GB, free: 2.297 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002365/0.861, allocations: 2.208 MB / 0.7 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.185e-05/0.8611, allocations: 65.08 kB / 0.7 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 1.004e-05/0.8611, allocations: 0 / 0.7 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.5423/1.403, allocations: 40.17 MB / 0.7393 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.835e-05/1.404, allocations: 118.4 kB / 0.7394 GB, free: 162 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005978/1.41, allocations: 4.281 MB / 0.7435 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001077/1.411, allocations: 84.53 kB / 0.7436 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00206/1.413, allocations: 3.807 MB / 0.7473 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001845/1.415, allocations: 1.483 MB / 0.7488 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002018/1.417, allocations: 1.578 MB / 0.7503 GB, free: 155.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.047e-05/1.417, allocations: 305.1 kB / 0.7506 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004789/1.421, allocations: 4.077 MB / 0.7546 GB, free: 151.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006802/1.428, allocations: 7.841 MB / 0.7623 GB, free: 142 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01345/1.442, allocations: 12.88 MB / 0.7748 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001283/1.442, allocations: 40 kB / 0.7749 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.03007/1.472, allocations: 14.72 MB / 0.7893 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.842e-05/1.472, allocations: 60 kB / 0.7893 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001354/1.472, allocations: 128 kB / 0.7894 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007247/1.48, allocations: 2.934 MB / 0.7923 GB, free: 109.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006764/1.486, allocations: 1.805 MB / 0.7941 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01705/1.503, allocations: 15.95 MB / 0.8096 GB, free: 91.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008282/1.512, allocations: 0.4996 MB / 0.8101 GB, free: 90.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002107/1.514, allocations: 427.4 kB / 0.8105 GB, free: 90.41 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (942): * Single equations (assignments): 934 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006575/1.52, allocations: 2.873 MB / 0.8133 GB, free: 87.53 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/1.522, allocations: 458.1 kB / 0.8138 GB, free: 87.07 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0172/1.539, allocations: 10.93 MB / 0.8245 GB, free: 76.09 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.902e-05/1.539, allocations: 71.39 kB / 0.8245 GB, free: 76.02 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.37e-05/1.539, allocations: 8 kB / 0.8245 GB, free: 76.02 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.7e-05/1.539, allocations: 15.94 kB / 0.8245 GB, free: 76 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03768/1.577, allocations: 21.58 MB / 0.8456 GB, free: 54.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.884e-05/1.577, allocations: 12 kB / 0.8456 GB, free: 54.24 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003115/1.58, allocations: 0.6786 MB / 0.8463 GB, free: 53.56 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006822/1.587, allocations: 2.733 MB / 0.849 GB, free: 50.82 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007496/1.588, allocations: 83.98 kB / 0.849 GB, free: 50.74 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01568/1.603, allocations: 14.56 MB / 0.8633 GB, free: 35.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.033e-05/1.604, allocations: 16.31 kB / 0.8633 GB, free: 35.88 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0236/1.627, allocations: 15.56 MB / 0.8785 GB, free: 20.05 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001954/1.629, allocations: 0.4952 MB / 0.8789 GB, free: 19.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001744/1.631, allocations: 76 kB / 0.879 GB, free: 19.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003481/1.634, allocations: 315.4 kB / 0.8793 GB, free: 19.15 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009105/1.635, allocations: 265.9 kB / 0.8796 GB, free: 18.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002993/1.636, allocations: 119 kB / 0.8797 GB, free: 18.77 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003608/1.639, allocations: 2.685 MB / 0.8823 GB, free: 16.09 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/1.639, allocations: 3.938 kB / 0.8823 GB, free: 16.08 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00908/1.648, allocations: 1.681 MB / 0.884 GB, free: 14.41 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001145/1.65, allocations: 236.5 kB / 0.8842 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01622/1.666, allocations: 10.09 MB / 0.894 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.069e-05/1.666, allocations: 4 kB / 0.894 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007167/1.673, allocations: 4.376 MB / 0.8983 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008552/1.682, allocations: 0.7114 MB / 0.899 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04178/1.723, allocations: 15.66 MB / 0.9143 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00888/1.732, allocations: 4.547 MB / 0.9187 GB, free: 10.53 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.007299/1.74, allocations: 2.72 MB / 0.9214 GB, free: 7.805 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001674/1.741, allocations: 347.4 kB / 0.9217 GB, free: 7.465 MB / 0.5919 GB Notification: Performance of SimCode: time 2.325e-06/1.741, allocations: 0 / 0.9217 GB, free: 7.465 MB / 0.5919 GB Notification: Performance of Templates: time 0.5011/2.243, allocations: 69.36 MB / 0.9895 GB, free: 173.8 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches