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


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1535
RA = 307.811, Dec = -41.3574
tmin = 637200001, tmax = 637459201
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='995680', job_status='RUN', time_executed='2021-09-25 09:14:35.532256', time_epoch_executed='1632586475.53' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995680

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995680/ft1_4FGL_J2031.2-4121_daily_bin1535.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995680/ft2_4FGL_J2031.2-4121_daily_bin1535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995680/ft1_4FGL_J2031.2-4121_daily_bin1535.fits outfile=/scratch/kocevski/995680/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1535.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=637200001.0 tmax=637459201.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 5.51
user 5.15
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/995680/ft2_4FGL_J2031.2-4121_daily_bin1535.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/995680/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1535.fits evtable="EVENTS" outfile="/scratch/kocevski/995680/ft1_filtered_4FGL_J2031.2-4121_daily_bin1535.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/995680/ft1_filtered_4FGL_J2031.2-4121_daily_bin1535.fits" evtable="EVENTS" scfile=/scratch/kocevski/995680/ft2_4FGL_J2031.2-4121_daily_bin1535.fits sctable="SC_DATA" outfile=/scratch/kocevski/995680/ltcube_637200001_637459201_4FGL_J2031.2-4121_daily_bin1535.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/995680/ft2_4FGL_J2031.2-4121_daily_bin1535.fits
.....................!
real 14.56
user 13.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995680/ft1_filtered_4FGL_J2031.2-4121_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/995680/ft2_4FGL_J2031.2-4121_daily_bin1535.fits sctable="SC_DATA" expcube=/scratch/kocevski/995680/ltcube_637200001_637459201_4FGL_J2031.2-4121_daily_bin1535.fits outfile=/scratch/kocevski/995680/expmap_637200001_637459201_4FGL_J2031.2-4121_daily_bin1535.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/995680/ltcube_637200001_637459201_4FGL_J2031.2-4121_daily_bin1535.fits
.....................!
real 194.93
user 187.43
sys 5.42

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/995680/ft1_filtered_4FGL_J2031.2-4121_daily_bin1535.fits scfile=/scratch/kocevski/995680/ft2_4FGL_J2031.2-4121_daily_bin1535.fits outfile=/scratch/kocevski/995680/cmap_637200001_637459201_4FGL_J2031.2-4121_daily_bin1535.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 1.18
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995680/ft1_filtered_4FGL_J2031.2-4121_daily_bin1535.fits scfile=/scratch/kocevski/995680/ft2_4FGL_J2031.2-4121_daily_bin1535.fits outfile=/scratch/kocevski/995680/cmap_HighResolution_637200001_637459201_4FGL_J2031.2-4121_daily_bin1535.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.61
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/995680/ft1_filtered_4FGL_J2031.2-4121_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/995680/ft2_4FGL_J2031.2-4121_daily_bin1535.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995680/Model_4FGL_J2031.2-4121_daily_bin1535.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/995680/ft1_filtered_4FGL_J2031.2-4121_daily_bin1535.fits.....................!
real 65.81
user 64.13
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8573       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5033       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.946       1.0000         .10000E-03   10000.    
     4 'norm      '    15.174       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9474       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1422       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.345       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0173       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.2264       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1536       1.0000         .10000E-03   10000.    
    13 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.341       1.0000         .10000E-03   10000.    
    15 'Prefactor '    71.566       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9486       1.0000         .10000E-03   10000.    
    17 'norm      '    10.837       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.784       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .45038       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2642       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=   7604.796     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2353 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8558        3.9532        .17895E-05   -.19984E-02
   2  Prefactor     1.4562        51.806       -.11396E-04   -.31938E-04
   3  Prefactor     33.947        14.986       -.20380E-06    .49285E-04
   4  norm          15.172        17.716       -.72636E-06   -.94766E-05
   5  Prefactor     6.9471        6.9679        .31448E-06   -.87597E-03
   6  norm          1.1423        .96054       -.12149E-07    .13670E-03
   7  norm          .10000E-03    3.4416       -.13302E-06** at limit **
   8  norm          11.353        25.217        .90378E-05    .10330E-03
   9  norm          1.0174        .92546        .42399E-07    .58431E-04
  10  Prefactor     .10000E-03    13.300       -.12312E-04** at limit **
  11  norm          6.2266        4.6441       -.14022E-05   -.15831E-03
  12  norm          3.1547        11.916        .29810E-06   -.14203E-05
  13  norm          .10000E-03    8.1091       -.90752E-06** at limit **
  14  Prefactor     24.346        29.776        .43536E-05    .76223E-04
  15  Prefactor     71.576        77.959        .89035E-05    .58037E-04
  16  Prefactor     5.9476        14.829        .44731E-06   -.18930E-03
  17  norm          10.838        2.8698        .47745E-07    .10195E-03
  18  Prefactor     .10000E-03    10.369        .42876E-05** at limit **
  19  Prefactor     11.785        7.6739        .19305E-06    .71671E-05
  20  Prefactor     .10000E-03    15.110        .98107E-05** at limit **
  21  Normalizat    .44978        .33383       -.71073E-05   -.64139E-04
  22  Prefactor     1.2644        .13950        .80011E-06    .11073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85579
  Prefactor  = 1.45616
  Prefactor  = 33.9473
  norm       = 15.1717
  Prefactor  = 6.94714
  norm       = 1.14231
  norm       = 0.0001
  norm       = 11.3534
  norm       = 1.01736
  Prefactor  = 0.000100001
  norm       = 6.2266
  norm       = 3.15466
  norm       = 0.0001
  Prefactor  = 24.346
  Prefactor  = 71.576
  Prefactor  = 5.94763
  norm       = 10.8384
  Prefactor  = 0.0001
  Prefactor  = 11.7853
  Prefactor  = 0.000100001
  Normalizat = 0.449784
  Prefactor  = 1.26443
 **********
 **   18 **HESSE 
 **********

 FCN=   7604.796     FROM HESSE     STATUS=OK           352 CALLS     2705 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8558        9.1677        .15291E-02   -1.5436    
   2  Prefactor     1.4562        52.556        .34914E-03   -1.5467    
   3  Prefactor     33.947        14.961        .68779E-04   -1.4542    
   4  norm          15.172        17.721        .10282E-03   -1.4929    
   5  Prefactor     6.9471        7.1339        .76104E-03   -1.5181    
   6  norm          1.1423        .96376        .74880E-04   -1.5494    
   7  norm          .10000E-03    3.4528        .15796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.353        25.020        .11894E-03   -1.5034    
   9  norm          1.0174        .97977        .77875E-03   -1.5506    
  10  Prefactor     .10000E-03    13.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.2266        4.6298        .15158E-03   -1.5209    
  12  norm          3.1547        11.885        .22825E-03   -1.5353    
  13  norm          .10000E-03    8.1154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.346        29.763        .81192E-04   -1.4721    
  15  Prefactor     71.576        77.937        .47454E-04   -1.4014    
  16  Prefactor     5.9476        14.889        .82320E-03   -1.5220    
  17  norm          10.838        2.8506        .71922E-04   -1.5049    
  18  Prefactor     .10000E-03    10.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.785        7.6616        .11670E-03   -1.5021    
  20  Prefactor     .10000E-03    15.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .44978        .31192        .59462E-03   -1.1480    
  22  Prefactor     1.2644        .13569        .16226E-03   -.84371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58558e-08
