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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin948
RA = 335.391, Dec = -52.4307
tmin = 485049601, tmax = 485308801
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='266994', job_status='RUN', time_executed='2021-09-28 09:38:36.304063', time_epoch_executed='1632847116.3' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='948'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266994/ft1_4FGL_J2221.5-5225_daily_bin948.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266994/ft2_4FGL_J2221.5-5225_daily_bin948.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266994/ft1_4FGL_J2221.5-5225_daily_bin948.fits outfile=/scratch/kocevski/266994/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin948.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=485049601.0 tmax=485308801.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.57
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266994/ft1_filtered_4FGL_J2221.5-5225_daily_bin948.fits" evtable="EVENTS" scfile=/scratch/kocevski/266994/ft2_4FGL_J2221.5-5225_daily_bin948.fits sctable="SC_DATA" outfile=/scratch/kocevski/266994/ltcube_485049601_485308801_4FGL_J2221.5-5225_daily_bin948.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/266994/ft2_4FGL_J2221.5-5225_daily_bin948.fits
.....................!
real 11.73
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266994/ft1_filtered_4FGL_J2221.5-5225_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/266994/ft2_4FGL_J2221.5-5225_daily_bin948.fits sctable="SC_DATA" expcube=/scratch/kocevski/266994/ltcube_485049601_485308801_4FGL_J2221.5-5225_daily_bin948.fits outfile=/scratch/kocevski/266994/expmap_485049601_485308801_4FGL_J2221.5-5225_daily_bin948.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/266994/ltcube_485049601_485308801_4FGL_J2221.5-5225_daily_bin948.fits
.....................!
real 191.88
user 186.04
sys 5.42

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/266994/ft1_filtered_4FGL_J2221.5-5225_daily_bin948.fits scfile=/scratch/kocevski/266994/ft2_4FGL_J2221.5-5225_daily_bin948.fits outfile=/scratch/kocevski/266994/cmap_485049601_485308801_4FGL_J2221.5-5225_daily_bin948.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/266994/ft1_filtered_4FGL_J2221.5-5225_daily_bin948.fits scfile=/scratch/kocevski/266994/ft2_4FGL_J2221.5-5225_daily_bin948.fits outfile=/scratch/kocevski/266994/cmap_HighResolution_485049601_485308801_4FGL_J2221.5-5225_daily_bin948.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.58
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/266994/ft1_filtered_4FGL_J2221.5-5225_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/266994/ft2_4FGL_J2221.5-5225_daily_bin948.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/266994/Model_4FGL_J2221.5-5225_daily_bin948.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/266994/ft1_filtered_4FGL_J2221.5-5225_daily_bin948.fits.....................!
real 50.73
user 49.30
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.934       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8513       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.119       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0806       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16565E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .99418       1.0000         .10000E-03   10000.    
     9 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.463       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5421       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.060       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.612       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.144       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.378       1.0000         .10000E-03   10000.    
    19 'norm      '    22.396       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14510E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.693       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1401       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84096       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0474       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=   6682.839     FROM MIGRAD    STATUS=CONVERGED   1049 CALLS     3389 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.948        33.413        .70906E-04    .48100E-05
   2  Prefactor     1.8509        7.9457        .30641E-03   -.65339E-04
   3  Prefactor     13.122        23.662        .11059E-03   -.35981E-05
   4  Prefactor     .10000E-03    2.1005        .11446E-02** at limit **
   5  Prefactor     4.0944        46.858        .19959E-03   -.12133E-04
   6  Prefactor     .10000E-03    7.9229        .36285E-03** at limit **
   7  Prefactor     .10027E-03    54.041        .20115E-02** at limit **
   8  Prefactor     .77794        69.928        .19699        .95568E-04
   9  norm          .10000E-03    5.6974        .18142E-02** at limit **
  10  Prefactor     4.9119        3.3940        .11936E-03   -.35623E-04
  11  Prefactor     25.451        24.116        .79386E-04   -.15610E-04
  12  Prefactor     2.5421        3.9778        .19560E-03   -.80555E-04
  13  Prefactor     25.052        23.713        .80020E-04   -.10513E-04
  14  Prefactor     13.618        12.128        .10857E-03    .16755E-05
  15  Prefactor     .10000E-03    36.431        .18142E-02** at limit **
  16  Prefactor     .10000E-03    5.8719        .36285E-03** at limit **
  17  Prefactor     29.168        29.149        .37107E-03    .16269E-04
  18  Prefactor     28.376        15.562        .75206E-04   -.95236E-05
  19  norm          22.393        16.885        .84638E-04   -.71190E-05
  20  norm          .10000E-03    2.2857        .12060E-02** at limit **
  21  Prefactor     .10000E-03    6.5066        .36285E-03** at limit **
  22  Prefactor     16.700        16.308        .98028E-04   -.12061E-04
  23  norm          1.1397        .99632        .74618E-04   -.22549E-04
  24  Normalizat    .84103        .19721        .26726E-03   -.12174E-03
  25  Prefactor     1.0474        .16313        .20702E-03   -.36189E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9484
  Prefactor  = 1.8509
  Prefactor  = 13.122
  Prefactor  = 0.0001
  Prefactor  = 4.09436
  Prefactor  = 0.0001
  Prefactor  = 0.000100272
  Prefactor  = 0.777935
  norm       = 0.0001
  Prefactor  = 4.91188
  Prefactor  = 25.4511
  Prefactor  = 2.54214
  Prefactor  = 25.0521
  Prefactor  = 13.6179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.1677
  Prefactor  = 28.3756
  norm       = 22.3931
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7003
  norm       = 1.13974
  Normalizat = 0.841033
  Prefactor  = 1.04736
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.839     FROM HESSE     STATUS=OK           411 CALLS     3800 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.948        33.421        .28363E-05   -1.4577    
   2  Prefactor     1.8509        7.9405        .12256E-04   -1.5436    
   3  Prefactor     13.122        23.661        .44235E-05   -1.4983    
   4  Prefactor     .10000E-03    2.1012        .22891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.0944        46.862        .79834E-05   -1.5303    
   6  Prefactor     .10000E-03    7.9231        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10027E-03    56.447        .80459E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .77794        69.664        .19744       -1.5532    
   9  norm          .10000E-03    5.6992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9119        3.3939        .47744E-05   -1.5265    
  11  Prefactor     25.451        24.119        .31754E-05   -1.4699    
  12  Prefactor     2.5421        3.9775        .78242E-05   -1.5389    
  13  Prefactor     25.052        23.715        .32008E-05   -1.4707    
  14  Prefactor     13.618        12.128        .43427E-05   -1.4970    
  15  Prefactor     .10000E-03    36.431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8721        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.168        29.149        .14843E-04   -1.4627    
  18  Prefactor     28.376        15.562        .30082E-05   -1.4642    
  19  norm          22.393        16.886        .33855E-05   -1.4761    
  20  norm          .10000E-03    2.2858        .24121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.5067        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.700        16.309        .39211E-05   -1.4890    
  23  norm          1.1397        .99629        .29847E-05   -1.5494    
  24  Normalizat    .84103        .19735        .10690E-04   -.98564    
  25  Prefactor     1.0474        .16329        .82809E-05   -.91167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16148e-09
