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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin472
RA = 335.497, Dec = -35.0712
tmin = 361670401, tmax = 361929601
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='271694', job_status='RUN', time_executed='2021-09-28 09:52:51.624372', time_epoch_executed='1632847971.62' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271694/ft1_4FGL_J2221.9-3504_daily_bin472.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271694/ft2_4FGL_J2221.9-3504_daily_bin472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271694/ft1_4FGL_J2221.9-3504_daily_bin472.fits outfile=/scratch/kocevski/271694/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin472.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=361670401.0 tmax=361929601.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.52
user 3.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271694/ft2_4FGL_J2221.9-3504_daily_bin472.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/271694/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin472.fits evtable="EVENTS" outfile="/scratch/kocevski/271694/ft1_filtered_4FGL_J2221.9-3504_daily_bin472.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/271694/ft1_filtered_4FGL_J2221.9-3504_daily_bin472.fits" evtable="EVENTS" scfile=/scratch/kocevski/271694/ft2_4FGL_J2221.9-3504_daily_bin472.fits sctable="SC_DATA" outfile=/scratch/kocevski/271694/ltcube_361670401_361929601_4FGL_J2221.9-3504_daily_bin472.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/271694/ft2_4FGL_J2221.9-3504_daily_bin472.fits
.....................!
real 11.99
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271694/ft1_filtered_4FGL_J2221.9-3504_daily_bin472.fits evtable="EVENTS" scfile=/scratch/kocevski/271694/ft2_4FGL_J2221.9-3504_daily_bin472.fits sctable="SC_DATA" expcube=/scratch/kocevski/271694/ltcube_361670401_361929601_4FGL_J2221.9-3504_daily_bin472.fits outfile=/scratch/kocevski/271694/expmap_361670401_361929601_4FGL_J2221.9-3504_daily_bin472.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/271694/ltcube_361670401_361929601_4FGL_J2221.9-3504_daily_bin472.fits
.....................!
real 190.58
user 185.02
sys 5.15

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/271694/ft1_filtered_4FGL_J2221.9-3504_daily_bin472.fits scfile=/scratch/kocevski/271694/ft2_4FGL_J2221.9-3504_daily_bin472.fits outfile=/scratch/kocevski/271694/cmap_361670401_361929601_4FGL_J2221.9-3504_daily_bin472.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271694/ft1_filtered_4FGL_J2221.9-3504_daily_bin472.fits scfile=/scratch/kocevski/271694/ft2_4FGL_J2221.9-3504_daily_bin472.fits outfile=/scratch/kocevski/271694/cmap_HighResolution_361670401_361929601_4FGL_J2221.9-3504_daily_bin472.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271694/ft1_filtered_4FGL_J2221.9-3504_daily_bin472.fits evtable="EVENTS" scfile=/scratch/kocevski/271694/ft2_4FGL_J2221.9-3504_daily_bin472.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271694/Model_4FGL_J2221.9-3504_daily_bin472.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/271694/ft1_filtered_4FGL_J2221.9-3504_daily_bin472.fits.....................!
real 52.09
user 50.62
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7153       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.8843       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2964       1.0000         .10000E-03   10000.    
     4 'norm      '    8.8077       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.7897       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0305       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10625E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9830       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3478       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.392       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8418       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.517       1.0000         .10000E-03   10000.    
    24 'norm      '    3.1969       1.0000         .10000E-03   10000.    
    25 'Prefactor '    46.260       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4032       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .69595       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=   6642.192     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3503 TOTAL
                     EDM=   .39E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7152        4.6095        .10214E-06   -.65521E-05
   2  Prefactor     9.8824        9.4064        .64437E-07   -.11008E-05
   3  Prefactor     2.2986        7.2804        .29001E-06   -.22722E-05
   4  norm          8.8082        7.1333        .77223E-07   -.15336E-05
   5  Prefactor     .10000E-03    6.9145       -.65085E-08** at limit **
   6  Prefactor     .10000E-03    22.715       -.15926E-06** at limit **
   7  norm          6.7878        4.8707        .14169E-08    .73161E-05
   8  norm          1.0306        .37663        .47681E-08   -.13818E-04
   9  Prefactor     22.409        13.538       -.11020E-07    .25523E-05
  10  Prefactor     .10000E-03    14.513        .27396E-07** at limit **
  11  Prefactor     .10000E-03    5.0822        .17499E-06** at limit **
  12  Prefactor     .10000E-03    2.2055        .49602E-07** at limit **
  13  norm          .10000E-03    29.394       -.23495E-06** at limit **
  14  Prefactor     .10000E-03    13.200       -.19837E-06** at limit **
  15  Prefactor     1.9829        15.938        .43256E-05    .71098E-05
  16  Prefactor     .10000E-03    8.7774        .96533E-07** at limit **
  17  norm          2.3515        4.2788       -.13600E-05   -.71938E-04
  18  Prefactor     39.281        79.519        .81774E-05   -.76668E-05
  19  Prefactor     8.8373        14.088        .17527E-06    .80002E-05
  20  Prefactor     .10000E-03    5.1949        .39709E-07** at limit **
  21  norm          .10000E-03    5.1692       -.88629E-07** at limit **
  22  Prefactor     .10000E-03    6.9833        .94750E-08** at limit **
  23  Prefactor     29.508        18.534       -.26925E-06    .34043E-04
  24  norm          3.1973        1.3328        .16741E-07    .59887E-04
  25  Prefactor     46.224        54.100        .19253E-05   -.44179E-05
  26  Prefactor     .10000E-03    18.036        .19020E-06** at limit **
  27  Normalizat    1.4036        .19902        .11427E-05   -.21073E-05
  28  Prefactor     .69571        .16847       -.18043E-05    .23695E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.71519
  Prefactor  = 9.88242
  Prefactor  = 2.29858
  norm       = 8.80818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.78784
  norm       = 1.03055
  Prefactor  = 22.4094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.98286
  Prefactor  = 0.0001
  norm       = 2.35151
  Prefactor  = 39.2811
  Prefactor  = 8.83727
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.508
  norm       = 3.19727
  Prefactor  = 46.2244
  Prefactor  = 0.0001
  Normalizat = 1.40355
  Prefactor  = 0.695714
 **********
 **   18 **HESSE 
 **********

 FCN=   6642.192     FROM HESSE     STATUS=OK           521 CALLS     4024 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7152        4.6086        .12317E-03   -1.5117    
   2  Prefactor     9.8824        9.3425        .12746E-03   -1.5079    
   3  Prefactor     2.2986        7.2208        .27084E-03   -1.5405    
   4  norm          8.8082        7.1342        .13506E-03   -1.5114    
   5  Prefactor     .10000E-03    6.9223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.7878        4.8755        .13932E-03   -1.5187    
   8  norm          1.0306        .37815        .28220E-04   -1.5505    
   9  Prefactor     22.409        13.547        .84610E-04   -1.4761    
  10  Prefactor     .10000E-03    14.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1562        .17935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2602        .23621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    29.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9829        16.324        .14715E-02   -1.5426    
  16  Prefactor     .10000E-03    8.7894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3515        4.2760        .14995E-03   -1.5401    
  18  Prefactor     39.281        79.885        .63863E-04   -1.4454    
  19  Prefactor     8.8373        14.177        .67399E-03   -1.5113    
  20  Prefactor     .10000E-03    5.2476        .18135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.3147        .36089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.9860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.508        18.632        .73744E-04   -1.4621    
  24  norm          3.1973        1.3380        .22662E-04   -1.5350    
  25  Prefactor     46.224        54.200        .58951E-04   -1.4347    
  26  Prefactor     .10000E-03    18.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4036        .23712        .24544E-03   -.80526    
  28  Prefactor     .69571        .19729        .28687E-03   -1.0370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.95215e-12
