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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1046
RA = 335.391, Dec = -52.4307
tmin = 510451201, tmax = 510710401
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='267142', job_status='RUN', time_executed='2021-09-28 09:36:03.454502', time_epoch_executed='1632846963.45' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267142

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267142/ft1_4FGL_J2221.5-5225_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267142/ft2_4FGL_J2221.5-5225_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267142/ft1_4FGL_J2221.5-5225_daily_bin1046.fits outfile=/scratch/kocevski/267142/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1046.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=510451201.0 tmax=510710401.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 3.93
user 3.74
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267142/ft2_4FGL_J2221.5-5225_daily_bin1046.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/267142/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1046.fits evtable="EVENTS" outfile="/scratch/kocevski/267142/ft1_filtered_4FGL_J2221.5-5225_daily_bin1046.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267142/ft1_filtered_4FGL_J2221.5-5225_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/267142/ft2_4FGL_J2221.5-5225_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/267142/ltcube_510451201_510710401_4FGL_J2221.5-5225_daily_bin1046.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/267142/ft2_4FGL_J2221.5-5225_daily_bin1046.fits
.....................!
real 11.70
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267142/ft1_filtered_4FGL_J2221.5-5225_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/267142/ft2_4FGL_J2221.5-5225_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/267142/ltcube_510451201_510710401_4FGL_J2221.5-5225_daily_bin1046.fits outfile=/scratch/kocevski/267142/expmap_510451201_510710401_4FGL_J2221.5-5225_daily_bin1046.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/267142/ltcube_510451201_510710401_4FGL_J2221.5-5225_daily_bin1046.fits
.....................!
real 190.54
user 185.24
sys 4.99

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/267142/ft1_filtered_4FGL_J2221.5-5225_daily_bin1046.fits scfile=/scratch/kocevski/267142/ft2_4FGL_J2221.5-5225_daily_bin1046.fits outfile=/scratch/kocevski/267142/cmap_510451201_510710401_4FGL_J2221.5-5225_daily_bin1046.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267142/ft1_filtered_4FGL_J2221.5-5225_daily_bin1046.fits scfile=/scratch/kocevski/267142/ft2_4FGL_J2221.5-5225_daily_bin1046.fits outfile=/scratch/kocevski/267142/cmap_HighResolution_510451201_510710401_4FGL_J2221.5-5225_daily_bin1046.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/267142/ft1_filtered_4FGL_J2221.5-5225_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/267142/ft2_4FGL_J2221.5-5225_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267142/Model_4FGL_J2221.5-5225_daily_bin1046.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/267142/ft1_filtered_4FGL_J2221.5-5225_daily_bin1046.fits.....................!
real 48.14
user 46.92
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/267142/ft1_filtered_4FGL_J2221.5-5225_daily_bin1046.fits', '/scratch/kocevski/267142/ft2_4FGL_J2221.5-5225_daily_bin1046.fits', expMap='/scratch/kocevski/267142/expmap_510451201_510710401_4FGL_J2221.5-5225_daily_bin1046.fits', expCube='/scratch/kocevski/267142/ltcube_510451201_510710401_4FGL_J2221.5-5225_daily_bin1046.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/267142/Model_4FGL_J2221.5-5225_daily_bin1046.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/267142/ft1_filtered_4FGL_J2221.5-5225_daily_bin1046.fits
Spacecraft file(s): /scratch/kocevski/267142/ft2_4FGL_J2221.5-5225_daily_bin1046.fits
Exposure map: /scratch/kocevski/267142/expmap_510451201_510710401_4FGL_J2221.5-5225_daily_bin1046.fits
Exposure cube: /scratch/kocevski/267142/ltcube_510451201_510710401_4FGL_J2221.5-5225_daily_bin1046.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/267142/Model_4FGL_J2221.5-5225_daily_bin1046.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) = 6333.60434449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.429       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.292       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0715       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47553       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4910       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.464       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15708       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.308       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7535       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7771       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0979       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97981       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6333.530     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     2081 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.434        1.0389        .19791E-08    .36542E-03
   2  Prefactor     .10000E-03    3.2913        .12067E-05** at limit **
   3  Prefactor     13.280        1.2617       -.35134E-07   -.74406E-03
   4  Prefactor     4.0715        3.8004        .24561E-06   -.35566E-03
   5  Prefactor     .10111E-03    14.381        .37994E-06** at limit **
   6  Prefactor     .42097        4.2591        .21487E-05    .18788E-03
   7  Prefactor     .10000E-03    3.0670       -.79535E-06** at limit **
   8  Prefactor     .10010E-03    74.783        .68019E-05** at limit **
   9  norm          .10000E-03    6.7797       -.91281E-06** at limit **
  10  Prefactor     2.4909        3.7915       -.80075E-06   -.35354E-04
  11  Prefactor     .10554E-03    9.4382        .13353E-05** at limit **
  12  Prefactor     19.464        8.2167        .13140E-05   -.33510E-02
  13  Prefactor     .10705E-03    492.53       -.78292E-05** at limit **
  14  Prefactor     .10000E-03    3.8651       -.11477E-05** at limit **
  15  Prefactor     .10064E-03    20.645        .40643E-05** at limit **
  16  Prefactor     18.304        1.4860       -.10533E-06   -.45337E-02
  17  Prefactor     1.6597        4.9475        .26439E-06   -.25219E-02
  18  Prefactor     .10000E-03    4.0832        .15945E-05** at limit **
  19  norm          .10000E-03    3.9500       -.66494E-06** at limit **
  20  norm          .10000E-03    5.2964        .28224E-05** at limit **
  21  Prefactor     8.7763        6.6959       -.16272E-05   -.26352E-02
  22  Prefactor     .10056E-03    13.980        .38471E-06** at limit **
  23  norm          .10000E-03    .44348       -.21101E-06** at limit **
  24  Normalizat    1.0981        .21966        .61037E-05    .23794E-03
  25  Prefactor     .97975        .18067       -.30092E-05    .16815E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.434
  Prefactor  = 0.0001
  Prefactor  = 13.2796
  Prefactor  = 4.07151
  Prefactor  = 0.000101115
  Prefactor  = 0.42097
  Prefactor  = 0.0001
  Prefactor  = 0.000100103
  norm       = 0.0001
  Prefactor  = 2.49087
  Prefactor  = 0.000105539
  Prefactor  = 19.4642
  Prefactor  = 0.000107048
  Prefactor  = 0.000100001
  Prefactor  = 0.000100638
  Prefactor  = 18.3041
  Prefactor  = 1.65968
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 8.77626
  Prefactor  = 0.000100556
  norm       = 0.0001
  Normalizat = 1.09808
  Prefactor  = 0.979753
 **********
 **   18 **HESSE 
 **********

 FCN=   6333.530     FROM HESSE     STATUS=OK           491 CALLS     2572 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.434        38.502        .13592E-02   -1.4231    
   2  Prefactor     .10000E-03    3.2797        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.280        25.700        .27467E-02   -1.4979    
   4  Prefactor     4.0715        3.8182        .49954E-02   -1.5304    
   5  Prefactor     .10111E-03    34.366        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .42097        4.6712        .91963E-01   -1.5578    
   7  Prefactor     .10000E-03    2.9627        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10010E-03    76.220        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.5941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4909        3.8282        .64745E-02   -1.5392    
  11  Prefactor     .10554E-03    29.800        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.464        8.5880        .22696E-02   -1.4825    
  13  Prefactor     .10705E-03    21.658        .11484       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8564        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10064E-03    25.496        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.304        11.089        .23401E-02   -1.4852    
  17  Prefactor     1.6597        174.44        .79142E-02   -1.5450    
  18  Prefactor     .10000E-03    4.0799        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.9537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.2101        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.7763        6.7964        .33824E-02   -1.5115    
  22  Prefactor     .10056E-03    33.841        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .42584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0981        .19005        .57288E-01   -.89813    
  25  Prefactor     .97975        .15191        .46014E-01   -.93407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34902e-07
