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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin939
RA = 335.497, Dec = -35.0712
tmin = 482716801, tmax = 482976001
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='273406', job_status='RUN', time_executed='2021-09-28 09:58:44.238330', time_epoch_executed='1632848324.24' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273406

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273406/ft1_4FGL_J2221.9-3504_daily_bin939.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273406/ft2_4FGL_J2221.9-3504_daily_bin939.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273406/ft1_4FGL_J2221.9-3504_daily_bin939.fits outfile=/scratch/kocevski/273406/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin939.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=482716801.0 tmax=482976001.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.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/273406/ft2_4FGL_J2221.9-3504_daily_bin939.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/273406/ft2_4FGL_J2221.9-3504_daily_bin939.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/273406/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin939.fits evtable="EVENTS" outfile="/scratch/kocevski/273406/ft1_filtered_4FGL_J2221.9-3504_daily_bin939.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.50
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273406/ft1_filtered_4FGL_J2221.9-3504_daily_bin939.fits" evtable="EVENTS" scfile=/scratch/kocevski/273406/ft2_4FGL_J2221.9-3504_daily_bin939.fits sctable="SC_DATA" outfile=/scratch/kocevski/273406/ltcube_482716801_482976001_4FGL_J2221.9-3504_daily_bin939.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/273406/ft2_4FGL_J2221.9-3504_daily_bin939.fits
.....................!
real 11.96
user 11.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273406/ft1_filtered_4FGL_J2221.9-3504_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/273406/ft2_4FGL_J2221.9-3504_daily_bin939.fits sctable="SC_DATA" expcube=/scratch/kocevski/273406/ltcube_482716801_482976001_4FGL_J2221.9-3504_daily_bin939.fits outfile=/scratch/kocevski/273406/expmap_482716801_482976001_4FGL_J2221.9-3504_daily_bin939.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/273406/ltcube_482716801_482976001_4FGL_J2221.9-3504_daily_bin939.fits
.....................!
real 189.85
user 184.97
sys 4.53

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2221.9-3504 @ 335.497 -35.0712

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/273406/ft1_filtered_4FGL_J2221.9-3504_daily_bin939.fits scfile=/scratch/kocevski/273406/ft2_4FGL_J2221.9-3504_daily_bin939.fits outfile=/scratch/kocevski/273406/cmap_482716801_482976001_4FGL_J2221.9-3504_daily_bin939.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.497 yref=-35.0712 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273406/ft1_filtered_4FGL_J2221.9-3504_daily_bin939.fits scfile=/scratch/kocevski/273406/ft2_4FGL_J2221.9-3504_daily_bin939.fits outfile=/scratch/kocevski/273406/cmap_HighResolution_482716801_482976001_4FGL_J2221.9-3504_daily_bin939.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.497 yref=-35.0712 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273406/ft1_filtered_4FGL_J2221.9-3504_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/273406/ft2_4FGL_J2221.9-3504_daily_bin939.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273406/Model_4FGL_J2221.9-3504_daily_bin939.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/273406/ft1_filtered_4FGL_J2221.9-3504_daily_bin939.fits.....................!
real 49.21
user 47.84
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/273406/ft1_filtered_4FGL_J2221.9-3504_daily_bin939.fits', '/scratch/kocevski/273406/ft2_4FGL_J2221.9-3504_daily_bin939.fits', expMap='/scratch/kocevski/273406/expmap_482716801_482976001_4FGL_J2221.9-3504_daily_bin939.fits', expCube='/scratch/kocevski/273406/ltcube_482716801_482976001_4FGL_J2221.9-3504_daily_bin939.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/273406/Model_4FGL_J2221.9-3504_daily_bin939.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.9-3504'

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.240e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/273406/ft1_filtered_4FGL_J2221.9-3504_daily_bin939.fits
Spacecraft file(s): /scratch/kocevski/273406/ft2_4FGL_J2221.9-3504_daily_bin939.fits
Exposure map: /scratch/kocevski/273406/expmap_482716801_482976001_4FGL_J2221.9-3504_daily_bin939.fits
Exposure cube: /scratch/kocevski/273406/ltcube_482716801_482976001_4FGL_J2221.9-3504_daily_bin939.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/273406/Model_4FGL_J2221.9-3504_daily_bin939.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) = 6071.53753836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.943       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2905       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9309       1.0000         .10000E-03   10000.    
     4 'norm      '    12.281       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1892       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8016       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8981       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.742       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5424       1.0000         .10000E-03   10000.    
    13 'norm      '    47.839       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46481       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.762       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8104       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.061       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6372       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17201E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .53024       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2433       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82714       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6071.501     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3529 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.943        6.0835        .15739E-07    .64289E-04
   2  Prefactor     6.2920        8.4642       -.37551E-07    .28506E-04
   3  Prefactor     3.9307        7.0156       -.12016E-06   -.67067E-05
   4  norm          12.280        11.129       -.10752E-06   -.28833E-05
   5  Prefactor     5.1721        12.062       -.61541E-06    .39004E-04
   6  Prefactor     .10002E-03    340.17       -.40883E-05** at limit **
   7  norm          2.8035        4.8948       -.70799E-07    .16689E-03
   8  norm          1.8980        .52272        .20042E-08    .56310E-03
   9  Prefactor     .10000E-03    5.1378        .42116E-07** at limit **
  10  Prefactor     11.742        21.138       -.87191E-07    .22018E-04
  11  Prefactor     .10000E-03    6.6192        .57570E-07** at limit **
  12  Prefactor     4.5427        4.5152       -.93605E-06    .13162E-03
  13  norm          47.837        27.870        .22513E-07    .40090E-04
  14  Prefactor     .10000E-03    48.882        .19052E-05** at limit **
  15  Prefactor     .48022        57.247       -.30579E-05   -.13791E-04
  16  Prefactor     16.766        19.491       -.10124E-06   -.42393E-04
  17  norm          3.8105        2.7337       -.57416E-07   -.28892E-04
  18  Prefactor     .10000E-03    23.278        .49654E-06** at limit **
  19  Prefactor     11.063        12.960       -.18027E-06    .48988E-04
  20  Prefactor     3.6375        4.6742       -.38672E-07   -.64177E-04
  21  norm          .10000E-03    1.2347        .51790E-07** at limit **
  22  Prefactor     .10000E-03    5.9165        .89374E-07** at limit **
  23  Prefactor     .10000E-03    35.528       -.16525E-05** at limit **
  24  norm          .53000        .47922       -.33914E-06   -.51543E-03
  25  Prefactor     .10000E-03    17.954       -.16465E-06** at limit **
  26  Prefactor     .10000E-03    11.749        .23659E-06** at limit **
  27  Normalizat    1.2432        .20501        .32414E-06    .27387E-04
  28  Prefactor     .82725        .17397        .12224E-06    .83370E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.9429
  Prefactor  = 6.29202
  Prefactor  = 3.93074
  norm       = 12.2796
  Prefactor  = 5.17206
  Prefactor  = 0.000100025
  norm       = 2.80354
  norm       = 1.89802
  Prefactor  = 0.0001
  Prefactor  = 11.7417
  Prefactor  = 0.0001
  Prefactor  = 4.54265
  norm       = 47.8369
  Prefactor  = 0.000100001
  Prefactor  = 0.480216
  Prefactor  = 16.7657
  norm       = 3.81046
  Prefactor  = 0.0001
  Prefactor  = 11.0627
  Prefactor  = 3.63749
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.530001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24317
  Prefactor  = 0.827248
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.501     FROM HESSE     STATUS=OK           531 CALLS     4060 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.943        6.0853        .10361E-03   -1.4935    
   2  Prefactor     6.2920        8.4403        .16005E-03   -1.5206    
   3  Prefactor     3.9307        6.9909        .20347E-03   -1.5311    
   4  norm          12.280        11.130        .11431E-03   -1.5007    
   5  Prefactor     5.1721        11.817        .17647E-03   -1.5253    
   6  Prefactor     .10002E-03    328.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8035        4.8809        .20760E-03   -1.5373    
   8  norm          1.8980        .52249        .27497E-04   -1.5432    
   9  Prefactor     .10000E-03    5.1433        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.742        21.147        .11690E-03   -1.5023    
  11  Prefactor     .10000E-03    6.6943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5427        4.5380        .77960E-03   -1.5282    
  13  norm          47.837        27.881        .57974E-04   -1.4324    
  14  Prefactor     .10000E-03    49.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .48022        122.22        .55940E-02   -1.5569    
  16  Prefactor     16.766        19.509        .97827E-04   -1.4889    
  17  norm          3.8105        2.7274        .10484E-03   -1.5318    
  18  Prefactor     .10000E-03    23.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.063        13.109        .12046E-03   -1.5043    
  20  Prefactor     3.6375        4.6729        .18537E-03   -1.5327    
  21  norm          .10000E-03    1.2371        .84537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.9236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    52.721        .37877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .53000        .48297        .52863E-03   -1.5562    
  25  Prefactor     .10000E-03    17.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2432        .24189        .25183E-03   -.85279    
  28  Prefactor     .82725        .20495        .26488E-03   -.98732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97649e-08