Minuit parameter uncertainties:
  1  4.60875
  2  9.34388
  3  7.22355
  4  7.13486
  5  7.85487e-07
  6  2.1383e-06
  7  4.87579
  8  0.378148
  9  13.5491
  10  8.63335e-06
  11  1.56037e-07
  12  1.82059e-07
  13  2.07977e-06
  14  1.6566e-06
  15  11.3825
  16  4.69703e-07
  17  4.27652
  18  80.1042
  19  14.1824
  20  1.02413e-06
  21  1.73898e-06
  22  1.64174e-06
  23  18.6355
  24  1.33802
  25  54.2575
  26  1.61979e-05
  27  0.237301
  28  0.197485
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.560e-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:  6.957e-01  1.975e-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.404e+00  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 7.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271694/likelihoodResults_361670401_361929601_4FGL_J2221.9-3504_daily_bin472.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) = 6642.19318358
delta logL = -0.000923593916923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6642.19226062
delta logL = -6.38853634882e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6498       1.0000          .0000       10.000    
     3 'Normalizat'    1.4034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69587       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=   6642.192     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      264 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3110        .66989E-01** at limit **
   2  Index         2.2728        6.9098        .50000        .28499E-06
   3  Normalizat    1.4036        .35668E-02    .24543E-03   -.97633E-03
   4  Prefactor     .69571        .30611E-02    .28688E-03   -.84198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.27276
  Normalizat = 1.40355
  Prefactor  = 0.695712
 **********
 **   18 **HESSE 
 **********

 FCN=   6642.192     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      295 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    105.75        .32355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2728        6.1248        .50000       -.57692    
   3  Normalizat    1.4036        .19420E-01    .49087E-04   -.80526    
   4  Prefactor     .69571        .16667E-01    .57376E-04   -1.0370    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.38198e-10
Minuit parameter uncertainties:
  1  7.43454e-05
  2  405.314
  3  0.0194206
  4  0.016667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271694': 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) = 6642.19225784
delta logL = 2.13810108107e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  7.435e-05  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.273e+00  4.053e+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:  6.957e-01  1.667e-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.404e+00  1.942e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/271694/cmap_HighResolution_361670401_361929601_4FGL_J2221.9-3504_daily_bin472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.10e-08', time_completed='2021-09-28 10:06:10.843048', job_id='271694', GAL2='0.70', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632848770.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='472' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:06:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 271694: <4FGL_J2221.9-3504_daily_bin472> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin472 335.497 -35.0712 361670401 361929601 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 :                                   799.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            940 sec.

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

