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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1328
RA = 335.497, Dec = -35.0712
tmin = 583545601, tmax = 583804801
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='275977', job_status='RUN', time_executed='2021-09-28 10:07:09.729461', time_epoch_executed='1632848829.73' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275977

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275977/ft1_4FGL_J2221.9-3504_daily_bin1328.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275977/ft2_4FGL_J2221.9-3504_daily_bin1328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275977/ft1_4FGL_J2221.9-3504_daily_bin1328.fits outfile=/scratch/kocevski/275977/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1328.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=583545601.0 tmax=583804801.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.48
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275977/ft1_filtered_4FGL_J2221.9-3504_daily_bin1328.fits" evtable="EVENTS" scfile=/scratch/kocevski/275977/ft2_4FGL_J2221.9-3504_daily_bin1328.fits sctable="SC_DATA" outfile=/scratch/kocevski/275977/ltcube_583545601_583804801_4FGL_J2221.9-3504_daily_bin1328.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/275977/ft2_4FGL_J2221.9-3504_daily_bin1328.fits
.....................!
real 13.60
user 13.28
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275977/ft1_filtered_4FGL_J2221.9-3504_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/275977/ft2_4FGL_J2221.9-3504_daily_bin1328.fits sctable="SC_DATA" expcube=/scratch/kocevski/275977/ltcube_583545601_583804801_4FGL_J2221.9-3504_daily_bin1328.fits outfile=/scratch/kocevski/275977/expmap_583545601_583804801_4FGL_J2221.9-3504_daily_bin1328.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/275977/ltcube_583545601_583804801_4FGL_J2221.9-3504_daily_bin1328.fits
.....................!
real 191.66
user 186.28
sys 5.02

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/275977/ft1_filtered_4FGL_J2221.9-3504_daily_bin1328.fits scfile=/scratch/kocevski/275977/ft2_4FGL_J2221.9-3504_daily_bin1328.fits outfile=/scratch/kocevski/275977/cmap_583545601_583804801_4FGL_J2221.9-3504_daily_bin1328.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.65
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275977/ft1_filtered_4FGL_J2221.9-3504_daily_bin1328.fits scfile=/scratch/kocevski/275977/ft2_4FGL_J2221.9-3504_daily_bin1328.fits outfile=/scratch/kocevski/275977/cmap_HighResolution_583545601_583804801_4FGL_J2221.9-3504_daily_bin1328.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/275977/ft1_filtered_4FGL_J2221.9-3504_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/275977/ft2_4FGL_J2221.9-3504_daily_bin1328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/275977/Model_4FGL_J2221.9-3504_daily_bin1328.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/275977/ft1_filtered_4FGL_J2221.9-3504_daily_bin1328.fits.....................!
real 52.96
user 51.60
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.402       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2480       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9803       1.0000         .10000E-03   10000.    
     4 'norm      '    12.400       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.998       1.0000         .10000E-03   10000.    
     7 'norm      '    .12833E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0418       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17597E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0869       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1169       1.0000         .10000E-03   10000.    
    13 'norm      '    11.925       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.734       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1952       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11252E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4670       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4664       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.278       1.0000         .10000E-03   10000.    
    24 'norm      '    3.6616       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97193       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98906       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=   6638.582     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     3536 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.402        7.6234       -.93525E-08   -.31497E-04
   2  Prefactor     9.2455        10.250        .46251E-07   -.20152E-04
   3  Prefactor     3.9773        11.789        .53842E-06    .69711E-05
   4  norm          12.400        9.1141        .26769E-07   -.49022E-04
   5  Prefactor     .10000E-03    33.037        .90312E-05** at limit **
   6  Prefactor     22.043        45.476        .38095E-06    .97053E-06
   7  norm          .10000E-03    4.8658        .16445E-05** at limit **
   8  norm          1.0421        .36713       -.83245E-08   -.90202E-03
   9  Prefactor     .10115E-03    9.0473       -.15785E-05** at limit **
  10  Prefactor     .10000E-03    6.0830       -.16872E-08** at limit **
  11  Prefactor     3.0866        4.5724        .21833E-06    .25872E-04
  12  Prefactor     4.1163        3.8380        .21468E-06    .18801E-04
  13  norm          11.925        12.110        .32801E-07    .56106E-05
  14  Prefactor     .10000E-03    30.518       -.40359E-06** at limit **
  15  Prefactor     32.721        21.641        .14623E-06    .16142E-04
  16  Prefactor     .10000E-03    6.9371        .12387E-06** at limit **
  17  norm          4.1952        2.3060        .11320E-06    .82780E-04
  18  Prefactor     .10000E-03    106.44        .51402E-06** at limit **
  19  Prefactor     9.4596        13.892        .41221E-06    .25730E-04
  20  Prefactor     4.4659        4.0129        .48069E-08    .60281E-04
  21  norm          .10000E-03    2.0502       -.10289E-06** at limit **
  22  Prefactor     .10000E-03    7.0571       -.72086E-07** at limit **
  23  Prefactor     15.280        13.904        .26297E-07    .19217E-04
  24  norm          3.6615        1.1834        .36272E-08    .13132E-03
  25  Prefactor     .10000E-03    16.927       -.78168E-08** at limit **
  26  Prefactor     .10000E-03    7.0803       -.14697E-06** at limit **
  27  Normalizat    .97191        .19945       -.11106E-05    .70881E-05
  28  Prefactor     .98926        .17039        .51915E-06   -.38688E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.4022
  Prefactor  = 9.2455
  Prefactor  = 3.97725
  norm       = 12.3998
  Prefactor  = 0.000100002
  Prefactor  = 22.0429
  norm       = 0.0001
  norm       = 1.04206
  Prefactor  = 0.000101147
  Prefactor  = 0.0001
  Prefactor  = 3.08665
  Prefactor  = 4.11632
  norm       = 11.9245
  Prefactor  = 0.0001
  Prefactor  = 32.7213
  Prefactor  = 0.0001
  norm       = 4.1952
  Prefactor  = 0.000100001
  Prefactor  = 9.4596
  Prefactor  = 4.46587
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2795
  norm       = 3.66146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.971905
  Prefactor  = 0.989262
 **********
 **   18 **HESSE 
 **********

 FCN=   6638.582     FROM HESSE     STATUS=OK           533 CALLS     4069 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.402        7.6154        .82802E-04   -1.4740    
   2  Prefactor     9.2455        10.154        .13179E-03   -1.5100    
   3  Prefactor     3.9773        11.655        .20216E-03   -1.5309    
   4  norm          12.400        9.1094        .11376E-03   -1.5004    
   5  Prefactor     .10000E-03    33.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.043        45.354        .85401E-04   -1.4769    
   7  norm          .10000E-03    5.0172        .34856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0421        .36697        .28178E-04   -1.5504    
   9  Prefactor     .10115E-03    10.006        .72912E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.0866        4.5597        .20482E-03   -1.5357    
  12  Prefactor     4.1163        3.8395        .14625E-03   -1.5302    
  13  norm          11.925        12.112        .11601E-03   -1.5017    
  14  Prefactor     .10000E-03    30.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.721        21.653        .70036E-04   -1.4563    
  16  Prefactor     .10000E-03    6.9571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1952        2.3025        .88831E-04   -1.5298    
  18  Prefactor     .10000E-03    107.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4596        13.969        .13025E-03   -1.5093    
  20  Prefactor     4.4659        4.0174        .15058E-03   -1.5285    
  21  norm          .10000E-03    3.7784        .22174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.0649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.280        14.374        .10247E-03   -1.4926    
  24  norm          3.6615        1.2331        .37658E-04   -1.5325    
  25  Prefactor     .10000E-03    16.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.0924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .97191        .23174        .27610E-03   -.93978    
  28  Prefactor     .98926        .19812        .24789E-03   -.93088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.49686e-10
