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


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1559
RA = 307.811, Dec = -41.3574
tmin = 643420801, tmax = 643680001
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='995714', job_status='RUN', time_executed='2021-09-25 09:13:30.196100', time_epoch_executed='1632586410.2' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995714

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995714/ft1_4FGL_J2031.2-4121_daily_bin1559.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995714/ft2_4FGL_J2031.2-4121_daily_bin1559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995714/ft1_4FGL_J2031.2-4121_daily_bin1559.fits outfile=/scratch/kocevski/995714/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1559.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=643420801.0 tmax=643680001.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.48
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995714/ft1_filtered_4FGL_J2031.2-4121_daily_bin1559.fits" evtable="EVENTS" scfile=/scratch/kocevski/995714/ft2_4FGL_J2031.2-4121_daily_bin1559.fits sctable="SC_DATA" outfile=/scratch/kocevski/995714/ltcube_643420801_643680001_4FGL_J2031.2-4121_daily_bin1559.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/995714/ft2_4FGL_J2031.2-4121_daily_bin1559.fits
.....................!
real 13.99
user 13.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995714/ft1_filtered_4FGL_J2031.2-4121_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/995714/ft2_4FGL_J2031.2-4121_daily_bin1559.fits sctable="SC_DATA" expcube=/scratch/kocevski/995714/ltcube_643420801_643680001_4FGL_J2031.2-4121_daily_bin1559.fits outfile=/scratch/kocevski/995714/expmap_643420801_643680001_4FGL_J2031.2-4121_daily_bin1559.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/995714/ltcube_643420801_643680001_4FGL_J2031.2-4121_daily_bin1559.fits
.....................!
real 192.65
user 187.17
sys 4.85

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/995714/ft1_filtered_4FGL_J2031.2-4121_daily_bin1559.fits scfile=/scratch/kocevski/995714/ft2_4FGL_J2031.2-4121_daily_bin1559.fits outfile=/scratch/kocevski/995714/cmap_643420801_643680001_4FGL_J2031.2-4121_daily_bin1559.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995714/ft1_filtered_4FGL_J2031.2-4121_daily_bin1559.fits scfile=/scratch/kocevski/995714/ft2_4FGL_J2031.2-4121_daily_bin1559.fits outfile=/scratch/kocevski/995714/cmap_HighResolution_643420801_643680001_4FGL_J2031.2-4121_daily_bin1559.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.60
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/995714/ft1_filtered_4FGL_J2031.2-4121_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/995714/ft2_4FGL_J2031.2-4121_daily_bin1559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995714/Model_4FGL_J2031.2-4121_daily_bin1559.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/995714/ft1_filtered_4FGL_J2031.2-4121_daily_bin1559.fits.....................!
real 78.31
user 76.77
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.563       1.0000         .10000E-03   10000.    
     4 'norm      '    16.956       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23460E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    3.2902       1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5589       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.186       1.0000         .10000E-03   10000.    
    11 'norm      '    .10598E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.0470       1.0000         .10000E-03   10000.    
    13 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.433       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.9986       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.110       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8326       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1026       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94974       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=   9788.269     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2352 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4279       -.32758E-06** at limit **
   2  Prefactor     .10000E-03    5.0171       -.84479E-05** at limit **
   3  Prefactor     11.562        11.515       -.69450E-06   -.76375E-04
   4  norm          16.955        20.292       -.74524E-06   -.11510E-04
   5  Prefactor     .10005E-03    3.3367        .67514E-06** at limit **
   6  norm          3.2902        1.0505       -.43048E-07   -.14255E-03
   7  norm          .10000E-03    5.6189        .32435E-05** at limit **
   8  norm          .10000E-03    12.225       -.25171E-06** at limit **
   9  norm          1.5588        1.3453       -.16625E-06   -.44657E-03
  10  Prefactor     42.180        38.077       -.75790E-05   -.32482E-06
  11  norm          .10000E-03    1.3954       -.15203E-06** at limit **
  12  norm          6.0471        10.116       -.75765E-06   -.13228E-03
  13  norm          .10000E-03    7.6198       -.38963E-05** at limit **
  14  Prefactor     18.427        23.496       -.68228E-05    .31499E-04
  15  Prefactor     .10000E-03    42.625        .66063E-06** at limit **
  16  Prefactor     .10000E-03    4.4296        .34002E-05** at limit **
  17  norm          7.9979        2.2183       -.13914E-06   -.38242E-04
  18  Prefactor     23.095        23.085       -.13921E-04    .45963E-05
  19  Prefactor     2.8316        5.8849       -.12097E-05   -.56420E-03
  20  Prefactor     .10000E-03    5.8008        .52278E-05** at limit **
  21  Normalizat    1.1027        .20341        .31537E-05   -.14466E-03
  22  Prefactor     .94973        .88659E-01    .47098E-06   -.12452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5622
  norm       = 16.9552
  Prefactor  = 0.000100051
  norm       = 3.29016
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.55877
  Prefactor  = 42.1799
  norm       = 0.0001
  norm       = 6.04709
  norm       = 0.0001
  Prefactor  = 18.4265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.99788
  Prefactor  = 23.0945
  Prefactor  = 2.83162
  Prefactor  = 0.0001
  Normalizat = 1.10274
  Prefactor  = 0.949735
 **********
 **   18 **HESSE 
 **********

 FCN=   9788.269     FROM HESSE     STATUS=OK           344 CALLS     2696 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4510        .17888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.562        11.524        .11781E-03   -1.5028    
   4  norm          16.955        20.318        .97265E-04   -1.4884    
   5  Prefactor     .10005E-03    15.363        .34748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.2902        1.0510        .22322E-04   -1.5345    
   7  norm          .10000E-03    5.6981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5588        1.3351        .10349E-03   -1.5458    
  10  Prefactor     42.180        38.079        .61720E-04   -1.4408    
  11  norm          .10000E-03    2.8474        .22685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.0471        10.116        .16328E-03   -1.5216    
  13  norm          .10000E-03    7.6104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.427        23.466        .93287E-04   -1.4849    
  15  Prefactor     .10000E-03    42.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.4293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.9979        2.2229        .73827E-04   -1.5142    
  18  Prefactor     23.095        23.104        .83324E-04   -1.4746    
  19  Prefactor     2.8316        5.9157        .24163E-03   -1.5371    
  20  Prefactor     .10000E-03    5.8013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1027        .23742        .36002E-03   -.89664    
  22  Prefactor     .94973        .10451        .17088E-03   -.94424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70576e-09
