/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 30 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 = 7404
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0224.2+0700_daily_bin418
RA = 36.0577, Dec = 7.0126
tmin = 347673601, tmax = 347932801
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='354472', job_status='RUN', time_executed='2021-08-15 20:03:21.504479', time_epoch_executed='1629083001.5' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354472

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/354472/ft1_4FGL_J0224.2+0700_daily_bin418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/354472/ft2_4FGL_J0224.2+0700_daily_bin418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/354472/ft1_4FGL_J0224.2+0700_daily_bin418.fits outfile=/scratch/kocevski/354472/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin418.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=347673601.0 tmax=347932801.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 4.45
user 3.23
sys 0.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/354472/ft2_4FGL_J0224.2+0700_daily_bin418.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/354472/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin418.fits evtable="EVENTS" outfile="/scratch/kocevski/354472/ft1_filtered_4FGL_J0224.2+0700_daily_bin418.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.26
user 0.33
sys 0.88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/354472/ft1_filtered_4FGL_J0224.2+0700_daily_bin418.fits" evtable="EVENTS" scfile=/scratch/kocevski/354472/ft2_4FGL_J0224.2+0700_daily_bin418.fits sctable="SC_DATA" outfile=/scratch/kocevski/354472/ltcube_347673601_347932801_4FGL_J0224.2+0700_daily_bin418.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/354472/ft2_4FGL_J0224.2+0700_daily_bin418.fits
.....................!
real 14.76
user 13.51
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354472/ft1_filtered_4FGL_J0224.2+0700_daily_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/354472/ft2_4FGL_J0224.2+0700_daily_bin418.fits sctable="SC_DATA" expcube=/scratch/kocevski/354472/ltcube_347673601_347932801_4FGL_J0224.2+0700_daily_bin418.fits outfile=/scratch/kocevski/354472/expmap_347673601_347932801_4FGL_J0224.2+0700_daily_bin418.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/354472/ltcube_347673601_347932801_4FGL_J0224.2+0700_daily_bin418.fits
.....................!
real 192.46
user 186.00
sys 6.00

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/354472/ft1_filtered_4FGL_J0224.2+0700_daily_bin418.fits scfile=/scratch/kocevski/354472/ft2_4FGL_J0224.2+0700_daily_bin418.fits outfile=/scratch/kocevski/354472/cmap_347673601_347932801_4FGL_J0224.2+0700_daily_bin418.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 1.30
user 0.38
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354472/ft1_filtered_4FGL_J0224.2+0700_daily_bin418.fits scfile=/scratch/kocevski/354472/ft2_4FGL_J0224.2+0700_daily_bin418.fits outfile=/scratch/kocevski/354472/cmap_HighResolution_347673601_347932801_4FGL_J0224.2+0700_daily_bin418.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.28
user 0.38
sys 0.88

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/354472/ft1_filtered_4FGL_J0224.2+0700_daily_bin418.fits', '/scratch/kocevski/354472/ft2_4FGL_J0224.2+0700_daily_bin418.fits', expMap='/scratch/kocevski/354472/expmap_347673601_347932801_4FGL_J0224.2+0700_daily_bin418.fits', expCube='/scratch/kocevski/354472/ltcube_347673601_347932801_4FGL_J0224.2+0700_daily_bin418.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/354472/Model_4FGL_J0224.2+0700_daily_bin418.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/354472/ft1_filtered_4FGL_J0224.2+0700_daily_bin418.fits
Spacecraft file(s): /scratch/kocevski/354472/ft2_4FGL_J0224.2+0700_daily_bin418.fits
Exposure map: /scratch/kocevski/354472/expmap_347673601_347932801_4FGL_J0224.2+0700_daily_bin418.fits
Exposure cube: /scratch/kocevski/354472/ltcube_347673601_347932801_4FGL_J0224.2+0700_daily_bin418.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/354472/Model_4FGL_J0224.2+0700_daily_bin418.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) = 6016.78229769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    15.305       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5786       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3366       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0369       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.3060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.129       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.791       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2903       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .86788E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3466       1.0000         .10000E-03   10000.    
    16 'norm      '    .58455       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11974E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7424       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14305E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.827       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3254       1.0000         .10000E-03   10000.    
    24 'norm      '    19.088       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .29464       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0079       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85469       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=   6016.738     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3764 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5069       -.17670E-07** at limit **
   2  norm          15.296        15.520       -.16668E-07    .59065E-05
   3  Prefactor     3.5746        9.0110       -.32954E-06    .38333E-04
   4  Prefactor     4.3364        2.8555       -.19274E-07    .51899E-04
   5  norm          3.0361        4.3230        .61064E-07    .12851E-03
   6  Prefactor     .10000E-03    1.8423       -.17004E-06** at limit **
   7  norm          4.3059        1.3341       -.18554E-07    .20684E-03
   8  Prefactor     .10000E-03    10.276       -.81713E-07** at limit **
   9  Prefactor     17.104        41.565        .11017E-05    .53868E-04
  10  Prefactor     .10000E-03    3.8771       -.53802E-07** at limit **
  11  Prefactor     50.804        56.073        .81943E-06    .37366E-04
  12  Prefactor     7.2909        6.7821       -.72980E-08    .51707E-04
  13  Prefactor     .10000E-03    7.6978       -.10708E-06** at limit **
  14  Prefactor     .10001E-03    11.250        .18009E-05** at limit **
  15  Prefactor     6.3360        14.600        .28407E-05    .59734E-04
  16  norm          .58755        .93160       -.32526E-06   -.81842E-04
  17  Prefactor     .10000E-03    71.471       -.84381E-07** at limit **
  18  Prefactor     .10000E-03    52.800       -.26276E-05** at limit **
  19  norm          .10000E-03    2.1142       -.23019E-07** at limit **
  20  Prefactor     1.6884        128.57       -.75881E-06   -.85559E-05
  21  Prefactor     .10000E-03    38.023       -.17513E-06** at limit **
  22  Prefactor     19.822        31.546       -.31438E-07    .15036E-04
  23  Prefactor     7.3272        6.0310       -.84321E-07    .90334E-04
  24  norm          19.088        12.080        .24837E-07    .65155E-04
  25  norm          .10000E-03    1.6916       -.32030E-07** at limit **
  26  Prefactor     .25764        28.620       -.45459E-05    .17334E-03
  27  norm          .10000E-03    4.3271       -.44165E-07** at limit **
  28  Normalizat    1.0078        .19433       -.17399E-06    .27823E-03
  29  Prefactor     .85477        .10662        .62387E-06    .34198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.2964
  Prefactor  = 3.57463
  Prefactor  = 4.33637
  norm       = 3.03606
  Prefactor  = 0.000100001
  norm       = 4.30588
  Prefactor  = 0.0001
  Prefactor  = 17.1037
  Prefactor  = 0.0001
  Prefactor  = 50.8043
  Prefactor  = 7.29085
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 6.33601
  norm       = 0.587551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.68841
  Prefactor  = 0.0001
  Prefactor  = 19.8215
  Prefactor  = 7.32721
  norm       = 19.0878
  norm       = 0.0001
  Prefactor  = 0.257643
  norm       = 0.0001
  Normalizat = 1.00781
  Prefactor  = 0.854767
 **********
 **   18 **HESSE 
 **********

 FCN=   6016.738     FROM HESSE     STATUS=OK           559 CALLS     4323 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5104        .92987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.296        15.509        .10238E-03   -1.4926    
   3  Prefactor     3.5746        8.9838        .21363E-03   -1.5330    
   4  Prefactor     4.3364        2.8541        .10110E-03   -1.5291    
   5  norm          3.0361        4.2844        .18285E-03   -1.5359    
   6  Prefactor     .10000E-03    3.2464        .19320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3059        1.3418        .47178E-04   -1.5293    
   8  Prefactor     .10000E-03    10.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.104        41.465        .96772E-04   -1.4881    
  10  Prefactor     .10000E-03    3.9042        .14910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     50.804        55.723        .56272E-04   -1.4281    
  12  Prefactor     7.2909        6.7681        .14855E-03   -1.5168    
  13  Prefactor     .10000E-03    7.7219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    21.834        .34979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3360        14.525        .15933E-03   -1.5204    
  16  norm          .58755        .94224        .58997E-03   -1.5555    
  17  Prefactor     .10000E-03    72.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    53.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.1153        .11015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6884        132.85        .31779E-03   -1.5448    
  21  Prefactor     .10000E-03    38.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.822        31.545        .89949E-04   -1.4817    
  23  Prefactor     7.3272        6.0240        .14819E-03   -1.5167    
  24  norm          19.088        12.078        .91674E-04   -1.4834    
  25  norm          .10000E-03    1.7081        .98484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .25764        40.749        .36727E-02   -1.5606    
  27  norm          .10000E-03    4.3737        .15756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0078        .21363        .30014E-03   -.92769    
  29  Prefactor     .85477        .11762        .18217E-03   -.97740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4096e-09
