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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1281
RA = 335.391, Dec = -52.4307
tmin = 571363201, tmax = 571622401
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='268509', job_status='RUN', time_executed='2021-09-28 09:40:56.643961', time_epoch_executed='1632847256.64' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268509

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268509/ft1_4FGL_J2221.5-5225_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268509/ft2_4FGL_J2221.5-5225_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268509/ft1_4FGL_J2221.5-5225_daily_bin1281.fits outfile=/scratch/kocevski/268509/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1281.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=571363201.0 tmax=571622401.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 2.89
user 2.67
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/268509/ft2_4FGL_J2221.5-5225_daily_bin1281.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268509/ft2_4FGL_J2221.5-5225_daily_bin1281.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/268509/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1281.fits evtable="EVENTS" outfile="/scratch/kocevski/268509/ft1_filtered_4FGL_J2221.5-5225_daily_bin1281.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.51
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268509/ft1_filtered_4FGL_J2221.5-5225_daily_bin1281.fits" evtable="EVENTS" scfile=/scratch/kocevski/268509/ft2_4FGL_J2221.5-5225_daily_bin1281.fits sctable="SC_DATA" outfile=/scratch/kocevski/268509/ltcube_571363201_571622401_4FGL_J2221.5-5225_daily_bin1281.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/268509/ft2_4FGL_J2221.5-5225_daily_bin1281.fits
.....................!
real 12.75
user 12.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268509/ft1_filtered_4FGL_J2221.5-5225_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/268509/ft2_4FGL_J2221.5-5225_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/268509/ltcube_571363201_571622401_4FGL_J2221.5-5225_daily_bin1281.fits outfile=/scratch/kocevski/268509/expmap_571363201_571622401_4FGL_J2221.5-5225_daily_bin1281.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/268509/ltcube_571363201_571622401_4FGL_J2221.5-5225_daily_bin1281.fits
.....................!
real 190.59
user 185.61
sys 4.59

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

Setting source of interest to:
4FGL J2221.5-5225 @ 335.391 -52.4307

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/268509/ft1_filtered_4FGL_J2221.5-5225_daily_bin1281.fits scfile=/scratch/kocevski/268509/ft2_4FGL_J2221.5-5225_daily_bin1281.fits outfile=/scratch/kocevski/268509/cmap_571363201_571622401_4FGL_J2221.5-5225_daily_bin1281.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=335.391 yref=-52.4307 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268509/ft1_filtered_4FGL_J2221.5-5225_daily_bin1281.fits scfile=/scratch/kocevski/268509/ft2_4FGL_J2221.5-5225_daily_bin1281.fits outfile=/scratch/kocevski/268509/cmap_HighResolution_571363201_571622401_4FGL_J2221.5-5225_daily_bin1281.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=335.391 yref=-52.4307 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268509/ft1_filtered_4FGL_J2221.5-5225_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/268509/ft2_4FGL_J2221.5-5225_daily_bin1281.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268509/Model_4FGL_J2221.5-5225_daily_bin1281.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/268509/ft1_filtered_4FGL_J2221.5-5225_daily_bin1281.fits.....................!
real 28.99
user 27.65
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/268509/ft1_filtered_4FGL_J2221.5-5225_daily_bin1281.fits', '/scratch/kocevski/268509/ft2_4FGL_J2221.5-5225_daily_bin1281.fits', expMap='/scratch/kocevski/268509/expmap_571363201_571622401_4FGL_J2221.5-5225_daily_bin1281.fits', expCube='/scratch/kocevski/268509/ltcube_571363201_571622401_4FGL_J2221.5-5225_daily_bin1281.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/268509/Model_4FGL_J2221.5-5225_daily_bin1281.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.5-5225'

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.615e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/268509/ft1_filtered_4FGL_J2221.5-5225_daily_bin1281.fits
Spacecraft file(s): /scratch/kocevski/268509/ft2_4FGL_J2221.5-5225_daily_bin1281.fits
Exposure map: /scratch/kocevski/268509/expmap_571363201_571622401_4FGL_J2221.5-5225_daily_bin1281.fits
Exposure cube: /scratch/kocevski/268509/ltcube_571363201_571622401_4FGL_J2221.5-5225_daily_bin1281.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/268509/Model_4FGL_J2221.5-5225_daily_bin1281.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) = 2780.38196841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34760E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14904E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17702E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2702       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16363E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .61654E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    122.06       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11829E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.089       1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.466       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.317       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.2456       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3710       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0040       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2780.326     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2896 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    188.55        .19121E-04** at limit **
   2  Prefactor     .10000E-03    164.08        .78577E-04** at limit **
   3  Prefactor     .10000E-03    74.166        .36875E-05** at limit **
   4  Prefactor     .10000E-03    38.924        .26665E-04** at limit **
   5  Prefactor     .10000E-03    24.431       -.76829E-05** at limit **
   6  Prefactor     .10000E-03    10.159        .41827E-06** at limit **
   7  Prefactor     6.2681        6.6004        .95037E-06   -.22802E-03
   8  Prefactor     .10000E-03    65.002       -.25136E-04** at limit **
   9  norm          .10000E-03    3.9299        .34310E-08** at limit **
  10  Prefactor     .10025E-03    6.2398        .78945E-05** at limit **
  11  Prefactor     122.00        126.85       -.54657E-04   -.19538E-03
  12  Prefactor     .10019E-03    11.622       -.98769E-06** at limit **
  13  Prefactor     .10000E-03    11.557       -.81234E-06** at limit **
  14  Prefactor     17.080        16.361       -.17632E-04   -.11369E-03
  15  Prefactor     32.790        100.64        .46107E-03    .42534E-04
  16  Prefactor     .10000E-03    5.2374        .13841E-06** at limit **
  17  Prefactor     45.350        52.613        .19482E-04   -.20465E-04
  18  Prefactor     .10000E-03    8.1577       -.16230E-06** at limit **
  19  norm          .10000E-03    6.8862        .60751E-08** at limit **
  20  norm          .10000E-03    3.2675       -.32206E-08** at limit **
  21  Prefactor     .10000E-03    4.3046        .78229E-07** at limit **
  22  Prefactor     .10000E-03    49.701       -.23035E-04** at limit **
  23  norm          4.2458        2.0365        .12926E-06    .38090E-03
  24  Normalizat    1.3708        .30302       -.40196E-05   -.52072E-03
  25  Prefactor     1.0040        .26530       -.32903E-05   -.59005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.2681
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100247
  Prefactor  = 121.996
  Prefactor  = 0.000100193
  Prefactor  = 0.0001
  Prefactor  = 17.0802
  Prefactor  = 32.7895
  Prefactor  = 0.0001
  Prefactor  = 45.3495
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.24579
  Normalizat = 1.37081
  Prefactor  = 1.00401
 **********
 **   18 **HESSE 
 **********

 FCN=   2780.326     FROM HESSE     STATUS=OK           413 CALLS     3309 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    188.56        .21327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    164.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    74.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.201        .16414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2681        6.5998        .13388E-03   -1.5207    
   8  Prefactor     .10000E-03    65.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.9301        .10209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10025E-03    25.655        .25184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     122.00        126.12        .18214E-03   -1.3494    
  12  Prefactor     .10019E-03    74.029        .34288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.562        .17509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.080        16.359        .96885E-04   -1.4881    
  15  Prefactor     32.790        100.42        .35162E-03   -1.4562    
  16  Prefactor     .10000E-03    5.2388        .11786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     45.350        52.506        .59558E-04   -1.4360    
  18  Prefactor     .10000E-03    8.1669        .14709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.8868        .13515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2679        .93088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.3162        .10682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    50.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.2458        2.0359        .50019E-04   -1.5296    
  24  Normalizat    1.3708        .35932        .25196E-03   -.81477    
  25  Prefactor     1.0040        .31630        .25652E-03   -.92596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31742e-08