Minuit parameter uncertainties:
  1  8.25124
  2  17.5123
  3  14.9623
  4  17.7268
  5  7.13479
  6  0.96377
  7  1.28444e-05
  8  25.0434
  9  0.97979
  10  0.000193921
  11  4.63006
  12  11.8943
  13  3.23787e-05
  14  29.7808
  15  78.0484
  16  14.8982
  17  2.85068
  18  6.79685e-05
  19  7.66228
  20  0.00017565
  21  0.313136
  22  0.135727
Done.

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

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  3.238e-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:  1.264e+00  1.357e-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:  4.498e-01  3.131e-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: 3.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995680/likelihoodResults_637200001_637459201_4FGL_J2031.2-4121_daily_bin1535.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) = 7604.79701715
delta logL = -0.000582555956498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7604.79643458
delta logL = 9.42691258388e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2743       1.0000          .0000       5.0000    
     3 'Normalizat'    .44978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2644       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=   7604.796     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      234 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    395.95        .18142E-01** at limit **
   2  alpha         1.7507        2.8873        .16546       -.41225E-09
   3  Normalizat    .44979        .45529E-01    .59462E-03    .11624E-04
   4  Prefactor     1.2644        .20209E-01    .16226E-03    .43931E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.75074
  Normalizat = 0.449788
  Prefactor  = 1.26443
 **********
 **   18 **HESSE 
 **********

 FCN=   7604.796     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .76E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.7588        .25162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7507        2.6488        .66185E-02   -.30438    
   3  Normalizat    .44979        .29536        .23785E-04   -1.1480    
   4  Prefactor     1.2644        .13151        .64903E-05   -.84371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58547e-13
Minuit parameter uncertainties:
  1  1.78529e-06
  2  569.172
  3  0.296394
  4  0.131548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995680': 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) = 7604.79643416
delta logL = 4.37450580648e-07

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  1.785e-06  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  1.751e+00  5.692e+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:  1.264e+00  1.315e-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:  4.498e-01  2.964e-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/995680/cmap_HighResolution_637200001_637459201_4FGL_J2031.2-4121_daily_bin1535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', job_status='DONE', photon_flux_upper_limit='3.33e-08', time_completed='2021-09-25 09:26:45.913373', job_id='995680', GAL2='1.26', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1632587205.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='4.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1535' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 09:26:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 995680: <4FGL_J2031.2-4121_daily_bin1535> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1535 307.811 -41.3574 637200001 637459201 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 :                                   701.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            968 sec.

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

