/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 83 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 = 7354
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0221.5+2513_daily_bin1498
RA = 35.3809, Dec = 25.2305
tmin = 627609601, tmax = 627868801
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='330194', job_status='RUN', time_executed='2021-08-15 18:49:21.328728', time_epoch_executed='1629078561.33' WHERE source_name='4FGL J0221.5+2513' and cadence='daily' and bin_id='1498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330194

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330194/ft1_4FGL_J0221.5+2513_daily_bin1498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330194/ft2_4FGL_J0221.5+2513_daily_bin1498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330194/ft1_4FGL_J0221.5+2513_daily_bin1498.fits outfile=/scratch/kocevski/330194/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1498.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=627609601.0 tmax=627868801.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 10.89
user 2.33
sys 8.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/330194/ft2_4FGL_J0221.5+2513_daily_bin1498.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/330194/ft2_4FGL_J0221.5+2513_daily_bin1498.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/330194/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1498.fits evtable="EVENTS" outfile="/scratch/kocevski/330194/ft1_filtered_4FGL_J0221.5+2513_daily_bin1498.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 8.78
user 0.35
sys 8.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330194/ft1_filtered_4FGL_J0221.5+2513_daily_bin1498.fits" evtable="EVENTS" scfile=/scratch/kocevski/330194/ft2_4FGL_J0221.5+2513_daily_bin1498.fits sctable="SC_DATA" outfile=/scratch/kocevski/330194/ltcube_627609601_627868801_4FGL_J0221.5+2513_daily_bin1498.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/330194/ft2_4FGL_J0221.5+2513_daily_bin1498.fits
.....................!
real 24.34
user 14.58
sys 9.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330194/ft1_filtered_4FGL_J0221.5+2513_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/330194/ft2_4FGL_J0221.5+2513_daily_bin1498.fits sctable="SC_DATA" expcube=/scratch/kocevski/330194/ltcube_627609601_627868801_4FGL_J0221.5+2513_daily_bin1498.fits outfile=/scratch/kocevski/330194/expmap_627609601_627868801_4FGL_J0221.5+2513_daily_bin1498.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/330194/ltcube_627609601_627868801_4FGL_J0221.5+2513_daily_bin1498.fits
.....................!
real 203.66
user 186.45
sys 16.21

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

