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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin768
RA = 335.497, Dec = -35.0712
tmin = 438393601, tmax = 438652801
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='273134', job_status='RUN', time_executed='2021-09-28 09:57:33.914826', time_epoch_executed='1632848253.91' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273134

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273134/ft1_4FGL_J2221.9-3504_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273134/ft2_4FGL_J2221.9-3504_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273134/ft1_4FGL_J2221.9-3504_daily_bin768.fits outfile=/scratch/kocevski/273134/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin768.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=438393601.0 tmax=438652801.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.30
user 6.00
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/273134/ft2_4FGL_J2221.9-3504_daily_bin768.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/273134/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin768.fits evtable="EVENTS" outfile="/scratch/kocevski/273134/ft1_filtered_4FGL_J2221.9-3504_daily_bin768.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273134/ft1_filtered_4FGL_J2221.9-3504_daily_bin768.fits" evtable="EVENTS" scfile=/scratch/kocevski/273134/ft2_4FGL_J2221.9-3504_daily_bin768.fits sctable="SC_DATA" outfile=/scratch/kocevski/273134/ltcube_438393601_438652801_4FGL_J2221.9-3504_daily_bin768.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/273134/ft2_4FGL_J2221.9-3504_daily_bin768.fits
.....................!
real 11.99
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273134/ft1_filtered_4FGL_J2221.9-3504_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/273134/ft2_4FGL_J2221.9-3504_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/273134/ltcube_438393601_438652801_4FGL_J2221.9-3504_daily_bin768.fits outfile=/scratch/kocevski/273134/expmap_438393601_438652801_4FGL_J2221.9-3504_daily_bin768.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/273134/ltcube_438393601_438652801_4FGL_J2221.9-3504_daily_bin768.fits
.....................!
real 192.46
user 187.20
sys 4.90

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/273134/ft1_filtered_4FGL_J2221.9-3504_daily_bin768.fits scfile=/scratch/kocevski/273134/ft2_4FGL_J2221.9-3504_daily_bin768.fits outfile=/scratch/kocevski/273134/cmap_438393601_438652801_4FGL_J2221.9-3504_daily_bin768.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273134/ft1_filtered_4FGL_J2221.9-3504_daily_bin768.fits scfile=/scratch/kocevski/273134/ft2_4FGL_J2221.9-3504_daily_bin768.fits outfile=/scratch/kocevski/273134/cmap_HighResolution_438393601_438652801_4FGL_J2221.9-3504_daily_bin768.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/273134/ft1_filtered_4FGL_J2221.9-3504_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/273134/ft2_4FGL_J2221.9-3504_daily_bin768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273134/Model_4FGL_J2221.9-3504_daily_bin768.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/273134/ft1_filtered_4FGL_J2221.9-3504_daily_bin768.fits.....................!
real 36.87
user 35.46
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.927       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3388       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.0382       1.0000         .10000E-03   10000.    
     8 'norm      '    .47063       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58618E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50042       1.0000         .10000E-03   10000.    
    13 'norm      '    68.962       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.385       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0329       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .14747E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    102.86       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.346       1.0000         .10000E-03   10000.    
    24 'norm      '    .17152       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.310       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .68859       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1064       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=   4022.402     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3549 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.925        8.0756       -.53418E-07   -.33959E-04
   2  Prefactor     1.3395        7.9384        .24769E-05    .14587E-03
   3  Prefactor     .10000E-03    13.593       -.11148E-06** at limit **
   4  norm          .10000E-03    7.8842        .53264E-07** at limit **
   5  Prefactor     .10000E-03    9.8448        .90570E-08** at limit **
   6  Prefactor     .10000E-03    27.395       -.10029E-07** at limit **
   7  norm          5.0380        5.0201        .33397E-07   -.10351E-04
   8  norm          .47063        .38075       -.24913E-08   -.42277E-04
   9  Prefactor     .10000E-03    9.3311        .26729E-06** at limit **
  10  Prefactor     .10000E-03    8.1075        .74426E-07** at limit **
  11  Prefactor     .10000E-03    4.3212        .71469E-07** at limit **
  12  Prefactor     .49594        4.8501        .15406E-05   -.77181E-03
  13  norm          68.951        39.146        .17173E-06    .66064E-05
  14  Prefactor     36.337        68.801        .17564E-05   -.56527E-04
  15  Prefactor     .10000E-03    14.486        .56177E-07** at limit **
  16  Prefactor     .10000E-03    24.033       -.12689E-05** at limit **
  17  norm          .10000E-03    .84801       -.57023E-07** at limit **
  18  Prefactor     .10000E-03    31.124        .56690E-07** at limit **
  19  Prefactor     2.0267        14.119        .22141E-05    .78830E-04
  20  Prefactor     .10000E-03    2.9426       -.29668E-06** at limit **
  21  norm          .10000E-03    3.6470       -.77534E-06** at limit **
  22  Prefactor     102.81        45.732        .89850E-06    .23281E-03
  23  Prefactor     30.329        22.026       -.27661E-06    .29016E-03
  24  norm          .17303        .87786        .67476E-06    .85688E-03
  25  Prefactor     .10000E-03    16.914        .64067E-07** at limit **
  26  Prefactor     12.297        14.122       -.21273E-06    .11744E-05
  27  Normalizat    .68870        .21778        .14039E-06   -.21709E-04
  28  Prefactor     1.1064        .19809       -.22314E-06    .75784E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.9248
  Prefactor  = 1.33954
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.03797
  norm       = 0.470625
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.49594
  norm       = 68.9513
  Prefactor  = 36.3365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.02666
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 102.814
  Prefactor  = 30.329
  norm       = 0.173026
  Prefactor  = 0.0001
  Prefactor  = 12.2968
  Normalizat = 0.688701
  Prefactor  = 1.10645
 **********
 **   18 **HESSE 
 **********

 FCN=   4022.402     FROM HESSE     STATUS=OK           521 CALLS     4070 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.925        8.0761        .10036E-03   -1.4910    
   2  Prefactor     1.3395        7.9127        .34364E-03   -1.5476    
   3  Prefactor     .10000E-03    13.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.9702        .17385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.0380        5.0121        .12919E-03   -1.5259    
   8  norm          .47063        .38159        .32395E-04   -1.5571    
   9  Prefactor     .10000E-03    61.860        .37498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1122        .17635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3499        .12872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .49594        12.700        .20981E-02   -1.5567    
  13  norm          68.951        39.130        .48336E-04   -1.4045    
  14  Prefactor     36.337        69.465        .66440E-04   -1.4502    
  15  Prefactor     .10000E-03    14.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .85088        .57038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0267        14.076        .29012E-03   -1.5423    
  20  Prefactor     .10000E-03    2.9522        .10630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    29.700        .21933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     102.81        44.843        .39646E-04   -1.3677    
  23  Prefactor     30.329        21.242        .72733E-04   -1.4606    
  24  norm          .17303        .69422        .91681E-04   -1.5625    
  25  Prefactor     .10000E-03    16.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.297        14.113        .11417E-03   -1.5006    
  27  Normalizat    .68870        .25334        .28337E-03   -1.0434    
  28  Prefactor     1.1064        .23181        .21611E-03   -.89261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6719e-09
