/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 177 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7396
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1190
RA = 307.811, Dec = -41.3574
tmin = 547776001, tmax = 548035201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='993914', job_status='RUN', time_executed='2021-09-25 09:08:22.701216', time_epoch_executed='1632586102.7' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1190'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993914

Creating custom pfile directory:
/scratch/kocevski/993914/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=547776001.0 && nMetStart<548035201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=547776001.0 && nMetStart<548035201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993914/ft1_4FGL_J2031.2-4121_daily_bin1190.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=547776001.0 && nMetStart<548035201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993914/ft2_4FGL_J2031.2-4121_daily_bin1190.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993914/ft1_4FGL_J2031.2-4121_daily_bin1190.fits outfile=/scratch/kocevski/993914/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1190.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=547776001.0 tmax=548035201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.67
user 3.40
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/993914/ft2_4FGL_J2031.2-4121_daily_bin1190.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993914/ft2_4FGL_J2031.2-4121_daily_bin1190.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/993914/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1190.fits evtable="EVENTS" outfile="/scratch/kocevski/993914/ft1_filtered_4FGL_J2031.2-4121_daily_bin1190.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993914/ft1_filtered_4FGL_J2031.2-4121_daily_bin1190.fits" evtable="EVENTS" scfile=/scratch/kocevski/993914/ft2_4FGL_J2031.2-4121_daily_bin1190.fits sctable="SC_DATA" outfile=/scratch/kocevski/993914/ltcube_547776001_548035201_4FGL_J2031.2-4121_daily_bin1190.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/993914/ft2_4FGL_J2031.2-4121_daily_bin1190.fits
.....................!
real 13.46
user 13.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993914/ft1_filtered_4FGL_J2031.2-4121_daily_bin1190.fits evtable="EVENTS" scfile=/scratch/kocevski/993914/ft2_4FGL_J2031.2-4121_daily_bin1190.fits sctable="SC_DATA" expcube=/scratch/kocevski/993914/ltcube_547776001_548035201_4FGL_J2031.2-4121_daily_bin1190.fits outfile=/scratch/kocevski/993914/expmap_547776001_548035201_4FGL_J2031.2-4121_daily_bin1190.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/993914/ltcube_547776001_548035201_4FGL_J2031.2-4121_daily_bin1190.fits
.....................!
real 192.27
user 186.16
sys 5.57

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J2031.2-4121 @ 307.811 -41.3574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/993914/ft1_filtered_4FGL_J2031.2-4121_daily_bin1190.fits scfile=/scratch/kocevski/993914/ft2_4FGL_J2031.2-4121_daily_bin1190.fits outfile=/scratch/kocevski/993914/cmap_547776001_548035201_4FGL_J2031.2-4121_daily_bin1190.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=307.811 yref=-41.3574 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993914/ft1_filtered_4FGL_J2031.2-4121_daily_bin1190.fits scfile=/scratch/kocevski/993914/ft2_4FGL_J2031.2-4121_daily_bin1190.fits outfile=/scratch/kocevski/993914/cmap_HighResolution_547776001_548035201_4FGL_J2031.2-4121_daily_bin1190.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=307.811 yref=-41.3574 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993914/ft1_filtered_4FGL_J2031.2-4121_daily_bin1190.fits evtable="EVENTS" scfile=/scratch/kocevski/993914/ft2_4FGL_J2031.2-4121_daily_bin1190.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993914/Model_4FGL_J2031.2-4121_daily_bin1190.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/993914/ft1_filtered_4FGL_J2031.2-4121_daily_bin1190.fits.....................!
real 77.80
user 76.24
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993914/ft1_filtered_4FGL_J2031.2-4121_daily_bin1190.fits', '/scratch/kocevski/993914/ft2_4FGL_J2031.2-4121_daily_bin1190.fits', expMap='/scratch/kocevski/993914/expmap_547776001_548035201_4FGL_J2031.2-4121_daily_bin1190.fits', expCube='/scratch/kocevski/993914/ltcube_547776001_548035201_4FGL_J2031.2-4121_daily_bin1190.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993914/Model_4FGL_J2031.2-4121_daily_bin1190.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2031.2-4121'

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.668e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
280         beta:  5.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
281           Eb:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/993914/ft1_filtered_4FGL_J2031.2-4121_daily_bin1190.fits
Spacecraft file(s): /scratch/kocevski/993914/ft2_4FGL_J2031.2-4121_daily_bin1190.fits
Exposure map: /scratch/kocevski/993914/expmap_547776001_548035201_4FGL_J2031.2-4121_daily_bin1190.fits
Exposure cube: /scratch/kocevski/993914/ltcube_547776001_548035201_4FGL_J2031.2-4121_daily_bin1190.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993914/Model_4FGL_J2031.2-4121_daily_bin1190.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9817.77008712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9816.92574809

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7192       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14643E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8246       1.0000         .10000E-03   10000.    
     6 'norm      '    .11755E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4619       1.0000         .10000E-03   10000.    
     9 'norm      '    .74980       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .61896       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.177       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .40652E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.253       1.0000         .10000E-03   10000.    
    17 'norm      '    6.1409       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.339       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98732       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99934       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9816.926     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2121 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7197        7.7229       -.30119E-06   -.40987E-04
   2  Prefactor     .10000E-03    5.7163        .13256E-06** at limit **
   3  Prefactor     .10057E-03    4.8209        .82626E-06** at limit **
   4  norm          .10000E-03    8.4448        .86310E-07** at limit **
   5  Prefactor     9.8236        5.5761       -.27461E-07   -.76950E-04
   6  norm          .10009E-03    .28574       -.55919E-07** at limit **
   7  norm          .10000E-03    5.0329       -.11793E-06** at limit **
   8  norm          1.4622        1.3073        .20391E-07   -.26460E-03
   9  norm          .74970        .80475       -.50795E-07   -.24558E-04
  10  Prefactor     .10000E-03    84.895       -.18109E-04** at limit **
  11  norm          .62047        1.5539        .12137E-06    .11029E-03
  12  norm          .10000E-03    3.1824        .18108E-06** at limit **
  13  norm          11.177        15.381       -.53415E-07   -.16968E-05
  14  Prefactor     .10000E-03    11.145        .11348E-06** at limit **
  15  Prefactor     .10000E-03    89.982        .96863E-05** at limit **
  16  Prefactor     29.248        20.780       -.75157E-06    .14481E-06
  17  norm          6.1407        1.9924       -.44461E-07   -.20940E-04
  18  Prefactor     13.334        19.335       -.99834E-06    .73399E-06
  19  Prefactor     .10000E-03    6.3032       -.40091E-06** at limit **
  20  Prefactor     .10000E-03    9.8234        .22525E-06** at limit **
  21  Normalizat    .98736        .19165        .29705E-06   -.33222E-04
  22  Prefactor     .99941        .84696E-01    .83255E-07   -.66583E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.71969
  Prefactor  = 0.0001
  Prefactor  = 0.000100566
  norm       = 0.0001
  Prefactor  = 9.82361
  norm       = 0.00010009
  norm       = 0.0001
  norm       = 1.46223
  norm       = 0.749698
  Prefactor  = 0.0001
  norm       = 0.620472
  norm       = 0.0001
  norm       = 11.1767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2482
  norm       = 6.14071
  Prefactor  = 13.334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.987357
  Prefactor  = 0.99941
 **********
 **   18 **HESSE 
 **********

 FCN=   9816.926     FROM HESSE     STATUS=OK           356 CALLS     2477 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7197        7.7185        .15480E-03   -1.5189    
   2  Prefactor     .10000E-03    5.7171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10057E-03    76.902        .40553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.4666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8236        5.6133        .63922E-03   -1.5081    
   6  norm          .10009E-03    .62278        .18663E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.1230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4622        9.7984        .17790E-02   -1.5466    
   9  norm          .74970        .79536        .89756E-04   -1.5535    
  10  Prefactor     .10000E-03    85.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .62047        1.2698        .18938E-02   -1.5550    
  12  norm          .10000E-03    3.1926        .17259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.177        15.385        .11983E-03   -1.5039    
  14  Prefactor     .10000E-03    11.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    90.333        .21256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.248        20.809        .74076E-04   -1.4626    
  17  norm          6.1407        1.9974        .75791E-04   -1.5212    
  18  Prefactor     13.334        19.356        .10967E-03   -1.4977    
  19  Prefactor     .10000E-03    6.4408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.8539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98736        .22295        .36286E-03   -.93455    
  22  Prefactor     .99941        .99486E-01    .16244E-03   -.92749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01044e-09
