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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin580
RA = 335.391, Dec = -52.4307
tmin = 389664001, tmax = 389923201
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='265497', job_status='RUN', time_executed='2021-09-28 09:32:34.983844', time_epoch_executed='1632846754.98' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265497/ft1_4FGL_J2221.5-5225_daily_bin580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265497/ft2_4FGL_J2221.5-5225_daily_bin580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265497/ft1_4FGL_J2221.5-5225_daily_bin580.fits outfile=/scratch/kocevski/265497/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin580.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=389664001.0 tmax=389923201.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.87
user 4.61
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265497/ft1_filtered_4FGL_J2221.5-5225_daily_bin580.fits" evtable="EVENTS" scfile=/scratch/kocevski/265497/ft2_4FGL_J2221.5-5225_daily_bin580.fits sctable="SC_DATA" outfile=/scratch/kocevski/265497/ltcube_389664001_389923201_4FGL_J2221.5-5225_daily_bin580.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/265497/ft2_4FGL_J2221.5-5225_daily_bin580.fits
.....................!
real 12.12
user 11.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265497/ft1_filtered_4FGL_J2221.5-5225_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/265497/ft2_4FGL_J2221.5-5225_daily_bin580.fits sctable="SC_DATA" expcube=/scratch/kocevski/265497/ltcube_389664001_389923201_4FGL_J2221.5-5225_daily_bin580.fits outfile=/scratch/kocevski/265497/expmap_389664001_389923201_4FGL_J2221.5-5225_daily_bin580.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/265497/ltcube_389664001_389923201_4FGL_J2221.5-5225_daily_bin580.fits
.....................!
real 191.92
user 187.11
sys 4.44

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/265497/ft1_filtered_4FGL_J2221.5-5225_daily_bin580.fits scfile=/scratch/kocevski/265497/ft2_4FGL_J2221.5-5225_daily_bin580.fits outfile=/scratch/kocevski/265497/cmap_389664001_389923201_4FGL_J2221.5-5225_daily_bin580.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.57
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265497/ft1_filtered_4FGL_J2221.5-5225_daily_bin580.fits scfile=/scratch/kocevski/265497/ft2_4FGL_J2221.5-5225_daily_bin580.fits outfile=/scratch/kocevski/265497/cmap_HighResolution_389664001_389923201_4FGL_J2221.5-5225_daily_bin580.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265497/ft1_filtered_4FGL_J2221.5-5225_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/265497/ft2_4FGL_J2221.5-5225_daily_bin580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265497/Model_4FGL_J2221.5-5225_daily_bin580.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/265497/ft1_filtered_4FGL_J2221.5-5225_daily_bin580.fits.....................!
real 50.71
user 49.31
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.033       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9555       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14533E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.992       1.0000         .10000E-03   10000.    
     9 'norm      '    .94369       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5022       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.382       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.009       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8877       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0261       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .88323       1.0000         .10000E-03   10000.    
    23 'norm      '    6.9073       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2841       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0488       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=   6502.669     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2888 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.027        36.028        .43626E-06    .45835E-04
   2  Prefactor     5.9559        8.3162        .18042E-06    .60791E-04
   3  Prefactor     .10000E-03    25.101        .24890E-05** at limit **
   4  Prefactor     .10000E-03    2.8934        .84934E-06** at limit **
   5  Prefactor     .10000E-03    25.410        .12500E-05** at limit **
   6  Prefactor     .10001E-03    8.3381       -.18023E-05** at limit **
   7  Prefactor     .10000E-03    2.6459        .30513E-06** at limit **
   8  Prefactor     14.105        146.15        .39424E-05    .55574E-04
   9  norm          .94362        4.0739       -.13036E-06   -.40341E-04
  10  Prefactor     1.5019        4.5648        .10662E-05   -.38969E-03
  11  Prefactor     .10000E-03    38.344        .56066E-06** at limit **
  12  Prefactor     10.382        6.3609        .16421E-06    .24065E-03
  13  Prefactor     .10000E-03    14.022        .38544E-06** at limit **
  14  Prefactor     17.010        12.833        .75914E-07    .51147E-04
  15  Prefactor     .10000E-03    35.191       -.12785E-05** at limit **
  16  Prefactor     .10000E-03    4.4734        .35783E-06** at limit **
  17  Prefactor     .10000E-03    37.656        .45158E-06** at limit **
  18  Prefactor     7.8855        14.554       -.27464E-06   -.11654E-03
  19  norm          .10000E-03    5.8280        .11614E-06** at limit **
  20  norm          1.0287        7.1584        .16574E-06   -.87446E-04
  21  Prefactor     .10001E-03    23.614        .73458E-05** at limit **
  22  Prefactor     .93670        193.60        .17586E-05   -.19350E-04
  23  norm          6.9064        2.2426       -.24661E-06   -.16770E-02
  24  Normalizat    1.2842        .23185       -.23575E-05   -.70896E-04
  25  Prefactor     1.0487        .17729        .17858E-05    .40108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.0274
  Prefactor  = 5.95586
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 14.1053
  norm       = 0.94362
  Prefactor  = 1.50185
  Prefactor  = 0.0001
  Prefactor  = 10.3821
  Prefactor  = 0.0001
  Prefactor  = 17.01
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.88547
  norm       = 0.0001
  norm       = 1.02869
  Prefactor  = 0.000100008
  Prefactor  = 0.936701
  norm       = 6.90635
  Normalizat = 1.2842
  Prefactor  = 1.04873
 **********
 **   18 **HESSE 
 **********

 FCN=   6502.669     FROM HESSE     STATUS=OK           425 CALLS     3313 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.027        36.021        .74355E-04   -1.4630    
   2  Prefactor     5.9559        8.3117        .16454E-03   -1.5220    
   3  Prefactor     .10000E-03    25.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9637        .13403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    26.287        .35081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6995        .12815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.105        155.20        .10708E-03   -1.4957    
   9  norm          .94362        3.8967        .31749E-03   -1.5514    
  10  Prefactor     1.5019        4.6384        .14356E-02   -1.5463    
  11  Prefactor     .10000E-03    38.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.382        6.3910        .12435E-03   -1.5063    
  13  Prefactor     .10000E-03    14.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.010        12.835        .97113E-04   -1.4883    
  15  Prefactor     .10000E-03    35.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.4885        .16663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.8855        14.518        .14277E-03   -1.5146    
  19  norm          .10000E-03    5.8320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0287        6.9507        .40754E-03   -1.5505    
  21  Prefactor     .10001E-03    26.506        .31617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .93670        213.04        .73533E-02   -1.5514    
  23  norm          6.9064        2.2643        .61353E-04   -1.5182    
  24  Normalizat    1.2842        .25314        .26755E-03   -.84039    
  25  Prefactor     1.0487        .19631        .23751E-03   -.91122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22015e-08
Minuit parameter uncertainties:
  1  36.0476
  2  8.31326
  3  0.000336612
  4  3.10683e-05
  5  0.000204594
  6  0.00098779
  7  4.30898e-06
  8  93.8878
  9  3.83535
  10  4.63954
  11  6.44166e-05
  12  6.39139
  13  2.27916e-05
  14  12.8369
  15  0.000308011
  16  1.56056e-05
  17  4.09636e-05
  18  14.5243
  19  6.9755e-06
  20  5.34859
  21  0.00094032
  22  28.3539
  23  2.26436
  24  0.253383
  25  0.196444
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  9.436e-01  3.835e+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.049e+00  1.964e-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.284e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/265497/likelihoodResults_389664001_389923201_4FGL_J2221.5-5225_daily_bin580.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) = 6502.66362025
delta logL = 0.00568922307411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6502.66357522
delta logL = 0.00573425729362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91239       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7932       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0486       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6502.664     FROM MIGRAD    STATUS=FAILED        97 CALLS      259 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90985        319.50        .26848E-02    .35753E-02
   2  alpha         1.7909        3.9131        .50000       -.32499E-05
   3  Normalizat    1.2841        .61544E-01    .26757E-03    .20402E-03
   4  Prefactor     1.0486        .46932E-01    .23752E-03    .32263E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6502.664     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      347 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90985        319.50        .16358E-03    .35753E-02
   2  alpha         1.7909        3.9131        .32329E-02   -.32499E-05
   3  Normalizat    1.2841        .61544E-01    .11892E-03    .20402E-03
   4  Prefactor     1.0486        .46932E-01    .57670E-04    .32263E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6502.664     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      381 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90982        4.1151        .53695E-03   -.31323E-03
   2  alpha         1.7910        1.6555        .39555E-01   -.18815E-04
   3  Normalizat    1.2841        .23380        .53513E-04    .19481E-03
   4  Prefactor     1.0486        .19113        .47504E-04    .30901E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.909825
  alpha      = 1.79095
  Normalizat = 1.28409
  Prefactor  = 1.04859
 **********
 **   18 **HESSE 
 **********

 FCN=   6502.664     FROM HESSE     STATUS=OK            25 CALLS      406 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90982        3.6269        .21478E-04   -1.5517    
   2  alpha         1.7910        1.5735        .15822E-02   -.28757    
   3  Normalizat    1.2841        .23383        .10703E-04   -.84043    
   4  Prefactor     1.0486        .19116        .95007E-05   -.91127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03653e-10
Minuit parameter uncertainties:
  1  3.62775
  2  1.71637
  3  0.234022
  4  0.191281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265497': 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) = 6502.66357372
delta logL = 0.00573575686212

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  9.098e-01  3.628e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.791e+00  1.716e+00  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.049e+00  1.913e-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.284e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/265497/cmap_HighResolution_389664001_389923201_4FGL_J2221.5-5225_daily_bin580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-05', job_status='DONE', photon_flux_upper_limit='2.67e-08', time_completed='2021-09-28 09:45:01.230616', job_id='265497', GAL2='1.05', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632847501.23', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.74e-03', ts2='0.08', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='580' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:45:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 265497: <4FGL_J2221.5-5225_daily_bin580> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin580 335.391 -52.4307 389664001 389923201 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 :                                   746.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