Minuit parameter uncertainties:
  1  6.08551
  2  8.44185
  3  6.99231
  4  11.1314
  5  11.8226
  6  0.00573297
  7  4.88155
  8  0.522487
  9  3.58348e-06
  10  21.1607
  11  9.76284e-06
  12  4.5383
  13  27.8889
  14  0.000515292
  15  15.3523
  16  19.516
  17  2.72746
  18  9.454e-05
  19  13.1126
  20  4.67339
  21  7.42098e-07
  22  4.12826e-06
  23  0.000505943
  24  0.482978
  25  3.71204e-05
  26  2.17395e-05
  27  0.242108
  28  0.205141
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  9.763e-06  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.272e-01  2.051e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.243e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 8.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273406/likelihoodResults_482716801_482976001_4FGL_J2221.9-3504_daily_bin939.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) = 6071.50203043
delta logL = -0.000711900590431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6071.50131838
delta logL = 1.48612343764e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7133       1.0000          .0000       10.000    
     3 'Normalizat'    1.2431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82737       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   6071.501     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1467.5        .18142E-02** at limit **
   2  Index         2.7540        5.9587        .50000       -.54869E-04
   3  Normalizat    1.2432        .11212        .25183E-03    .39502E-04
   4  Prefactor     .82724        .98546E-01    .26488E-03   -.34514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100023
  Index      = 2.75397
  Normalizat = 1.24318
  Prefactor  = 0.827242
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.501     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    8.3567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7540        6.3730        .50000       -.46588    
   3  Normalizat    1.2432        .22234        .10073E-04   -.85279    
   4  Prefactor     .82724        .19605        .52976E-04   -.98732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40031e-09
Minuit parameter uncertainties:
  1  0.000885616
  2  4.6827
  3  0.222513
  4  0.196219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273406': 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) = 6071.50131762
delta logL = 9.09527443582e-07

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  8.856e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.754e+00  4.683e+00  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.272e-01  1.962e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.243e+00  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.497 -35.071

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/273406/cmap_HighResolution_482716801_482976001_4FGL_J2221.9-3504_daily_bin939.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='8.66e-08', time_completed='2021-09-28 10:11:20.835973', job_id='273406', GAL2='0.83', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632849080.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='939' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:11:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 273406: <4FGL_J2221.9-3504_daily_bin939> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin939> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 09:55:49 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:55:50 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:55:50 2021
Terminated at Tue Sep 28 10:11:21 2021
Results reported at Tue Sep 28 10:11:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin939 335.497 -35.0712 482716801 482976001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2221.9-3504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   757.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

