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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin343
RA = 335.497, Dec = -35.0712
tmin = 328233601, tmax = 328492801
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='270490', job_status='RUN', time_executed='2021-09-28 09:46:10.334311', time_epoch_executed='1632847570.33' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270490

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270490/ft1_4FGL_J2221.9-3504_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270490/ft2_4FGL_J2221.9-3504_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270490/ft1_4FGL_J2221.9-3504_daily_bin343.fits outfile=/scratch/kocevski/270490/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin343.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=328233601.0 tmax=328492801.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.95
user 3.71
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/270490/ft2_4FGL_J2221.9-3504_daily_bin343.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/270490/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin343.fits evtable="EVENTS" outfile="/scratch/kocevski/270490/ft1_filtered_4FGL_J2221.9-3504_daily_bin343.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/270490/ft1_filtered_4FGL_J2221.9-3504_daily_bin343.fits" evtable="EVENTS" scfile=/scratch/kocevski/270490/ft2_4FGL_J2221.9-3504_daily_bin343.fits sctable="SC_DATA" outfile=/scratch/kocevski/270490/ltcube_328233601_328492801_4FGL_J2221.9-3504_daily_bin343.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/270490/ft2_4FGL_J2221.9-3504_daily_bin343.fits
.....................!
real 11.86
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270490/ft1_filtered_4FGL_J2221.9-3504_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/270490/ft2_4FGL_J2221.9-3504_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/270490/ltcube_328233601_328492801_4FGL_J2221.9-3504_daily_bin343.fits outfile=/scratch/kocevski/270490/expmap_328233601_328492801_4FGL_J2221.9-3504_daily_bin343.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/270490/ltcube_328233601_328492801_4FGL_J2221.9-3504_daily_bin343.fits
.....................!
real 190.35
user 185.01
sys 5.03

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/270490/ft1_filtered_4FGL_J2221.9-3504_daily_bin343.fits scfile=/scratch/kocevski/270490/ft2_4FGL_J2221.9-3504_daily_bin343.fits outfile=/scratch/kocevski/270490/cmap_328233601_328492801_4FGL_J2221.9-3504_daily_bin343.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/270490/ft1_filtered_4FGL_J2221.9-3504_daily_bin343.fits scfile=/scratch/kocevski/270490/ft2_4FGL_J2221.9-3504_daily_bin343.fits outfile=/scratch/kocevski/270490/cmap_HighResolution_328233601_328492801_4FGL_J2221.9-3504_daily_bin343.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/270490/ft1_filtered_4FGL_J2221.9-3504_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/270490/ft2_4FGL_J2221.9-3504_daily_bin343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/270490/Model_4FGL_J2221.9-3504_daily_bin343.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/270490/ft1_filtered_4FGL_J2221.9-3504_daily_bin343.fits.....................!
real 57.81
user 56.58
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9984       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5029       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 '    11.829       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.091       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13313E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6384       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8708       1.0000         .10000E-03   10000.    
    13 'norm      '    .10577E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.063       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8954       1.0000         .10000E-03   10000.    
    17 'norm      '    .74655       1.0000         .10000E-03   10000.    
    18 'Prefactor '    62.424       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9006       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.1721       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.558       1.0000         .10000E-03   10000.    
    24 'norm      '    .50268       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .55907       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1783       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=   7924.290     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3501 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9984        3.6421        .29417E-07   -.36608E-04
   2  Prefactor     5.5028        4.1372        .59790E-06    .15231E-03
   3  Prefactor     .10000E-03    4.0402        .11410E-06** at limit **
   4  norm          .10000E-03    3.8609       -.94441E-07** at limit **
   5  Prefactor     11.822        10.971       -.22450E-06   -.59643E-04
   6  Prefactor     .10000E-03    58.735        .89336E-05** at limit **
   7  norm          10.089        4.6363        .16578E-05   -.41205E-03
   8  norm          1.6689        .40441       -.64466E-07    .80022E-04
   9  Prefactor     .10033E-03    5.2494       -.24758E-06** at limit **
  10  Prefactor     .10000E-03    7.4055       -.46360E-06** at limit **
  11  Prefactor     5.6388        6.6448        .65421E-06   -.74376E-04
  12  Prefactor     1.8710        2.2301        .40885E-06    .30760E-04
  13  norm          .10000E-03    30.528       -.42414E-05** at limit **
  14  Prefactor     .10000E-03    7.5979        .72011E-06** at limit **
  15  Prefactor     21.063        17.438       -.18242E-07   -.55208E-04
  16  Prefactor     5.8954        13.972        .48802E-05   -.68101E-04
  17  norm          .73976        2.3050        .15739E-05   -.23786E-03
  18  Prefactor     62.556        55.697        .10082E-04    .56825E-03
  19  Prefactor     3.9015        7.5129        .86669E-05   -.28916E-03
  20  Prefactor     .10000E-03    1.8213       -.34964E-07** at limit **
  21  norm          5.1710        4.3797       -.15120E-06   -.40898E-03
  22  Prefactor     .10000E-03    21.324        .25680E-05** at limit **
  23  Prefactor     16.546        11.848       -.22087E-05   -.34811E-03
  24  norm          .50281        .60768        .37741E-06   -.28448E-03
  25  Prefactor     .10000E-03    14.892       -.77858E-06** at limit **
  26  Prefactor     .10000E-03    4.2174        .14602E-07** at limit **
  27  Normalizat    .55907        .16114       -.71822E-05   -.77515E-04
  28  Prefactor     1.1783        .13946        .94019E-06   -.38175E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.99835
  Prefactor  = 5.50277
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8221
  Prefactor  = 0.000100003
  norm       = 10.089
  norm       = 1.66893
  Prefactor  = 0.00010033
  Prefactor  = 0.0001
  Prefactor  = 5.63884
  Prefactor  = 1.87104
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 21.0634
  Prefactor  = 5.89537
  norm       = 0.739757
  Prefactor  = 62.5559
  Prefactor  = 3.90151
  Prefactor  = 0.0001
  norm       = 5.17097
  Prefactor  = 0.000100002
  Prefactor  = 16.5457
  norm       = 0.502807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.559067
  Prefactor  = 1.17827
 **********
 **   18 **HESSE 
 **********

 FCN=   7924.290     FROM HESSE     STATUS=OK           535 CALLS     4036 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9984        3.6440        .10517E-03   -1.5108    
   2  Prefactor     5.5028        4.1369        .15200E-03   -1.5239    
   3  Prefactor     .10000E-03    4.1585        .34932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.9262        .17073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.822        10.964        .58238E-03   -1.5020    
   6  Prefactor     .10000E-03    59.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.089        4.6477        .57507E-03   -1.5073    
   8  norm          1.6689        .40561        .25588E-04   -1.5450    
   9  Prefactor     .10033E-03    7.1765        .69571E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6388        6.6419        .16918E-03   -1.5233    
  12  Prefactor     1.8710        2.2160        .13963E-03   -1.5434    
  13  norm          .10000E-03    31.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.6005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.063        17.432        .87274E-04   -1.4790    
  16  Prefactor     5.8954        13.975        .82696E-03   -1.5222    
  17  norm          .73976        2.2514        .18004E-03   -1.5536    
  18  Prefactor     62.556        57.487        .25394E-03   -1.4124    
  19  Prefactor     3.9015        7.5949        .10214E-02   -1.5313    
  20  Prefactor     .10000E-03    1.8266        .11731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.1710        4.3645        .14342E-03   -1.5253    
  22  Prefactor     .10000E-03    21.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.546        11.795        .98426E-04   -1.4894    
  24  norm          .50281        .56073        .57466E-03   -1.5566    
  25  Prefactor     .10000E-03    14.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.2243        .17840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .55907        .18030        .30937E-03   -1.0975    
  28  Prefactor     1.1783        .15798        .20510E-03   -.87003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5503e-09
