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.001089/0.001089, allocations: 182.8 kB / 18.09 MB, free: 3.727 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.488/1.488, allocations: 223.3 MB / 242.1 MB, free: 9.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008146/0.0008147, allocations: 94.47 kB / 293.3 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3404/0.3404, allocations: 44.14 MB / 388.5 MB, free: 38.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003889/0.0003888, allocations: 12 kB / 461.1 MB, free: 1.324 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.346, allocations: 61.88 MB / 0.5107 GB, free: 37.68 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1436/0.4897, allocations: 107.1 MB / 0.6153 GB, free: 4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/0.49, allocations: 91.88 kB / 0.6153 GB, free: 3.914 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5715/1.062, allocations: 126.1 MB / 0.7385 GB, free: 92.92 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.849e-06/1.062, allocations: 4 kB / 0.7385 GB, free: 92.92 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000548/1.062, allocations: 115.8 kB / 0.7386 GB, free: 92.91 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: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02181/1.084, allocations: 6.295 MB / 0.7448 GB, free: 89.82 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/1.084, allocations: 10.75 kB / 0.7448 GB, free: 89.82 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02264/1.107, allocations: 5.515 MB / 0.7502 GB, free: 89.16 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01442/1.121, allocations: 6.597 MB / 0.7566 GB, free: 85.71 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000537/1.122, allocations: 431.6 kB / 0.757 GB, free: 85.55 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003891/1.126, allocations: 0.5691 MB / 0.7576 GB, free: 85.39 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03283/1.159, allocations: 15.1 MB / 0.7723 GB, free: 74.22 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000235/1.159, allocations: 67.52 kB / 0.7724 GB, free: 74.16 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001113/1.16, allocations: 263.3 kB / 0.7726 GB, free: 73.94 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001923/1.162, allocations: 1.654 MB / 0.7743 GB, free: 72.29 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02619/1.188, allocations: 14.57 MB / 0.7885 GB, free: 57.71 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07574/1.264, allocations: 55.37 MB / 0.8426 GB, free: 1.402 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01788/1.282, allocations: 7.954 MB / 0.8503 GB, free: 9.215 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006764/1.289, allocations: 4.726 MB / 0.8549 GB, free: 4.48 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002086/1.291, allocations: 2.208 MB / 0.8571 GB, free: 1.887 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.524e-05/1.291, allocations: 69.06 kB / 0.8572 GB, free: 1.809 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=367): time 6.802e-06/1.291, allocations: 0 / 0.8572 GB, free: 1.809 MB / 0.4948 GB Notification: Performance of matching and sorting (n=419): time 0.3879/1.679, allocations: 38.54 MB / 0.8948 GB, free: 115 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/1.679, allocations: 117.9 kB / 0.8949 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006607/1.685, allocations: 4.278 MB / 0.8991 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009308/1.686, allocations: 84.84 kB / 0.8992 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002183/1.689, allocations: 3.83 MB / 0.9029 GB, free: 112.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001796/1.69, allocations: 1.495 MB / 0.9044 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004756/1.691, allocations: 153 kB / 0.9045 GB, free: 111 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003681/1.691, allocations: 0.6302 MB / 0.9051 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005288/1.697, allocations: 3.88 MB / 0.9089 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009267/1.706, allocations: 7.661 MB / 0.9164 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01444/1.72, allocations: 12.57 MB / 0.9287 GB, free: 95.25 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001704/1.721, allocations: 39.31 kB / 0.9287 GB, free: 95.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.02642/1.747, allocations: 14.02 MB / 0.9424 GB, free: 90.59 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002606/1.747, allocations: 60.75 kB / 0.9425 GB, free: 90.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000309/1.748, allocations: 129.4 kB / 0.9426 GB, free: 90.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007168/1.755, allocations: 2.615 MB / 0.9451 GB, free: 90.22 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007423/1.762, allocations: 1.925 MB / 0.947 GB, free: 90.03 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01813/1.78, allocations: 13.66 MB / 0.9603 GB, free: 83.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007612/1.788, allocations: 476.5 kB / 0.9608 GB, free: 83.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002204/1.79, allocations: 425.9 kB / 0.9612 GB, free: 83.44 MB / 0.5105 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 () * Number of clocked 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.007905/1.798, allocations: 2.875 MB / 0.964 GB, free: 82.18 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001579/1.8, allocations: 459.3 kB / 0.9645 GB, free: 81.93 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01825/1.818, allocations: 10.43 MB / 0.9746 GB, free: 75.31 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.117e-05/1.818, allocations: 59.33 kB / 0.9747 GB, free: 75.25 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.668e-05/1.818, allocations: 12 kB / 0.9747 GB, free: 75.24 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.049e-05/1.818, allocations: 17.95 kB / 0.9747 GB, free: 75.24 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04311/1.861, allocations: 20.98 MB / 0.9952 GB, free: 58.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.604e-05/1.861, allocations: 12 kB / 0.9952 GB, free: 58.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003539/1.865, allocations: 0.781 MB / 0.996 GB, free: 57.56 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006422/1.871, allocations: 2.417 MB / 0.9983 GB, free: 56 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009849/1.872, allocations: 81.27 kB / 0.9984 GB, free: 55.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01452/1.887, allocations: 12.39 MB / 1.011 GB, free: 44.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/1.887, allocations: 15.94 kB / 1.011 GB, free: 44.33 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02306/1.91, allocations: 14.86 MB / 1.025 GB, free: 29.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001934/1.912, allocations: 499.1 kB / 1.026 GB, free: 28.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001792/1.914, allocations: 76.55 kB / 1.026 GB, free: 28.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003877/1.918, allocations: 302.5 kB / 1.026 GB, free: 28.32 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001178/1.919, allocations: 266.5 kB / 1.026 GB, free: 28.06 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005607/1.92, allocations: 112.8 kB / 1.026 GB, free: 27.95 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005538/1.925, allocations: 2.663 MB / 1.029 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4e-07/1.925, allocations: 0 / 1.029 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01027/1.935, allocations: 1.64 MB / 1.03 GB, free: 23.66 MB / 0.5105 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.001344/1.937, allocations: 241.6 kB / 1.031 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01499/1.952, allocations: 9.694 MB / 1.04 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.928e-05/1.952, allocations: 5 kB / 1.04 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007819/1.96, allocations: 4.238 MB / 1.044 GB, free: 9.43 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01354/1.973, allocations: 0.6899 MB / 1.045 GB, free: 8.758 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03582/2.009, allocations: 18.17 MB / 1.063 GB, free: 6.441 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01118/2.02, allocations: 4.547 MB / 1.067 GB, free: 1.871 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009655/2.03, allocations: 2.731 MB / 1.07 GB, free: 15.14 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002315/2.032, allocations: 339.3 kB / 1.07 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of SimCode: time 7.21e-07/2.032, allocations: 0 / 1.07 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of Templates: time 0.4338/2.466, allocations: 65.19 MB / 1.134 GB, free: 127 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/jenkins1/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