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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin508
RA = 335.497, Dec = -35.0712
tmin = 371001601, tmax = 371260801
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='271755', job_status='RUN', time_executed='2021-09-28 09:52:42.713731', time_epoch_executed='1632847962.71' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271755

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271755/ft1_4FGL_J2221.9-3504_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271755/ft2_4FGL_J2221.9-3504_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271755/ft1_4FGL_J2221.9-3504_daily_bin508.fits outfile=/scratch/kocevski/271755/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin508.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.38
user 6.18
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271755/ft2_4FGL_J2221.9-3504_daily_bin508.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/271755/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/271755/ft1_filtered_4FGL_J2221.9-3504_daily_bin508.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.49
user 0.37
sys 0.11

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271755/ft1_filtered_4FGL_J2221.9-3504_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/271755/ft2_4FGL_J2221.9-3504_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/271755/ltcube_371001601_371260801_4FGL_J2221.9-3504_daily_bin508.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/271755/ft2_4FGL_J2221.9-3504_daily_bin508.fits
.....................!
real 11.64
user 11.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271755/ft1_filtered_4FGL_J2221.9-3504_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/271755/ft2_4FGL_J2221.9-3504_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/271755/ltcube_371001601_371260801_4FGL_J2221.9-3504_daily_bin508.fits outfile=/scratch/kocevski/271755/expmap_371001601_371260801_4FGL_J2221.9-3504_daily_bin508.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/271755/ltcube_371001601_371260801_4FGL_J2221.9-3504_daily_bin508.fits
.....................!
real 189.62
user 185.03
sys 4.26

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/271755/ft1_filtered_4FGL_J2221.9-3504_daily_bin508.fits scfile=/scratch/kocevski/271755/ft2_4FGL_J2221.9-3504_daily_bin508.fits outfile=/scratch/kocevski/271755/cmap_371001601_371260801_4FGL_J2221.9-3504_daily_bin508.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.52
user 0.40
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271755/ft1_filtered_4FGL_J2221.9-3504_daily_bin508.fits scfile=/scratch/kocevski/271755/ft2_4FGL_J2221.9-3504_daily_bin508.fits outfile=/scratch/kocevski/271755/cmap_HighResolution_371001601_371260801_4FGL_J2221.9-3504_daily_bin508.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/271755/ft1_filtered_4FGL_J2221.9-3504_daily_bin508.fits', '/scratch/kocevski/271755/ft2_4FGL_J2221.9-3504_daily_bin508.fits', expMap='/scratch/kocevski/271755/expmap_371001601_371260801_4FGL_J2221.9-3504_daily_bin508.fits', expCube='/scratch/kocevski/271755/ltcube_371001601_371260801_4FGL_J2221.9-3504_daily_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/271755/Model_4FGL_J2221.9-3504_daily_bin508.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/271755/ft1_filtered_4FGL_J2221.9-3504_daily_bin508.fits
Spacecraft file(s): /scratch/kocevski/271755/ft2_4FGL_J2221.9-3504_daily_bin508.fits
Exposure map: /scratch/kocevski/271755/expmap_371001601_371260801_4FGL_J2221.9-3504_daily_bin508.fits
Exposure cube: /scratch/kocevski/271755/ltcube_371001601_371260801_4FGL_J2221.9-3504_daily_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/271755/Model_4FGL_J2221.9-3504_daily_bin508.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4604.71764463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2184       1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27135E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.300       1.0000         .10000E-03   10000.    
     7 'norm      '    7.1343       1.0000         .10000E-03   10000.    
     8 'norm      '    .63661       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11156E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33541E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2485       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18113       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.207       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.0018       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.296       1.0000         .10000E-03   10000.    
    24 'norm      '    1.5113       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.136       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .82502       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1160       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=   4604.670     FROM MIGRAD    STATUS=CONVERGED   1250 CALLS     4588 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4254        .10265E-02** at limit **
   2  Prefactor     .10000E-03    4.4518        .13925E-02** at limit **
   3  Prefactor     4.2193        8.6513        .19620E-03   -.48267E-04
   4  norm          .10000E-03    3.8604        .13000E-02** at limit **
   5  Prefactor     .10070E-03    35.671        .94365E-01** at limit **
   6  Prefactor     44.409        65.682        .30118E-03    .89084E-04
   7  norm          7.1400        6.4560        .14404E-03    .50900E-03
   8  norm          .63666        .34981        .27884E-04    .19524E-02
   9  Prefactor     .10000E-03    5.4487        .15461E-02** at limit **
  10  Prefactor     .10000E-03    20.708        .18142E-02** at limit **
  11  Prefactor     .10000E-03    3.6251        .12596E-02** at limit **
  12  Prefactor     .12973E-03    4.5332        .34842E-01** at limit **
  13  norm          .10000E-03    7.9256        .18142E-02** at limit **
  14  Prefactor     .10000E-03    15.644        .18142E-02** at limit **
  15  Prefactor     8.2396        25.469        .13959E-03   -.69715E-04
  16  Prefactor     .29043        23.059        .93185E-01    .20740E-03
  17  norm          .10000E-03    1.0181        .66743E-03** at limit **
  18  Prefactor     .10000E-03    51.142        .18142E-02** at limit **
  19  Prefactor     18.211        15.759        .93865E-04   -.73639E-04
  20  Prefactor     .10000E-03    2.4438        .10351E-02** at limit **
  21  norm          8.0024        6.2873        .13973E-03   -.74448E-04
  22  Prefactor     .10000E-03    20.713        .18142E-02** at limit **
  23  Prefactor     14.295        13.571        .10593E-03   -.53768E-04
  24  norm          1.5112        1.1103        .50843E-04   -.25938E-04
  25  Prefactor     .10000E-03    67.701        .18142E-02** at limit **
  26  Prefactor     20.142        24.459        .89257E-04    .89159E-06
  27  Normalizat    .82482        .26096        .28405E-03   -.40752E-03
  28  Prefactor     1.1160        .22264        .22068E-03   -.73239E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.21928
  norm       = 0.0001
  Prefactor  = 0.000100697
  Prefactor  = 44.4087
  norm       = 7.13996
  norm       = 0.636656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000129727
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.23956
  Prefactor  = 0.290428
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2111
  Prefactor  = 0.0001
  norm       = 8.00244
  Prefactor  = 0.0001
  Prefactor  = 14.2947
  norm       = 1.51119
  Prefactor  = 0.000100003
  Prefactor  = 20.1424
  Normalizat = 0.824815
  Prefactor  = 1.11601
 **********
 **   18 **HESSE 
 **********

 FCN=   4604.670     FROM HESSE     STATUS=OK           521 CALLS     5109 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4257        .20531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4526        .27851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2193        8.6507        .78480E-05   -1.5297    
   4  norm          .10000E-03    3.8606        .26000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10070E-03    35.018        .95387E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     44.409        65.505        .12047E-04   -1.4374    
   7  norm          7.1400        6.4559        .57616E-05   -1.5173    
   8  norm          .63666        .34980        .55768E-05   -1.5548    
   9  Prefactor     .10000E-03    5.4489        .30922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.716        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6253        .25192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .12973E-03    3.7762        .39764E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.9257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.2396        25.467        .55836E-05   -1.5134    
  16  Prefactor     .29043        22.677        .94370E-01   -1.5600    
  17  norm          .10000E-03    1.0181        .13349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    51.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.211        15.759        .37546E-05   -1.4854    
  20  Prefactor     .10000E-03    2.4439        .20702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.0024        6.2870        .55890E-05   -1.5142    
  22  Prefactor     .10000E-03    20.714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.295        13.569        .42373E-05   -1.4952    
  24  norm          1.5112        1.1103        .20337E-05   -1.5462    
  25  Prefactor     .10000E-03    67.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     20.142        24.463        .35703E-05   -1.4810    
  27  Normalizat    .82482        .26129        .56810E-04   -.99155    
  28  Prefactor     1.1160        .22287        .44136E-04   -.88957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3706e-09
