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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1632
RA = 335.497, Dec = -35.0712
tmin = 662342401, tmax = 662601601
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='628559', job_status='RUN', time_executed='2021-12-31 00:36:45.279484', time_epoch_executed='1640939805.28' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628559

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628559/ft1_4FGL_J2221.9-3504_daily_bin1632.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628559/ft2_4FGL_J2221.9-3504_daily_bin1632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628559/ft1_4FGL_J2221.9-3504_daily_bin1632.fits outfile=/scratch/kocevski/628559/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1632.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=662342401.0 tmax=662601601.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 2.91
user 2.71
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/628559/ft2_4FGL_J2221.9-3504_daily_bin1632.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/628559/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1632.fits evtable="EVENTS" outfile="/scratch/kocevski/628559/ft1_filtered_4FGL_J2221.9-3504_daily_bin1632.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/628559/ft1_filtered_4FGL_J2221.9-3504_daily_bin1632.fits" evtable="EVENTS" scfile=/scratch/kocevski/628559/ft2_4FGL_J2221.9-3504_daily_bin1632.fits sctable="SC_DATA" outfile=/scratch/kocevski/628559/ltcube_662342401_662601601_4FGL_J2221.9-3504_daily_bin1632.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/628559/ft2_4FGL_J2221.9-3504_daily_bin1632.fits
.....................!
real 12.59
user 12.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628559/ft1_filtered_4FGL_J2221.9-3504_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/628559/ft2_4FGL_J2221.9-3504_daily_bin1632.fits sctable="SC_DATA" expcube=/scratch/kocevski/628559/ltcube_662342401_662601601_4FGL_J2221.9-3504_daily_bin1632.fits outfile=/scratch/kocevski/628559/expmap_662342401_662601601_4FGL_J2221.9-3504_daily_bin1632.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/628559/ltcube_662342401_662601601_4FGL_J2221.9-3504_daily_bin1632.fits
.....................!
real 190.89
user 185.43
sys 5.15

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/628559/ft1_filtered_4FGL_J2221.9-3504_daily_bin1632.fits scfile=/scratch/kocevski/628559/ft2_4FGL_J2221.9-3504_daily_bin1632.fits outfile=/scratch/kocevski/628559/cmap_662342401_662601601_4FGL_J2221.9-3504_daily_bin1632.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628559/ft1_filtered_4FGL_J2221.9-3504_daily_bin1632.fits scfile=/scratch/kocevski/628559/ft2_4FGL_J2221.9-3504_daily_bin1632.fits outfile=/scratch/kocevski/628559/cmap_HighResolution_662342401_662601601_4FGL_J2221.9-3504_daily_bin1632.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628559/ft1_filtered_4FGL_J2221.9-3504_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/628559/ft2_4FGL_J2221.9-3504_daily_bin1632.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628559/Model_4FGL_J2221.9-3504_daily_bin1632.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/628559/ft1_filtered_4FGL_J2221.9-3504_daily_bin1632.fits.....................!
real 39.12
user 37.87
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/628559/ft1_filtered_4FGL_J2221.9-3504_daily_bin1632.fits', '/scratch/kocevski/628559/ft2_4FGL_J2221.9-3504_daily_bin1632.fits', expMap='/scratch/kocevski/628559/expmap_662342401_662601601_4FGL_J2221.9-3504_daily_bin1632.fits', expCube='/scratch/kocevski/628559/ltcube_662342401_662601601_4FGL_J2221.9-3504_daily_bin1632.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/628559/Model_4FGL_J2221.9-3504_daily_bin1632.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/628559/ft1_filtered_4FGL_J2221.9-3504_daily_bin1632.fits
Spacecraft file(s): /scratch/kocevski/628559/ft2_4FGL_J2221.9-3504_daily_bin1632.fits
Exposure map: /scratch/kocevski/628559/expmap_662342401_662601601_4FGL_J2221.9-3504_daily_bin1632.fits
Exposure cube: /scratch/kocevski/628559/ltcube_662342401_662601601_4FGL_J2221.9-3504_daily_bin1632.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/628559/Model_4FGL_J2221.9-3504_daily_bin1632.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) = 4640.66989542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.603       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6738       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1639       1.0000         .10000E-03   10000.    
     4 'norm      '    .23000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10383E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .61133       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7926       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.019       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10827E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.206       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6195       1.0000         .10000E-03   10000.    
    17 'norm      '    .15693E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.143       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1116       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.9693       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.6835       1.0000         .10000E-03   10000.    
    24 'norm      '    .31159       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10603E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .20403E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0949       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .64392       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=   4640.591     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3514 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.596        10.634        .68991E-07    .31137E-04
   2  Prefactor     5.7076        15.169        .16010E-06    .19164E-03
   3  Prefactor     4.1568        12.129       -.39238E-06    .27624E-04
   4  norm          .10013E-03    17.310       -.10192E-04** at limit **
   5  Prefactor     .10000E-03    7.8750        .31341E-06** at limit **
   6  Prefactor     .10000E-03    25.957       -.50652E-05** at limit **
   7  norm          .10000E-03    3.4045        .16986E-05** at limit **
   8  norm          .61142        .36785        .74780E-07    .12918E-02
   9  Prefactor     .10000E-03    2.7194       -.85149E-07** at limit **
  10  Prefactor     3.7957        10.569        .21075E-06    .19566E-04
  11  Prefactor     .10000E-03    2.6276        .12685E-06** at limit **
  12  Prefactor     .10000E-03    2.0035       -.42538E-07** at limit **
  13  norm          16.018        16.681       -.15840E-05   -.53927E-04
  14  Prefactor     .10000E-03    9.8146        .80714E-06** at limit **
  15  Prefactor     15.207        16.126        .37482E-06    .26527E-04
  16  Prefactor     4.6221        10.356        .29921E-06    .19033E-04
  17  norm          .10000E-03    2.2498       -.33069E-05** at limit **
  18  Prefactor     21.068        36.494       -.98377E-06   -.82176E-04
  19  Prefactor     6.1208        13.152       -.11056E-05    .18403E-03
  20  Prefactor     .10000E-03    1.9826       -.17759E-07** at limit **
  21  norm          3.9659        3.8959       -.20626E-06   -.22744E-03
  22  Prefactor     .10000E-03    4.5614        .24338E-06** at limit **
  23  Prefactor     8.6774        10.189       -.17559E-05   -.46953E-03
  24  norm          .31165        .49008        .19601E-06    .14334E-02
  25  Prefactor     .10000E-03    48.257       -.75678E-05** at limit **
  26  Prefactor     .10001E-03    26.574        .39926E-05** at limit **
  27  Normalizat    1.0948        .19044       -.26485E-07    .96192E-04
  28  Prefactor     .64386        .16645       -.52279E-06    .21934E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.5961
  Prefactor  = 5.70759
  Prefactor  = 4.15678
  norm       = 0.000100128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.611418
  Prefactor  = 0.0001
  Prefactor  = 3.79567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.0177
  Prefactor  = 0.0001
  Prefactor  = 15.2075
  Prefactor  = 4.62208
  norm       = 0.000100003
  Prefactor  = 21.0682
  Prefactor  = 6.12078
  Prefactor  = 0.0001
  norm       = 3.96585
  Prefactor  = 0.0001
  Prefactor  = 8.67741
  norm       = 0.311649
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Normalizat = 1.09479
  Prefactor  = 0.643862
 **********
 **   18 **HESSE 
 **********

 FCN=   4640.591     FROM HESSE     STATUS=OK           527 CALLS     4041 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.596        10.623        .84251E-04   -1.4757    
   2  Prefactor     5.7076        14.756        .16864E-03   -1.5230    
   3  Prefactor     4.1568        12.016        .19752E-03   -1.5300    
   4  norm          .10013E-03    32.245        .34822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.8517        .22497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .61142        .35658        .30062E-04   -1.5552    
   9  Prefactor     .10000E-03    2.7198        .10971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7957        10.553        .20728E-03   -1.5318    
  11  Prefactor     .10000E-03    2.6350        .10784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0348        .94099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.018        16.658        .10007E-03   -1.4907    
  14  Prefactor     .10000E-03    9.8136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.207        16.126        .10271E-03   -1.4928    
  16  Prefactor     4.6221        10.343        .18727E-03   -1.5278    
  17  norm          .10000E-03    2.8283        .14975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.068        36.876        .87109E-04   -1.4790    
  19  Prefactor     6.1208        13.367        .81200E-03   -1.5213    
  20  Prefactor     .10000E-03    1.9878        .93665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.9659        3.8678        .11782E-03   -1.5310    
  22  Prefactor     .10000E-03    4.5675        .14208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.6774        10.018        .13603E-03   -1.5119    
  24  norm          .31165        .43287        .48568E-03   -1.5596    
  25  Prefactor     .10000E-03    48.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    28.160        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0948        .22047        .21242E-03   -.89919    
  28  Prefactor     .64386        .19074        .24842E-03   -1.0577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54787e-09
