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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin598
RA = 335.497, Dec = -35.0712
tmin = 394329601, tmax = 394588801
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='271897', job_status='RUN', time_executed='2021-09-28 09:54:33.407364', time_epoch_executed='1632848073.41' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271897

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271897/ft1_4FGL_J2221.9-3504_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271897/ft2_4FGL_J2221.9-3504_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271897/ft1_4FGL_J2221.9-3504_daily_bin598.fits outfile=/scratch/kocevski/271897/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin598.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=394329601.0 tmax=394588801.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 7.42
user 7.12
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271897/ft2_4FGL_J2221.9-3504_daily_bin598.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/271897/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/271897/ft1_filtered_4FGL_J2221.9-3504_daily_bin598.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.57
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271897/ft1_filtered_4FGL_J2221.9-3504_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/271897/ft2_4FGL_J2221.9-3504_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/271897/ltcube_394329601_394588801_4FGL_J2221.9-3504_daily_bin598.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/271897/ft2_4FGL_J2221.9-3504_daily_bin598.fits
.....................!
real 11.36
user 11.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271897/ft1_filtered_4FGL_J2221.9-3504_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/271897/ft2_4FGL_J2221.9-3504_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/271897/ltcube_394329601_394588801_4FGL_J2221.9-3504_daily_bin598.fits outfile=/scratch/kocevski/271897/expmap_394329601_394588801_4FGL_J2221.9-3504_daily_bin598.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/271897/ltcube_394329601_394588801_4FGL_J2221.9-3504_daily_bin598.fits
.....................!
real 190.06
user 185.18
sys 4.43

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/271897/ft1_filtered_4FGL_J2221.9-3504_daily_bin598.fits scfile=/scratch/kocevski/271897/ft2_4FGL_J2221.9-3504_daily_bin598.fits outfile=/scratch/kocevski/271897/cmap_394329601_394588801_4FGL_J2221.9-3504_daily_bin598.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271897/ft1_filtered_4FGL_J2221.9-3504_daily_bin598.fits scfile=/scratch/kocevski/271897/ft2_4FGL_J2221.9-3504_daily_bin598.fits outfile=/scratch/kocevski/271897/cmap_HighResolution_394329601_394588801_4FGL_J2221.9-3504_daily_bin598.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271897/ft1_filtered_4FGL_J2221.9-3504_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/271897/ft2_4FGL_J2221.9-3504_daily_bin598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271897/Model_4FGL_J2221.9-3504_daily_bin598.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/271897/ft1_filtered_4FGL_J2221.9-3504_daily_bin598.fits.....................!
real 38.87
user 37.62
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9537       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10744E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4027       1.0000         .10000E-03   10000.    
     4 'norm      '    .95099       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.533       1.0000         .10000E-03   10000.    
     8 'norm      '    .57153       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.614       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5919       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.811       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.000       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0746       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4624       1.0000         .10000E-03   10000.    
    18 'Prefactor '    128.52       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1962       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.483       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11351E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3518       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .56067       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=   4238.844     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3540 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9540        3.7968       -.16753E-05    .13352E-03
   2  Prefactor     .10000E-03    25.704       -.48253E-05** at limit **
   3  Prefactor     2.4001        14.710       -.30755E-05   -.10718E-03
   4  norm          .97168        7.5857       -.12826E-05   -.94918E-05
   5  Prefactor     .10000E-03    16.888        .32392E-05** at limit **
   6  Prefactor     .10000E-03    69.038       -.12101E-05** at limit **
   7  norm          10.531        7.4593       -.11549E-06    .12096E-03
   8  norm          .57161        .36139       -.23722E-07    .14581E-03
   9  Prefactor     .10000E-03    5.6845        .43871E-05** at limit **
  10  Prefactor     25.614        21.175       -.48177E-06   -.10918E-04
  11  Prefactor     5.5914        10.982       -.89413E-06   -.56288E-04
  12  Prefactor     .10000E-03    3.2113       -.19347E-06** at limit **
  13  norm          .10000E-03    15.158        .10856E-05** at limit **
  14  Prefactor     52.823        43.326        .11905E-04    .62264E-04
  15  Prefactor     29.002        25.993        .31876E-05    .51939E-04
  16  Prefactor     4.0469        44.474       -.41742E-04   -.34141E-04
  17  norm          3.4627        5.3947        .10321E-04   -.28381E-03
  18  Prefactor     128.45        104.09       -.52289E-04    .19679E-04
  19  Prefactor     .10000E-03    29.455        .12786E-04** at limit **
  20  Prefactor     .10000E-03    3.1512       -.63684E-06** at limit **
  21  norm          3.1952        5.4201        .31164E-05   -.16933E-03
  22  Prefactor     15.480        14.369       -.39895E-06    .10094E-03
  23  Prefactor     .10000E-03    3.0235       -.11018E-06** at limit **
  24  norm          .10000E-03    .41764       -.23254E-06** at limit **
  25  Prefactor     .10000E-03    24.712       -.98741E-05** at limit **
  26  Prefactor     .10000E-03    5.3767       -.36685E-05** at limit **
  27  Normalizat    1.3518        .22026        .42506E-05    .22846E-04
  28  Prefactor     .56058        .17870       -.54345E-06    .31021E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.95396
  Prefactor  = 0.0001
  Prefactor  = 2.40013
  norm       = 0.971679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5312
  norm       = 0.571614
  Prefactor  = 0.0001
  Prefactor  = 25.614
  Prefactor  = 5.59142
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.8226
  Prefactor  = 29.0021
  Prefactor  = 4.04691
  norm       = 3.4627
  Prefactor  = 128.455
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.1952
  Prefactor  = 15.4797
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35182
  Prefactor  = 0.560583
 **********
 **   18 **HESSE 
 **********

 FCN=   4238.844     FROM HESSE     STATUS=OK           529 CALLS     4069 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9540        3.7931        .10772E-03   -1.5263    
   2  Prefactor     .10000E-03    26.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4001        14.581        .26415E-03   -1.5398    
   4  norm          .97168        28.121        .32572E-02   -1.5511    
   5  Prefactor     .10000E-03    16.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    69.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.531        7.4002        .12345E-03   -1.5059    
   8  norm          .57161        .35808        .29455E-04   -1.5557    
   9  Prefactor     .10000E-03    5.6885        .15160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.614        21.191        .79152E-04   -1.4695    
  11  Prefactor     5.5914        10.993        .16989E-03   -1.5235    
  12  Prefactor     .10000E-03    3.2549        .11384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    15.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.823        43.394        .27595E-03   -1.4253    
  15  Prefactor     29.002        25.999        .74397E-04   -1.4630    
  16  Prefactor     4.0469        44.899        .19974E-03   -1.5306    
  17  norm          3.4627        5.3519        .12931E-03   -1.5336    
  18  Prefactor     128.45        103.61        .17757E-03   -1.3436    
  19  Prefactor     .10000E-03    30.494        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1560        .11286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1952        5.3813        .17770E-03   -1.5350    
  22  Prefactor     15.480        14.478        .10179E-03   -1.4921    
  23  Prefactor     .10000E-03    3.0270        .11052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .68319        .14373E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    24.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.3801        .14743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3518        .26000        .22589E-03   -.82032    
  28  Prefactor     .56058        .20833        .27730E-03   -1.0927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13255e-08