Minuit parameter uncertainties:
  1  1.53979e-05
  2  4.63722e-05
  3  8.65327
  4  5.80005e-05
  5  0.00988695
  6  65.6115
  7  6.45648
  8  0.349803
  9  1.70442e-05
  10  0.000137317
  11  6.0856e-05
  12  0.0211916
  13  1.38611e-05
  14  1.76586e-05
  15  25.5002
  16  5.13384
  17  3.63078e-06
  18  1.0759e-05
  19  15.7625
  20  8.65356e-06
  21  6.28749
  22  3.64907e-05
  23  13.5718
  24  1.11036
  25  0.000896484
  26  24.4755
  27  0.26169
  28  0.223057
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  6.086e-05  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:  1.116e+00  2.231e-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:  8.248e-01  2.617e-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: 7.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271755/likelihoodResults_371001601_371260801_4FGL_J2221.9-3504_daily_bin508.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) = 4604.67091044
delta logL = -0.00130639327654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4604.66960404
delta logL = 6.16273609921e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6705       1.0000          .0000       10.000    
     3 'Normalizat'    .82482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1160       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=   4604.670     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    708.25        .12617E-02** at limit **
   2  Index         2.3573        8.7985        .50000       -.51023E-07
   3  Normalizat    .82481        .10944        .28405E-03    .30698E-04
   4  Prefactor     1.1160        .98064E-01    .22068E-03    .44758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.35732
  Normalizat = 0.824813
  Prefactor  = 1.11601
 **********
 **   18 **HESSE 
 **********

 FCN=   4604.670     FROM HESSE     STATUS=OK            29 CALLS      279 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2150        .25233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3573        5.7787        .50000       -.55688    
   3  Normalizat    .82481        .24310        .11362E-04   -.99155    
   4  Prefactor     1.1160        .21792        .44136E-04   -.88956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17102e-12
Minuit parameter uncertainties:
  1  4.75381e-06
  2  161.885
  3  0.243426
  4  0.218095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271755': 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) = 4604.66960344
delta logL = 6.03889020567e-07

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  4.754e-06  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.357e+00  1.619e+02  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:  1.116e+00  2.181e-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:  8.248e-01  2.434e-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/271755/cmap_HighResolution_371001601_371260801_4FGL_J2221.9-3504_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='7.82e-08', time_completed='2021-09-28 10:04:34.124528', job_id='271755', GAL2='1.12', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632848674.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='6.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='508' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:04:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 271755: <4FGL_J2221.9-3504_daily_bin508> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin508 335.497 -35.0712 371001601 371260801 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 :                                   710.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             321.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

