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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin985
RA = 335.497, Dec = -35.0712
tmin = 494640001, tmax = 494899201
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='273482', job_status='RUN', time_executed='2021-09-28 09:58:04.427046', time_epoch_executed='1632848284.43' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='985'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273482

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273482/ft1_4FGL_J2221.9-3504_daily_bin985.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273482/ft2_4FGL_J2221.9-3504_daily_bin985.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273482/ft1_4FGL_J2221.9-3504_daily_bin985.fits outfile=/scratch/kocevski/273482/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin985.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=494640001.0 tmax=494899201.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 4.18
user 3.98
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/273482/ft2_4FGL_J2221.9-3504_daily_bin985.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/273482/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin985.fits evtable="EVENTS" outfile="/scratch/kocevski/273482/ft1_filtered_4FGL_J2221.9-3504_daily_bin985.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/273482/ft1_filtered_4FGL_J2221.9-3504_daily_bin985.fits" evtable="EVENTS" scfile=/scratch/kocevski/273482/ft2_4FGL_J2221.9-3504_daily_bin985.fits sctable="SC_DATA" outfile=/scratch/kocevski/273482/ltcube_494640001_494899201_4FGL_J2221.9-3504_daily_bin985.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/273482/ft2_4FGL_J2221.9-3504_daily_bin985.fits
.....................!
real 11.55
user 11.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273482/ft1_filtered_4FGL_J2221.9-3504_daily_bin985.fits evtable="EVENTS" scfile=/scratch/kocevski/273482/ft2_4FGL_J2221.9-3504_daily_bin985.fits sctable="SC_DATA" expcube=/scratch/kocevski/273482/ltcube_494640001_494899201_4FGL_J2221.9-3504_daily_bin985.fits outfile=/scratch/kocevski/273482/expmap_494640001_494899201_4FGL_J2221.9-3504_daily_bin985.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/273482/ltcube_494640001_494899201_4FGL_J2221.9-3504_daily_bin985.fits
.....................!
real 191.13
user 185.83
sys 4.91

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/273482/ft1_filtered_4FGL_J2221.9-3504_daily_bin985.fits scfile=/scratch/kocevski/273482/ft2_4FGL_J2221.9-3504_daily_bin985.fits outfile=/scratch/kocevski/273482/cmap_494640001_494899201_4FGL_J2221.9-3504_daily_bin985.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273482/ft1_filtered_4FGL_J2221.9-3504_daily_bin985.fits scfile=/scratch/kocevski/273482/ft2_4FGL_J2221.9-3504_daily_bin985.fits outfile=/scratch/kocevski/273482/cmap_HighResolution_494640001_494899201_4FGL_J2221.9-3504_daily_bin985.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7089       1.0000         .10000E-03   10000.    
     8 'norm      '    .67512       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5596       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0526       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .50199E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51963       1.0000         .10000E-03   10000.    
    13 'norm      '    17.777       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.058       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.065       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.8581       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.694       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.270       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8208       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3434       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13773E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .83276       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.4445       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=   5848.315     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3556 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7660       -.31541E-07** at limit **
   2  Prefactor     .10000E-03    3.2148        .18104E-07** at limit **
   3  Prefactor     .10000E-03    3.4327       -.66107E-07** at limit **
   4  norm          .10000E-03    5.8683        .25657E-07** at limit **
   5  Prefactor     .10000E-03    14.739       -.38977E-06** at limit **
   6  Prefactor     .10000E-03    54.059        .40996E-06** at limit **
   7  norm          1.7088        2.6227        .25843E-07    .72306E-04
   8  norm          .67509        .32580        .62428E-08    .22742E-03
   9  Prefactor     2.5578        19.607        .14756E-05    .72817E-04
  10  Prefactor     2.1006        54.829       -.44472E-05   -.55496E-04
  11  Prefactor     .10000E-03    7.8115       -.25727E-05** at limit **
  12  Prefactor     .52073        4.2996        .17885E-06    .16334E-03
  13  norm          17.782        17.419       -.39777E-07    .22237E-04
  14  Prefactor     29.028        33.163        .33454E-05    .28520E-03
  15  Prefactor     10.047        26.097        .14638E-05    .12939E-03
  16  Prefactor     .10000E-03    31.490        .25719E-07** at limit **
  17  norm          3.8587        3.2335       -.25859E-06    .29782E-03
  18  Prefactor     22.673        62.874        .41486E-05    .12077E-03
  19  Prefactor     11.275        15.704       -.14813E-06    .15265E-03
  20  Prefactor     4.8237        8.7107        .52860E-06    .48790E-03
  21  norm          .10000E-03    3.1120       -.90509E-07** at limit **
  22  Prefactor     7.3436        11.458        .21017E-07    .33134E-03
  23  Prefactor     .10011E-03    10.571       -.31327E-05** at limit **
  24  norm          .10000E-03    .31293       -.73608E-07** at limit **
  25  Prefactor     .10000E-03    41.720       -.29918E-05** at limit **
  26  Prefactor     .10000E-03    6.3743       -.18798E-06** at limit **
  27  Normalizat    .83231        .22002       -.44207E-06    .37516E-03
  28  Prefactor     1.4448        .18368        .39793E-07    .31039E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7088
  norm       = 0.675087
  Prefactor  = 2.5578
  Prefactor  = 2.10063
  Prefactor  = 0.000100001
  Prefactor  = 0.520731
  norm       = 17.7818
  Prefactor  = 29.0278
  Prefactor  = 10.0471
  Prefactor  = 0.0001
  norm       = 3.85871
  Prefactor  = 22.6735
  Prefactor  = 11.2749
  Prefactor  = 4.82375
  norm       = 0.0001
  Prefactor  = 7.34363
  Prefactor  = 0.000100111
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.83231
  Prefactor  = 1.44481
 **********
 **   18 **HESSE 
 **********

 FCN=   5848.315     FROM HESSE     STATUS=OK           521 CALLS     4077 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7784        .99240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2378        .13388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4466        .13837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.9230        .18088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    54.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7088        2.5930        .14744E-03   -1.5447    
   8  norm          .67509        .32859        .29210E-04   -1.5544    
   9  Prefactor     2.5578        19.490        .25518E-03   -1.5388    
  10  Prefactor     2.1006        55.201        .28852E-03   -1.5418    
  11  Prefactor     .10000E-03    13.114        .34556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .52073        4.3352        .29850E-03   -1.5564    
  13  norm          17.782        17.418        .47496E-03   -1.4864    
  14  Prefactor     29.028        33.561        .37162E-03   -1.4630    
  15  Prefactor     10.047        26.148        .12631E-03   -1.5074    
  16  Prefactor     .10000E-03    31.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.8587        3.2682        .10303E-03   -1.5315    
  18  Prefactor     22.673        63.816        .84082E-04   -1.4755    
  19  Prefactor     11.275        15.755        .11933E-03   -1.5036    
  20  Prefactor     4.8237        8.9295        .91613E-03   -1.5269    
  21  norm          .10000E-03    3.1464        .13146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.3436        10.880        .14801E-03   -1.5166    
  23  Prefactor     .10011E-03    28.473        .33717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .37111        .80244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    42.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.3806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .83231        .25970        .30616E-03   -.98881    
  28  Prefactor     1.4448        .22181        .21904E-03   -.79097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26029e-09
