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


Performing analysis on: 4FGL_J0205.2+3212_weekly_bin717
RA = 31.3089, Dec = 32.203
tmin = 672624001, tmax = 673228801
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='367558', job_status='RUN', time_executed='2022-05-03 01:06:02.723213', time_epoch_executed='1651565162.72' WHERE source_name='4FGL J0205.2+3212' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367558

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367558/ft1_4FGL_J0205.2+3212_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367558/ft2_4FGL_J0205.2+3212_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367558/ft1_4FGL_J0205.2+3212_weekly_bin717.fits outfile=/scratch/kocevski/367558/ft1_filteredMKT_4FGL_J0205.2+3212_weekly_bin717.fits ra=31.3089 dec=32.203 rad=12.0 tmin=672624001.0 tmax=673228801.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.37
user 6.06
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/367558/ft2_4FGL_J0205.2+3212_weekly_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367558/ft2_4FGL_J0205.2+3212_weekly_bin717.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/367558/ft1_filteredMKT_4FGL_J0205.2+3212_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367558/ft1_filtered_4FGL_J0205.2+3212_weekly_bin717.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.55
user 0.38
sys 0.16

Number of photons that the gtmktime cut: 264

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367558/ft1_filtered_4FGL_J0205.2+3212_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367558/ft2_4FGL_J0205.2+3212_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367558/ltcube_672624001_673228801_4FGL_J0205.2+3212_weekly_bin717.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/367558/ft2_4FGL_J0205.2+3212_weekly_bin717.fits
.....................!
real 34.11
user 33.39
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367558/ft1_filtered_4FGL_J0205.2+3212_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367558/ft2_4FGL_J0205.2+3212_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367558/ltcube_672624001_673228801_4FGL_J0205.2+3212_weekly_bin717.fits outfile=/scratch/kocevski/367558/expmap_672624001_673228801_4FGL_J0205.2+3212_weekly_bin717.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/367558/ltcube_672624001_673228801_4FGL_J0205.2+3212_weekly_bin717.fits
.....................!
real 192.22
user 186.26
sys 5.56

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J0205.2+3212 @ 31.3089 32.203

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/367558/ft1_filtered_4FGL_J0205.2+3212_weekly_bin717.fits scfile=/scratch/kocevski/367558/ft2_4FGL_J0205.2+3212_weekly_bin717.fits outfile=/scratch/kocevski/367558/cmap_672624001_673228801_4FGL_J0205.2+3212_weekly_bin717.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=31.3089 yref=32.203 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367558/ft1_filtered_4FGL_J0205.2+3212_weekly_bin717.fits scfile=/scratch/kocevski/367558/ft2_4FGL_J0205.2+3212_weekly_bin717.fits outfile=/scratch/kocevski/367558/cmap_HighResolution_672624001_673228801_4FGL_J0205.2+3212_weekly_bin717.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=31.3089 yref=32.203 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.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367558/ft1_filtered_4FGL_J0205.2+3212_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367558/ft2_4FGL_J0205.2+3212_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367558/Model_4FGL_J0205.2+3212_weekly_bin717.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/367558/ft1_filtered_4FGL_J0205.2+3212_weekly_bin717.fits.....................!
real 39.27
user 38.01
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367558/ft1_filtered_4FGL_J0205.2+3212_weekly_bin717.fits', '/scratch/kocevski/367558/ft2_4FGL_J0205.2+3212_weekly_bin717.fits', expMap='/scratch/kocevski/367558/expmap_672624001_673228801_4FGL_J0205.2+3212_weekly_bin717.fits', expCube='/scratch/kocevski/367558/ltcube_672624001_673228801_4FGL_J0205.2+3212_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367558/Model_4FGL_J0205.2+3212_weekly_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0205.2+3212'

4FGL J0205.2+3212
   Spectrum: PowerLaw
262    Prefactor:  5.295e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.657e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  5.669e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/367558/ft1_filtered_4FGL_J0205.2+3212_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367558/ft2_4FGL_J0205.2+3212_weekly_bin717.fits
Exposure map: /scratch/kocevski/367558/expmap_672624001_673228801_4FGL_J0205.2+3212_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367558/ltcube_672624001_673228801_4FGL_J0205.2+3212_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367558/Model_4FGL_J0205.2+3212_weekly_bin717.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) = 2946.58345924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66637E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.925       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.068       1.0000         .10000E-03   10000.    
     4 'norm      '    .71582       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14823E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4387       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5930       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22606E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.279       1.0000         .10000E-03   10000.    
    14 'Prefactor '    238.78       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11235E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .21312       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .39508       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.233       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5602.7       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11933E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .66681       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0970       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2946.521     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4086 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66273E-01    1.4016        .15087E-05    .61837E-03
   2  Prefactor     20.924        12.431        .31036E-06    .42747E-03
   3  Prefactor     32.060        27.246       -.50553E-07    .63843E-04
   4  norm          .71577        .79872        .26191E-07    .54265E-04
   5  Prefactor     .10001E-03    1502.2       -.21210E-04** at limit **
   6  Prefactor     .10000E-03    193.74        .14729E-05** at limit **
   7  norm          1.4386        .99786        .96244E-08    .23253E-04
   8  Prefactor     .10000E-03    8.5241        .19915E-06** at limit **
   9  Prefactor     .10000E-03    9.2248        .18791E-06** at limit **
  10  Prefactor     6.5973        6.6200       -.12166E-06   -.82465E-04
  11  Prefactor     .10000E-03    48.316        .80004E-06** at limit **
  12  Prefactor     .10001E-03    374.24       -.44653E-05** at limit **
  13  norm          16.283        12.980        .79186E-07   -.50573E-05
  14  Prefactor     237.68        502.78        .10079E-04   -.66965E-05
  15  Prefactor     .10000E-03    17.063        .24282E-06** at limit **
  16  Prefactor     .10000E-03    26.969        .26608E-05** at limit **
  17  norm          .10000E-03    71.580        .17535E-04** at limit **
  18  Prefactor     .10000E-03    31.585        .25333E-06** at limit **
  19  norm          .21313        4.0237        .19711E-06   -.37103E-03
  20  norm          .10000E-03    244.44       -.17970E-05** at limit **
  21  norm          .39518        .46413       -.79222E-08   -.61234E-04
  22  Prefactor     13.241        18.856       -.49737E-06   -.16576E-03
  23  Prefactor     .10000E-03    197.63        .91834E-06** at limit **
  24  norm          .10000E-03    22.779        .55912E-06** at limit **
  25  Prefactor     .10000E-03    63.438       -.90291E-06** at limit **
  26  norm          .10000E-03    11.007        .18415E-06** at limit **
  27  Prefactor     5602.7        2668.6        .46786E-05   -.27394E-05
  28  Prefactor     .10000E-03    988.70        .65203E-05** at limit **
  29  Normalizat    .66723        .46451       -.10845E-04    .37084E-04
  30  Prefactor     1.0969        .23881        .29563E-05    .37648E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0662727
  Prefactor  = 20.9236
  Prefactor  = 32.0597
  norm       = 0.715769
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 1.43864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.59729
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 16.2829
  Prefactor  = 237.683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.213131
  norm       = 0.0001
  norm       = 0.395178
  Prefactor  = 13.2407
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5602.7
  Prefactor  = 0.0001
  Normalizat = 0.66723
  Prefactor  = 1.09693
 **********
 **   18 **HESSE 
 **********

 FCN=   2946.521     FROM HESSE     STATUS=OK           594 CALLS     4680 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66273E-01    4.9797        .99104E-03   -1.5657    
   2  Prefactor     20.924        12.340        .87561E-04   -1.4793    
   3  Prefactor     32.060        27.184        .70757E-04   -1.4575    
   4  norm          .71577        .79453        .49886E-04   -1.5539    
   5  Prefactor     .10001E-03    78.516        .14103       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    193.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4386        .99354        .43361E-04   -1.5468    
   8  Prefactor     .10000E-03    8.5270        .15479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2465        .16105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5973        6.6121        .12565E-03   -1.5194    
  11  Prefactor     .10000E-03    48.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    374.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.283        12.958        .99267E-04   -1.4901    
  14  Prefactor     237.68        502.89        .13100E-03   -1.2612    
  15  Prefactor     .10000E-03    17.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    77.108        .32396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .21313        4.0740        .14525E-02   -1.5616    
  20  norm          .10000E-03    244.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .39518        .45547        .39003E-04   -1.5582    
  22  Prefactor     13.241        18.716        .11011E-03   -1.4980    
  23  Prefactor     .10000E-03    197.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    22.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    63.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    11.029        .17590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5602.7        2663.9        .40294E-04    .12083    
  28  Prefactor     .10000E-03    989.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .66723        .46521        .41400E-03   -1.0520    
  30  Prefactor     1.0969        .23942        .19267E-03   -.89565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08298e-09
