/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 185 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 = 7463
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.9-3504_daily_bin439
RA = 335.497, Dec = -35.0712
tmin = 353116801, tmax = 353376001
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='271632', job_status='RUN', time_executed='2021-09-28 09:53:40.641620', time_epoch_executed='1632848020.64' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271632

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271632/ft1_4FGL_J2221.9-3504_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271632/ft2_4FGL_J2221.9-3504_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271632/ft1_4FGL_J2221.9-3504_daily_bin439.fits outfile=/scratch/kocevski/271632/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin439.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=353116801.0 tmax=353376001.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.41
user 3.21
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271632/ft2_4FGL_J2221.9-3504_daily_bin439.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/271632/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin439.fits evtable="EVENTS" outfile="/scratch/kocevski/271632/ft1_filtered_4FGL_J2221.9-3504_daily_bin439.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/271632/ft1_filtered_4FGL_J2221.9-3504_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/271632/ft2_4FGL_J2221.9-3504_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/271632/ltcube_353116801_353376001_4FGL_J2221.9-3504_daily_bin439.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/271632/ft2_4FGL_J2221.9-3504_daily_bin439.fits
.....................!
real 11.92
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271632/ft1_filtered_4FGL_J2221.9-3504_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/271632/ft2_4FGL_J2221.9-3504_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/271632/ltcube_353116801_353376001_4FGL_J2221.9-3504_daily_bin439.fits outfile=/scratch/kocevski/271632/expmap_353116801_353376001_4FGL_J2221.9-3504_daily_bin439.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/271632/ltcube_353116801_353376001_4FGL_J2221.9-3504_daily_bin439.fits
.....................!
real 192.44
user 187.72
sys 4.35

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/271632/ft1_filtered_4FGL_J2221.9-3504_daily_bin439.fits scfile=/scratch/kocevski/271632/ft2_4FGL_J2221.9-3504_daily_bin439.fits outfile=/scratch/kocevski/271632/cmap_353116801_353376001_4FGL_J2221.9-3504_daily_bin439.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271632/ft1_filtered_4FGL_J2221.9-3504_daily_bin439.fits scfile=/scratch/kocevski/271632/ft2_4FGL_J2221.9-3504_daily_bin439.fits outfile=/scratch/kocevski/271632/cmap_HighResolution_353116801_353376001_4FGL_J2221.9-3504_daily_bin439.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271632/ft1_filtered_4FGL_J2221.9-3504_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/271632/ft2_4FGL_J2221.9-3504_daily_bin439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271632/Model_4FGL_J2221.9-3504_daily_bin439.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/271632/ft1_filtered_4FGL_J2221.9-3504_daily_bin439.fits.....................!
real 39.67
user 38.34
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3119       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2091       1.0000         .10000E-03   10000.    
     4 'norm      '    17.731       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13918E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    74.068       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1165       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1034       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.326       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2224       1.0000         .10000E-03   10000.    
    13 'norm      '    7.2985       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6402       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.6370       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.4571       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5787       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .85216       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0299       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=   4449.266     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3536 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9162        .10614E-06** at limit **
   2  Prefactor     6.3106        13.030        .62929E-06   -.10354E-03
   3  Prefactor     6.2082        13.624        .72224E-06   -.91755E-04
   4  norm          17.732        12.213        .34837E-06   -.25553E-05
   5  Prefactor     .10001E-03    13.929       -.17388E-06** at limit **
   6  Prefactor     74.159        84.243        .57256E-04    .16060E-04
   7  norm          3.1127        5.9867       -.44083E-05   -.66594E-03
   8  norm          2.1034        .60497       -.12569E-06    .32856E-04
   9  Prefactor     12.323        14.413       -.21924E-05   -.18447E-04
  10  Prefactor     .10000E-03    20.730       -.67940E-05** at limit **
  11  Prefactor     .10000E-03    2.8142        .33369E-07** at limit **
  12  Prefactor     2.2222        4.1857        .31771E-06   -.47454E-03
  13  norm          7.2977        17.493       -.18968E-05   -.62208E-03
  14  Prefactor     .10000E-03    71.629       -.36620E-06** at limit **
  15  Prefactor     .10000E-03    8.6118        .24903E-07** at limit **
  16  Prefactor     .10000E-03    20.096        .62910E-05** at limit **
  17  norm          .10000E-03    1.4286        .62954E-07** at limit **
  18  Prefactor     .10000E-03    60.511        .23880E-06** at limit **
  19  Prefactor     2.6398        10.489        .14926E-06   -.19746E-03
  20  Prefactor     .10000E-03    3.2089        .44509E-07** at limit **
  21  norm          6.6367        4.8998        .17666E-06    .14076E-04
  22  Prefactor     .10000E-03    7.6602        .26438E-07** at limit **
  23  Prefactor     .10000E-03    14.099       -.14762E-05** at limit **
  24  norm          2.4570        .98496        .98206E-07   -.15724E-04
  25  Prefactor     1.4354        395.34        .43286E-04   -.15741E-04
  26  Prefactor     .10000E-03    26.335        .89422E-06** at limit **
  27  Normalizat    .85228        .22975       -.41250E-05   -.25590E-04
  28  Prefactor     1.0299        .19922       -.17447E-05   -.84266E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.3106
  Prefactor  = 6.20822
  norm       = 17.732
  Prefactor  = 0.000100006
  Prefactor  = 74.1586
  norm       = 3.11272
  norm       = 2.10343
  Prefactor  = 12.323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.22215
  norm       = 7.29768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63982
  Prefactor  = 0.0001
  norm       = 6.63669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.45701
  Prefactor  = 1.43535
  Prefactor  = 0.0001
  Normalizat = 0.852277
  Prefactor  = 1.02987
 **********
 **   18 **HESSE 
 **********

 FCN=   4449.266     FROM HESSE     STATUS=OK           521 CALLS     4057 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9654        .12885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3106        12.870        .15977E-03   -1.5205    
   3  Prefactor     6.2082        13.463        .16110E-03   -1.5210    
   4  norm          17.732        12.203        .95116E-04   -1.4866    
   5  Prefactor     .10001E-03    13.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     74.159        83.820        .23326E-03   -1.3984    
   7  norm          3.1127        5.9912        .20390E-03   -1.5355    
   8  norm          2.1034        .60509        .25858E-04   -1.5418    
   9  Prefactor     12.323        14.409        .11410E-03   -1.5006    
  10  Prefactor     .10000E-03    20.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8187        .10928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2222        4.1658        .17856E-03   -1.5410    
  13  norm          7.2977        17.578        .74233E-03   -1.5168    
  14  Prefactor     .10000E-03    71.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.6192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4478        .77823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    60.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6398        10.478        .25093E-03   -1.5383    
  20  Prefactor     .10000E-03    3.2293        .11669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.6367        4.9017        .12129E-03   -1.5193    
  22  Prefactor     .10000E-03    7.6647        .18028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.4570        .98316        .39707E-04   -1.5394    
  25  Prefactor     1.4354        399.07        .33808E-03   -1.5468    
  26  Prefactor     .10000E-03    26.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .85228        .27151        .28863E-03   -.98158    
  28  Prefactor     1.0299        .23712        .23237E-03   -.91740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12139e-09