Minuit parameter uncertainties:
  1  2.18755e-08
  2  15.5132
  3  8.98714
  4  2.85419
  5  4.28483
  6  9.31372e-05
  7  1.34182
  8  7.87716e-06
  9  41.5351
  10  8.26927e-06
  11  55.7801
  12  6.76879
  13  2.0522e-06
  14  0.00087799
  15  14.5334
  16  0.942268
  17  9.12776e-05
  18  0.000167647
  19  9.25583e-07
  20  30.0223
  21  6.95565e-05
  22  31.5712
  23  6.02447
  24  12.0791
  25  1.08178e-06
  26  6.48359
  27  3.46052e-06
  28  0.213813
  29  0.117655
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  7.877e-06  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.548e-01  1.177e-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:  1.008e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.058 7.013
Photon Flux Upper Limit: 7.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/354472/likelihoodResults_347673601_347932801_4FGL_J0224.2+0700_daily_bin418.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) = 6016.73815654
delta logL = -0.00046270716939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6016.73769369
delta logL = 1.4000943338e-07

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 'Index     '    2.4753       1.0000          .0000       10.000    
     3 'Normalizat'    1.0078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85477       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=   6016.738     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10363E-03    10.432        .18142E-01** at limit **
   2  Index         2.3733        6.9722        .50000        .16843E-04
   3  Normalizat    1.0078        .50231E-02    .30014E-03   -.30151E-04
   4  Prefactor     .85477        .28488E-02    .18217E-03    .40689E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103631
  Index      = 2.37328
  Normalizat = 1.00781
  Prefactor  = 0.854767
 **********
 **   18 **HESSE 
 **********

 FCN=   6016.738     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10363E-03    93.650        .25818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3733        8.1504        .50000       -.55312    
   3  Normalizat    1.0078        .15111E-01    .12006E-04   -.92769    
   4  Prefactor     .85477        .85701E-02    .72868E-05   -.97740    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.22483e-09
Minuit parameter uncertainties:
  1  0.03694
  2  388.765
  3  0.0151111
  4  0.00857011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354472': 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) = 6016.7376934
delta logL = 4.33981767856e-07

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.036e-04  3.694e-02  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.373e+00  3.888e+02  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.548e-01  8.570e-03  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:  1.008e+00  1.511e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/354472/cmap_HighResolution_347673601_347932801_4FGL_J0224.2+0700_daily_bin418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-08-15 20:17:16.778003', job_id='354472', GAL2='0.85', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1629083836.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='418' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:17:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 354472: <4FGL_J0224.2+0700_daily_bin418> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin418> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 20:00:49 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 20:02:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 20:02:24 2021
Terminated at Sun Aug 15 20:17:17 2021
Results reported at Sun Aug 15 20:17:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin418 36.0577 7.0126 347673601 347932801 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 :                                   839.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            988 sec.

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