Minuit parameter uncertainties:
  1  7.71967
  2  4.4044e-07
  3  0.0132112
  4  3.42276e-06
  5  5.61361
  6  0.000472192
  7  2.66096e-06
  8  7.57185
  9  0.795366
  10  0.000168835
  11  1.26986
  12  8.66238e-07
  13  15.3908
  14  2.36386e-06
  15  8.45781e-05
  16  20.8143
  17  1.99746
  18  19.3655
  19  3.76363e-07
  20  1.56629e-06
  21  0.223157
  22  0.0995042
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9816.92565283

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.118e+01  1.539e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
280         beta:  5.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
281           Eb:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  9.994e-01  9.950e-02  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  9.874e-01  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 307.811 -41.357
Photon Flux Upper Limit: 4.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993914/likelihoodResults_547776001_548035201_4FGL_J2031.2-4121_daily_bin1190.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9816.89866241
delta logL = 0.0269904241577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9816.88900087
delta logL = 0.0366519602285

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8626       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6796       1.0000          .0000       5.0000    
     3 'Normalizat'    .98439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99984       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9816.889     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      253 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8605        18.731        .13464E-03    .12277E-03
   2  alpha         2.6797        1.6570        .35601E-01    .19605E-04
   3  Normalizat    .98439        .21616        .36335E-03    .14631E-03
   4  Prefactor     .99984        .97927E-01    .16240E-03    .24669E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.8605
  alpha      = 2.67969
  Normalizat = 0.984394
  Prefactor  = 0.99984
 **********
 **   18 **HESSE 
 **********

 FCN=   9816.889     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8605        16.149        .53855E-05   -1.5113    
   2  alpha         2.6797        1.4626        .14240E-02    .71938E-01
   3  Normalizat    .98439        .21590        .14534E-04   -.93555    
   4  Prefactor     .99984        .97908E-01    .32481E-04   -.92735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6385e-11
