Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002253/0.002253, allocations: 185.8 kB / 16.4 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.99/1.99, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 88.42 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5039/0.5039, allocations: 43.55 MB / 362.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004736/0.0004736, allocations: 15.98 kB / 431.4 MB, free: 6.176 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1206, allocations: 58.85 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.478/0.5986, allocations: 105.4 MB / 0.5817 GB, free: 13.26 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.599, allocations: 79.97 kB / 0.5818 GB, free: 13.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8778/1.477, allocations: 128.9 MB / 0.7077 GB, free: 90.74 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.597e-06/1.477, allocations: 0 / 0.7077 GB, free: 90.74 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004381/1.477, allocations: 123.3 kB / 0.7078 GB, free: 90.73 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.03047/1.508, allocations: 6.686 MB / 0.7143 GB, free: 88.09 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.61e-05/1.508, allocations: 13.12 kB / 0.7143 GB, free: 88.09 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06103/1.569, allocations: 6.455 MB / 0.7206 GB, free: 87.64 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02993/1.599, allocations: 8.619 MB / 0.7291 GB, free: 86.8 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005114/1.599, allocations: 444.5 kB / 0.7295 GB, free: 86.78 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003825/1.603, allocations: 0.5764 MB / 0.73 GB, free: 86.77 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04974/1.653, allocations: 15.44 MB / 0.7451 GB, free: 82.14 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004827/1.654, allocations: 58 kB / 0.7452 GB, free: 82.11 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00362/1.657, allocations: 265.1 kB / 0.7454 GB, free: 81.96 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004215/1.662, allocations: 1.703 MB / 0.7471 GB, free: 81.66 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04505/1.707, allocations: 14.83 MB / 0.7616 GB, free: 77.31 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.122/1.829, allocations: 56.38 MB / 0.8166 GB, free: 29.11 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02937/1.858, allocations: 7.998 MB / 0.8244 GB, free: 20.88 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002656/1.861, allocations: 2.208 MB / 0.8266 GB, free: 18.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.147e-05/1.861, allocations: 77.11 kB / 0.8267 GB, free: 18.22 MB / 490.7 MB Notification: Performance of pre-optimization done (n=367): time 8.506e-06/1.861, allocations: 0 / 0.8267 GB, free: 18.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=419): time 0.5732/2.434, allocations: 39.68 MB / 0.8654 GB, free: 96.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.006e-05/2.434, allocations: 114.4 kB / 0.8655 GB, free: 96.41 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01043/2.445, allocations: 3.88 MB / 0.8693 GB, free: 96.14 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001163/2.446, allocations: 83.81 kB / 0.8694 GB, free: 96.11 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003448/2.45, allocations: 3.793 MB / 0.8731 GB, free: 94.88 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002685/2.452, allocations: 1.491 MB / 0.8746 GB, free: 94 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00167/2.454, allocations: 153.1 kB / 0.8747 GB, free: 94 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0007503/2.455, allocations: 0.6409 MB / 0.8753 GB, free: 93.68 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01009/2.465, allocations: 3.892 MB / 0.8791 GB, free: 93.66 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01284/2.478, allocations: 7.69 MB / 0.8866 GB, free: 88.89 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01292/2.491, allocations: 5.437 MB / 0.892 GB, free: 88.84 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001494/2.491, allocations: 37.19 kB / 0.892 GB, free: 88.84 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1020) (initialization): time 0.04555/2.536, allocations: 13.93 MB / 0.9056 GB, free: 85.19 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001424/2.537, allocations: 62.58 kB / 0.9057 GB, free: 85.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002843/2.537, allocations: 131.8 kB / 0.9058 GB, free: 85.19 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01454/2.552, allocations: 2.64 MB / 0.9084 GB, free: 84.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01378/2.565, allocations: 1.945 MB / 0.9103 GB, free: 84.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03046/2.596, allocations: 14.07 MB / 0.924 GB, free: 78.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009629/2.606, allocations: 480.8 kB / 0.9245 GB, free: 78 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002227/2.608, allocations: 431.3 kB / 0.9249 GB, free: 77.94 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 597 * Number of states: 0 () * Number of discrete variables: 48 (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 (923): * Single equations (assignments): 915 * 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.009238/2.617, allocations: 2.919 MB / 0.9277 GB, free: 76.66 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001752/2.619, allocations: 469.7 kB / 0.9282 GB, free: 76.41 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03452/2.653, allocations: 10.44 MB / 0.9384 GB, free: 72.99 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001288/2.654, allocations: 64.77 kB / 0.9384 GB, free: 72.98 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.175e-05/2.654, allocations: 12.62 kB / 0.9384 GB, free: 72.98 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001082/2.654, allocations: 16.92 kB / 0.9385 GB, free: 72.98 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06399/2.718, allocations: 21.06 MB / 0.959 GB, free: 65.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-05/2.718, allocations: 9.938 kB / 0.959 GB, free: 65.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007168/2.725, allocations: 0.7906 MB / 0.9598 GB, free: 65.85 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01292/2.738, allocations: 2.406 MB / 0.9622 GB, free: 65.51 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001144/2.739, allocations: 82.41 kB / 0.9622 GB, free: 65.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02839/2.768, allocations: 12.82 MB / 0.9747 GB, free: 58.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.325e-05/2.768, allocations: 15.94 kB / 0.9748 GB, free: 58.84 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04044/2.808, allocations: 16.25 MB / 0.9906 GB, free: 44.39 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004637/2.813, allocations: 1.148 MB / 0.9918 GB, free: 43.33 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002077/2.815, allocations: 75.28 kB / 0.9918 GB, free: 43.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005943/2.821, allocations: 299.1 kB / 0.9921 GB, free: 43.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001669/2.823, allocations: 260.9 kB / 0.9924 GB, free: 42.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005894/2.823, allocations: 115 kB / 0.9925 GB, free: 42.79 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00701/2.83, allocations: 2.729 MB / 0.9951 GB, free: 40.57 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.022e-06/2.83, allocations: 0 / 0.9951 GB, free: 40.57 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01069/2.841, allocations: 1.652 MB / 0.9968 GB, free: 38.92 MB / 0.4948 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 (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.00161/2.843, allocations: 239 kB / 0.997 GB, free: 38.69 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02292/2.866, allocations: 9.735 MB / 1.006 GB, free: 30.18 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-05/2.866, allocations: 0 / 1.006 GB, free: 30.18 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01066/2.876, allocations: 4.244 MB / 1.011 GB, free: 26.44 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006328/2.883, allocations: 0.6405 MB / 1.011 GB, free: 25.83 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04411/2.927, allocations: 19.07 MB / 1.03 GB, free: 6.625 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01217/2.939, allocations: 4.759 MB / 1.035 GB, free: 1.848 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003489/2.943, allocations: 403.3 kB / 1.035 GB, free: 1.453 MB / 0.4948 GB Notification: Performance of SimCode: time 1.713e-06/2.943, allocations: 3.938 kB / 1.035 GB, free: 1.449 MB / 0.4948 GB Notification: Performance of Templates: time 0.6342/3.577, allocations: 136.8 MB / 1.169 GB, free: 52.16 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches