aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 85 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 = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0631.1+2020_monthly_bin168
RA = 97.7766, Dec = 20.3406
tmin = 672451201, tmax = 675043201
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='621172', job_status='RUN', time_executed='2022-05-24 02:24:42.364258', time_epoch_executed='1653384282.36' WHERE source_name='4FGL J0631.1+2020' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621172

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621172/ft1_4FGL_J0631.1+2020_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621172/ft2_4FGL_J0631.1+2020_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621172/ft1_4FGL_J0631.1+2020_monthly_bin168.fits outfile=/scratch/kocevski/621172/ft1_filteredMKT_4FGL_J0631.1+2020_monthly_bin168.fits ra=97.7766 dec=20.3406 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.70
user 27.84
sys 0.75

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/621172/ft2_4FGL_J0631.1+2020_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621172/ft2_4FGL_J0631.1+2020_monthly_bin168.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/621172/ft1_filteredMKT_4FGL_J0631.1+2020_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/621172/ft1_filtered_4FGL_J0631.1+2020_monthly_bin168.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.89
user 0.69
sys 0.18

Number of photons that the gtmktime cut: 31435

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621172/ft1_filtered_4FGL_J0631.1+2020_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/621172/ft2_4FGL_J0631.1+2020_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/621172/ltcube_672451201_675043201_4FGL_J0631.1+2020_monthly_bin168.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/621172/ft2_4FGL_J0631.1+2020_monthly_bin168.fits
.....................!
real 133.86
user 133.07
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621172/ft1_filtered_4FGL_J0631.1+2020_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/621172/ft2_4FGL_J0631.1+2020_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/621172/ltcube_672451201_675043201_4FGL_J0631.1+2020_monthly_bin168.fits outfile=/scratch/kocevski/621172/expmap_672451201_675043201_4FGL_J0631.1+2020_monthly_bin168.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/621172/ltcube_672451201_675043201_4FGL_J0631.1+2020_monthly_bin168.fits
.....................!
real 191.76
user 186.50
sys 4.62

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 166 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0631.1+2020 @ 97.7766 20.3406

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/621172/ft1_filtered_4FGL_J0631.1+2020_monthly_bin168.fits scfile=/scratch/kocevski/621172/ft2_4FGL_J0631.1+2020_monthly_bin168.fits outfile=/scratch/kocevski/621172/cmap_672451201_675043201_4FGL_J0631.1+2020_monthly_bin168.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=97.7766 yref=20.3406 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.84
user 0.67
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621172/ft1_filtered_4FGL_J0631.1+2020_monthly_bin168.fits scfile=/scratch/kocevski/621172/ft2_4FGL_J0631.1+2020_monthly_bin168.fits outfile=/scratch/kocevski/621172/cmap_HighResolution_672451201_675043201_4FGL_J0631.1+2020_monthly_bin168.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=97.7766 yref=20.3406 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.86
user 0.67
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621172/ft1_filtered_4FGL_J0631.1+2020_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/621172/ft2_4FGL_J0631.1+2020_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621172/Model_4FGL_J0631.1+2020_monthly_bin168.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/scratch/kocevski/621172/ft1_filtered_4FGL_J0631.1+2020_monthly_bin168.fits.....................!
real 6547.12
user 6522.65
sys 5.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/621172/ft1_filtered_4FGL_J0631.1+2020_monthly_bin168.fits', '/scratch/kocevski/621172/ft2_4FGL_J0631.1+2020_monthly_bin168.fits', expMap='/scratch/kocevski/621172/expmap_672451201_675043201_4FGL_J0631.1+2020_monthly_bin168.fits', expCube='/scratch/kocevski/621172/ltcube_672451201_675043201_4FGL_J0631.1+2020_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/621172/Model_4FGL_J0631.1+2020_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0631.1+2020'

4FGL J0631.1+2020
   Spectrum: PowerLaw
