aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 66 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 = 17315
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0224.2+0700_weekly_bin612
RA = 36.0577, Dec = 7.0126
tmin = 609120001, tmax = 609724801
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='496965', job_status='RUN', time_executed='2021-07-04 15:58:53.791857', time_epoch_executed='1625439533.79' WHERE source_name='4FGL J0224.2+0700' and cadence='weekly' and bin_id='612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496965

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496965/ft1_4FGL_J0224.2+0700_weekly_bin612.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496965/ft2_4FGL_J0224.2+0700_weekly_bin612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496965/ft1_4FGL_J0224.2+0700_weekly_bin612.fits outfile=/scratch/kocevski/496965/ft1_filteredMKT_4FGL_J0224.2+0700_weekly_bin612.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=609120001.0 tmax=609724801.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 7.97
user 5.90
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496965/ft2_4FGL_J0224.2+0700_weekly_bin612.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/496965/ft1_filteredMKT_4FGL_J0224.2+0700_weekly_bin612.fits evtable="EVENTS" outfile="/scratch/kocevski/496965/ft1_filtered_4FGL_J0224.2+0700_weekly_bin612.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 1.37
user 0.39
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496965/ft1_filtered_4FGL_J0224.2+0700_weekly_bin612.fits" evtable="EVENTS" scfile=/scratch/kocevski/496965/ft2_4FGL_J0224.2+0700_weekly_bin612.fits sctable="SC_DATA" outfile=/scratch/kocevski/496965/ltcube_609120001_609724801_4FGL_J0224.2+0700_weekly_bin612.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/496965/ft2_4FGL_J0224.2+0700_weekly_bin612.fits
.....................!
real 32.22
user 31.55
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496965/ft1_filtered_4FGL_J0224.2+0700_weekly_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/496965/ft2_4FGL_J0224.2+0700_weekly_bin612.fits sctable="SC_DATA" expcube=/scratch/kocevski/496965/ltcube_609120001_609724801_4FGL_J0224.2+0700_weekly_bin612.fits outfile=/scratch/kocevski/496965/expmap_609120001_609724801_4FGL_J0224.2+0700_weekly_bin612.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/496965/ltcube_609120001_609724801_4FGL_J0224.2+0700_weekly_bin612.fits
.....................!
real 195.87
user 185.70
sys 4.80

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/496965/ft1_filtered_4FGL_J0224.2+0700_weekly_bin612.fits scfile=/scratch/kocevski/496965/ft2_4FGL_J0224.2+0700_weekly_bin612.fits outfile=/scratch/kocevski/496965/cmap_609120001_609724801_4FGL_J0224.2+0700_weekly_bin612.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.66
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496965/ft1_filtered_4FGL_J0224.2+0700_weekly_bin612.fits scfile=/scratch/kocevski/496965/ft2_4FGL_J0224.2+0700_weekly_bin612.fits outfile=/scratch/kocevski/496965/cmap_HighResolution_609120001_609724801_4FGL_J0224.2+0700_weekly_bin612.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 1.54
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496965/ft1_filtered_4FGL_J0224.2+0700_weekly_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/496965/ft2_4FGL_J0224.2+0700_weekly_bin612.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496965/Model_4FGL_J0224.2+0700_weekly_bin612.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/496965/ft1_filtered_4FGL_J0224.2+0700_weekly_bin612.fits......................!
real 61.40
user 46.21
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/496965/ft1_filtered_4FGL_J0224.2+0700_weekly_bin612.fits', '/scratch/kocevski/496965/ft2_4FGL_J0224.2+0700_weekly_bin612.fits', expMap='/scratch/kocevski/496965/expmap_609120001_609724801_4FGL_J0224.2+0700_weekly_bin612.fits', expCube='/scratch/kocevski/496965/ltcube_609120001_609724801_4FGL_J0224.2+0700_weekly_bin612.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/496965/Model_4FGL_J0224.2+0700_weekly_bin612.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/496965/ft1_filtered_4FGL_J0224.2+0700_weekly_bin612.fits
Spacecraft file(s): /scratch/kocevski/496965/ft2_4FGL_J0224.2+0700_weekly_bin612.fits
Exposure map: /scratch/kocevski/496965/expmap_609120001_609724801_4FGL_J0224.2+0700_weekly_bin612.fits
Exposure cube: /scratch/kocevski/496965/ltcube_609120001_609724801_4FGL_J0224.2+0700_weekly_bin612.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/496965/Model_4FGL_J0224.2+0700_weekly_bin612.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2679.62736446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58960       1.0000         .10000E-03   10000.    
     2 'norm      '    163.31       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     5 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .28710       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.105       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    328.04       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.837       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.527       1.0000         .10000E-03   10000.    
    16 'norm      '    .42165E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    71.074       1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.5008       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.2028       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9630       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .54267       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1318       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=   2679.409     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3906 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57325        19.318        .11380E-05    .12053E-03
   2  norm          163.32        238.69       -.53331E-06    .25842E-05
   3  Prefactor     .10000E-03    141.63       -.68261E-05** at limit **
   4  Prefactor    10000.0        749.20       -.25338E-04** at limit **
   5  norm          .10000E-03    45.989       -.69799E-06** at limit **
   6  Prefactor     .10000E-03    8.0051        .16037E-06** at limit **
   7  norm          .28687        1.8332       -.57436E-06    .28393E-03
   8  Prefactor     44.165        150.79       -.56225E-05    .32313E-05
   9  Prefactor     .10000E-03    132.41       -.28927E-05** at limit **
  10  Prefactor     .10000E-03    29.564       -.43185E-06** at limit **
  11  Prefactor     327.98        286.12        .19165E-05    .15441E-04
  12  Prefactor     .10000E-03    15.536       -.11697E-07** at limit **
  13  Prefactor     47.836        80.968        .20404E-06    .27439E-04
  14  Prefactor     .10000E-03    20.266        .78222E-06** at limit **
  15  Prefactor     43.405        52.147       -.18723E-05   -.31756E-03
  16  norm          .10001E-03    21.542        .82788E-05** at limit **
  17  Prefactor     .10000E-03    60.320       -.19608E-05** at limit **
  18  Prefactor     71.086        66.691        .26016E-06    .70538E-04
  19  norm          .10000E-03    41.586        .74799E-06** at limit **
  20  Prefactor     .10000E-03    31.914       -.96345E-08** at limit **
  21  Prefactor     .10000E-03    106.27        .64640E-05** at limit **
  22  Prefactor     .10000E-03    120.91       -.40335E-06** at limit **
  23  Prefactor     3.5012        12.486       -.30720E-05   -.17082E-04
  24  norm          .10000E-03    18.500        .10693E-05** at limit **
  25  norm          6.2030        8.8859       -.10764E-05   -.11626E-04
  26  Prefactor     1.9631        5.4907       -.17677E-06    .55774E-05
  27  norm          .10000E-03    19.412       -.11422E-05** at limit **
  28  Normalizat    .54279        .37374        .39270E-05    .15386E-03
  29  Prefactor     1.1317        .22600        .15034E-05    .12932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.573249
  norm       = 163.318
  Prefactor  = 0.000100004
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.286871
  Prefactor  = 44.165
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 327.98
  Prefactor  = 0.0001
  Prefactor  = 47.8359
  Prefactor  = 0.0001
  Prefactor  = 43.4048
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 71.0862
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 3.50121
  norm       = 0.0001
  norm       = 6.20303
  Prefactor  = 1.96309
  norm       = 0.0001
  Normalizat = 0.542791
  Prefactor  = 1.13174
 **********
 **   18 **HESSE 
 **********

 FCN=   2679.409     FROM HESSE     STATUS=OK           541 CALLS     4447 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57325        71.444        .41089E-02   -1.5557    
   2  norm          163.32        238.68        .15780E-03   -1.3145    
   3  Prefactor     .10000E-03    141.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        742.26        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    46.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0112        .14299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .28687        2.5035        .12410E-02   -1.5601    
   8  Prefactor     44.165        149.36        .60367E-04   -1.4378    
   9  Prefactor     .10000E-03    132.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     327.98        285.79        .11228E-03   -1.2066    
  12  Prefactor     .10000E-03    15.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.836        80.893        .57975E-04   -1.4324    
  14  Prefactor     .10000E-03    20.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.405        46.655        .60765E-04   -1.4389    
  16  norm          .10001E-03    22.766        .11724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    60.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     71.086        66.504        .47617E-04   -1.4020    
  19  norm          .10000E-03    41.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    105.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    121.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.5012        12.598        .10804E-02   -1.5334    
  24  norm          .10000E-03    18.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.2030        8.9077        .80202E-03   -1.5210    
  26  Prefactor     1.9631        5.4661        .19252E-03   -1.5428    
  27  norm          .10000E-03    19.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .54279        .38881        .46666E-03   -1.1047    
  29  Prefactor     1.1317        .23739        .18254E-03   -.88458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01794e-09
