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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1124
RA = 335.391, Dec = -52.4307
tmin = 530668801, tmax = 530928001
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='267258', job_status='RUN', time_executed='2021-09-28 09:37:19.708389', time_epoch_executed='1632847039.71' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267258

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267258/ft1_4FGL_J2221.5-5225_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267258/ft2_4FGL_J2221.5-5225_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267258/ft1_4FGL_J2221.5-5225_daily_bin1124.fits outfile=/scratch/kocevski/267258/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1124.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=530668801.0 tmax=530928001.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.61
user 3.41
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267258/ft1_filtered_4FGL_J2221.5-5225_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/267258/ft2_4FGL_J2221.5-5225_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/267258/ltcube_530668801_530928001_4FGL_J2221.5-5225_daily_bin1124.fits outfile=/scratch/kocevski/267258/expmap_530668801_530928001_4FGL_J2221.5-5225_daily_bin1124.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/267258/ltcube_530668801_530928001_4FGL_J2221.5-5225_daily_bin1124.fits
.....................!
real 192.18
user 187.00
sys 4.86

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/267258/ft1_filtered_4FGL_J2221.5-5225_daily_bin1124.fits scfile=/scratch/kocevski/267258/ft2_4FGL_J2221.5-5225_daily_bin1124.fits outfile=/scratch/kocevski/267258/cmap_530668801_530928001_4FGL_J2221.5-5225_daily_bin1124.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267258/ft1_filtered_4FGL_J2221.5-5225_daily_bin1124.fits scfile=/scratch/kocevski/267258/ft2_4FGL_J2221.5-5225_daily_bin1124.fits outfile=/scratch/kocevski/267258/cmap_HighResolution_530668801_530928001_4FGL_J2221.5-5225_daily_bin1124.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=335.391 yref=-52.4307 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/267258/ft1_filtered_4FGL_J2221.5-5225_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/267258/ft2_4FGL_J2221.5-5225_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267258/Model_4FGL_J2221.5-5225_daily_bin1124.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/267258/ft1_filtered_4FGL_J2221.5-5225_daily_bin1124.fits.....................!
real 51.74
user 50.43
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.602       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4860       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0902       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5343       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24731       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2747       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9547       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16374E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    23.392       1.0000         .10000E-03   10000.    
    20 'norm      '    2.0888       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0222       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89748       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=   6938.473     FROM MIGRAD    STATUS=CONVERGED   1040 CALLS     3364 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.598        37.466        .61419E-04   -.29616E-05
   2  Prefactor     6.9502        5.8155        .15217E-03    .57077E-04
   3  Prefactor     .10000E-03    8.0881        .18142E-02** at limit **
   4  Prefactor     5.4863        3.3740        .11536E-03    .82883E-04
   5  Prefactor     .10000E-03    26.244        .18142E-02** at limit **
   6  Prefactor     .10000E-03    3.8901        .15899E-02** at limit **
   7  Prefactor     2.0902        2.2567        .12634E-03    .26743E-03
   8  Prefactor     .10000E-03    67.679        .18142E-02** at limit **
   9  norm          .10000E-03    2.5852        .13045E-02** at limit **
  10  Prefactor     6.5355        3.6119        .11071E-03   -.91803E-04
  11  Prefactor     .10006E-03    39.275        .14533    ** at limit **
  12  Prefactor     2.2744        3.7592        .19961E-03    .33061E-03
  13  Prefactor     .10000E-03    5.9347        .18142E-02** at limit **
  14  Prefactor     3.9529        5.2307        .20284E-03    .73087E-03
  15  Prefactor     .10007E-03    361.37        .18142E-02** at limit **
  16  Prefactor     .10000E-03    8.2928        .18142E-02** at limit **
  17  Prefactor     .10000E-03    10.781        .18142E-02** at limit **
  18  Prefactor     .10000E-03    11.084        .18142E-02** at limit **
  19  norm          23.392        13.580        .82821E-04   -.10982E-05
  20  norm          2.0883        3.0945        .17519E-03    .13887E-04
  21  Prefactor     .10000E-03    2.0771        .11707E-02** at limit **
  22  Prefactor     .10000E-03    8.5833        .18142E-02** at limit **
  23  norm          .10000E-03    .28929        .43427E-03** at limit **
  24  Normalizat    1.0222        .18358        .23841E-03    .15636E-03
  25  Prefactor     .89751        .15428        .21411E-03    .24849E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.5983
  Prefactor  = 6.95022
  Prefactor  = 0.0001
  Prefactor  = 5.48629
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.09024
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.53547
  Prefactor  = 0.00010006
  Prefactor  = 2.27438
  Prefactor  = 0.000100001
  Prefactor  = 3.95291
  Prefactor  = 0.000100072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.3916
  norm       = 2.08828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.02221
  Prefactor  = 0.897513
 **********
 **   18 **HESSE 
 **********

 FCN=   6938.473     FROM HESSE     STATUS=OK           411 CALLS     3775 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.598        37.461        .24568E-05   -1.4402    
   2  Prefactor     6.9502        5.8155        .60870E-05   -1.5181    
   3  Prefactor     .10000E-03    8.0888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4863        3.3740        .46143E-05   -1.5239    
   5  Prefactor     .10000E-03    26.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8922        .31798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0902        2.2567        .50537E-05   -1.5419    
   8  Prefactor     .10000E-03    67.688        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.5855        .26090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5355        3.6118        .44284E-05   -1.5197    
  11  Prefactor     .10006E-03    39.087        .14582       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2744        3.7589        .79846E-05   -1.5406    
  13  Prefactor     .10000E-03    5.9349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9529        5.2306        .81135E-05   -1.5310    
  15  Prefactor     .10007E-03    361.60        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.3006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.090        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          23.392        13.580        .33128E-05   -1.4740    
  20  norm          2.0883        3.0945        .70077E-05   -1.5419    
  21  Prefactor     .10000E-03    2.0772        .23413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.5839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .28930        .86853E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0222        .18372        .95365E-05   -.92290    
  25  Prefactor     .89751        .15442        .42823E-04   -.96228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04619e-09
