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.0008025/0.0008025, allocations: 93.38 kB / 18.01 MB, free: 5.738 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.0009132/0.0009133, allocations: 176.8 kB / 18.91 MB, free: 4.871 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.365/1.365, allocations: 223.3 MB / 243 MB, free: 14.47 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.2086/0.2086, allocations: 44.24 MB / 338.3 MB, free: 2.426 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003425, allocations: 10.66 kB / 411 MB, free: 27.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1155, allocations: 61.92 MB / 472.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3358/0.4514, allocations: 61.92 MB / 0.5223 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03275/0.4842, allocations: 12.69 MB / 0.5347 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01634/0.5006, allocations: 276.5 kB / 0.535 GB, free: 6.551 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002972/0.5036, allocations: 0.6127 MB / 0.5356 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0089/0.5125, allocations: 2.438 MB / 0.5379 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003035/0.5156, allocations: 0.9451 MB / 0.5389 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01474/0.5303, allocations: 10.16 MB / 0.5488 GB, free: 296 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01068/0.541, allocations: 5.402 MB / 0.5541 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005236/0.5463, allocations: 1.739 MB / 0.5558 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006074/0.5524, allocations: 3.12 MB / 0.5588 GB, free: 8.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001711/0.5542, allocations: 218.1 kB / 0.559 GB, free: 7.809 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003986/0.5582, allocations: 1.148 MB / 0.5601 GB, free: 6.699 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00425/0.5625, allocations: 2.591 MB / 0.5627 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006207/0.5687, allocations: 2.923 MB / 0.5655 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01043/0.5791, allocations: 7.612 MB / 0.5729 GB, free: 9.797 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.5792, allocations: 0 / 0.5729 GB, free: 9.797 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.5792, allocations: 4 kB / 0.573 GB, free: 9.793 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004378/0.5797, allocations: 0 / 0.573 GB, free: 9.793 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.01736/0.597, allocations: 5.938 MB / 0.5787 GB, free: 3.816 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.997e-05/0.5971, allocations: 11.97 kB / 0.5788 GB, free: 3.805 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01676/0.6139, allocations: 3.941 MB / 0.5826 GB, free: 15.85 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009587/0.6235, allocations: 4.05 MB / 0.5866 GB, free: 11.8 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003636/0.6239, allocations: 317.6 kB / 0.5869 GB, free: 11.54 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002428/0.6264, allocations: 437 kB / 0.5873 GB, free: 11.16 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03821/0.6646, allocations: 15.63 MB / 0.6025 GB, free: 10.97 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003644/0.665, allocations: 55.48 kB / 0.6026 GB, free: 10.92 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001883/0.6669, allocations: 200.6 kB / 0.6028 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007436/0.6744, allocations: 3.378 MB / 0.6061 GB, free: 7.41 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03718/0.7116, allocations: 14.86 MB / 0.6206 GB, free: 8.539 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09174/0.8034, allocations: 55.23 MB / 0.6745 GB, free: 448 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01974/0.8232, allocations: 8.214 MB / 0.6826 GB, free: 8 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007499/0.8307, allocations: 4.839 MB / 0.6873 GB, free: 3.152 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002397/0.8332, allocations: 2.207 MB / 0.6894 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.935e-05/0.8333, allocations: 69.08 kB / 0.6895 GB, free: 0.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=367): time 1.214e-05/0.8333, allocations: 0 / 0.6895 GB, free: 0.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.3979/1.231, allocations: 40.14 MB / 0.7287 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.909e-05/1.231, allocations: 116.9 kB / 0.7288 GB, free: 181.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005185/1.237, allocations: 4.284 MB / 0.733 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000651/1.237, allocations: 89.56 kB / 0.7331 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001933/1.239, allocations: 3.796 MB / 0.7368 GB, free: 176.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001724/1.241, allocations: 1.492 MB / 0.7382 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001249/1.242, allocations: 0.6806 MB / 0.7389 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.515e-05/1.242, allocations: 301.1 kB / 0.7392 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005691/1.248, allocations: 4.076 MB / 0.7432 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006444/1.254, allocations: 7.841 MB / 0.7508 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01253/1.267, allocations: 12.88 MB / 0.7634 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001181/1.267, allocations: 36 kB / 0.7634 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02407/1.291, allocations: 14.73 MB / 0.7778 GB, free: 136.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.697e-05/1.291, allocations: 60 kB / 0.7779 GB, free: 136 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001246/1.291, allocations: 128 kB / 0.778 GB, free: 135.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007387/1.299, allocations: 2.933 MB / 0.7809 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006074/1.305, allocations: 1.809 MB / 0.7826 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01668/1.322, allocations: 14.86 MB / 0.7972 GB, free: 116 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006912/1.329, allocations: 0.5043 MB / 0.7976 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001663/1.33, allocations: 429 kB / 0.7981 GB, free: 115.1 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.006487/1.337, allocations: 2.879 MB / 0.8009 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001177/1.338, allocations: 451.3 kB / 0.8013 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0172/1.355, allocations: 10.94 MB / 0.812 GB, free: 100.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-05/1.355, allocations: 66.89 kB / 0.812 GB, free: 100.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.143e-05/1.355, allocations: 8 kB / 0.8121 GB, free: 100.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.535e-05/1.355, allocations: 15.94 kB / 0.8121 GB, free: 100.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03396/1.389, allocations: 21.71 MB / 0.8333 GB, free: 78.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.073e-05/1.389, allocations: 12 kB / 0.8333 GB, free: 78.72 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003144/1.392, allocations: 0.6794 MB / 0.8339 GB, free: 78.04 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0073/1.4, allocations: 2.744 MB / 0.8366 GB, free: 75.29 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007679/1.401, allocations: 80.86 kB / 0.8367 GB, free: 75.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01576/1.416, allocations: 13.58 MB / 0.85 GB, free: 61.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/1.416, allocations: 20.3 kB / 0.85 GB, free: 61.34 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02612/1.443, allocations: 15.57 MB / 0.8652 GB, free: 45.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00152/1.444, allocations: 0.4913 MB / 0.8657 GB, free: 44.99 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00151/1.446, allocations: 77.02 kB / 0.8657 GB, free: 44.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00362/1.449, allocations: 324.6 kB / 0.866 GB, free: 44.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009674/1.45, allocations: 273.1 kB / 0.8663 GB, free: 44.33 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005123/1.451, allocations: 112 kB / 0.8664 GB, free: 44.22 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005101/1.456, allocations: 2.685 MB / 0.869 GB, free: 41.54 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/1.456, allocations: 0 / 0.869 GB, free: 41.54 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008262/1.464, allocations: 1.682 MB / 0.8707 GB, free: 39.86 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.001037/1.465, allocations: 230.4 kB / 0.8709 GB, free: 39.63 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01448/1.48, allocations: 10.04 MB / 0.8807 GB, free: 29.57 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/1.48, allocations: 0 / 0.8807 GB, free: 29.57 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006195/1.486, allocations: 4.367 MB / 0.885 GB, free: 25.18 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01205/1.498, allocations: 0.687 MB / 0.8856 GB, free: 24.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2867/1.785, allocations: 19.58 MB / 0.9048 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006514/1.791, allocations: 4.536 MB / 0.9092 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00234/1.794, allocations: 405 kB / 0.9096 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.422e-06/1.794, allocations: 0 / 0.9096 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.1687/1.963, allocations: 140.3 MB / 1.047 GB, free: 48.35 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