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.001294/0.001294, allocations: 117.2 kB / 17.78 MB, free: 5.246 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.001281/0.001281, allocations: 185 kB / 18.72 MB, free: 4.32 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.353/1.353, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2292/0.2292, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 63.89 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3755/0.3768, allocations: 60.82 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02087/0.3978, allocations: 18.21 MB / 0.5367 GB, free: 6.203 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01333/0.4112, allocations: 5.286 MB / 0.5419 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004632/0.4158, allocations: 106.9 kB / 0.542 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007197/0.4231, allocations: 3.061 MB / 0.5449 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009248/0.4324, allocations: 2.576 MB / 0.5475 GB, free: 14.12 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003176/0.4356, allocations: 1.023 MB / 0.5485 GB, free: 13.44 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01283/0.4485, allocations: 7.476 MB / 0.5558 GB, free: 6.227 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009049/0.4576, allocations: 4.171 MB / 0.5598 GB, free: 2.004 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005633/0.4633, allocations: 2.25 MB / 0.562 GB, free: 15.75 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005942/0.4692, allocations: 3.232 MB / 0.5652 GB, free: 12.5 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00175/0.471, allocations: 452 kB / 0.5656 GB, free: 12.06 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004077/0.4751, allocations: 1.315 MB / 0.5669 GB, free: 10.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003933/0.4791, allocations: 2.833 MB / 0.5697 GB, free: 7.906 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006046/0.4851, allocations: 3.2 MB / 0.5728 GB, free: 4.688 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01475/0.4999, allocations: 10.06 MB / 0.5826 GB, free: 10.59 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.5, allocations: 0 / 0.5826 GB, free: 10.59 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5, allocations: 3.938 kB / 0.5826 GB, free: 10.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004396/0.5004, allocations: 0 / 0.5826 GB, free: 10.59 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.02109/0.5215, allocations: 7.389 MB / 0.5898 GB, free: 3.109 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.5216, allocations: 8.031 kB / 0.5898 GB, free: 3.102 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01526/0.5369, allocations: 3.877 MB / 0.5936 GB, free: 15.21 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008983/0.5459, allocations: 4.141 MB / 0.5977 GB, free: 11.01 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003157/0.5462, allocations: 316.4 kB / 0.598 GB, free: 10.7 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001875/0.5481, allocations: 439.8 kB / 0.5984 GB, free: 10.27 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03116/0.5793, allocations: 15.58 MB / 0.6136 GB, free: 9.957 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002935/0.5796, allocations: 59.58 kB / 0.6137 GB, free: 9.898 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001781/0.5814, allocations: 199.8 kB / 0.6139 GB, free: 9.703 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006403/0.5878, allocations: 3.38 MB / 0.6172 GB, free: 6.32 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03199/0.6198, allocations: 14.83 MB / 0.6316 GB, free: 7.48 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08893/0.7088, allocations: 55.07 MB / 0.6854 GB, free: 15.23 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01812/0.727, allocations: 8.216 MB / 0.6934 GB, free: 6.781 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007311/0.7343, allocations: 4.836 MB / 0.6982 GB, free: 1.934 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002674/0.737, allocations: 2.204 MB / 0.7003 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.072e-05/0.7372, allocations: 65.08 kB / 0.7004 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 8.737e-06/0.7372, allocations: 4 kB / 0.7004 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3903/1.127, allocations: 40.27 MB / 0.7397 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.703e-05/1.128, allocations: 123.3 kB / 0.7398 GB, free: 161.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01046/1.138, allocations: 4.297 MB / 0.744 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001429/1.14, allocations: 85.36 kB / 0.7441 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003819/1.143, allocations: 3.94 MB / 0.7479 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.003211/1.147, allocations: 1.557 MB / 0.7495 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005615/1.152, allocations: 1.577 MB / 0.751 GB, free: 155 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.797e-05/1.152, allocations: 309.1 kB / 0.7513 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005659/1.158, allocations: 4.084 MB / 0.7553 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006472/1.165, allocations: 7.835 MB / 0.7629 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01284/1.177, allocations: 12.88 MB / 0.7755 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001055/1.178, allocations: 36 kB / 0.7756 GB, free: 127.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02683/1.204, allocations: 14.75 MB / 0.79 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001604/1.205, allocations: 63.94 kB / 0.79 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002495/1.205, allocations: 131.9 kB / 0.7901 GB, free: 112.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008367/1.213, allocations: 2.94 MB / 0.793 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006585/1.22, allocations: 1.801 MB / 0.7948 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0187/1.239, allocations: 15.97 MB / 0.8104 GB, free: 91.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007098/1.246, allocations: 0.4993 MB / 0.8109 GB, free: 90.67 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001592/1.247, allocations: 431.9 kB / 0.8113 GB, free: 90.25 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.007127/1.255, allocations: 2.87 MB / 0.8141 GB, free: 87.36 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002008/1.257, allocations: 476.9 kB / 0.8145 GB, free: 86.89 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02036/1.277, allocations: 10.93 MB / 0.8252 GB, free: 75.91 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000136/1.277, allocations: 69.02 kB / 0.8253 GB, free: 75.84 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.289e-05/1.277, allocations: 11.94 kB / 0.8253 GB, free: 75.83 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001333/1.277, allocations: 15.94 kB / 0.8253 GB, free: 75.82 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0428/1.32, allocations: 21.58 MB / 0.8464 GB, free: 54.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.143e-05/1.32, allocations: 16.25 kB / 0.8464 GB, free: 54.04 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003242/1.323, allocations: 0.6825 MB / 0.847 GB, free: 53.35 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007312/1.331, allocations: 2.729 MB / 0.8497 GB, free: 50.61 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001148/1.332, allocations: 87.77 kB / 0.8498 GB, free: 50.53 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01736/1.349, allocations: 14.57 MB / 0.864 GB, free: 35.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.244e-05/1.349, allocations: 20 kB / 0.864 GB, free: 35.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02506/1.374, allocations: 15.58 MB / 0.8793 GB, free: 19.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002035/1.377, allocations: 0.5212 MB / 0.8798 GB, free: 19.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002088/1.379, allocations: 83.92 kB / 0.8798 GB, free: 19.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00374/1.382, allocations: 314.9 kB / 0.8801 GB, free: 18.88 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009779/1.383, allocations: 254 kB / 0.8804 GB, free: 18.62 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005353/1.384, allocations: 119.9 kB / 0.8805 GB, free: 18.51 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005052/1.389, allocations: 2.693 MB / 0.8831 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.21e-07/1.389, allocations: 0 / 0.8831 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008923/1.398, allocations: 1.675 MB / 0.8848 GB, free: 14.14 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.001269/1.399, allocations: 245.4 kB / 0.885 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01534/1.415, allocations: 10.09 MB / 0.8949 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.099e-05/1.415, allocations: 4 kB / 0.8949 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.006869/1.422, allocations: 4.381 MB / 0.8991 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006321/1.428, allocations: 0.7103 MB / 0.8998 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0302/1.458, allocations: 15.87 MB / 0.9153 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006732/1.465, allocations: 4.547 MB / 0.9198 GB, free: 10.01 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006103/1.471, allocations: 2.72 MB / 0.9224 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00135/1.472, allocations: 343.3 kB / 0.9227 GB, free: 6.949 MB / 0.5919 GB Notification: Performance of SimCode: time 1.402e-06/1.472, allocations: 4 kB / 0.9228 GB, free: 6.945 MB / 0.5919 GB Notification: Performance of Templates: time 0.4351/1.908, allocations: 68.78 MB / 0.9899 GB, free: 173.5 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