Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001505/0.001505, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001843/0.001843, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.244/0.244, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001504, allocations: 75.88 kB / 481.3 MB, free: 4.023 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5183/0.5198, allocations: 62.44 MB / 0.531 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.0362/0.556, allocations: 18.15 MB / 0.5487 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02284/0.5789, allocations: 5.289 MB / 0.5539 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007301/0.5863, allocations: 111.7 kB / 0.554 GB, free: 10.05 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01114/0.5975, allocations: 3.048 MB / 0.557 GB, free: 6.992 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01557/0.6132, allocations: 2.611 MB / 0.5595 GB, free: 4.371 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005393/0.6186, allocations: 1.026 MB / 0.5605 GB, free: 3.344 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01898/0.6377, allocations: 7.667 MB / 0.568 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009277/0.647, allocations: 4.171 MB / 0.5721 GB, free: 7.441 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00707/0.6541, allocations: 2.266 MB / 0.5743 GB, free: 5.168 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00876/0.663, allocations: 3.224 MB / 0.5774 GB, free: 1.934 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002512/0.6655, allocations: 452 kB / 0.5779 GB, free: 1.492 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007121/0.6727, allocations: 1.299 MB / 0.5791 GB, free: 196 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006978/0.6797, allocations: 2.809 MB / 0.5819 GB, free: 13.38 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01026/0.69, allocations: 3.176 MB / 0.585 GB, free: 10.18 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02085/0.7109, allocations: 9.944 MB / 0.5947 GB, free: 208 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.032e-05/0.711, allocations: 4 kB / 0.5947 GB, free: 204 kB / 446.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.711, allocations: 3.938 kB / 0.5947 GB, free: 200 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005184/0.7116, allocations: 0 / 0.5947 GB, free: 200 kB / 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.02083/0.7324, allocations: 7.201 MB / 0.6017 GB, free: 8.91 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.7325, allocations: 8.031 kB / 0.6017 GB, free: 8.902 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01619/0.7487, allocations: 3.834 MB / 0.6055 GB, free: 5.055 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01231/0.761, allocations: 4.014 MB / 0.6094 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004886/0.7616, allocations: 320.4 kB / 0.6097 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002964/0.7645, allocations: 435.7 kB / 0.6101 GB, free: 244 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03616/0.8007, allocations: 15.59 MB / 0.6254 GB, free: 15.91 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003686/0.8011, allocations: 59.44 kB / 0.6254 GB, free: 15.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002254/0.8034, allocations: 195.8 kB / 0.6256 GB, free: 15.67 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007162/0.8106, allocations: 3.38 MB / 0.6289 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03759/0.8482, allocations: 14.82 MB / 0.6434 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.102/0.9502, allocations: 54.98 MB / 0.6971 GB, free: 5.281 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01942/0.9697, allocations: 8.209 MB / 0.7051 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007655/0.9774, allocations: 4.836 MB / 0.7098 GB, free: 7.992 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002535/0.98, allocations: 2.211 MB / 0.712 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.687e-05/0.9801, allocations: 69.08 kB / 0.712 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 8.987e-06/0.9802, allocations: 0 / 0.712 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.4934/1.474, allocations: 40.16 MB / 0.7512 GB, free: 147.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.58e-05/1.474, allocations: 116 kB / 0.7513 GB, free: 147.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004844/1.478, allocations: 4.284 MB / 0.7555 GB, free: 142.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005999/1.479, allocations: 81.7 kB / 0.7556 GB, free: 142.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001502/1.481, allocations: 3.798 MB / 0.7593 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001188/1.482, allocations: 1.485 MB / 0.7608 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00177/1.484, allocations: 1.571 MB / 0.7623 GB, free: 135.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.836e-05/1.484, allocations: 305 kB / 0.7626 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004279/1.488, allocations: 4.076 MB / 0.7666 GB, free: 131.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005579/1.493, allocations: 7.841 MB / 0.7742 GB, free: 121.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01135/1.505, allocations: 12.89 MB / 0.7868 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.084e-05/1.505, allocations: 36 kB / 0.7868 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02356/1.529, allocations: 14.73 MB / 0.8012 GB, free: 92.39 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001607/1.529, allocations: 64.03 kB / 0.8013 GB, free: 92.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001822/1.529, allocations: 124 kB / 0.8014 GB, free: 92.21 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007863/1.537, allocations: 2.927 MB / 0.8043 GB, free: 89.28 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006701/1.544, allocations: 1.813 MB / 0.806 GB, free: 87.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01782/1.561, allocations: 15.95 MB / 0.8216 GB, free: 71.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008239/1.57, allocations: 0.4957 MB / 0.8221 GB, free: 70.74 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002153/1.572, allocations: 427.9 kB / 0.8225 GB, free: 70.32 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.008024/1.58, allocations: 2.886 MB / 0.8253 GB, free: 67.43 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001933/1.582, allocations: 458.1 kB / 0.8258 GB, free: 66.98 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01945/1.601, allocations: 10.92 MB / 0.8364 GB, free: 55.99 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.764e-05/1.602, allocations: 63.98 kB / 0.8365 GB, free: 55.93 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-05/1.602, allocations: 9.781 kB / 0.8365 GB, free: 55.92 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.08e-05/1.602, allocations: 19.94 kB / 0.8365 GB, free: 55.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03732/1.639, allocations: 21.58 MB / 0.8576 GB, free: 34.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.102e-05/1.639, allocations: 12 kB / 0.8576 GB, free: 34.13 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003416/1.642, allocations: 0.6786 MB / 0.8583 GB, free: 33.45 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007361/1.65, allocations: 2.737 MB / 0.8609 GB, free: 30.71 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009997/1.651, allocations: 83.98 kB / 0.861 GB, free: 30.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01581/1.667, allocations: 14.55 MB / 0.8752 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/1.667, allocations: 19.88 kB / 0.8752 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02348/1.69, allocations: 15.56 MB / 0.8904 GB, free: 15.94 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001731/1.692, allocations: 0.4914 MB / 0.8909 GB, free: 15.43 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001535/1.693, allocations: 72 kB / 0.891 GB, free: 15.36 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002951/1.696, allocations: 315.5 kB / 0.8913 GB, free: 15.05 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000903/1.697, allocations: 261.9 kB / 0.8915 GB, free: 14.79 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003173/1.698, allocations: 115.8 kB / 0.8917 GB, free: 14.68 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004674/1.702, allocations: 2.685 MB / 0.8943 GB, free: 11.99 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.665e-06/1.702, allocations: 0 / 0.8943 GB, free: 11.99 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009341/1.712, allocations: 1.659 MB / 0.8959 GB, free: 10.34 MB / 0.5763 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.001033/1.713, allocations: 242.7 kB / 0.8961 GB, free: 10.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01614/1.729, allocations: 10.09 MB / 0.906 GB, free: 4 kB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-05/1.729, allocations: 0 / 0.906 GB, free: 4 kB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006938/1.736, allocations: 4.379 MB / 0.9103 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004363/1.74, allocations: 0.7212 MB / 0.911 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03257/1.773, allocations: 15.64 MB / 0.9262 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007704/1.781, allocations: 4.543 MB / 0.9307 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.007048/1.788, allocations: 2.716 MB / 0.9333 GB, free: 3.754 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001666/1.789, allocations: 351.3 kB / 0.9337 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of SimCode: time 1.423e-06/1.789, allocations: 0 / 0.9337 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of Templates: time 0.5679/2.357, allocations: 68.63 MB / 1.001 GB, free: 176.8 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches