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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin571
RA = 335.391, Dec = -52.4307
tmin = 387331201, tmax = 387590401
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='265483', job_status='RUN', time_executed='2021-09-28 09:33:16.995557', time_epoch_executed='1632846797.0' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265483

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265483/ft1_4FGL_J2221.5-5225_daily_bin571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265483/ft2_4FGL_J2221.5-5225_daily_bin571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265483/ft1_4FGL_J2221.5-5225_daily_bin571.fits outfile=/scratch/kocevski/265483/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin571.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=387331201.0 tmax=387590401.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.47
user 4.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265483/ft2_4FGL_J2221.5-5225_daily_bin571.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/265483/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin571.fits evtable="EVENTS" outfile="/scratch/kocevski/265483/ft1_filtered_4FGL_J2221.5-5225_daily_bin571.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.53
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265483/ft1_filtered_4FGL_J2221.5-5225_daily_bin571.fits" evtable="EVENTS" scfile=/scratch/kocevski/265483/ft2_4FGL_J2221.5-5225_daily_bin571.fits sctable="SC_DATA" outfile=/scratch/kocevski/265483/ltcube_387331201_387590401_4FGL_J2221.5-5225_daily_bin571.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/265483/ft2_4FGL_J2221.5-5225_daily_bin571.fits
.....................!
real 12.03
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265483/ft1_filtered_4FGL_J2221.5-5225_daily_bin571.fits evtable="EVENTS" scfile=/scratch/kocevski/265483/ft2_4FGL_J2221.5-5225_daily_bin571.fits sctable="SC_DATA" expcube=/scratch/kocevski/265483/ltcube_387331201_387590401_4FGL_J2221.5-5225_daily_bin571.fits outfile=/scratch/kocevski/265483/expmap_387331201_387590401_4FGL_J2221.5-5225_daily_bin571.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/265483/ltcube_387331201_387590401_4FGL_J2221.5-5225_daily_bin571.fits
.....................!
real 192.28
user 187.52
sys 4.41

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/265483/ft1_filtered_4FGL_J2221.5-5225_daily_bin571.fits scfile=/scratch/kocevski/265483/ft2_4FGL_J2221.5-5225_daily_bin571.fits outfile=/scratch/kocevski/265483/cmap_387331201_387590401_4FGL_J2221.5-5225_daily_bin571.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265483/ft1_filtered_4FGL_J2221.5-5225_daily_bin571.fits scfile=/scratch/kocevski/265483/ft2_4FGL_J2221.5-5225_daily_bin571.fits outfile=/scratch/kocevski/265483/cmap_HighResolution_387331201_387590401_4FGL_J2221.5-5225_daily_bin571.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265483/ft1_filtered_4FGL_J2221.5-5225_daily_bin571.fits evtable="EVENTS" scfile=/scratch/kocevski/265483/ft2_4FGL_J2221.5-5225_daily_bin571.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265483/Model_4FGL_J2221.5-5225_daily_bin571.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/265483/ft1_filtered_4FGL_J2221.5-5225_daily_bin571.fits.....................!
real 47.81
user 46.42
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.482       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5105       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8920       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7664       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.1552       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8310       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2934       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1413       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .54821E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.573       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1164       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73928       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0519       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=   6491.207     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2897 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.482        49.026       -.12036E-06   -.82791E-05
   2  Prefactor     2.5100        7.0630        .19264E-06   -.13901E-03
   3  Prefactor     .10000E-03    9.0429       -.93475E-07** at limit **
   4  Prefactor     .10000E-03    3.0105        .11827E-07** at limit **
   5  Prefactor     .10000E-03    18.512        .76854E-06** at limit **
   6  Prefactor     5.8904        7.0729        .26962E-07   -.81319E-04
   7  Prefactor     5.7664        3.8371       -.29353E-06   -.25246E-03
   8  Prefactor     .10000E-03    27.796        .31785E-05** at limit **
   9  norm          5.1552        6.7151       -.31861E-07   -.53204E-04
  10  Prefactor     3.8308        2.5493       -.22082E-07    .85758E-05
  11  Prefactor     .10000E-03    56.428        .17719E-06** at limit **
  12  Prefactor     5.2933        3.8321        .57110E-06    .35711E-03
  13  Prefactor     .10000E-03    20.069       -.23639E-05** at limit **
  14  Prefactor     6.1384        6.1203        .93935E-06   -.10253E-02
  15  Prefactor     .10000E-03    24.916       -.21611E-05** at limit **
  16  Prefactor     .46305E-01    3.9897       -.67872E-06    .35687E-03
  17  Prefactor     .10000E-03    11.162       -.21865E-05** at limit **
  18  Prefactor     .10000E-03    3.6528        .69937E-07** at limit **
  19  norm          .10000E-03    13.154        .17498E-05** at limit **
  20  norm          .10000E-03    1.6288       -.16726E-07** at limit **
  21  Prefactor     19.575        7.5665        .51714E-08   -.66703E-04
  22  Prefactor     .10000E-03    10.094        .14298E-05** at limit **
  23  norm          1.1164        .71502       -.10552E-07   -.15056E-04
  24  Normalizat    .73927        .16151       -.27924E-06    .36070E-04
  25  Prefactor     1.0519        .13827        .29175E-07    .30683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.4815
  Prefactor  = 2.50996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.8904
  Prefactor  = 5.76635
  Prefactor  = 0.000100001
  norm       = 5.15517
  Prefactor  = 3.83085
  Prefactor  = 0.0001
  Prefactor  = 5.2933
  Prefactor  = 0.0001
  Prefactor  = 6.1384
  Prefactor  = 0.0001
  Prefactor  = 0.0463047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.5749
  Prefactor  = 0.0001
  norm       = 1.1164
  Normalizat = 0.739269
  Prefactor  = 1.05195
 **********
 **   18 **HESSE 
 **********

 FCN=   6491.207     FROM HESSE     STATUS=OK           433 CALLS     3330 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.482        49.146        .48860E-04   -1.4063    
   2  Prefactor     2.5100        7.1224        .25788E-03   -1.5391    
   3  Prefactor     .10000E-03    9.0515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0846        .27264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8904        7.0665        .16544E-03   -1.5223    
   7  Prefactor     5.7664        3.8424        .12211E-03   -1.5228    
   8  Prefactor     .10000E-03    28.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.1552        6.7127        .17706E-03   -1.5254    
  10  Prefactor     3.8308        2.5503        .10145E-03   -1.5316    
  11  Prefactor     .10000E-03    57.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2933        3.8744        .13092E-03   -1.5248    
  13  Prefactor     .10000E-03    20.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1384        9.2744        .81001E-03   -1.5212    
  15  Prefactor     .10000E-03    25.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .46305E-01    3.8767        .53495E-01   -1.5665    
  17  Prefactor     .10000E-03    11.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6595        .15038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6290        .10042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.575        7.5635        .90531E-04   -1.4823    
  22  Prefactor     .10000E-03    10.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1164        .72478        .52828E-04   -1.5497    
  24  Normalizat    .73927        .18537        .26944E-03   -1.0236    
  25  Prefactor     1.0519        .15850        .19999E-03   -.91017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47746e-09
Minuit parameter uncertainties:
  1  49.1753
  2  7.12476
  3  2.50422e-06
  4  1.85397e-06
  5  5.38386e-05
  6  7.06755
  7  3.8426
  8  0.000280411
  9  6.71372
  10  2.55037
  11  3.02552e-05
  12  3.8746
  13  0.000178666
  14  9.27659
  15  0.000179011
  16  0.846512
  17  0.000123264
  18  2.03325e-06
  19  8.39319e-05
  20  3.59549e-07
  21  7.56383
  22  7.40855e-05
  23  0.724784
  24  0.185523
  25  0.158568
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  5.155e+00  6.714e+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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.052e+00  1.586e-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:  7.393e-01  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/265483/likelihoodResults_387331201_387590401_4FGL_J2221.5-5225_daily_bin571.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) = 6491.07335696
delta logL = 0.133304311535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6491.06684131
delta logL = 0.139819965043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4827       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0177       1.0000          .0000       5.0000    
     3 'Normalizat'    .73599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0514       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.

 FCN=   6491.067     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4842        182.78        .47543E-02    .36502E-03
   2  alpha         2.0172        2.8869        .30357        .55683E-04
   3  Normalizat    .73596        .71756E-01    .42769E-01   -.31377E-04
   4  Prefactor     1.0515        .49439E-01    .39826E-01   -.17954E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.48415
  alpha      = 2.0172
  Normalizat = 0.735956
  Prefactor  = 1.05146
 **********
 **   18 **HESSE 
 **********

 FCN=   6491.067     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4842        6.4140        .18767E-03   -1.5284    
   2  alpha         2.0172        .82479        .16688E-01   -.19434    
   3  Normalizat    .73596        .17815        .26993E-03   -1.0249    
   4  Prefactor     1.0515        .15621        .19996E-03   -.91033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3685e-11
Minuit parameter uncertainties:
  1  6.41496
  2  0.841178
  3  0.178294
  4  0.156278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265483': 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) = 6491.06684109
delta logL = 0.139820177398

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  4.484e+00  6.415e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.017e+00  8.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:  1.051e+00  1.563e-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:  7.360e-01  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 2.02 +/- 0.84
Photon Flux (Free Index): 1.46e-08 +/- 1.96e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.71e-05

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/265483/cmap_HighResolution_387331201_387590401_4FGL_J2221.5-5225_daily_bin571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.90e-05', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='1.40e-01', photon_flux2='1.46e-08', job_status='DONE', time_completed='2021-09-28 09:45:24.366150', photon_index_error2='0.84', photon_index2='2.02', ts='0.89', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='3.90e-08', energy_flux_error2='1.71e-05', EG='0.74', time_epoch_completed='1632847524.37', return_code='0', job_id='265483', GAL2='1.05', EG2='0.74', return_code2='0', photon_flux_error2='1.96e-08', ts2='1.17', photon_index='1.61' WHERE bin_id='571' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:45:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 265483: <4FGL_J2221.5-5225_daily_bin571> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin571> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:30:22 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:30:25 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:30:25 2021
Terminated at Tue Sep 28 09:45:25 2021
Results reported at Tue Sep 28 09:45:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin571 335.391 -52.4307 387331201 387590401 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 :                                   727.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            903 sec.

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

