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.001151/0.001156, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.00106/0.00106, allocations: 187 kB / 19.34 MB, free: 3.641 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.358/1.358, allocations: 222.9 MB / 243 MB, free: 15.09 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.2105/0.2105, allocations: 44.18 MB / 337.4 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 64.31 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1142, allocations: 60.84 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01981/0.1341, allocations: 18.19 MB / 488.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01149/0.1456, allocations: 5.284 MB / 494.2 MB, free: 6.105 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002676/0.1483, allocations: 107.7 kB / 494.3 MB, free: 6 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005451/0.1538, allocations: 3.067 MB / 497.4 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005597/0.1594, allocations: 2.568 MB / 499.9 MB, free: 352 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002022/0.1615, allocations: 1.022 MB / 0.4892 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008562/0.17, allocations: 7.479 MB / 0.4965 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004699/0.1748, allocations: 4.187 MB / 0.5006 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00334/0.1781, allocations: 2.247 MB / 0.5028 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2103/0.3885, allocations: 3.231 MB / 0.506 GB, free: 18.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002063/0.3906, allocations: 453.8 kB / 0.5064 GB, free: 18.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00429/0.3949, allocations: 1.309 MB / 0.5077 GB, free: 18.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005126/0.4, allocations: 2.829 MB / 0.5104 GB, free: 18.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006653/0.4067, allocations: 3.2 MB / 0.5136 GB, free: 17.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01189/0.4186, allocations: 10.01 MB / 0.5233 GB, free: 15.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.4187, allocations: 0.75 kB / 0.5233 GB, free: 15.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4187, allocations: 1.438 kB / 0.5233 GB, free: 15.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003921/0.4191, allocations: 2.562 kB / 0.5233 GB, free: 15.93 MB / 382.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.02023/0.4393, allocations: 7.2 MB / 0.5304 GB, free: 11.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.4394, allocations: 10.06 kB / 0.5304 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01605/0.4554, allocations: 3.841 MB / 0.5341 GB, free: 9.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01442/0.4699, allocations: 4.115 MB / 0.5381 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004261/0.4704, allocations: 318.3 kB / 0.5384 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0037/0.4741, allocations: 433 kB / 0.5389 GB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04384/0.518, allocations: 15.59 MB / 0.5541 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003654/0.5184, allocations: 53.81 kB / 0.5541 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002597/0.521, allocations: 202.5 kB / 0.5543 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01112/0.5321, allocations: 3.379 MB / 0.5576 GB, free: 6.914 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04512/0.5773, allocations: 14.82 MB / 0.5721 GB, free: 8.262 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1067/0.6841, allocations: 54.98 MB / 0.6258 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02081/0.7049, allocations: 8.207 MB / 0.6338 GB, free: 8.484 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008179/0.7132, allocations: 4.836 MB / 0.6385 GB, free: 3.641 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002473/0.7157, allocations: 2.206 MB / 0.6407 GB, free: 1.066 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.703e-05/0.7158, allocations: 65.06 kB / 0.6407 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of pre-optimization done (n=367): time 8.206e-06/0.7158, allocations: 0 / 0.6407 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of matching and sorting (n=419): time 0.1191/0.8349, allocations: 40.17 MB / 0.68 GB, free: 8.879 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.835, allocations: 116 kB / 0.6801 GB, free: 8.746 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009618/0.8447, allocations: 4.287 MB / 0.6843 GB, free: 4.438 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001553/0.8463, allocations: 88.2 kB / 0.6844 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00387/0.8502, allocations: 3.791 MB / 0.6881 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00338/0.8536, allocations: 1.486 MB / 0.6895 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005595/0.8592, allocations: 1.567 MB / 0.691 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.8593, allocations: 305.1 kB / 0.6913 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00757/0.8669, allocations: 4.079 MB / 0.6953 GB, free: 9.113 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.235/1.102, allocations: 7.842 MB / 0.703 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01647/1.118, allocations: 12.88 MB / 0.7156 GB, free: 173 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001716/1.119, allocations: 36.25 kB / 0.7156 GB, free: 173 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02759/1.146, allocations: 14.73 MB / 0.73 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.364e-05/1.146, allocations: 64.25 kB / 0.73 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001428/1.146, allocations: 128.3 kB / 0.7302 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007664/1.154, allocations: 2.929 MB / 0.733 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006617/1.161, allocations: 1.814 MB / 0.7348 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01696/1.178, allocations: 15.94 MB / 0.7504 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006422/1.184, allocations: 0.4965 MB / 0.7508 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001113/1.185, allocations: 430.5 kB / 0.7513 GB, free: 154.9 MB / 0.5294 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.005273/1.191, allocations: 2.874 MB / 0.7541 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008103/1.191, allocations: 460.2 kB / 0.7545 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01628/1.208, allocations: 10.93 MB / 0.7652 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.392e-05/1.208, allocations: 67.66 kB / 0.7652 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.037e-05/1.208, allocations: 8 kB / 0.7652 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.618e-05/1.208, allocations: 16.88 kB / 0.7653 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0361/1.244, allocations: 21.57 MB / 0.7863 GB, free: 120.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.973e-05/1.244, allocations: 13.2 kB / 0.7863 GB, free: 120.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00339/1.248, allocations: 0.6786 MB / 0.787 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007012/1.255, allocations: 2.74 MB / 0.7897 GB, free: 117 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001147/1.256, allocations: 91.36 kB / 0.7898 GB, free: 116.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01504/1.271, allocations: 14.55 MB / 0.804 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.685e-06/1.271, allocations: 19.88 kB / 0.804 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02012/1.291, allocations: 15.57 MB / 0.8192 GB, free: 86.37 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/1.292, allocations: 0.4911 MB / 0.8197 GB, free: 85.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009243/1.293, allocations: 86.73 kB / 0.8198 GB, free: 85.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003424/1.297, allocations: 311.5 kB / 0.8201 GB, free: 85.47 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009626/1.298, allocations: 262 kB / 0.8203 GB, free: 85.21 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003222/1.298, allocations: 114.9 kB / 0.8204 GB, free: 85.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003455/1.301, allocations: 2.685 MB / 0.823 GB, free: 82.41 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/1.301, allocations: 0 / 0.823 GB, free: 82.41 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006725/1.308, allocations: 1.677 MB / 0.8247 GB, free: 80.74 MB / 0.5294 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.0007532/1.309, allocations: 234.8 kB / 0.8249 GB, free: 80.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01303/1.322, allocations: 10.1 MB / 0.8348 GB, free: 70.41 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.782e-05/1.322, allocations: 0 / 0.8348 GB, free: 70.41 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005452/1.328, allocations: 4.384 MB / 0.839 GB, free: 66 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004092/1.332, allocations: 0.7145 MB / 0.8397 GB, free: 65.31 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02212/1.354, allocations: 15.65 MB / 0.855 GB, free: 49.48 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004054/1.358, allocations: 4.543 MB / 0.8595 GB, free: 44.89 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00579/1.364, allocations: 2.723 MB / 0.8621 GB, free: 42.16 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001699/1.365, allocations: 343.4 kB / 0.8625 GB, free: 41.83 MB / 0.5294 GB Notification: Performance of SimCode: time 8.71e-07/1.365, allocations: 0 / 0.8625 GB, free: 41.83 MB / 0.5294 GB Notification: Performance of Templates: time 0.3197/1.685, allocations: 66.21 MB / 0.9271 GB, free: 166.6 MB / 0.5294 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/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