Minuit parameter uncertainties:
  1  37.4819
  2  5.81597
  3  3.28195e-05
  4  3.37408
  5  0.000246737
  6  7.43896e-05
  7  2.25679
  8  0.000489346
  9  1.67775e-05
  10  3.61195
  11  0.00307675
  12  3.7593
  13  0.000110027
  14  5.2312
  15  0.0102945
  16  7.62707e-05
  17  6.54316e-05
  18  0.000146195
  19  13.5818
  20  3.09471
  21  1.20862e-05
  22  3.92271e-05
  23  4.22511e-06
  24  0.183832
  25  0.154497
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.678e-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:  8.975e-01  1.545e-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.022e+00  1.838e-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: 1.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267258/likelihoodResults_530668801_530928001_4FGL_J2221.5-5225_daily_bin1124.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6938.47448697
delta logL = -0.00183036792077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6938.47265662
delta logL = -1.42626959132e-08

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     '    1.6042       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89750       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=   6938.473     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      227 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    127.94        .13055E-02** at limit **
   2  alpha         1.5779        3.6109        .50000        .44678E-05
   3  Normalizat    1.0222        .29369E-01    .23841E-03    .30042E-05
   4  Prefactor     .89751        .25007E-01    .21411E-03    .10619E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100107
  alpha      = 1.57789
  Normalizat = 1.02221
  Prefactor  = 0.897513
 **********
 **   18 **HESSE 
 **********

 FCN=   6938.473     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      256 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10011E-03    442.37        .26110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5779        3.2885        .50000       -.37777    
   3  Normalizat    1.0222        .72135E-01    .95365E-05   -.92290    
   4  Prefactor     .89751        .61421E-01    .85645E-05   -.96228    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.39327e-08
Minuit parameter uncertainties:
  1  0.0138538
  2  1360.67
  3  0.0721416
  4  0.0614256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267258': 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): 102
logL (Free Index) = 6938.47265654
delta logL = 6.15336830379e-08

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.001e-04  1.385e-02  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.578e+00  1.361e+03  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:  8.975e-01  6.143e-02  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.022e+00  7.214e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/267258/cmap_HighResolution_530668801_530928001_4FGL_J2221.5-5225_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', job_status='DONE', photon_flux_upper_limit='1.99e-08', time_completed='2021-09-28 09:50:28.457687', job_id='267258', GAL2='0.90', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632847828.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1124' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:50:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 267258: <4FGL_J2221.5-5225_daily_bin1124> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1124 335.391 -52.4307 530668801 530928001 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 :                                   788.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