Minuit parameter uncertainties:
  1  8.07666
  2  6.5124
  3  5.55045e-05
  4  1.07533e-05
  5  2.11965e-06
  6  1.9075e-05
  7  5.01248
  8  0.381594
  9  0.00097545
  10  1.28678e-05
  11  2.18621e-07
  12  5.02002
  13  39.1444
  14  69.6202
  15  3.21874e-06
  16  0.000186236
  17  1.47373e-06
  18  3.01003e-05
  19  10.6856
  20  1.30534e-05
  21  0.000127308
  22  44.8576
  23  21.2469
  24  0.692977
  25  1.75932e-05
  26  14.1168
  27  0.253775
  28  0.232023
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.186e-07  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.106e+00  2.320e-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:  6.887e-01  2.538e-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.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273134/likelihoodResults_438393601_438652801_4FGL_J2221.9-3504_daily_bin768.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) = 4022.40341856
delta logL = -0.00109258869043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4022.40232595
delta logL = 2.73189471045e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6658       1.0000          .0000       10.000    
     3 'Normalizat'    .68871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1065       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=   4022.402     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      250 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.156        .12936E-01** at limit **
   2  Index         2.1531        7.8116        .50000        .10555E-06
   3  Normalizat    .68870        .15498E-01    .28337E-03    .46353E-03
   4  Prefactor     1.1064        .14772E-01    .21611E-03    .65137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.15313
  Normalizat = 0.688703
  Prefactor  = 1.10645
 **********
 **   18 **HESSE 
 **********

 FCN=   4022.402     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    417.20        .13759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1531        8.8705        .50000       -.60574    
   3  Normalizat    .68870        .52808E-01    .56674E-04   -1.0434    
   4  Prefactor     1.1064        .50338E-01    .43223E-04   -.89261    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.15096e-09
Minuit parameter uncertainties:
  1  0.00092214
  2  1154.09
  3  0.0528114
  4  0.0503403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273134': 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) = 4022.40232454
delta logL = 1.42963335747e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  9.221e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.153e+00  1.154e+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:  1.106e+00  5.034e-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:  6.887e-01  5.281e-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/273134/cmap_HighResolution_438393601_438652801_4FGL_J2221.9-3504_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.01e-08', time_completed='2021-09-28 10:08:03.236949', job_id='273134', GAL2='1.11', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632848883.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='768' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:08:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 273134: <4FGL_J2221.9-3504_daily_bin768> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin768 335.497 -35.0712 438393601 438652801 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 :                                   628.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