307    Prefactor:  3.578e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.429e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.500e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/621172/ft1_filtered_4FGL_J0631.1+2020_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/621172/ft2_4FGL_J0631.1+2020_monthly_bin168.fits
Exposure map: /scratch/kocevski/621172/expmap_672451201_675043201_4FGL_J0631.1+2020_monthly_bin168.fits
Exposure cube: /scratch/kocevski/621172/ltcube_672451201_675043201_4FGL_J0631.1+2020_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/621172/Model_4FGL_J0631.1+2020_monthly_bin168.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) = 295150.173963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22769E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1912       1.0000         .10000E-03   10000.    
     6 'norm      '    .61950       1.0000         .10000E-03   10000.    
     7 'norm      '    5.6293       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2732       1.0000         .10000E-03   10000.    
     9 'norm      '    9.2963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6476       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2467       1.0000         .10000E-03   10000.    
    13 'Normalizat'    1.2623       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .97772       1.0000          .0000       10.000    
    15 'norm      '    2.5185       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   295149.3     FROM MIGRAD    STATUS=CONVERGED    293 CALLS     1211 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .30800       -.25993E-09** at limit **
   2  Prefactor     .10000E-03    31.510       -.17069E-06** at limit **
   3  Prefactor     .10000E-03    20.274        .35874E-06** at limit **
   4  Prefactor     4.5112        7.4312       -.59226E-06   -.11734E-04
   5  Prefactor     1.1916        3.8295       -.18425E-05   -.22726E-03
   6  norm          .62547        .85335       -.30095E-07   -.62979E-03
   7  norm          5.6285        2.8270       -.20478E-06   -.62863E-04
   8  Prefactor     4.2733        2.8912        .28611E-06   -.83986E-03
   9  norm          9.2965        2.5160       -.44493E-06   -.72896E-04
  10  Prefactor     .10000E-03    4.0674        .52071E-07** at limit **
  11  Prefactor     5.6478        1.5961        .12075E-06   -.23209E-02
  12  norm          3.2471        2.3261        .66635E-06   -.11499E-03
  13  Normalizat    1.2622        .73157E-01   -.21855E-07    .12813E-03
  14  Prefactor     .97771        .12078E-01    .60621E-07    .59220E-03
  15  norm          2.5186        .17724        .42534E-08    .66726E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51122
  Prefactor  = 1.19164
  norm       = 0.625466
  norm       = 5.62851
  Prefactor  = 4.27331
  norm       = 9.29648
  Prefactor  = 0.0001
  Prefactor  = 5.64784
  norm       = 3.24707
  Normalizat = 1.26223
  Prefactor  = 0.977711
  norm       = 2.51856
 **********
 **   18 **HESSE 
 **********

 FCN=   295149.3     FROM HESSE     STATUS=OK           190 CALLS     1401 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9393        .57425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.580        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5112        7.4257        .18955E-03   -1.5283    
   5  Prefactor     1.1916        4.0757        .41726E-03   -1.5490    
   6  norm          .62547        2.3533        .58571E-02   -1.5550    
   7  norm          5.6285        2.8104        .16931E-03   -1.5233    
   8  Prefactor     4.2733        3.1792        .97451E-03   -1.5294    
   9  norm          9.2965        2.5216        .13144E-03   -1.5098    
  10  Prefactor     .10000E-03    4.1143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6478        2.1597        .84517E-03   -1.5233    
  12  norm          3.2471        2.3226        .22478E-03   -1.5348    
  13  Normalizat    1.2622        .75299E-01    .85946E-03   -.84701    
  14  Prefactor     .97771        .12448E-01    .15840E-03   -.93476    
  15  norm          2.5186        .17663        .58058E-04   -1.5391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04044e-06
Minuit parameter uncertainties:
  1  2.35964e-05
  2  1.95204e-05
  3  2.45813e-06
  4  7.4272
  5  4.07663
  6  2.35369
  7  2.81044
  8  3.17934
  9  2.52166
  10  3.79481e-06
  11  2.15974
  12  2.32264
  13  0.0753056
  14  0.0124482
  15  0.176631
Done.

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

Extracting fit parameters...

4FGL J0631.1+2020
   Spectrum: PowerLaw
