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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 180.2 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.194/1.194, allocations: 221.3 MB / 236 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008376/0.0008376, allocations: 80.12 kB / 287 MB, free: 252 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1715/0.1715, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.273e-05/3.29e-05, allocations: 4.219 kB / 451.8 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1178, allocations: 61.9 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3944/0.5122, allocations: 106.9 MB / 0.6061 GB, free: 14.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.5126, allocations: 75.97 kB / 0.6061 GB, free: 14.32 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5667/1.079, allocations: 128.6 MB / 0.7317 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.615e-06/1.079, allocations: 1.25 kB / 0.7317 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003318/1.08, allocations: 113.5 kB / 0.7318 GB, free: 116.9 MB / 0.5105 GB 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.02246/1.102, allocations: 6.165 MB / 0.7378 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/1.102, allocations: 9.156 kB / 0.7378 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02646/1.129, allocations: 6.44 MB / 0.7441 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01798/1.147, allocations: 7.946 MB / 0.7519 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003115/1.147, allocations: 435 kB / 0.7523 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002482/1.15, allocations: 0.5684 MB / 0.7529 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02675/1.176, allocations: 15.13 MB / 0.7676 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000236/1.177, allocations: 63.89 kB / 0.7677 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008573/1.177, allocations: 257.2 kB / 0.7679 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002188/1.18, allocations: 1.663 MB / 0.7696 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02655/1.206, allocations: 14.55 MB / 0.7838 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08247/1.289, allocations: 55.43 MB / 0.8379 GB, free: 63.21 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01702/1.306, allocations: 7.963 MB / 0.8457 GB, free: 56.24 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00584/1.312, allocations: 4.695 MB / 0.8503 GB, free: 51.66 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001703/1.313, allocations: 2.209 MB / 0.8524 GB, free: 49.09 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.792e-05/1.314, allocations: 69 kB / 0.8525 GB, free: 49.01 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=367): time 8.916e-06/1.314, allocations: 3.938 kB / 0.8525 GB, free: 49.01 MB / 0.5105 GB Notification: Performance of matching and sorting (n=419): time 0.08569/1.399, allocations: 33.17 MB / 0.8849 GB, free: 15.85 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.515e-05/1.399, allocations: 120 kB / 0.885 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008149/1.408, allocations: 3.761 MB / 0.8887 GB, free: 11.94 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00116/1.409, allocations: 83.97 kB / 0.8888 GB, free: 11.85 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002357/1.411, allocations: 3.838 MB / 0.8925 GB, free: 8.008 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001943/1.413, allocations: 1.487 MB / 0.894 GB, free: 6.535 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001121/1.414, allocations: 148 kB / 0.8941 GB, free: 6.391 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006614/1.415, allocations: 0.6326 MB / 0.8947 GB, free: 5.754 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005851/1.421, allocations: 3.818 MB / 0.8985 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009031/1.43, allocations: 7.566 MB / 0.9058 GB, free: 8.559 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008997/1.439, allocations: 5.395 MB / 0.9111 GB, free: 3.148 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001127/1.439, allocations: 40 kB / 0.9111 GB, free: 3.109 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.3284/1.767, allocations: 13.89 MB / 0.9247 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001485/1.768, allocations: 63.81 kB / 0.9248 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000311/1.768, allocations: 128.1 kB / 0.9249 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008761/1.777, allocations: 2.628 MB / 0.9275 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008299/1.785, allocations: 1.932 MB / 0.9293 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01726/1.802, allocations: 13.6 MB / 0.9426 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006407/1.809, allocations: 481.2 kB / 0.9431 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001189/1.81, allocations: 430.6 kB / 0.9435 GB, free: 112.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 50 (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.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (914): * Single equations (assignments): 906 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001804/1.812, allocations: 0.652 MB / 0.9441 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007721/1.813, allocations: 463.2 kB / 0.9446 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01717/1.83, allocations: 10.35 MB / 0.9547 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001124/1.83, allocations: 64.05 kB / 0.9547 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.195e-05/1.83, allocations: 12.5 kB / 0.9548 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001301/1.83, allocations: 19.08 kB / 0.9548 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03623/1.866, allocations: 20.9 MB / 0.9752 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.662e-05/1.866, allocations: 13.98 kB / 0.9752 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003532/1.87, allocations: 0.782 MB / 0.976 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006358/1.876, allocations: 2.406 MB / 0.9783 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007544/1.877, allocations: 81.56 kB / 0.9784 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01401/1.891, allocations: 12.36 MB / 0.9905 GB, free: 99.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/1.891, allocations: 20.98 kB / 0.9905 GB, free: 99.14 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0205/1.912, allocations: 16.11 MB / 1.006 GB, free: 92 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001495/1.913, allocations: 0.4913 MB / 1.007 GB, free: 91.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008369/1.914, allocations: 72.7 kB / 1.007 GB, free: 91.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002453/1.917, allocations: 297.7 kB / 1.007 GB, free: 91.38 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005998/1.917, allocations: 266.2 kB / 1.007 GB, free: 91.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002718/1.918, allocations: 112.3 kB / 1.007 GB, free: 91.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00341/1.921, allocations: 2.628 MB / 1.01 GB, free: 88.79 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.3e-07/1.921, allocations: 0 / 1.01 GB, free: 88.79 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005881/1.927, allocations: 1.636 MB / 1.012 GB, free: 87.16 MB / 0.5261 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000595/1.927, allocations: 244.6 kB / 1.012 GB, free: 86.94 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01229/1.94, allocations: 9.584 MB / 1.021 GB, free: 78.32 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.527e-05/1.94, allocations: 4 kB / 1.021 GB, free: 78.32 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005499/1.945, allocations: 4.192 MB / 1.025 GB, free: 74.54 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003684/1.949, allocations: 0.6515 MB / 1.026 GB, free: 74.01 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0225/1.972, allocations: 13.17 MB / 1.039 GB, free: 62.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005003/1.977, allocations: 4.673 MB / 1.043 GB, free: 58.91 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006526/1.983, allocations: 2.724 MB / 1.046 GB, free: 57.16 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/1.985, allocations: 348.7 kB / 1.046 GB, free: 56.84 MB / 0.5261 GB Notification: Performance of SimCode: time 8.52e-07/1.985, allocations: 0 / 1.046 GB, free: 56.84 MB / 0.5261 GB Notification: Performance of Templates: time 0.09761/2.082, allocations: 64.93 MB / 1.11 GB, free: 9.879 MB / 0.5417 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches