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 15 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_J0224.2+0700_weekly_bin717
RA = 36.0577, Dec = 7.0126
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='367592', job_status='RUN', time_executed='2022-05-03 01:04:29.409770', time_epoch_executed='1651565069.41' WHERE source_name='4FGL J0224.2+0700' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367592

Creating custom pfile directory:
/scratch/kocevski/367592/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/367592/ft1_4FGL_J0224.2+0700_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/367592/ft2_4FGL_J0224.2+0700_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367592/ft1_4FGL_J0224.2+0700_weekly_bin717.fits outfile=/scratch/kocevski/367592/ft1_filteredMKT_4FGL_J0224.2+0700_weekly_bin717.fits ra=36.0577 dec=7.0126 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.32
user 6.02
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/367592/ft2_4FGL_J0224.2+0700_weekly_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367592/ft2_4FGL_J0224.2+0700_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/367592/ft1_filteredMKT_4FGL_J0224.2+0700_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367592/ft1_filtered_4FGL_J0224.2+0700_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.15

Number of photons that the gtmktime cut: 139

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367592/ft1_filtered_4FGL_J0224.2+0700_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367592/ft2_4FGL_J0224.2+0700_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367592/ltcube_672624001_673228801_4FGL_J0224.2+0700_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/367592/ft2_4FGL_J0224.2+0700_weekly_bin717.fits
.....................!
real 33.74
user 33.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367592/ft1_filtered_4FGL_J0224.2+0700_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367592/ft2_4FGL_J0224.2+0700_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367592/ltcube_672624001_673228801_4FGL_J0224.2+0700_weekly_bin717.fits outfile=/scratch/kocevski/367592/expmap_672624001_673228801_4FGL_J0224.2+0700_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/367592/ltcube_672624001_673228801_4FGL_J0224.2+0700_weekly_bin717.fits
.....................!
real 192.15
user 186.70
sys 5.04

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

Setting source of interest to:
4FGL J0224.2+0700 @ 36.0577 7.0126

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/367592/ft1_filtered_4FGL_J0224.2+0700_weekly_bin717.fits scfile=/scratch/kocevski/367592/ft2_4FGL_J0224.2+0700_weekly_bin717.fits outfile=/scratch/kocevski/367592/cmap_672624001_673228801_4FGL_J0224.2+0700_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=36.0577 yref=7.0126 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367592/ft1_filtered_4FGL_J0224.2+0700_weekly_bin717.fits scfile=/scratch/kocevski/367592/ft2_4FGL_J0224.2+0700_weekly_bin717.fits outfile=/scratch/kocevski/367592/cmap_HighResolution_672624001_673228801_4FGL_J0224.2+0700_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=36.0577 yref=7.0126 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.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367592/ft1_filtered_4FGL_J0224.2+0700_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367592/ft2_4FGL_J0224.2+0700_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367592/Model_4FGL_J0224.2+0700_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/367592/ft1_filtered_4FGL_J0224.2+0700_weekly_bin717.fits........................!
real 31.45
user 30.08
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367592/ft1_filtered_4FGL_J0224.2+0700_weekly_bin717.fits', '/scratch/kocevski/367592/ft2_4FGL_J0224.2+0700_weekly_bin717.fits', expMap='/scratch/kocevski/367592/expmap_672624001_673228801_4FGL_J0224.2+0700_weekly_bin717.fits', expCube='/scratch/kocevski/367592/ltcube_672624001_673228801_4FGL_J0224.2+0700_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367592/Model_4FGL_J0224.2+0700_weekly_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0224.2+0700'

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  3.952e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/367592/ft1_filtered_4FGL_J0224.2+0700_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367592/ft2_4FGL_J0224.2+0700_weekly_bin717.fits
Exposure map: /scratch/kocevski/367592/expmap_672624001_673228801_4FGL_J0224.2+0700_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367592/ltcube_672624001_673228801_4FGL_J0224.2+0700_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367592/Model_4FGL_J0224.2+0700_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) = 1807.8348528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9374       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.109       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.136       1.0000         .10000E-03   10000.    
     5 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.332       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3247       1.0000         .10000E-03   10000.    
     8 'Prefactor '    181.79       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82575E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10765E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14129E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11670E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .43991E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .85227E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    22.239       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .37987E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .10256E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .60541       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88613       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1806.507     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     4245 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3898       -.18117E-06** at limit **
   2  norm          1.9202        99.894       -.12441E-05   -.94468E-06
   3  Prefactor     15.109        20.290       -.15981E-06    .17721E-05
   4  Prefactor     32.139        17.004       -.34949E-07    .12390E-04
   5  norm          .10000E-03    11.593       -.60558E-06** at limit **
   6  Prefactor     14.345        15.254        .17729E-06    .10406E-04
   7  norm          3.3235        2.0323        .11286E-06    .18397E-03
   8  Prefactor     181.69        194.89       -.16424E-05   -.31838E-05
   9  Prefactor     .10000E-03    7140.4        .23350E-05** at limit **
  10  Prefactor     .10000E-03    33.105       -.15248E-05** at limit **
  11  Prefactor     .10000E-03    445.19       -.48853E-05** at limit **
  12  Prefactor     .10000E-03    149.29       -.49477E-05** at limit **
  13  Prefactor     .10000E-03    310.81        .67909E-05** at limit **
  14  Prefactor     .10000E-03    36.914        .14151E-05** at limit **
  15  Prefactor     .10000E-03    223.57       -.56369E-05** at limit **
  16  norm          .10000E-03    18.867       -.61524E-07** at limit **
  17  Prefactor     .10001E-03    717.75       -.23638E-04** at limit **
  18  Prefactor     .10000E-03    115.58        .52930E-05** at limit **
  19  norm          .10000E-03    120.13        .22995E-05** at limit **
  20  Prefactor     9999.9        6632.3       -.27992E-04    .14626E-04
  21  Prefactor     .10003E-03    1926.3        .24667E-05** at limit **
  22  Prefactor     .10000E-03    41.842       -.12402E-06** at limit **
  23  Prefactor     .10000E-03    10.307        .32880E-06** at limit **
  24  norm          .10000E-03    34.875        .15169E-05** at limit **
  25  norm          22.285        27.015       -.13200E-05   -.55951E-04
  26  Prefactor     .10002E-03    245.99        .61841E-05** at limit **
  27  norm          .10000E-03    25.411        .31426E-06** at limit **
  28  Normalizat    .60559        .31951       -.96586E-06    .18773E-04
  29  Prefactor     .88649        .25803        .11871E-05    .14886E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.92021
  Prefactor  = 15.1093
  Prefactor  = 32.1388
  norm       = 0.0001
  Prefactor  = 14.3449
  norm       = 3.3235
  Prefactor  = 181.691
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 9999.9
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.2854
  Prefactor  = 0.000100016
  norm       = 0.0001
  Normalizat = 0.605595
  Prefactor  = 0.886494
 **********
 **   18 **HESSE 
 **********

 FCN=   1806.507     FROM HESSE     STATUS=OK           543 CALLS     4788 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3949        .64227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9202        100.67        .29832E-03   -1.5431    
   3  Prefactor     15.109        20.270        .10304E-03   -1.4930    
   4  Prefactor     32.139        17.016        .70683E-04   -1.4574    
   5  norm          .10000E-03    11.621        .14179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.345        15.256        .10580E-03   -1.4950    
   7  norm          3.3235        2.0308        .44214E-04   -1.5343    
   8  Prefactor     181.69        194.13        .14970E-03   -1.3004    
   9  Prefactor     .10000E-03    1614.4        .18856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    391.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    148.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    301.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    221.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.881        .18106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    608.41        .21219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    115.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    119.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9999.9        2298.4        .18992E-02    1.5643    
  21  Prefactor     .10003E-03    1617.4        .18367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    41.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.322        .13359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    35.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          22.285        27.061        .84936E-04   -1.4763    
  26  Prefactor     .10002E-03    219.79        .41353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    25.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .60559        .35859        .33992E-03   -1.0775    
  29  Prefactor     .88649        .28674        .21132E-03   -.96615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51394e-10
Minuit parameter uncertainties:
  1  5.15337e-06
  2  27.8556
  3  20.2787
  4  17.0185
  5  3.46179e-05
  6  15.2602
  7  2.03084
  8  194.824
  9  0.00558569
  10  7.52658e-05
  11  0.00258649
  12  0.000923373
  13  0.000143193
  14  7.59448e-05
  15  0.000777686
  16  3.61781e-06
  17  0.00551303
  18  0.000902728
  19  0.000477643
  20  32.3328
  21  0.0138626
  22  1.80087e-05
  23  1.84421e-05
  24  0.00014976
  25  27.0761
  26  0.00382029
  27  1.91049e-05
  28  0.359974
  29  0.287225
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.817e+02  1.948e+02  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  8.865e-01  2.872e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  6.056e-01  3.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 36.058 7.013
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 3.18e-07 +/- 3.40e-07
Energy Flux (Fixed Index): 9.20e-05 +/- 9.86e-05

TS (Fixed Index): 1.42
Ra Dec: 36.058 7.013
Photon Flux Upper Limit: 1.04e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367592/likelihoodResults_672624001_673228801_4FGL_J0224.2+0700_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): 0
logL (Free Index) = 1806.44112007
delta logL = 0.0656116413202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1806.43929021
delta logL = 0.0674415027752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    235.12       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2410       1.0000          .0000       10.000    
     3 'Normalizat'    .61697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87696       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+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=   1806.439     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      287 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     235.73        253.39        .13199E-03    .10508E-04
   2  Index         2.2425        .66599        .54393E-02   -.38813E-05
   3  Normalizat    .61713        .36019        .33700E-03    .62073E-05
   4  Prefactor     .87667        .27292        .21224E-03    .13097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 235.729
  Index      = 2.24254
  Normalizat = 0.617127
  Prefactor  = 0.876669
 **********
 **   18 **HESSE 
 **********

 FCN=   1806.439     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     235.73        249.79        .52798E-05   -1.2625    
   2  Index         2.2425        .65643        .21757E-03   -.58415    
   3  Normalizat    .61713        .36037        .13480E-04   -1.0726    
   4  Prefactor     .87667        .27302        .84896E-05   -.96961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69061e-12
Minuit parameter uncertainties:
  1  250.931
  2  0.65917
  3  0.36175
  4  0.273445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367592': 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) = 1806.43927985
delta logL = 0.0674518605033

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  2.357e+02  2.509e+02  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.243e+00  6.592e-01  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  8.767e-01  2.734e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  6.171e-01  3.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 36.058 7.013
Photon Index (Free Index): 2.24 +/- 0.66
Photon Flux (Free Index): 2.79e-07 +/- 2.96e-07
Energy Flux (Free Index): 1.16e-04 +/- 1.36e-04

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/367592/cmap_HighResolution_672624001_673228801_4FGL_J0224.2+0700_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.08e-02', comment='SUCCESS', photon_flux='3.18e-07', energy_flux2='1.16e-04', photon_flux_error='3.40e-07', dlogl='6.75e-02', energy_flux='9.20e-05', photon_flux2='2.79e-07', job_status='DONE', time_completed='2022-05-03 01:12:50.684082', photon_index_error2='0.66', photon_index2='2.24', ts='1.42', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.04e-06', energy_flux_error2='1.36e-04', EG='0.61', time_epoch_completed='1651565570.68', return_code='0', job_id='367592', GAL2='0.88', EG2='0.62', return_code2='0', energy_flux_error='9.86e-05', photon_flux_error2='2.96e-07', ts2='1.59', photon_index='2.50' WHERE bin_id='717' AND source_name='4FGL J0224.2+0700' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:12:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 367592: <4FGL_J0224.2+0700_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0224.2+0700_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:28 2022
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:04:05 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:04:05 2022
Terminated at Tue May  3 01:12:51 2022
Results reported at Tue May  3 01:12:51 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   502.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            743 sec.

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