Setting source of interest to:
4FGL J0221.5+2513 @ 35.3809 25.2305

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/330194/ft1_filtered_4FGL_J0221.5+2513_daily_bin1498.fits scfile=/scratch/kocevski/330194/ft2_4FGL_J0221.5+2513_daily_bin1498.fits outfile=/scratch/kocevski/330194/cmap_627609601_627868801_4FGL_J0221.5+2513_daily_bin1498.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=35.3809 yref=25.2305 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 8.90
user 0.38
sys 8.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330194/ft1_filtered_4FGL_J0221.5+2513_daily_bin1498.fits scfile=/scratch/kocevski/330194/ft2_4FGL_J0221.5+2513_daily_bin1498.fits outfile=/scratch/kocevski/330194/cmap_HighResolution_627609601_627868801_4FGL_J0221.5+2513_daily_bin1498.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=35.3809 yref=25.2305 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 8.98
user 0.39
sys 8.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/330194/ft1_filtered_4FGL_J0221.5+2513_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/330194/ft2_4FGL_J0221.5+2513_daily_bin1498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330194/Model_4FGL_J0221.5+2513_daily_bin1498.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/330194/ft1_filtered_4FGL_J0221.5+2513_daily_bin1498.fits......................!
real 29.74
user 14.96
sys 12.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/330194/ft1_filtered_4FGL_J0221.5+2513_daily_bin1498.fits', '/scratch/kocevski/330194/ft2_4FGL_J0221.5+2513_daily_bin1498.fits', expMap='/scratch/kocevski/330194/expmap_627609601_627868801_4FGL_J0221.5+2513_daily_bin1498.fits', expCube='/scratch/kocevski/330194/ltcube_627609601_627868801_4FGL_J0221.5+2513_daily_bin1498.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/330194/Model_4FGL_J0221.5+2513_daily_bin1498.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0221.5+2513'

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  4.372e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  4.094e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  2.704e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/330194/ft1_filtered_4FGL_J0221.5+2513_daily_bin1498.fits
Spacecraft file(s): /scratch/kocevski/330194/ft2_4FGL_J0221.5+2513_daily_bin1498.fits
Exposure map: /scratch/kocevski/330194/expmap_627609601_627868801_4FGL_J0221.5+2513_daily_bin1498.fits
Exposure cube: /scratch/kocevski/330194/ltcube_627609601_627868801_4FGL_J0221.5+2513_daily_bin1498.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/330194/Model_4FGL_J0221.5+2513_daily_bin1498.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 272.792323728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 270.477382684

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34807E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9847       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0003       1.0000         .10000E-03   10000.    
     4 'Prefactor '    78.378       1.0000         .10000E-03   10000.    
     5 'Prefactor '    209.66       1.0000         .10000E-03   10000.    
     6 'norm      '    .41469E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2867       1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.398       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40614E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22123E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .97669E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15604E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .49421E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8945       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9900       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2535       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8491       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11583E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5835       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1506       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1856       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.2696       1.0000         .10000E-03   10000.    
    24 'norm      '    1.0397       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96725       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   270.3641     FROM MIGRAD    STATUS=CONVERGED    319 CALLS      717 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.281       -.21859E-06** at limit **
   2  Prefactor     .10002E-03    296.48       -.57694E-05** at limit **
   3  norm          1.0591        2.4731       -.15815E-05    .59515E-03
   4  Prefactor     70.937        95.804        .15837E-04   -.68284E-02
   5  Prefactor     211.92        86.162        .11129E-05   -.39761E-01
   6  norm          .10000E-03    26.722        .51031E-07** at limit **
   7  Prefactor     754.06        1772.9        .22047E-03    .97455E-04
   8  Prefactor     47.023        31.142       -.38846E-06    .17124E-03
   9  Prefactor     .10000E-03    44.341       -.22800E-06** at limit **
  10  Prefactor     .10000E-03    72.335       -.37606E-04** at limit **
  11  norm          .10000E-03    312.76        .80279E-05** at limit **
  12  Prefactor     .10000E-03    179.85       -.12198E-04** at limit **
  13  norm          .10000E-03    43.129        .25539E-06** at limit **
  14  norm          .12363E-02    1838.2        .31189E-04** at limit **
  15  Prefactor     .50289E-03    711.55        .21739E-04** at limit **
  16  Prefactor     .10064E-03    586.57       -.21183E-04** at limit **
  17  norm          8.8491        1.0016         .0000         .0000    
  18  Prefactor     .10000E-03    159.01        .82140E-05** at limit **
  19  norm          .10000E-03    6.6459        .74876E-08** at limit **
  20  Prefactor     .10000E-03    624.30        .45863E-06** at limit **
  21  Prefactor     3.1506        1.0132         .0000         .0000    
  22  Prefactor     .69627E-01    717.81        .43959E-04    .33719E-02
  23  Prefactor     8.2696        1.0018         .0000         .0000    
  24  norm          1.0397        1.2531         .0000         .0000    
  25  Normalizat    .10000E-01    6.3055        .83954E-03** at limit **
  26  Prefactor     .90791        .43518       -.20147E-04    .13795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  norm       = 1.05912
  Prefactor  = 70.9373
  Prefactor  = 211.915
  norm       = 0.0001
  Prefactor  = 754.06
  Prefactor  = 47.0234
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.00123635
  Prefactor  = 0.000502894
  Prefactor  = 0.000100643
  norm       = 8.84905
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.15065
  Prefactor  = 0.0696265
  Prefactor  = 8.26963
  norm       = 1.03974
  Normalizat = 0.01
  Prefactor  = 0.907908
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   270.3641     FROM HESSE     STATUS=FAILED        75 CALLS      792 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.199        .98307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    297.29        .41034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0591        2.3309        .81075E-02   -1.5502    
   4  Prefactor     70.937        83.450        .11340E-02   -1.4021    
   5  Prefactor     211.92        246.13        .69798E-03   -1.2786    
   6  norm          .10000E-03    25.819        .92284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     754.06        1621.9        .37147E-02   -1.0144    
   8  Prefactor     47.023        28.868        .14876E-02   -1.4335    
   9  Prefactor     .10000E-03    44.147        .92242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    71.521        .91331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    313.08        .90718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    178.85        .91008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    43.297        .92673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .12363E-02    6243.4        .51114E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .50289E-03    713.28        .35462E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10064E-03    585.68        .56134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          498.85        489.97         .0000       -1.5113    
  18  Prefactor     .10000E-03    .20615        .82140E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .20571        .74876E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .17789        .45863E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1506        1.0132         .0000       -1.5353    
  22  Prefactor     .69627E-01    .18353        .43959E-04   -1.5655    
  23  Prefactor     8.2696        1.0018         .0000       -1.5133    
  24  norm          1.0397        1.2531         .0000       -1.5504    
  25  Normalizat    .10000E-01    .25708        .83954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .90791        1.2718       -.20147E-04   -.95865    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.39929e-09