Minuit parameter uncertainties:
  1  4.34657e-05
  2  5.43597e-06
  3  0.000103191
  4  0.000167954
  5  1.33396e-06
  6  8.17825e-07
  7  6.60055
  8  3.26407e-06
  9  4.26312e-07
  10  0.00503249
  11  126.396
  12  0.00756902
  13  7.16744e-05
  14  16.3628
  15  100.941
  16  2.94209e-05
  17  52.5598
  18  1.45347e-05
  19  2.66928e-06
  20  3.14771e-07
  21  1.1439e-05
  22  0.000321871
  23  2.03596
  24  0.359983
  25  0.316891
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  4.263e-07  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.004e+00  3.169e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.371e+00  3.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.391 -52.431
Photon Flux Upper Limit: 3.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268509/likelihoodResults_571363201_571622401_4FGL_J2221.5-5225_daily_bin1281.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) = 2780.32619802
delta logL = -0.000158065842243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2780.32604898
delta logL = -9.02509736989e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11071E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0844       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0039       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+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=   2780.326     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      278 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    237.16        .83828E-02** at limit **
   2  alpha         1.2918        3.0319        .16758        .38500E-07
   3  Normalizat    1.3708        .59497E-01    .25196E-03   -.40431E-03
   4  Prefactor     1.0040        .53135E-01    .25652E-03   -.41047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.29175
  Normalizat = 1.37081
  Prefactor  = 1.00401
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3145        .10688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2918        3.1559        .67030E-02   -.50442    
   3  Normalizat    1.3708        .35403        .50392E-04   -.81477    
   4  Prefactor     1.0040        .31615        .51304E-04   -.92596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44329e-10
Minuit parameter uncertainties:
  1  8.71268e-05
  2  212.137
  3  0.354661
  4  0.31674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268509': 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) = 2780.32603884
delta logL = 1.11276131065e-06

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  8.713e-05  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.292e+00  2.121e+02  0.000e+00  5.000e+00 ( 1.000e+00)
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.004e+00  3.167e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.371e+00  3.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.391 -52.431

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/268509/cmap_HighResolution_571363201_571622401_4FGL_J2221.5-5225_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-05', job_status='DONE', photon_flux_upper_limit='3.89e-08', time_completed='2021-09-28 09:49:14.541095', job_id='268509', GAL2='1.00', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1632847754.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1281' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:49:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 268509: <4FGL_J2221.5-5225_daily_bin1281> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin1281> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:40:14 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:40:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:40:15 2021
Terminated at Tue Sep 28 09:49:15 2021
Results reported at Tue Sep 28 09:49:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1281 335.391 -52.4307 571363201 571622401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2221.5-5225 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   497.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   539 sec.
    Turnaround time :                            541 sec.

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