Minuit parameter uncertainties:
  1  2.06752e-05
  2  12.8761
  3  13.4697
  4  12.2048
  5  0.000560745
  6  83.9543
  7  5.99235
  8  0.605087
  9  14.4131
  10  5.8392e-05
  11  5.28897e-06
  12  4.1663
  13  17.5905
  14  0.00019994
  15  1.03084e-05
  16  5.3594e-05
  17  7.41307e-06
  18  0.0001329
  19  10.4853
  20  7.80099e-06
  21  4.90197
  22  6.78599e-06
  23  5.88162e-05
  24  0.983168
  25  48.1928
  26  6.02037e-05
  27  0.271942
  28  0.237362
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  5.289e-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:  1.030e+00  2.374e-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.523e-01  2.719e-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.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271632/likelihoodResults_353116801_353376001_4FGL_J2221.9-3504_daily_bin439.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) = 4449.26729355
delta logL = -0.00166201269076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4449.26563151
delta logL = 2.53012331086e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6678       1.0000          .0000       10.000    
     3 'Normalizat'    .85230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0299       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=   4449.266     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.401        .10966E-01** at limit **
   2  Index         2.2602        6.1051        .50000        .15727E-06
   3  Normalizat    .85228        .17749E-01    .28864E-03    .35528E-04
   4  Prefactor     1.0299        .15666E-01    .23237E-03    .59639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26016
  Normalizat = 0.852276
  Prefactor  = 1.02987
 **********
 **   18 **HESSE 
 **********

 FCN=   4449.266     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    273.56        .11409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2602        7.5565        .50000       -.57993    
   3  Normalizat    .85228        .58535E-01    .11545E-04   -.98158    
   4  Prefactor     1.0299        .51667E-01    .92949E-05   -.91740    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.37763e-11
Minuit parameter uncertainties:
  1  0.00023942
  2  1178.08
  3  0.0585393
  4  0.0516691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271632': 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) = 4449.26563008
delta logL = 1.45449303091e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.394e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.260e+00  1.178e+03  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.030e+00  5.167e-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.523e-01  5.854e-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/271632/cmap_HighResolution_353116801_353376001_4FGL_J2221.9-3504_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-09-28 10:04:05.616106', job_id='271632', GAL2='1.03', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632848645.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='439' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:04:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 271632: <4FGL_J2221.9-3504_daily_bin439> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin439 335.497 -35.0712 353116801 353376001 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 :                                   625.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

