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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin492
RA = 335.497, Dec = -35.0712
tmin = 366854401, tmax = 367113601
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='271728', job_status='RUN', time_executed='2021-09-28 09:54:18.004587', time_epoch_executed='1632848058.0' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271728

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271728/ft1_4FGL_J2221.9-3504_daily_bin492.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271728/ft2_4FGL_J2221.9-3504_daily_bin492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271728/ft1_4FGL_J2221.9-3504_daily_bin492.fits outfile=/scratch/kocevski/271728/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin492.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=366854401.0 tmax=367113601.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 5.40
user 5.12
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271728/ft1_filtered_4FGL_J2221.9-3504_daily_bin492.fits" evtable="EVENTS" scfile=/scratch/kocevski/271728/ft2_4FGL_J2221.9-3504_daily_bin492.fits sctable="SC_DATA" outfile=/scratch/kocevski/271728/ltcube_366854401_367113601_4FGL_J2221.9-3504_daily_bin492.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/271728/ft2_4FGL_J2221.9-3504_daily_bin492.fits
.....................!
real 11.57
user 11.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271728/ft1_filtered_4FGL_J2221.9-3504_daily_bin492.fits evtable="EVENTS" scfile=/scratch/kocevski/271728/ft2_4FGL_J2221.9-3504_daily_bin492.fits sctable="SC_DATA" expcube=/scratch/kocevski/271728/ltcube_366854401_367113601_4FGL_J2221.9-3504_daily_bin492.fits outfile=/scratch/kocevski/271728/expmap_366854401_367113601_4FGL_J2221.9-3504_daily_bin492.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/271728/ltcube_366854401_367113601_4FGL_J2221.9-3504_daily_bin492.fits
.....................!
real 189.67
user 184.48
sys 4.84

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/271728/ft1_filtered_4FGL_J2221.9-3504_daily_bin492.fits scfile=/scratch/kocevski/271728/ft2_4FGL_J2221.9-3504_daily_bin492.fits outfile=/scratch/kocevski/271728/cmap_366854401_367113601_4FGL_J2221.9-3504_daily_bin492.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271728/ft1_filtered_4FGL_J2221.9-3504_daily_bin492.fits scfile=/scratch/kocevski/271728/ft2_4FGL_J2221.9-3504_daily_bin492.fits outfile=/scratch/kocevski/271728/cmap_HighResolution_366854401_367113601_4FGL_J2221.9-3504_daily_bin492.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95682       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1802       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.061       1.0000         .10000E-03   10000.    
     4 'norm      '    .10460E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2567       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.1688       1.0000         .10000E-03   10000.    
     8 'norm      '    .80361       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31993E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20890E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.132       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.241       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9092       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22635       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .30698E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.6767       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    67.354       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5278       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .66396       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=   4485.795     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3088 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95673        2.4110       -.14640E-05   -.16965E-03
   2  Prefactor     6.1736        12.936        .74794E-06    .20356E-03
   3  Prefactor     11.058        9.8272       -.14067E-06   -.31945E-04
   4  norm          .10000E-03    12.827       -.27730E-06** at limit **
   5  Prefactor     8.2668        15.914       -.39190E-06    .21024E-04
   6  Prefactor     .10000E-03    29.428       -.16282E-05** at limit **
   7  norm          6.1647        8.0553       -.10096E-06    .27442E-03
   8  norm          .80352        .53014        .10512E-07    .49122E-03
   9  Prefactor     .10000E-03    9.0059        .11223E-05** at limit **
  10  Prefactor     .10000E-03    18.303       -.15859E-06** at limit **
  11  Prefactor     .10000E-03    4.3905       -.15432E-07** at limit **
  12  Prefactor     .10000E-03    3.5991       -.11775E-05** at limit **
  13  norm          .10000E-03    21.836        .76199E-07** at limit **
  14  Prefactor     15.110        29.059        .43450E-06    .12582E-04
  15  Prefactor     18.356        32.077        .54363E-06    .26693E-04
  16  Prefactor     .10000E-03    15.181        .12872E-06** at limit **
  17  norm          .10000E-03    1.5433        .24550E-07** at limit **
  18  Prefactor     2.7670        271.23       -.65948E-07   -.24191E-06
  19  Prefactor     .68601E-02    14.705       -.14556E-05    .23186E-04
  20  Prefactor     .10000E-03    2.3855       -.11063E-07** at limit **
  21  norm          .10000E-03    15.168        .57826E-05** at limit **
  22  Prefactor     .10000E-03    10.982        .99676E-07** at limit **
  23  Prefactor     .10000E-03    29.275        .19139E-05** at limit **
  24  norm          1.6773        .97216        .30670E-07   -.20897E-03
  25  Prefactor     .10000E-03    47.871        .65570E-08** at limit **
  26  Prefactor     67.370        29.287        .71798E-06   -.74105E-04
  27  Normalizat    1.5284        .23771        .29599E-06    .79095E-04
  28  Prefactor     .66384        .19271       -.22674E-06   -.65451E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.956727
  Prefactor  = 6.17362
  Prefactor  = 11.0576
  norm       = 0.0001
  Prefactor  = 8.2668
  Prefactor  = 0.0001
  norm       = 6.16467
  norm       = 0.80352
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1099
  Prefactor  = 18.3559
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.76697
  Prefactor  = 0.00686012
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.67735
  Prefactor  = 0.0001
  Prefactor  = 67.3705
  Normalizat = 1.52836
  Prefactor  = 0.663841
 **********
 **   18 **HESSE 
 **********

 FCN=   4485.795     FROM HESSE     STATUS=OK           531 CALLS     3619 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95673        2.4107        .19056E-02   -1.5512    
   2  Prefactor     6.1736        13.059        .16149E-03   -1.5211    
   3  Prefactor     11.058        9.8293        .12046E-03   -1.5043    
   4  norm          .10000E-03    13.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2668        15.882        .13952E-03   -1.5133    
   6  Prefactor     .10000E-03    29.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.1647        8.0501        .16164E-03   -1.5211    
   8  norm          .80352        .52398        .34505E-04   -1.5529    
   9  Prefactor     .10000E-03    26.261        .38295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3991        .13704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.980        .22714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    21.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.110        29.002        .10296E-03   -1.4930    
  15  Prefactor     18.356        32.211        .93777E-04   -1.4851    
  16  Prefactor     .10000E-03    15.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5460        .80747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7670        266.18        .23821E-03   -1.5375    
  19  Prefactor     .68601E-02    24.328        .71324E-01   -1.5692    
  20  Prefactor     .10000E-03    2.3877        .10103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    15.903        .23591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6773        .95696        .45168E-04   -1.5449    
  25  Prefactor     .10000E-03    47.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     67.370        28.879        .48905E-04   -1.4065    
  27  Normalizat    1.5284        .27892        .23866E-03   -.76985    
  28  Prefactor     .66384        .22606        .28737E-03   -1.0496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40725e-09