Minuit parameter uncertainties:
  1  3.7933
  2  0.000135472
  3  11.8357
  4  10.4595
  5  2.5154e-05
  6  8.88271e-05
  7  7.40086
  8  0.35808
  9  2.18606e-06
  10  21.1977
  11  10.9972
  12  1.97794e-05
  13  5.19177e-05
  14  43.4196
  15  26.0093
  16  26.9849
  17  5.35262
  18  103.757
  19  0.000395865
  20  4.56128e-06
  21  5.38209
  22  14.4812
  23  9.41854e-06
  24  2.66461e-05
  25  7.32074e-06
  26  7.5141e-06
  27  0.260258
  28  0.208613
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  5.591e+00  1.100e+01  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:  5.606e-01  2.086e-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.352e+00  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271897/likelihoodResults_394329601_394588801_4FGL_J2221.9-3504_daily_bin598.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) = 4238.72418692
delta logL = 0.119802814857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4238.70912353
delta logL = 0.13486620786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4820       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1316       1.0000          .0000       10.000    
     3 'Normalizat'    1.3627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55144       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.

 FCN=   4238.709     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4749        19.685        .36655E-02    .89842E-04
   2  Index         2.1321        1.2074        .25083       -.45687E-05
   3  Normalizat    1.3625        .21088        .50914E-01    .85615E-04
   4  Prefactor     .55167        .17581        .63099E-01   -.14937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.4749
  Index      = 2.13214
  Normalizat = 1.3625
  Prefactor  = 0.551668
 **********
 **   18 **HESSE 
 **********

 FCN=   4238.709     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4749        11.527        .14662E-03   -1.5161    
   2  Index         2.1321        .90112        .10912E-01   -.61086    
   3  Normalizat    1.3625        .24647        .22509E-03   -.81719    
   4  Prefactor     .55167        .20266        .27920E-03   -1.0966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21841e-10
Minuit parameter uncertainties:
  1  11.5305
  2  0.90855
  3  0.246682
  4  0.202926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271897': 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) = 4238.70912248
delta logL = 0.134867262008

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  7.475e+00  1.153e+01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.132e+00  9.086e-01  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:  5.517e-01  2.029e-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.363e+00  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
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/271897/cmap_HighResolution_394329601_394588801_4FGL_J2221.9-3504_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-28 10:05:06.297284', job_id='271897', GAL2='0.55', fit_tolerance='1e-08', EG2='1.36', EG='1.35', time_epoch_completed='1632848706.3', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='1.35e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='598' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:05:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 271897: <4FGL_J2221.9-3504_daily_bin598> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin598> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:50:50 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:50:52 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:50:52 2021
Terminated at Tue Sep 28 10:05:07 2021
Results reported at Tue Sep 28 10:05:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin598 335.497 -35.0712 394329601 394588801 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 :                                   631.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