Minuit parameter uncertainties:
  1  8.62401e-06
  2  1.38446e-06
  3  11.5262
  4  20.3262
  5  0.00177632
  6  1.051
  7  2.97008e-05
  8  3.86154e-05
  9  1.3351
  10  38.1012
  11  1.47245e-05
  12  10.1185
  13  4.42644e-05
  14  23.4777
  15  1.21646e-05
  16  2.94933e-06
  17  2.22294
  18  23.1131
  19  5.91687
  20  3.03e-06
  21  0.237648
  22  0.10453
Done.

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

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  4.426e-05  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.497e-01  1.045e-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:  1.103e+00  2.376e-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: 2.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995714/likelihoodResults_643420801_643680001_4FGL_J2031.2-4121_daily_bin1559.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) = 9788.26940255
delta logL = -0.000625717531875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9788.26877683
delta logL = 1.69893610291e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2784       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94974       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=   9788.269     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    113.84        .18142E-02** at limit **
   2  alpha         2.0628        3.7711        .16543       -.45356E-08
   3  Normalizat    1.1027        .22775        .36002E-03    .94102E-05
   4  Prefactor     .94973        .10188        .17088E-03    .22088E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.06281
  Normalizat = 1.10274
  Prefactor  = 0.949734
 **********
 **   18 **HESSE 
 **********

 FCN=   9788.269     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0628        2.8423        .66172E-02   -.17578    
   3  Normalizat    1.1027        .22795        .14401E-04   -.89664    
   4  Prefactor     .94973        .10197        .68353E-05   -.94424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17786e-12
Minuit parameter uncertainties:
  1  1.32129e-05
  2  578.394
  3  0.228152
  4  0.101991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995714': 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) = 9788.26877675
delta logL = 7.33525666874e-08

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  1.321e-05  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  2.063e+00  5.784e+02  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.497e-01  1.020e-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:  1.103e+00  2.282e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/995714/cmap_HighResolution_643420801_643680001_4FGL_J2031.2-4121_daily_bin1559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-05', job_status='DONE', photon_flux_upper_limit='2.76e-08', time_completed='2021-09-25 09:27:08.969432', job_id='995714', GAL2='0.95', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632587228.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='7.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1559' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 09:27:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 995714: <4FGL_J2031.2-4121_daily_bin1559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1559 307.811 -41.3574 643420801 643680001 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 :                                   814.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            989 sec.

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