Minuit parameter uncertainties:
  1  2.41097
  2  13.065
  3  9.83075
  4  6.92353e-05
  5  15.8902
  6  0.000166144
  7  8.05146
  8  0.523986
  9  0.000380931
  10  1.07937e-05
  11  6.13339e-06
  12  0.000119402
  13  2.51467e-05
  14  29.029
  15  32.2419
  16  6.18243e-06
  17  4.23677e-06
  18  54.5281
  19  0.811404
  20  7.29311e-08
  21  0.000181673
  22  5.29024e-05
  23  0.000464326
  24  0.95697
  25  9.80201e-06
  26  28.8847
  27  0.279206
  28  0.226373
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  6.133e-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.638e-01  2.264e-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.528e+00  2.792e-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: 9.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271728/likelihoodResults_366854401_367113601_4FGL_J2221.9-3504_daily_bin492.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) = 4485.7964098
delta logL = -0.00107406866027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4485.79533568
delta logL = 4.37503331341e-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.6661       1.0000          .0000       10.000    
     3 'Normalizat'    1.5284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66385       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=   4485.795     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      257 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.684        .13768E-01** at limit **
   2  Index         2.2420        6.9842        .50000        .12753E-06
   3  Normalizat    1.5284        .21919E-01    .23866E-03    .10619E-03
   4  Prefactor     .66384        .18294E-01    .28737E-03    .10033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.24202
  Normalizat = 1.52835
  Prefactor  = 0.663844
 **********
 **   18 **HESSE 
 **********

 FCN=   4485.795     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    567.93        .14462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2420        6.1742        .50000       -.58428    
   3  Normalizat    1.5284        .75282E-01    .47732E-04   -.76985    
   4  Prefactor     .66384        .62833E-01    .11495E-04   -1.0496    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.28635e-09
Minuit parameter uncertainties:
  1  0.0010783
  2  1451.56
  3  0.0752874
  4  0.0628395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271728': 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) = 4485.79533454
delta logL = 1.18833668239e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.078e-03  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.242e+00  1.452e+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.638e-01  6.284e-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.528e+00  7.529e-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/271728/cmap_HighResolution_366854401_367113601_4FGL_J2221.9-3504_daily_bin492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.69e-03', job_status='DONE', photon_flux_upper_limit='9.78e-08', time_completed='2021-09-28 10:04:37.094606', job_id='271728', GAL2='0.66', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1632848677.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='492' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:04:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 271728: <4FGL_J2221.9-3504_daily_bin492> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin492 335.497 -35.0712 366854401 367113601 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 :                                   618.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

