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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin880
RA = 335.497, Dec = -35.0712
tmin = 467424001, tmax = 467683201
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='273311', job_status='RUN', time_executed='2021-09-28 09:55:51.563275', time_epoch_executed='1632848151.56' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='880'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273311/ft1_4FGL_J2221.9-3504_daily_bin880.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273311/ft2_4FGL_J2221.9-3504_daily_bin880.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273311/ft1_4FGL_J2221.9-3504_daily_bin880.fits outfile=/scratch/kocevski/273311/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin880.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=467424001.0 tmax=467683201.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 3.58
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273311/ft1_filtered_4FGL_J2221.9-3504_daily_bin880.fits" evtable="EVENTS" scfile=/scratch/kocevski/273311/ft2_4FGL_J2221.9-3504_daily_bin880.fits sctable="SC_DATA" outfile=/scratch/kocevski/273311/ltcube_467424001_467683201_4FGL_J2221.9-3504_daily_bin880.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/273311/ft2_4FGL_J2221.9-3504_daily_bin880.fits
.....................!
real 12.12
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273311/ft1_filtered_4FGL_J2221.9-3504_daily_bin880.fits evtable="EVENTS" scfile=/scratch/kocevski/273311/ft2_4FGL_J2221.9-3504_daily_bin880.fits sctable="SC_DATA" expcube=/scratch/kocevski/273311/ltcube_467424001_467683201_4FGL_J2221.9-3504_daily_bin880.fits outfile=/scratch/kocevski/273311/expmap_467424001_467683201_4FGL_J2221.9-3504_daily_bin880.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/273311/ltcube_467424001_467683201_4FGL_J2221.9-3504_daily_bin880.fits
.....................!
real 191.47
user 186.63
sys 4.48

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/273311/ft1_filtered_4FGL_J2221.9-3504_daily_bin880.fits scfile=/scratch/kocevski/273311/ft2_4FGL_J2221.9-3504_daily_bin880.fits outfile=/scratch/kocevski/273311/cmap_467424001_467683201_4FGL_J2221.9-3504_daily_bin880.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273311/ft1_filtered_4FGL_J2221.9-3504_daily_bin880.fits scfile=/scratch/kocevski/273311/ft2_4FGL_J2221.9-3504_daily_bin880.fits outfile=/scratch/kocevski/273311/cmap_HighResolution_467424001_467683201_4FGL_J2221.9-3504_daily_bin880.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.050       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12117E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    22.732       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3919       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6375       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .57498       1.0000         .10000E-03   10000.    
    13 'norm      '    17.632       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4632       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2807       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8577       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7210       1.0000         .10000E-03   10000.    
    21 'norm      '    .14494E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.552       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.976       1.0000         .10000E-03   10000.    
    24 'norm      '    .25757       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1645       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .70075       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=   4469.497     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3072 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.050        6.4536        .12644E-06   -.97168E-05
   2  Prefactor     .10000E-03    10.843        .10388E-05** at limit **
   3  Prefactor     .10000E-03    2.3887        .29992E-07** at limit **
   4  norm          .10000E-03    16.518        .16281E-05** at limit **
   5  Prefactor     .10000E-03    8.6677       -.86440E-07** at limit **
   6  Prefactor     .10000E-03    30.921       -.16389E-05** at limit **
   7  norm          22.732        7.7449        .11172E-06   -.45518E-04
   8  norm          1.3919        .52441        .10114E-07   -.27770E-04
   9  Prefactor     .10000E-03    5.5593        .82084E-08** at limit **
  10  Prefactor     2.6325        48.881        .12048E-05   -.14376E-04
  11  Prefactor     .10000E-03    6.0876        .38064E-07** at limit **
  12  Prefactor     .57438        3.2552        .41358E-06   -.16815E-03
  13  norm          17.633        20.116        .97452E-08   -.65234E-05
  14  Prefactor     .10000E-03    17.166        .11990E-05** at limit **
  15  Prefactor     .10002E-03    93.429       -.13129E-04** at limit **
  16  Prefactor     5.4534        26.250       -.13168E-05    .96062E-05
  17  norm          6.2797        3.4705        .29638E-07   -.85420E-04
  18  Prefactor     .10003E-03    69.731        .11247E-04** at limit **
  19  Prefactor     4.8551        13.859        .55379E-05   -.32028E-03
  20  Prefactor     9.7191        8.4482        .81649E-06   -.26192E-03
  21  norm          .10004E-03    5.3364       -.64975E-06** at limit **
  22  Prefactor     14.560        38.321       -.12039E-05    .33265E-03
  23  Prefactor     10.966        21.091       -.24740E-05    .12664E-03
  24  norm          .25747        .90135        .65181E-06    .11916E-02
  25  Prefactor     .10000E-03    21.747        .24521E-06** at limit **
  26  Prefactor     .10000E-03    23.219       -.44781E-06** at limit **
  27  Normalizat    1.1645        .22876       -.48138E-06   -.75796E-05
  28  Prefactor     .70068        .18437       -.11674E-05    .34418E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 22.7316
  norm       = 1.39189
  Prefactor  = 0.0001
  Prefactor  = 2.63254
  Prefactor  = 0.0001
  Prefactor  = 0.574376
  norm       = 17.6334
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 5.45343
  norm       = 6.27967
  Prefactor  = 0.000100028
  Prefactor  = 4.85513
  Prefactor  = 9.71912
  norm       = 0.000100042
  Prefactor  = 14.5601
  Prefactor  = 10.9657
  norm       = 0.257473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16454
  Prefactor  = 0.700683
 **********
 **   18 **HESSE 
 **********

 FCN=   4469.497     FROM HESSE     STATUS=OK           523 CALLS     3595 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.050        6.4544        .11088E-03   -1.4985    
   2  Prefactor     .10000E-03    11.342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3902        .10091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    17.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.6742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.732        7.7638        .84012E-04   -1.4754    
   8  norm          1.3919        .52518        .27694E-04   -1.5472    
   9  Prefactor     .10000E-03    5.5664        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6325        49.004        .25107E-03   -1.5383    
  11  Prefactor     .10000E-03    6.1189        .16104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .57438        5.8178        .22595E-02   -1.5556    
  13  norm          17.633        20.123        .95383E-04   -1.4868    
  14  Prefactor     .10000E-03    17.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    97.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.4534        26.595        .17191E-03   -1.5241    
  17  norm          6.2797        3.4697        .89209E-04   -1.5207    
  18  Prefactor     .10003E-03    73.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8551        14.211        .91256E-03   -1.5267    
  20  Prefactor     9.7191        8.4798        .64264E-03   -1.5084    
  21  norm          .10004E-03    14.042        .26105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.560        36.248        .10500E-03   -1.4945    
  23  Prefactor     10.966        20.666        .12093E-03   -1.5046    
  24  norm          .25747        .78681        .80987E-03   -1.5606    
  25  Prefactor     .10000E-03    21.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    23.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1645        .28003        .24049E-03   -.87706    
  28  Prefactor     .70068        .22274        .25838E-03   -1.0350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03662e-08
