/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 186 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 = 7398
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1514
RA = 307.811, Dec = -41.3574
tmin = 631756801, tmax = 632016001
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='995650', job_status='RUN', time_executed='2021-09-25 09:14:40.670522', time_epoch_executed='1632586480.67' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995650

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995650/ft1_4FGL_J2031.2-4121_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995650/ft2_4FGL_J2031.2-4121_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995650/ft1_4FGL_J2031.2-4121_daily_bin1514.fits outfile=/scratch/kocevski/995650/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1514.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=631756801.0 tmax=632016001.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 2.41
user 2.18
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/995650/ft2_4FGL_J2031.2-4121_daily_bin1514.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/995650/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/995650/ft1_filtered_4FGL_J2031.2-4121_daily_bin1514.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995650/ft1_filtered_4FGL_J2031.2-4121_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/995650/ft2_4FGL_J2031.2-4121_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/995650/ltcube_631756801_632016001_4FGL_J2031.2-4121_daily_bin1514.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/995650/ft2_4FGL_J2031.2-4121_daily_bin1514.fits
.....................!
real 14.57
user 14.21
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995650/ft1_filtered_4FGL_J2031.2-4121_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/995650/ft2_4FGL_J2031.2-4121_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/995650/ltcube_631756801_632016001_4FGL_J2031.2-4121_daily_bin1514.fits outfile=/scratch/kocevski/995650/expmap_631756801_632016001_4FGL_J2031.2-4121_daily_bin1514.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/995650/ltcube_631756801_632016001_4FGL_J2031.2-4121_daily_bin1514.fits
.....................!
real 191.29
user 186.62
sys 3.94

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/995650/ft1_filtered_4FGL_J2031.2-4121_daily_bin1514.fits scfile=/scratch/kocevski/995650/ft2_4FGL_J2031.2-4121_daily_bin1514.fits outfile=/scratch/kocevski/995650/cmap_631756801_632016001_4FGL_J2031.2-4121_daily_bin1514.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.62
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995650/ft1_filtered_4FGL_J2031.2-4121_daily_bin1514.fits scfile=/scratch/kocevski/995650/ft2_4FGL_J2031.2-4121_daily_bin1514.fits outfile=/scratch/kocevski/995650/cmap_HighResolution_631756801_632016001_4FGL_J2031.2-4121_daily_bin1514.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.69
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/995650/ft1_filtered_4FGL_J2031.2-4121_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/995650/ft2_4FGL_J2031.2-4121_daily_bin1514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995650/Model_4FGL_J2031.2-4121_daily_bin1514.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/995650/ft1_filtered_4FGL_J2031.2-4121_daily_bin1514.fits......................!
real 34.22
user 32.56
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/995650/ft1_filtered_4FGL_J2031.2-4121_daily_bin1514.fits', '/scratch/kocevski/995650/ft2_4FGL_J2031.2-4121_daily_bin1514.fits', expMap='/scratch/kocevski/995650/expmap_631756801_632016001_4FGL_J2031.2-4121_daily_bin1514.fits', expCube='/scratch/kocevski/995650/ltcube_631756801_632016001_4FGL_J2031.2-4121_daily_bin1514.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/995650/Model_4FGL_J2031.2-4121_daily_bin1514.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/995650/ft1_filtered_4FGL_J2031.2-4121_daily_bin1514.fits
Spacecraft file(s): /scratch/kocevski/995650/ft2_4FGL_J2031.2-4121_daily_bin1514.fits
Exposure map: /scratch/kocevski/995650/expmap_631756801_632016001_4FGL_J2031.2-4121_daily_bin1514.fits
Exposure cube: /scratch/kocevski/995650/ltcube_631756801_632016001_4FGL_J2031.2-4121_daily_bin1514.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/995650/Model_4FGL_J2031.2-4121_daily_bin1514.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) = 2820.41872898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.611       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.664       1.0000         .10000E-03   10000.    
     4 'norm      '    52.454       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.792       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.549       1.0000         .10000E-03   10000.    
     9 'norm      '    9.8618       1.0000         .10000E-03   10000.    
    10 'Prefactor '    138.95       1.0000         .10000E-03   10000.    
    11 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11811E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9313       1.0000         .10000E-03   10000.    
    20 'Prefactor '    66.115       1.0000         .10000E-03   10000.    
    21 'Normalizat'    2.8180       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67462       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=   2820.389     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2649 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.575        50.641        .87677E-07   -.20087E-05
   2  Prefactor     .10000E-03    45.274       -.50879E-13** at limit **
   3  Prefactor     17.786        293.19       -.14450E-05   -.16533E-04
   4  norm          52.222        163.85       -.13288E-05   -.17426E-04
   5  Prefactor     .10000E-03    20.514       -.31014E-06** at limit **
   6  norm          18.794        7.3561        .66525E-07    .51525E-04
   7  norm          .10000E-03    12.449       -.21076E-06** at limit **
   8  norm          12.523        119.57        .30439E-05    .91536E-05
   9  norm          9.8612        5.8990       -.69158E-07   -.25182E-04
  10  Prefactor     138.31        250.06       -.55807E-05   -.37467E-04
  11  norm          .10000E-03    26.134       -.41333E-06** at limit **
  12  norm          .10000E-03    42.363       -.17914E-05** at limit **
  13  norm          .10000E-03    44.099       -.19571E-05** at limit **
  14  Prefactor     .10000E-03    186.59       -.42740E-05** at limit **
  15  Prefactor     .10000E-03    149.68        .30412E-06** at limit **
  16  Prefactor     .10000E-03    17.223        .20778E-06** at limit **
  17  norm          .10000E-03    1.9013        .49200E-06** at limit **
  18  Prefactor     .10000E-03    55.486        .10888E-05** at limit **
  19  Prefactor     1.9300        8.6793        .22216E-05    .16323E-03
  20  Prefactor     66.125        59.175        .55788E-06   -.25190E-04
  21  Normalizat    2.8187        .65905       -.14334E-04    .45630E-04
  22  Prefactor     .67435        .28767        .11223E-04   -.29595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.5751
  Prefactor  = 0.0001
  Prefactor  = 17.7856
  norm       = 52.2224
  Prefactor  = 0.0001
  norm       = 18.7942
  norm       = 0.0001
  norm       = 12.5228
  norm       = 9.86118
  Prefactor  = 138.315
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.93003
  Prefactor  = 66.1254
  Normalizat = 2.81869
  Prefactor  = 0.674354
 **********
 **   18 **HESSE 
 **********

 FCN=   2820.389     FROM HESSE     STATUS=OK           338 CALLS     2987 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.575        50.621        .59367E-04   -1.4357    
   2  Prefactor     .10000E-03    45.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.786        290.87        .95297E-04   -1.4864    
   4  norm          52.222        163.95        .27689E-03   -1.4261    
   5  Prefactor     .10000E-03    20.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.794        7.3582        .85515E-04   -1.4841    
   7  norm          .10000E-03    12.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.523        119.62        .11308E-03   -1.5000    
   9  norm          9.8612        5.8994        .96615E-04   -1.5080    
  10  Prefactor     138.31        251.95        .17086E-03   -1.3350    
  11  norm          .10000E-03    27.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    42.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    44.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    188.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    149.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9414        .71790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    55.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9300        8.7889        .29886E-03   -1.5430    
  20  Prefactor     66.125        59.228        .49358E-04   -1.4080    
  21  Normalizat    2.8187        .66348        .35074E-03   -.45304    
  22  Prefactor     .67435        .28889        .27495E-03   -1.0454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80455e-10