Minuit parameter uncertainties:
  1  38.5193
  2  1.73006e-05
  3  25.7211
  4  3.81846
  5  0.0123851
  6  2.80455
  7  1.14787e-05
  8  0.00561716
  9  2.45099e-05
  10  3.82858
  11  0.0257077
  12  8.58857
  13  0.0247187
  14  9.21379e-05
  15  0.00806805
  16  11.0906
  17  34.1319
  18  4.77594e-05
  19  0.000134403
  20  5.63714e-05
  21  6.79701
  22  0.0086804
  23  9.52865e-07
  24  0.190172
  25  0.151975
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  2.451e-05  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:  9.798e-01  1.520e-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.098e+00  1.902e-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: 2.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267142/likelihoodResults_510451201_510710401_4FGL_J2221.5-5225_daily_bin1046.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) = 6333.53112038
delta logL = -0.00070246226187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6333.53041198
delta logL = 5.93973891228e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0661       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97975       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6333.530     FROM MIGRAD    STATUS=FAILED       150 CALLS      389 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14550E-01    12.660        .38746E-01   -.34846E-03
   2  alpha         2.3475        3.0529        .50000        .30152E-04
   3  Normalizat    1.0981        .10082E-01    .25334E-03    .26149E-03
   4  Prefactor     .97969        .85879E-02    .22581E-03    .41786E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6333.530     FROM SIMPLEX   STATUS=UNCHANGED     56 CALLS      445 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14550E-01    12.660        .43680E-02   -.34846E-03
   2  alpha         2.3475        3.0529        .29242E-01    .30152E-04
   3  Normalizat    1.0981        .10082E-01    .71419E-04    .26149E-03
   4  Prefactor     .97969        .85879E-02    .50033E-04    .41786E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6333.530     FROM MIGRAD    STATUS=FAILED        93 CALLS      538 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14550E-01    11.316        .40593E-01   -.32971E-03
   2  alpha         2.3475        3.2384        .50000        .30122E-04
   3  Normalizat    1.0981        .97906E-02    .10134E-04    .24233E-03
   4  Prefactor     .97969        .83395E-02    .90325E-05    .39622E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0145502
  alpha      = 2.34755
  Normalizat = 1.09808
  Prefactor  = 0.979693
 **********
 **   18 **HESSE 
 **********

 FCN=   6333.530     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      577 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14550E-01    11.277        .40652E-01   -1.5732    
   2  alpha         2.3475        3.2437        .50000       -.61019E-01
   3  Normalizat    1.0981        .97820E-02    .20267E-05   -.89814    
   4  Prefactor     .97969        .83325E-02    .18065E-05   -.93409    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.70853e-08
Minuit parameter uncertainties:
  1  0.807505
  2  14.1207
  3  0.00978202
  4  0.00833254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267142': 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): 1
logL (Free Index) = 6333.53039123
delta logL = 2.66899323833e-05

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.455e-02  8.075e-01  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.348e+00  1.412e+01  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:  9.797e-01  8.333e-03  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.098e+00  9.782e-03  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/267142/cmap_HighResolution_510451201_510710401_4FGL_J2221.5-5225_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-05', job_status='DONE', photon_flux_upper_limit='2.75e-08', time_completed='2021-09-28 09:47:24.662762', job_id='267142', GAL2='0.98', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632847644.66', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.67e-05', ts2='0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1046' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:47:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 267142: <4FGL_J2221.5-5225_daily_bin1046> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin1046> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:35:26 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:35:27 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:35:27 2021
Terminated at Tue Sep 28 09:47:25 2021
Results reported at Tue Sep 28 09:47:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1046 335.391 -52.4307 510451201 510710401 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 :                                   681.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            719 sec.

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

