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.0011/0.0011, allocations: 110.1 kB / 17.86 MB, free: 5.504 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.00115/0.00115, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.356/1.356, allocations: 222.9 MB / 242.4 MB, free: 15.35 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.2102/0.2102, allocations: 44.17 MB / 336.8 MB, free: 2.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00169/0.00169, allocations: 64.94 kB / 408.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1655, allocations: 60.84 MB / 469.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3269/0.4924, allocations: 63.53 MB / 0.5202 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03205/0.5245, allocations: 12.75 MB / 0.5327 GB, free: 6.086 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01601/0.5405, allocations: 275.5 kB / 0.5329 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006303/0.5469, allocations: 3.014 MB / 0.5359 GB, free: 5.121 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007462/0.5544, allocations: 2.439 MB / 0.5383 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002415/0.5569, allocations: 0.9427 MB / 0.5392 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01145/0.5684, allocations: 10.16 MB / 0.5491 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006772/0.5752, allocations: 4.053 MB / 0.5531 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00496/0.5802, allocations: 1.983 MB / 0.555 GB, free: 9.449 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006182/0.5864, allocations: 3.415 MB / 0.5583 GB, free: 6.219 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002015/0.5884, allocations: 320 kB / 0.5586 GB, free: 5.906 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004242/0.5927, allocations: 1.234 MB / 0.5599 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004256/0.597, allocations: 2.728 MB / 0.5625 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00595/0.603, allocations: 3.066 MB / 0.5655 GB, free: 14.92 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008762/0.6118, allocations: 7.793 MB / 0.5731 GB, free: 7.355 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.6118, allocations: 4 kB / 0.5731 GB, free: 7.352 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.6118, allocations: 0 / 0.5731 GB, free: 7.352 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003328/0.6122, allocations: 0 / 0.5731 GB, free: 7.352 MB / 414.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.01603/0.6282, allocations: 7.192 MB / 0.5801 GB, free: 240 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.6283, allocations: 12.03 kB / 0.5802 GB, free: 228 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01459/0.6429, allocations: 3.832 MB / 0.5839 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008341/0.6512, allocations: 4.053 MB / 0.5879 GB, free: 8.312 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000273/0.6515, allocations: 316.1 kB / 0.5882 GB, free: 8.055 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00151/0.6531, allocations: 433 kB / 0.5886 GB, free: 7.688 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02632/0.6794, allocations: 15.6 MB / 0.6038 GB, free: 7.527 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001658/0.6796, allocations: 55.5 kB / 0.6039 GB, free: 7.473 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005819/0.6802, allocations: 193.3 kB / 0.604 GB, free: 7.336 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005751/0.6859, allocations: 3.388 MB / 0.6074 GB, free: 3.965 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02871/0.7147, allocations: 14.81 MB / 0.6218 GB, free: 5.137 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08554/0.8002, allocations: 55.28 MB / 0.6758 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01893/0.8192, allocations: 8.206 MB / 0.6838 GB, free: 4.562 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007132/0.8264, allocations: 4.843 MB / 0.6885 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002242/0.8287, allocations: 2.208 MB / 0.6907 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.649e-05/0.8288, allocations: 65.08 kB / 0.6908 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 7.254e-06/0.8288, allocations: 0 / 0.6908 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.3546/1.183, allocations: 40.15 MB / 0.73 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/1.184, allocations: 115.9 kB / 0.7301 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005966/1.19, allocations: 4.285 MB / 0.7343 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001095/1.191, allocations: 89.28 kB / 0.7344 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002031/1.193, allocations: 3.791 MB / 0.7381 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001889/1.195, allocations: 1.489 MB / 0.7395 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002128/1.197, allocations: 1.574 MB / 0.741 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.217e-05/1.197, allocations: 307.5 kB / 0.7413 GB, free: 175 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00474/1.202, allocations: 4.079 MB / 0.7453 GB, free: 171.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006692/1.208, allocations: 7.84 MB / 0.753 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01374/1.222, allocations: 12.88 MB / 0.7656 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001404/1.222, allocations: 36 kB / 0.7656 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02909/1.251, allocations: 14.73 MB / 0.78 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001775/1.252, allocations: 61 kB / 0.78 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002482/1.252, allocations: 128 kB / 0.7802 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008504/1.26, allocations: 2.941 MB / 0.783 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007113/1.268, allocations: 1.801 MB / 0.7848 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0197/1.287, allocations: 14.86 MB / 0.7993 GB, free: 112.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007624/1.295, allocations: 0.4996 MB / 0.7998 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002019/1.297, allocations: 434.3 kB / 0.8002 GB, free: 111.4 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.006426/1.303, allocations: 2.868 MB / 0.803 GB, free: 108.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001568/1.305, allocations: 458.2 kB / 0.8034 GB, free: 108.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0203/1.325, allocations: 10.93 MB / 0.8141 GB, free: 97.14 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.569e-05/1.325, allocations: 63.98 kB / 0.8142 GB, free: 97.07 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-05/1.326, allocations: 11.94 kB / 0.8142 GB, free: 97.06 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.735e-05/1.326, allocations: 23.92 kB / 0.8142 GB, free: 97.04 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03543/1.361, allocations: 21.7 MB / 0.8354 GB, free: 75.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.411e-05/1.361, allocations: 8 kB / 0.8354 GB, free: 75.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00302/1.364, allocations: 0.6865 MB / 0.8361 GB, free: 74.41 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007228/1.371, allocations: 2.729 MB / 0.8387 GB, free: 71.68 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007413/1.372, allocations: 79.42 kB / 0.8388 GB, free: 71.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01528/1.387, allocations: 13.58 MB / 0.8521 GB, free: 57.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/1.387, allocations: 15.94 kB / 0.8521 GB, free: 57.74 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02401/1.411, allocations: 15.57 MB / 0.8673 GB, free: 41.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/1.413, allocations: 0.4943 MB / 0.8678 GB, free: 41.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001726/1.415, allocations: 79.73 kB / 0.8679 GB, free: 41.31 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003348/1.418, allocations: 324.2 kB / 0.8682 GB, free: 41 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001075/1.419, allocations: 254 kB / 0.8684 GB, free: 40.75 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005132/1.42, allocations: 116 kB / 0.8685 GB, free: 40.63 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00448/1.424, allocations: 2.689 MB / 0.8711 GB, free: 37.94 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.21e-07/1.424, allocations: 0 / 0.8711 GB, free: 37.94 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008356/1.433, allocations: 1.681 MB / 0.8728 GB, free: 36.27 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.001073/1.434, allocations: 233 kB / 0.873 GB, free: 36.04 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01433/1.448, allocations: 10.04 MB / 0.8828 GB, free: 25.99 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.267e-05/1.448, allocations: 0 / 0.8828 GB, free: 25.99 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005871/1.454, allocations: 4.379 MB / 0.8871 GB, free: 21.59 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005752/1.46, allocations: 0.6904 MB / 0.8878 GB, free: 20.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3171/1.777, allocations: 19.44 MB / 0.9067 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01279/1.79, allocations: 4.531 MB / 0.9112 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004031/1.794, allocations: 403.5 kB / 0.9116 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.893e-06/1.794, allocations: 0 / 0.9116 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.2058/2, allocations: 141.5 MB / 1.05 GB, free: 46.75 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 -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