Minuit parameter uncertainties:
  1  7.93609e-07
  2  2.69973e-06
  3  2.82243e-06
  4  4.61578e-06
  5  4.20301e-05
  6  0.000116601
  7  2.59314
  8  0.328587
  9  14.1271
  10  21.5582
  11  0.000257441
  12  3.00499
  13  17.4231
  14  33.5832
  15  26.1782
  16  6.05976e-05
  17  3.26836
  18  64.0093
  19  15.7605
  20  8.93194
  21  7.80604e-06
  22  10.8832
  23  0.00355456
  24  7.05095e-06
  25  0.000599654
  26  3.73695e-06
  27  0.260085
  28  0.221958
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.574e-04  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.445e+00  2.220e-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.323e-01  2.601e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273482/likelihoodResults_494640001_494899201_4FGL_J2221.9-3504_daily_bin985.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) = 5848.31527673
delta logL = -0.000361978808542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5848.31491485
delta logL = -1.01448677015e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7096       1.0000          .0000       10.000    
     3 'Normalizat'    .83237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4448       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5848.315     FROM MIGRAD    STATUS=FAILED       100 CALLS      262 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11479E-03    109.30        .33246E-02** at limit **
   2  Index         3.0131        8.2488        .50000       -.12751E-04
   3  Normalizat    .83230        .11865E-01    .30616E-03   -.21949E-03
   4  Prefactor     1.4448        .10886E-01    .21904E-03   -.12462E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5848.315     FROM SIMPLEX   STATUS=PROGRESS     126 CALLS      388 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10087E-03    109.30        .62449E-03** at limit **
   2  Index         3.0118        8.2488        .40590E-03   -.12751E-04
   3  Normalizat    .83230        .11865E-01    .12608E-05   -.21949E-03
   4  Prefactor     1.4448        .10886E-01    .54987E-06   -.12462E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5848.315     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      427 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    .40568        .66493E-01** at limit **
   2  Index         3.0717        8.3819        .50000       -.85404E-05
   3  Normalizat    .83230        .17602E-02    .12246E-04   -.10614E-02
   4  Prefactor     1.4448        .16150E-02    .43808E-04   -.12615E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101183
  Index      = 3.07171
  Normalizat = 0.8323
  Prefactor  = 1.44482
 **********
 **   18 **HESSE 
 **********

 FCN=   5848.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      458 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10118E-03    117.42        .27135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0717        6.3317        .50000       -.39592    
   3  Normalizat    .83230        .11958E-01    .24493E-05   -.98882    
   4  Prefactor     1.4448        .10974E-01    .87616E-05   -.79097    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46572e-09
Minuit parameter uncertainties:
  1  0.0236187
  2  322.385
  3  0.0119584
  4  0.0109737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273482': 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) = 5848.31491334
delta logL = 1.4136385289e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.012e-04  2.362e-02  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  3.072e+00  3.224e+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.445e+00  1.097e-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:  8.323e-01  1.196e-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/273482/cmap_HighResolution_494640001_494899201_4FGL_J2221.9-3504_daily_bin985.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-28 10:10:31.257795', job_id='273482', GAL2='1.44', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632849031.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='1.41e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='985' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:10:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 273482: <4FGL_J2221.9-3504_daily_bin985> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin985 335.497 -35.0712 494640001 494899201 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 :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