Minuit parameter uncertainties:
  1  12.8137
  2  240.112
  3  0.00153632
  4  0.0132303
  5  8.95841e-05
  6  7.33042e-06
  7  1.69471
  8  150.656
  9  0.000626352
  10  4.02972e-05
  11  287.028
  12  2.50759e-06
  13  81.0799
  14  6.85366e-05
  15  46.6939
  16  0.00104077
  17  0.000282077
  18  66.5738
  19  7.22967e-05
  20  1.01857e-05
  21  0.0012736
  22  0.000162115
  23  12.6079
  24  7.69852e-05
  25  8.90961
  26  5.46753
  27  0.000170388
  28  0.390778
  29  0.23761
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  4.416e+01  1.507e+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:  1.132e+00  2.376e-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:  5.428e-01  3.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 36.058 7.013
Photon Flux Upper Limit: 6.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496965/likelihoodResults_609120001_609724801_4FGL_J0224.2+0700_weekly_bin612.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) = 2679.39011353
delta logL = 0.0187009755132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2679.38862053
delta logL = 0.0201939752201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.773       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8309       1.0000          .0000       10.000    
     3 'Normalizat'    .53569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1333       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=   2679.389     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      259 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.770        131.93        .64368E-04    .56624E-04
   2  Index         2.8309        1.7118        .10102E-01    .44810E-04
   3  Normalizat    .53586        .36365        .46927E-03   -.40761E-04
   4  Prefactor     1.1332        .20070        .18239E-03   -.93863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.7704
  Index      = 2.83092
  Normalizat = 0.535855
  Prefactor  = 1.13321
 **********
 **   18 **HESSE 
 **********

 FCN=   2679.389     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.770        123.13        .12874E-04   -1.4462    
   2  Index         2.8309        1.6017        .40408E-03   -.44872    
   3  Normalizat    .53586        .36380        .18771E-04   -1.1078    
   4  Prefactor     1.1332        .20069        .36479E-04   -.88412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9836e-10
Minuit parameter uncertainties:
  1  123.954
  2  1.6375
  3  0.365435
  4  0.200823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496965': 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) = 2679.3886204
delta logL = 0.0201940996394

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  3.877e+01  1.240e+02  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.831e+00  1.637e+00  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:  1.133e+00  2.008e-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:  5.359e-01  3.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 36.058 7.013

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/496965/cmap_HighResolution_609120001_609724801_4FGL_J0224.2+0700_weekly_bin612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-02', job_status='DONE', photon_flux_upper_limit='6.93e-07', time_completed='2021-07-04 16:09:26.567046', job_id='496965', GAL2='1.13', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1625440166.57', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.02e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='612' AND source_name='4FGL J0224.2+0700' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 16:09:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 496965: <4FGL_J0224.2+0700_weekly_bin612> in cluster <slac> Done

Job <4FGL_J0224.2+0700_weekly_bin612> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul  4 15:54:41 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 15:54:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 15:54:43 2021
Terminated at Sun Jul  4 16:09:37 2021
Results reported at Sun Jul  4 16:09:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_weekly_bin612 36.0577 7.0126 609120001 609724801 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 :                                   563.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

