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 200 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0631.1+2020_weekly_bin753
RA = 97.7766, Dec = 20.3406
tmin = 694396801, tmax = 695001601
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='222187', job_status='RUN', time_executed='2023-01-10 02:25:19.833352', time_epoch_executed='1673346319.83' WHERE source_name='4FGL J0631.1+2020' and cadence='weekly' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222187

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222187/ft1_4FGL_J0631.1+2020_weekly_bin753.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222187/ft2_4FGL_J0631.1+2020_weekly_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222187/ft1_4FGL_J0631.1+2020_weekly_bin753.fits outfile=/scratch/kocevski/222187/ft1_filteredMKT_4FGL_J0631.1+2020_weekly_bin753.fits ra=97.7766 dec=20.3406 rad=12.0 tmin=694396801.0 tmax=695001601.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 6.28
user 5.84
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222187/ft2_4FGL_J0631.1+2020_weekly_bin753.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/222187/ft1_filteredMKT_4FGL_J0631.1+2020_weekly_bin753.fits evtable="EVENTS" outfile="/scratch/kocevski/222187/ft1_filtered_4FGL_J0631.1+2020_weekly_bin753.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.59
user 0.40
sys 0.15

Number of photons that the gtmktime cut: 371

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222187/ft1_filtered_4FGL_J0631.1+2020_weekly_bin753.fits" evtable="EVENTS" scfile=/scratch/kocevski/222187/ft2_4FGL_J0631.1+2020_weekly_bin753.fits sctable="SC_DATA" outfile=/scratch/kocevski/222187/ltcube_694396801_695001601_4FGL_J0631.1+2020_weekly_bin753.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/222187/ft2_4FGL_J0631.1+2020_weekly_bin753.fits
.....................!
real 33.59
user 32.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222187/ft1_filtered_4FGL_J0631.1+2020_weekly_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/222187/ft2_4FGL_J0631.1+2020_weekly_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/222187/ltcube_694396801_695001601_4FGL_J0631.1+2020_weekly_bin753.fits outfile=/scratch/kocevski/222187/expmap_694396801_695001601_4FGL_J0631.1+2020_weekly_bin753.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/222187/ltcube_694396801_695001601_4FGL_J0631.1+2020_weekly_bin753.fits
.....................!
real 192.34
user 186.09
sys 5.79

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_8years/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_8years/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/222187/ft1_filtered_4FGL_J0631.1+2020_weekly_bin753.fits scfile=/scratch/kocevski/222187/ft2_4FGL_J0631.1+2020_weekly_bin753.fits outfile=/scratch/kocevski/222187/cmap_694396801_695001601_4FGL_J0631.1+2020_weekly_bin753.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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222187/ft1_filtered_4FGL_J0631.1+2020_weekly_bin753.fits scfile=/scratch/kocevski/222187/ft2_4FGL_J0631.1+2020_weekly_bin753.fits outfile=/scratch/kocevski/222187/cmap_HighResolution_694396801_695001601_4FGL_J0631.1+2020_weekly_bin753.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.59
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222187/ft1_filtered_4FGL_J0631.1+2020_weekly_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/222187/ft2_4FGL_J0631.1+2020_weekly_bin753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222187/Model_4FGL_J0631.1+2020_weekly_bin753.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/222187/ft1_filtered_4FGL_J0631.1+2020_weekly_bin753.fits.....................!
real 108.10
user 106.58
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222187/ft1_filtered_4FGL_J0631.1+2020_weekly_bin753.fits', '/scratch/kocevski/222187/ft2_4FGL_J0631.1+2020_weekly_bin753.fits', expMap='/scratch/kocevski/222187/expmap_694396801_695001601_4FGL_J0631.1+2020_weekly_bin753.fits', expCube='/scratch/kocevski/222187/ltcube_694396801_695001601_4FGL_J0631.1+2020_weekly_bin753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222187/Model_4FGL_J0631.1+2020_weekly_bin753.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  0.000e+00  1.000e+06 ( 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/222187/ft1_filtered_4FGL_J0631.1+2020_weekly_bin753.fits
Spacecraft file(s): /scratch/kocevski/222187/ft2_4FGL_J0631.1+2020_weekly_bin753.fits
Exposure map: /scratch/kocevski/222187/expmap_694396801_695001601_4FGL_J0631.1+2020_weekly_bin753.fits
Exposure cube: /scratch/kocevski/222187/ltcube_694396801_695001601_4FGL_J0631.1+2020_weekly_bin753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222187/Model_4FGL_J0631.1+2020_weekly_bin753.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) = 4024.97879494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.782       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38266E-05   1.0000          .0000       .10000E+07
     3 'norm      '    55.789       1.0000          .0000       .10000E+07
     4 'Prefactor '    .71504E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .76605E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    .15272E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
     8 'norm      '    .15710E-07   1.0000          .0000       .10000E+07
     9 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    10 'Prefactor '    1.0065       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4024.973     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      626 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.758        2.2021        .13533E-07   -.17118    
   2  Prefactor     .83993E-05    101.94       -.59852E-05** at limit **
   3  norm          55.757        1.0823       -.13366E-07    .73525E-02
   4  Prefactor     .34517E-06    156.09       -.41626E-05** at limit **
   5  norm          .55511E-10    45.857        .25850E-05** at limit **
   6  Prefactor     .30036E-03    115.83       -.61153E-05** at limit **
   7  Prefactor     .11657E-08    87.034        .39165E-05** at limit **
   8  norm          .33651E-03    100.91       -.62343E-05** at limit **
   9  Normalizat    .10000E-01    .21533        .10749E-03** at limit **
  10  Prefactor     1.0065        .68404E-01    .18256E-05    .41211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.7579
  Prefactor  = 8.39928e-06
  norm       = 55.7568
  Prefactor  = 3.45168e-07
  norm       = 5.55112e-11
  Prefactor  = 0.00030036
  Prefactor  = 1.16573e-09
  norm       = 0.000336505
  Normalizat = 0.01
  Prefactor  = 1.0065
 **********
 **   18 **HESSE 
 **********

 FCN=   4024.973     FROM HESSE     STATUS=OK           114 CALLS      740 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.758        32.784        .14034E-03   -1.5565    
   2  Prefactor     .83993E-05    327.48        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          55.757        119.21        .13389E-03   -1.5559    
   4  Prefactor     .34517E-06    157.08        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    45.900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .30036E-03    332.20        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11657E-08    87.115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .33651E-03    294.47        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Normalizat    .10000E-01    .20786        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0065        .75185E-01    .31871E-01   -.92513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70195e-06