307    Prefactor:  1.192e+00  4.077e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.429e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.500e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  9.777e-01  1.245e-02  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.262e+00  7.531e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 97.777 20.341
Photon Flux Upper Limit: 5.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621172/likelihoodResults_672451201_675043201_4FGL_J0631.1+2020_monthly_bin168.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): 102
logL (Free Index) = 295148.175472
delta logL = 1.08511462685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 295148.166099
delta logL = 1.09448770114

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60018       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7660       1.0000          .0000       10.000    
     3 'Normalizat'    1.2395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97829       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   295148.2     FROM MIGRAD    STATUS=FAILED       103 CALLS      301 TOTAL
                     EDM=   .41E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60161        11.742        .20350E-02    .18982    
   2  Index         3.7650        3.3210        .11039E-01    .87782E-02
   3  Normalizat    1.2395        .48610E-01    .86503E-03   -.32804E-04
   4  Prefactor     .97829        .81363E-02    .15829E-03   -.11951E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   295148.2     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      389 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60161        11.742        .70056E-04    .18982    
   2  Index         3.7650        3.3210        .66264E-03    .87782E-02
   3  Normalizat    1.2395        .48610E-01    .33385E-04   -.32804E-04
   4  Prefactor     .97829        .81363E-02    .61881E-05   -.11951E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   295148.2     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      461 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60161        1.9681        .81400E-04   -.23240E-03
   2  Index         3.7650        1.3411        .44154E-03   -.19774E-04
   3  Normalizat    1.2395        .74354E-01    .69202E-05   -.42056E-04
   4  Prefactor     .97829        .12158E-01    .12663E-05   -.22983E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.601606
  Index      = 3.76503
  Normalizat = 1.23953
  Prefactor  = 0.978288
 **********
 **   18 **HESSE 
 **********

 FCN=   295148.2     FROM HESSE     STATUS=OK            23 CALLS      484 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60161        1.4324        .32560E-05   -1.5553    
   2  Index         3.7650        .98210        .17662E-04   -.24958    
   3  Normalizat    1.2395        .74209E-01    .13840E-05   -.85390    
   4  Prefactor     .97829        .12105E-01    .25326E-06   -.93457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42208e-12
Minuit parameter uncertainties:
  1  1.43249
  2  0.988957
  3  0.0742154
  4  0.0121055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621172': 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) = 295148.166098
delta logL = 1.09448830708

Extracting fit parameters...

4FGL J0631.1+2020
   Spectrum: PowerLaw
307    Prefactor:  6.016e-01  1.432e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  3.765e+00  9.890e-01  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.500e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  9.783e-01  1.211e-02  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.240e+00  7.422e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 97.777 20.341
Photon Index (Free Index): 3.77 +/- 0.99
Photon Flux (Free Index): 5.85e-08 +/- 3.96e-08
Energy Flux (Free Index): 9.15e-06 +/- 6.37e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -4.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  4.440e+00 [aplpy.core]
Saving /scratch/kocevski/621172/cmap_HighResolution_672451201_675043201_4FGL_J0631.1+2020_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', comment='SUCCESS', energy_flux2='9.15e-06', dlogl='1.09e+00', photon_flux2='5.85e-08', job_status='DONE', time_completed='2022-05-24 07:00:08.288349', photon_index_error2='0.99', photon_index2='3.77', ts='0.09', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='5.01e-08', energy_flux_error2='6.37e-06', EG='1.26', time_epoch_completed='1653400808.29', return_code='0', job_id='621172', GAL2='0.98', EG2='1.24', return_code2='0', photon_flux_error2='3.96e-08', ts2='2.46', photon_index='2.43' WHERE bin_id='168' AND source_name='4FGL J0631.1+2020' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 07:00:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 621172: <4FGL_J0631.1+2020_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0631.1+2020_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 02:20:40 2022
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:23:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:23:07 2022
Terminated at Tue May 24 07:00:10 2022
Results reported at Tue May 24 07:00:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0631.1+2020_monthly_bin168 97.7766 20.3406 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0631.1+2020 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   16484.00 sec.
    Max Memory :                                 774 MB
    Average Memory :                             698.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   16622 sec.
    Turnaround time :                            16770 sec.

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

