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.001654/0.001653, 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.001757/0.001757, 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.393/1.393, allocations: 222.9 MB / 243 MB, free: 15.15 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.2162/0.2162, allocations: 44.18 MB / 337.4 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 57.27 kB / 409.9 MB, free: 26.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1372, allocations: 60.83 MB / 470.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02021/0.1575, allocations: 18.19 MB / 488.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01304/0.1706, allocations: 5.29 MB / 494.2 MB, free: 6.105 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004677/0.1753, allocations: 111.7 kB / 494.3 MB, free: 5.996 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006787/0.1821, allocations: 3.064 MB / 497.4 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007295/0.1895, allocations: 2.572 MB / 499.9 MB, free: 348 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002965/0.1925, allocations: 1.022 MB / 0.4892 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01203/0.2046, allocations: 7.482 MB / 0.4965 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007033/0.2116, allocations: 4.179 MB / 0.5006 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005082/0.2168, allocations: 2.243 MB / 0.5028 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3294/0.5462, allocations: 3.231 MB / 0.5059 GB, free: 18.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002558/0.5488, allocations: 453.3 kB / 0.5064 GB, free: 18.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005623/0.5545, allocations: 1.314 MB / 0.5077 GB, free: 18.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00666/0.5612, allocations: 2.824 MB / 0.5104 GB, free: 18.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01172/0.5729, allocations: 3.204 MB / 0.5136 GB, free: 17.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01986/0.5928, allocations: 10.01 MB / 0.5233 GB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.5928, allocations: 1.625 kB / 0.5233 GB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.5929, allocations: 0 / 0.5233 GB, free: 15.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005389/0.5934, allocations: 0 / 0.5233 GB, free: 15.95 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.02799/0.6214, allocations: 7.202 MB / 0.5304 GB, free: 11.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.6215, allocations: 9.562 kB / 0.5304 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01583/0.6373, allocations: 3.838 MB / 0.5341 GB, free: 9.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01138/0.6487, allocations: 4.119 MB / 0.5381 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000221/0.649, allocations: 317.1 kB / 0.5384 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002129/0.6511, allocations: 433.2 kB / 0.5389 GB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02984/0.681, allocations: 15.59 MB / 0.5541 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002409/0.6812, allocations: 57.09 kB / 0.5541 GB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009891/0.6822, allocations: 201.3 kB / 0.5543 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006596/0.6888, allocations: 3.38 MB / 0.5576 GB, free: 6.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03631/0.7252, allocations: 14.81 MB / 0.5721 GB, free: 8.285 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1018/0.827, allocations: 54.98 MB / 0.6258 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01849/0.8456, allocations: 8.204 MB / 0.6338 GB, free: 8.504 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007658/0.8533, allocations: 4.841 MB / 0.6385 GB, free: 3.652 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002469/0.8558, allocations: 2.207 MB / 0.6407 GB, free: 1.078 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.942e-05/0.8558, allocations: 65.08 kB / 0.6407 GB, free: 1.004 MB / 478.1 MB Notification: Performance of pre-optimization done (n=367): time 7.173e-06/0.8559, allocations: 0 / 0.6407 GB, free: 1.004 MB / 478.1 MB Notification: Performance of matching and sorting (n=419): time 0.1721/1.028, allocations: 40.16 MB / 0.68 GB, free: 8.898 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/1.028, allocations: 116 kB / 0.6801 GB, free: 8.766 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009665/1.038, allocations: 4.291 MB / 0.6843 GB, free: 4.453 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001671/1.04, allocations: 92.73 kB / 0.6844 GB, free: 4.359 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004096/1.044, allocations: 3.786 MB / 0.6881 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.003756/1.047, allocations: 1.486 MB / 0.6895 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004262/1.052, allocations: 1.567 MB / 0.691 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001371/1.052, allocations: 301.1 kB / 0.6913 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009644/1.062, allocations: 4.083 MB / 0.6953 GB, free: 9.133 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3689/1.43, allocations: 7.841 MB / 0.703 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02379/1.454, allocations: 12.88 MB / 0.7156 GB, free: 173 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002296/1.455, allocations: 36.59 kB / 0.7156 GB, free: 173 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.03417/1.489, allocations: 14.74 MB / 0.73 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001251/1.489, allocations: 64.19 kB / 0.73 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002699/1.489, allocations: 128.4 kB / 0.7302 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009406/1.499, allocations: 2.927 MB / 0.733 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008118/1.507, allocations: 1.807 MB / 0.7348 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02322/1.53, allocations: 15.95 MB / 0.7504 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008933/1.539, allocations: 0.4981 MB / 0.7508 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002283/1.541, allocations: 427.8 kB / 0.7513 GB, free: 155 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.006889/1.548, allocations: 2.874 MB / 0.7541 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001237/1.549, allocations: 459.3 kB / 0.7545 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01712/1.567, allocations: 10.93 MB / 0.7652 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001089/1.567, allocations: 71.92 kB / 0.7652 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.384e-05/1.567, allocations: 8 kB / 0.7652 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001125/1.567, allocations: 15.94 kB / 0.7653 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04141/1.608, allocations: 21.58 MB / 0.7863 GB, free: 120.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.981e-05/1.608, allocations: 12 kB / 0.7863 GB, free: 120.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003563/1.612, allocations: 0.6827 MB / 0.787 GB, free: 119.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007403/1.619, allocations: 2.733 MB / 0.7897 GB, free: 117 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001241/1.621, allocations: 90.73 kB / 0.7898 GB, free: 116.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01573/1.636, allocations: 14.55 MB / 0.804 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.789e-06/1.636, allocations: 16 kB / 0.804 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02313/1.66, allocations: 15.58 MB / 0.8192 GB, free: 86.38 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00206/1.662, allocations: 0.495 MB / 0.8197 GB, free: 85.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00157/1.663, allocations: 79.94 kB / 0.8198 GB, free: 85.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002879/1.666, allocations: 315 kB / 0.8201 GB, free: 85.48 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007728/1.667, allocations: 265.9 kB / 0.8203 GB, free: 85.21 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003075/1.667, allocations: 109.1 kB / 0.8204 GB, free: 85.11 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004011/1.671, allocations: 2.689 MB / 0.823 GB, free: 82.42 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.7e-07/1.671, allocations: 0 / 0.823 GB, free: 82.42 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009061/1.68, allocations: 1.681 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.0009313/1.681, allocations: 227.2 kB / 0.8249 GB, free: 80.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01403/1.695, allocations: 10.09 MB / 0.8348 GB, free: 70.42 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.676e-05/1.695, allocations: 4 kB / 0.8348 GB, free: 70.42 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005985/1.701, allocations: 4.381 MB / 0.839 GB, free: 66.01 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004578/1.706, allocations: 0.7189 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.03029/1.736, allocations: 15.65 MB / 0.855 GB, free: 49.49 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005874/1.742, allocations: 4.547 MB / 0.8595 GB, free: 44.89 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005931/1.748, 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.001355/1.75, allocations: 339.4 kB / 0.8624 GB, free: 41.83 MB / 0.5294 GB Notification: Performance of SimCode: time 1.393e-06/1.75, allocations: 0 / 0.8624 GB, free: 41.83 MB / 0.5294 GB Notification: Performance of Templates: time 0.4167/2.166, allocations: 66.22 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 cvode -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