Minuit parameter uncertainties:
  1  6.45477
  2  7.80312e-05
  3  1.07915e-06
  4  0.000148749
  5  5.83434e-06
  6  0.000258843
  7  7.7641
  8  0.525184
  9  2.28438e-06
  10  22.7371
  11  8.08785e-06
  12  3.65615
  13  20.1307
  14  0.000147617
  15  0.00299555
  16  24.1031
  17  3.46985
  18  0.00287477
  19  14.2211
  20  8.48087
  21  0.00153059
  22  36.3027
  23  20.6799
  24  0.786837
  25  3.48296e-05
  26  5.1371e-05
  27  0.28039
  28  0.223023
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  8.088e-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:  7.007e-01  2.230e-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.165e+00  2.804e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273311/likelihoodResults_467424001_467683201_4FGL_J2221.9-3504_daily_bin880.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) = 4469.49818546
delta logL = -0.000778165277552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4469.49740741
delta logL = -1.1605607142e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6875       1.0000          .0000       10.000    
     3 'Normalizat'    1.1645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70076       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=   4469.428     FROM MIGRAD    STATUS=CONVERGED    165 CALLS      302 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31294E-01    1.2824        .72000E-02    .27257E-02
   2  Index         6.3770        7.6626        .25069        .39200E-04
   3  Normalizat    1.1355        .26613E-01    .24049E-03    .34929E-03
   4  Prefactor     .71759        .22836E-01    .25838E-03    .29467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0312942
  Index      = 6.37702
  Normalizat = 1.1355
  Prefactor  = 0.717595
 **********
 **   18 **HESSE 
 **********

 FCN=   4469.428     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      333 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31294E-01    11.676        .30013E-03   -1.5673    
   2  Index         6.3770        6.8021        .15759E-01    .27901    
   3  Normalizat    1.1355        .14329        .48098E-04   -.88620    
   4  Prefactor     .71759        .11844        .51676E-04   -1.0284    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.68738e-10
Minuit parameter uncertainties:
  1  1.20725
  2  24.4082
  3  0.143341
  4  0.11848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273311': 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) = 4469.42796575
delta logL = 0.0694415438584

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.129e-02  1.207e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  6.377e+00  2.441e+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:  7.176e-01  1.185e-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.136e+00  1.433e-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/273311/cmap_HighResolution_467424001_467683201_4FGL_J2221.9-3504_daily_bin880.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-28 10:06:19.371804', job_id='273311', GAL2='0.72', fit_tolerance='1e-08', EG2='1.14', EG='1.16', time_epoch_completed='1632848779.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='6.94e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='880' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:06:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 273311: <4FGL_J2221.9-3504_daily_bin880> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin880 335.497 -35.0712 467424001 467683201 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 :                                   627.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            640 sec.

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