Minuit parameter uncertainties:
  1  33.4404
  2  7.6689
  3  23.6782
  4  8.82189e-06
  5  27.7306
  6  2.7928e-05
  7  0.00784272
  8  14.7401
  9  1.23765e-05
  10  3.39399
  11  24.128
  12  3.97792
  13  23.7236
  14  12.1304
  15  3.60284e-05
  16  8.99863e-08
  17  29.1632
  18  15.5647
  19  16.8895
  20  3.36882e-08
  21  9.54902e-06
  22  16.3129
  23  0.996305
  24  0.197518
  25  0.163366
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.238e-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:  1.047e+00  1.634e-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:  8.410e-01  1.975e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266994/likelihoodResults_485049601_485308801_4FGL_J2221.5-5225_daily_bin948.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) = 6682.83968219
delta logL = -0.000835901789287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6682.8388454
delta logL = 8.82563654159e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6606       1.0000          .0000       5.0000    
     3 'Normalizat'    .84106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0473       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=   6682.839     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      200 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 74.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    7.3175        .36976E-05** at limit **
   2  alpha         1.7188        3.3390        .70266E-04   -.42824E-04
   3  Normalizat    .84103        .16118       -.21742E-07    .12790E-04
   4  Prefactor     1.0474        .13865       -.29889E-07    .74049E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100014
  alpha      = 1.71882
  Normalizat = 0.841035
  Prefactor  = 1.04736
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.839     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    7.4235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7188        3.3223        .17821       -.31779    
   3  Normalizat    .84103        .18423        .26726E-03   -.98564    
   4  Prefactor     1.0474        .15854        .20702E-03   -.91167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35311e-09
Minuit parameter uncertainties:
  1  0.000653365
  2  2.39528
  3  0.184366
  4  0.158606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266994': 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) = 6682.83884434
delta logL = 1.94446874957e-06

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  6.534e-04  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.719e+00  2.395e+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.047e+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:  8.410e-01  1.844e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/266994/cmap_HighResolution_485049601_485308801_4FGL_J2221.5-5225_daily_bin948.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-05', job_status='DONE', photon_flux_upper_limit='3.20e-08', time_completed='2021-09-28 09:51:35.168721', job_id='266994', GAL2='1.05', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632847895.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.94e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='948' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 266994: <4FGL_J2221.5-5225_daily_bin948> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin948 335.391 -52.4307 485049601 485308801 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 :                                   778.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