Minuit parameter uncertainties:
  1  50.6692
  2  8.53455e-06
  3  144.689
  4  165.399
  5  5.2557e-05
  6  7.35853
  7  2.23551e-05
  8  77.6129
  9  5.8998
  10  253.946
  11  8.54386e-05
  12  0.000378131
  13  0.000408334
  14  0.00177203
  15  0.000233576
  16  3.6708e-05
  17  2.44818e-05
  18  0.000293854
  19  8.23899
  20  59.2805
  21  0.665922
  22  0.289533
Done.

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

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  4.083e-04  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:  6.744e-01  2.895e-01  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:  2.819e+00  6.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 307.811 -41.357
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995650/likelihoodResults_631756801_632016001_4FGL_J2031.2-4121_daily_bin1514.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) = 2820.3893268
delta logL = -0.000107115972241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2820.38921971
delta logL = -3.09642018692e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2670       1.0000          .0000       5.0000    
     3 'Normalizat'    2.8187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67437       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.

 FCN=   2820.389     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      198 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    48.499        .90712E-02** at limit **
   2  alpha         2.2967        3.5270        .41380       -.35713E-05
   3  Normalizat    2.8187        .52527        .79307E-01   -.84087E-05
   4  Prefactor     .67436        .23031        .62148E-01    .28764E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.29668
  Normalizat = 2.81869
  Prefactor  = 0.674357
 **********
 **   18 **HESSE 
 **********

 FCN=   2820.389     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    44.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2967        3.5019        .16552       -.81419E-01
   3  Normalizat    2.8187        .63808        .35074E-03   -.45304    
   4  Prefactor     .67436        .27960        .27493E-03   -1.0454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14668e-11
Minuit parameter uncertainties:
  1  0.00025519
  2  2.49292
  3  0.640242
  4  0.280181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995650': 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) = 2820.38921966
delta logL = 2.22880771616e-08

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  2.552e-04  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  2.297e+00  2.493e+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:  6.744e-01  2.802e-01  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:  2.819e+00  6.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/995650/cmap_HighResolution_631756801_632016001_4FGL_J2031.2-4121_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-25 09:22:37.948596', job_id='995650', GAL2='0.67', fit_tolerance='1e-08', EG2='2.82', EG='2.82', time_epoch_completed='1632586957.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1514' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 09:22:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 995650: <4FGL_J2031.2-4121_daily_bin1514> in cluster <slac> Done

Job <4FGL_J2031.2-4121_daily_bin1514> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 25 09:10:36 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 09:11:25 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:11:25 2021
Terminated at Sat Sep 25 09:22:38 2021
Results reported at Sat Sep 25 09:22:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1514 307.811 -41.3574 631756801 632016001 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 :                                   458.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             240.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            722 sec.

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