Minuit parameter uncertainties:
  1  1.14817
  2  12.3416
  3  27.1945
  4  0.794547
  5  0.00133554
  6  0.000311726
  7  0.993546
  8  1.03468e-05
  9  3.87762e-05
  10  6.61279
  11  3.48021e-06
  12  0.00285655
  13  12.96
  14  512.504
  15  2.33572e-06
  16  0.000161352
  17  0.000853186
  18  9.79954e-05
  19  1.86337
  20  3.80081e-05
  21  0.455471
  22  18.7243
  23  1.8063e-05
  24  7.08223e-07
  25  9.0737e-06
  26  8.06308e-06
  27  2811.86
  28  0.000177156
  29  0.467994
  30  0.239652
Done.

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

Extracting fit parameters...

4FGL J0205.2+3212
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.336e-06  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.657e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  5.669e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.097e+00  2.397e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  6.672e-01  4.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 31.309 32.203
Photon Flux Upper Limit: 2.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367558/likelihoodResults_672624001_673228801_4FGL_J0205.2+3212_weekly_bin717.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) = 2946.52127802
delta logL = -0.000278217536106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2946.52100009
delta logL = -2.87905550067e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5520       1.0000          .0000       10.000    
     3 'Normalizat'    .66725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0969       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+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=   2946.521     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      272 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.118        .18142E-02** at limit **
   2  Index         2.5712        6.2805        .50000       -.10980E-04
   3  Normalizat    .66723        .37656        .41400E-03   -.10421E-04
   4  Prefactor     1.0969        .22297        .19267E-03    .11595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.57115
  Normalizat = 0.667228
  Prefactor  = 1.09693
 **********
 **   18 **HESSE 
 **********

 FCN=   2946.521     FROM HESSE     STATUS=OK            29 CALLS      301 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.976        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5712        6.2812        .50000       -.50724    
   3  Normalizat    .66723        .37672        .16560E-04   -1.0520    
   4  Prefactor     1.0969        .22306        .38533E-04   -.89565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2649e-10
Minuit parameter uncertainties:
  1  0.000352402
  2  4.38959
  3  0.378187
  4  0.223255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367558': 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) = 2946.52100002
delta logL = -2.1618370738e-07

Extracting fit parameters...

4FGL J0205.2+3212
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.524e-04  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.571e+00  4.390e+00  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  5.669e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.097e+00  2.233e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  6.672e-01  3.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 31.309 32.203

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/367558/cmap_HighResolution_672624001_673228801_4FGL_J0205.2+3212_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-02', job_status='DONE', photon_flux_upper_limit='2.91e-07', time_completed='2022-05-03 01:16:33.871349', job_id='367558', GAL2='1.10', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1651565793.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-2.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='717' AND source_name='4FGL J0205.2+3212' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:16:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 367558: <4FGL_J0205.2+3212_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0205.2+3212_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:25 2022
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:03:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:03:21 2022
Terminated at Tue May  3 01:16:34 2022
Results reported at Tue May  3 01:16:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.2+3212_weekly_bin717 31.3089 32.203 672624001 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0205.2+3212 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   632.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             290.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            969 sec.

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