Minuit parameter uncertainties:
  1  3.6441
  2  4.13716
  3  1.35153e-05
  4  5.08024e-06
  5  10.9654
  6  0.000810665
  7  4.64783
  8  0.405614
  9  0.00307615
  10  1.60139e-07
  11  6.64275
  12  2.21612
  13  0.000658193
  14  2.99316e-05
  15  17.4362
  16  13.9823
  17  2.2517
  18  57.5385
  19  7.59678
  20  6.31378e-06
  21  4.36474
  22  0.000366482
  23  11.7963
  24  0.560739
  25  2.26716e-05
  26  1.18026e-05
  27  0.180491
  28  0.158039
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  5.639e+00  6.643e+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:  1.178e+00  1.580e-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:  5.591e-01  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/270490/likelihoodResults_328233601_328492801_4FGL_J2221.9-3504_daily_bin343.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) = 7924.27460267
delta logL = 0.0149414576781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7924.26786556
delta logL = 0.0216785651755

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7895       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9088       1.0000          .0000       10.000    
     3 'Normalizat'    .55449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1816       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7924.268     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      260 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7868        8.8772        .91918E-03    .41034E-03
   2  Index         2.9092        1.4134        .12735E-01    .30191E-03
   3  Normalizat    .55449        .16873        .31060E-03   -.19400E-05
   4  Prefactor     1.1816        .15604        .20485E-03   -.22199E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.78685
  Index      = 2.90916
  Normalizat = 0.554495
  Prefactor  = 1.18161
 **********
 **   18 **HESSE 
 **********

 FCN=   7924.268     FROM HESSE     STATUS=OK            27 CALLS      287 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7868        7.6351        .18384E-03   -1.5270    
   2  Index         2.9092        1.2202        .25470E-02   -.43143    
   3  Normalizat    .55449        .16888        .12424E-04   -1.0995    
   4  Prefactor     1.1816        .15599        .81939E-05   -.86899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78792e-13
Minuit parameter uncertainties:
  1  7.63669
  2  1.23534
  3  0.169039
  4  0.156051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270490': 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) = 7924.26786549
delta logL = 0.0216786363117

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  4.787e+00  7.637e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.909e+00  1.235e+00  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.182e+00  1.561e-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:  5.545e-01  1.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.94
Ra Dec: 335.497 -35.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/270490/cmap_HighResolution_328233601_328492801_4FGL_J2221.9-3504_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', job_status='DONE', photon_flux_upper_limit='9.44e-08', time_completed='2021-09-28 10:01:07.815143', job_id='270490', GAL2='1.18', fit_tolerance='1e-08', EG2='0.55', EG='0.56', time_epoch_completed='1632848467.82', return_code2='0', ts='0.94', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.17e-02', ts2='0.98', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='343' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:01:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 270490: <4FGL_J2221.9-3504_daily_bin343> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin343> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:45:52 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:45:54 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:45:54 2021
Terminated at Tue Sep 28 10:01:08 2021
Results reported at Tue Sep 28 10:01:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin343 335.497 -35.0712 328233601 328492801 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 :                                   896.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