Minuit parameter uncertainties:
  1  1.87606e-05
  2  0.00537345
  3  2.33113
  4  83.5882
  5  247.349
  6  1.91766e-06
  7  1746.45
  8  28.8763
  9  1.07101e-05
  10  0.00106497
  11  0.000315844
  12  0.000969485
  13  9.60547e-06
  14  3.52208
  15  1.08532
  16  0.0392122
  17  1.0016
  18  2.53436e-05
  19  3.87325e-08
  20  4.13296e-05
  21  1.01318
  22  0.183536
  23  1.00184
  24  1.25317
  25  1.20195e-05
  26  1.31751
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 270.364071513

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.236e-03  3.522e+00  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  4.094e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  2.704e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.079e-01  1.318e+00  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.000e-02  1.202e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.381 25.230
Photon Flux Upper Limit: 7.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/330194/likelihoodResults_627609601_627868801_4FGL_J0221.5+2513_daily_bin1498.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) = 270.364072934
delta logL = -1.42093307431e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 270.364072736
delta logL = -1.22316197348e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12360E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7436       1.0000          .0000       5.0000    
     3 'Normalizat'    .10007E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   270.3641     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      189 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6245.1       -.67312E-03** at limit **
   2  alpha         1.7435        3.3289       -.23999E-04   -.54695E-07
   3  Normalizat    .10000E-01    1.0990        .59857E-05** at limit **
   4  Prefactor     .90790        .36609       -.15505E-05   -.69093E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.74355
  Normalizat = 0.01
  Prefactor  = 0.9079
 **********
 **   18 **HESSE 
 **********

 FCN=   270.3641     FROM HESSE     STATUS=OK            29 CALLS      218 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1249.0        .20617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7435        3.3287        .17532       -.30740    
   3  Normalizat    .10000E-01    1.2797        .12470E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .90790        .33212        .18745E-03   -.95866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82783e-11
Minuit parameter uncertainties:
  1  0.000816759
  2  2.38282
  3  1.05435e-05
  4  0.332865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330194': 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) = 270.364071305
delta logL = 2.08300718896e-07

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  8.168e-04  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.744e+00  2.383e+00  0.000e+00  5.000e+00 ( 1.000e+00)
233         beta:  4.094e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  2.704e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.079e-01  3.329e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.000e-02  1.054e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 35.381 25.230

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/330194/cmap_HighResolution_627609601_627868801_4FGL_J0221.5+2513_daily_bin1498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-03', job_status='DONE', photon_flux_upper_limit='7.16e-07', time_completed='2021-08-15 18:57:01.912294', job_id='330194', GAL2='0.91', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629079021.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.91', dlogl='2.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1498' AND source_name='4FGL J0221.5+2513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 18:57:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 330194: <4FGL_J0221.5+2513_daily_bin1498> in cluster <slac> Done

Job <4FGL_J0221.5+2513_daily_bin1498> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 18:45:23 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 18:45:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 18:45:26 2021
Terminated at Sun Aug 15 18:57:04 2021
Results reported at Sun Aug 15 18:57:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_daily_bin1498 35.3809 25.2305 627609601 627868801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0221.5+2513 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   575.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             296.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            701 sec.

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