Minuit parameter uncertainties:
  1  16.1568
  2  1.56293
  3  0.21609
  4  0.0979258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993914': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9816.88900086
delta logL = 0.036651970835

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  8.861e+00  1.616e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  2.680e+00  1.563e+00  0.000e+00  5.000e+00 ( 1.000e+00)
280         beta:  5.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
281           Eb:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  9.998e-01  9.793e-02  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  9.844e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.79
Ra Dec: 307.811 -41.357

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/993914/cmap_HighResolution_547776001_548035201_4FGL_J2031.2-4121_daily_bin1190.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/993914

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-05', job_status='DONE', photon_flux_upper_limit='4.22e-08', time_completed='2021-09-25 09:21:35.380782', job_id='993914', GAL2='1.00', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1632586895.38', return_code2='0', ts='0.79', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.67e-02', ts2='0.87', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1190' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 09:21:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 993914: <4FGL_J2031.2-4121_daily_bin1190> in cluster <slac> Done

Job <4FGL_J2031.2-4121_daily_bin1190> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep 25 09:05:15 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 09:05:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 09:05:17 2021
Terminated at Sat Sep 25 09:21:36 2021
Results reported at Sat Sep 25 09:21:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1190 307.811 -41.3574 547776001 548035201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2031.2-4121 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   790.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            981 sec.

The output (if any) is above this job summary.