Minuit parameter uncertainties:
  1  10.6236
  2  14.7655
  3  12.0226
  4  0.00406592
  5  7.37087e-06
  6  5.39541e-05
  7  0.000381624
  8  0.356583
  9  3.66828e-07
  10  10.5577
  11  5.52195e-06
  12  2.31139e-06
  13  16.6627
  14  7.67917e-06
  15  16.1311
  16  10.3474
  17  0.000179445
  18  36.9161
  19  13.3736
  20  1.13756e-06
  21  3.86805
  22  4.38362e-05
  23  10.0198
  24  0.432873
  25  1.47459e-05
  26  0.000999251
  27  0.22066
  28  0.19093
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  5.522e-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:  6.439e-01  1.909e-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.095e+00  2.207e-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: 6.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628559/likelihoodResults_662342401_662601601_4FGL_J2221.9-3504_daily_bin1632.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) = 4640.59328675
delta logL = -0.00179592568475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4640.59149079
delta logL = 2.93475750368e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6667       1.0000          .0000       10.000    
     3 'Normalizat'    1.0947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64391       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=   4640.591     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      246 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.305        .10829E-01** at limit **
   2  Index         2.0844        8.5612        .50000       -.35448E-07
   3  Normalizat    1.0948        .17084E-01    .21242E-03    .10406E-03
   4  Prefactor     .64386        .15770E-01    .24842E-03    .99536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0844
  Normalizat = 1.09479
  Prefactor  = 0.64386
 **********
 **   18 **HESSE 
 **********

 FCN=   4640.591     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    346.76        .11540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0844        5.8936        .50000       -.62256    
   3  Normalizat    1.0948        .56554E-01    .42484E-04   -.89919    
   4  Prefactor     .64386        .52206E-01    .99368E-05   -1.0577    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21531e-10
Minuit parameter uncertainties:
  1  5.53012e-06
  2  1128.22
  3  0.0565572
  4  0.0522096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628559': 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) = 4640.59148843
delta logL = 2.39269047597e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  5.530e-06  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.084e+00  1.128e+03  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:  6.439e-01  5.221e-02  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.095e+00  5.656e-02  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/628559/cmap_HighResolution_662342401_662601601_4FGL_J2221.9-3504_daily_bin1632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-03', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-12-31 00:47:19.637068', job_id='628559', GAL2='0.64', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1640940439.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='2.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1632' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 31 00:47:19 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 628559: <4FGL_J2221.9-3504_daily_bin1632> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1632> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 31 00:35:33 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 31 00:35:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 31 00:35:34 2021
Terminated at Fri Dec 31 00:47:20 2021
Results reported at Fri Dec 31 00:47:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1632 335.497 -35.0712 662342401 662601601 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 :                                   636.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