Minuit parameter uncertainties:
  1  32.784
  2  0.104898
  3  119.214
  4  0.0147269
  5  9.2595e-05
  6  0.631793
  7  0.00063568
  8  0.629602
  9  3.85493e-07
  10  0.0751929
Done.

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

Extracting fit parameters...

4FGL J0631.1+2020
   Spectrum: PowerLaw
307    Prefactor:  8.399e-06  1.049e-01  0.000e+00  1.000e+06 ( 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:  1.006e+00  7.519e-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.000e-02  3.855e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 97.777 20.341
Photon Flux Upper Limit: 1.04e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222187/likelihoodResults_694396801_695001601_4FGL_J0631.1+2020_weekly_bin753.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) = 4024.97457916
delta logL = -0.00154709338494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4024.69377589
delta logL = 0.279256178525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3246       1.0000          .0000       .10000E+07
     2 'Index     '    4.1272       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99928       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.

 FCN=   4024.694     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      257 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3362        121.82        .67244E-03    .34801E-02
   2  Index         4.1258        4.1153        .10327        .10784E-03
   3  Normalizat    .10000E-01    .45301E-01    .32094    ** at limit **
   4  Prefactor     .99920        .33744E-01    .31895E-01   -.30828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33615
  Index      = 4.1258
  Normalizat = 0.01
  Prefactor  = 0.9992
 **********
 **   18 **HESSE 
 **********

 FCN=   4024.694     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3362        296.89        .13833E-04   -1.5677    
   2  Index         4.1258        6.6885        .62022E-02   -.17574    
   3  Normalizat    .10000E-01    .18889        .16885E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .99920        .67160E-01    .14096E-03   -.92756    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.54312e-07
Minuit parameter uncertainties:
  1  52.6745
  2  9.59702
  3  6.15248e-07
  4  0.0671659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222187': 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): 102
logL (Free Index) = 4024.69377434
delta logL = 0.279257723766

Extracting fit parameters...

4FGL J0631.1+2020
   Spectrum: PowerLaw
307    Prefactor:  2.336e+00  5.267e+01  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  4.126e+00  9.597e+00  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.992e-01  6.717e-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.000e-02  6.152e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 97.777 20.341

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/222187/cmap_HighResolution_694396801_695001601_4FGL_J0631.1+2020_weekly_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-02', job_status='DONE', photon_flux_upper_limit='1.04e-06', time_completed='2023-01-10 02:33:54.217239', job_id='222187', GAL2='1.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1673346834.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.79e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='753' AND source_name='4FGL J0631.1+2020' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 10 02:33:54 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 222187: <4FGL_J0631.1+2020_weekly_bin753> in cluster <slac> Done

Job <4FGL_J0631.1+2020_weekly_bin753> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 10 02:20:26 2023
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 02:21:49 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 02:21:49 2023
Terminated at Tue Jan 10 02:33:54 2023
Results reported at Tue Jan 10 02:33:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0631.1+2020_weekly_bin753 97.7766 20.3406 694396801 695001601 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 :                                   515.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             256.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            808 sec.

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