Minuit parameter uncertainties:
  1  7.61573
  2  10.1562
  3  11.6617
  4  9.11038
  5  0.000519229
  6  45.4255
  7  1.91187e-05
  8  0.366976
  9  0.00677618
  10  6.11644e-08
  11  4.56018
  12  3.83974
  13  12.1142
  14  0.000155922
  15  21.6584
  16  4.02647e-05
  17  2.30254
  18  0.000529201
  19  13.9735
  20  4.01765
  21  1.48771e-05
  22  1.10023e-05
  23  14.3769
  24  1.2331
  25  8.00266e-06
  26  2.66169e-05
  27  0.231975
  28  0.198263
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.087e+00  4.560e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.893e-01  1.983e-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:  9.719e-01  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/275977/likelihoodResults_583545601_583804801_4FGL_J2221.9-3504_daily_bin1328.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): 0
logL (Free Index) = 6638.27248475
delta logL = 0.309378224265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6638.24747399
delta logL = 0.334388980697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1797       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9036       1.0000          .0000       10.000    
     3 'Normalizat'    .98087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98217       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.

 FCN=   6638.247     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1807        5.7076        .49283E-02    .31601E-04
   2  Index         1.9036        .65377        .26375       -.40966E-04
   3  Normalizat    .98084        .18384        .45927E-01    .14733E-04
   4  Prefactor     .98217        .16714        .46044E-01    .95655E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.18072
  Index      = 1.90362
  Normalizat = 0.980844
  Prefactor  = 0.982174
 **********
 **   18 **HESSE 
 **********

 FCN=   6638.247     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1807        5.3250        .19713E-03   -1.5299    
   2  Index         1.9036        .77852        .12086E-01   -.66782    
   3  Normalizat    .98084        .21288        .27492E-03   -.93675    
   4  Prefactor     .98217        .19351        .24859E-03   -.93326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7245e-12
Minuit parameter uncertainties:
  1  5.32564
  2  0.783715
  3  0.213067
  4  0.193646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275977': 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): 0
logL (Free Index) = 6638.24747395
delta logL = 0.334389021015

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  4.181e+00  5.326e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  1.904e+00  7.837e-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:  9.822e-01  1.936e-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:  9.808e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 1.90 +/- 0.78
Photon Flux (Free Index): 1.05e-08 +/- 1.50e-08
Energy Flux (Free Index): 9.32e-06 +/- 1.77e-05

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/275977/cmap_HighResolution_583545601_583804801_4FGL_J2221.9-3504_daily_bin1328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', comment='SUCCESS', energy_flux2='9.32e-06', dlogl='3.34e-01', photon_flux2='1.05e-08', job_status='DONE', time_completed='2021-09-28 10:20:56.386181', photon_index_error2='0.78', photon_index2='1.90', ts='0.81', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='8.15e-08', energy_flux_error2='1.77e-05', EG='0.97', time_epoch_completed='1632849656.39', return_code='0', job_id='275977', GAL2='0.98', EG2='0.98', return_code2='0', photon_flux_error2='1.50e-08', ts2='1.47', photon_index='2.68' WHERE bin_id='1328' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:20:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 275977: <4FGL_J2221.9-3504_daily_bin1328> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1328> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:05:14 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:05:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:05:16 2021
Terminated at Tue Sep 28 10:20:57 2021
Results reported at Tue Sep 28 10:20:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1328 335.497 -35.0712 583545601 583804801 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 :                                   825.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

