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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin749
RA = 335.497, Dec = -35.0712
tmin = 433468801, tmax = 433728001
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='273102', job_status='RUN', time_executed='2021-09-28 09:57:49.987436', time_epoch_executed='1632848269.99' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273102

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273102/ft1_4FGL_J2221.9-3504_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273102/ft2_4FGL_J2221.9-3504_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273102/ft1_4FGL_J2221.9-3504_daily_bin749.fits outfile=/scratch/kocevski/273102/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin749.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=433468801.0 tmax=433728001.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 5.98
user 5.68
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273102/ft1_filtered_4FGL_J2221.9-3504_daily_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/273102/ft2_4FGL_J2221.9-3504_daily_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/273102/ltcube_433468801_433728001_4FGL_J2221.9-3504_daily_bin749.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/273102/ft2_4FGL_J2221.9-3504_daily_bin749.fits
.....................!
real 12.06
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273102/ft1_filtered_4FGL_J2221.9-3504_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/273102/ft2_4FGL_J2221.9-3504_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/273102/ltcube_433468801_433728001_4FGL_J2221.9-3504_daily_bin749.fits outfile=/scratch/kocevski/273102/expmap_433468801_433728001_4FGL_J2221.9-3504_daily_bin749.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/273102/ltcube_433468801_433728001_4FGL_J2221.9-3504_daily_bin749.fits
.....................!
real 190.48
user 184.90
sys 5.26

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/273102/ft1_filtered_4FGL_J2221.9-3504_daily_bin749.fits scfile=/scratch/kocevski/273102/ft2_4FGL_J2221.9-3504_daily_bin749.fits outfile=/scratch/kocevski/273102/cmap_433468801_433728001_4FGL_J2221.9-3504_daily_bin749.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.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273102/ft1_filtered_4FGL_J2221.9-3504_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/273102/ft2_4FGL_J2221.9-3504_daily_bin749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273102/Model_4FGL_J2221.9-3504_daily_bin749.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/273102/ft1_filtered_4FGL_J2221.9-3504_daily_bin749.fits.....................!
real 34.49
user 33.08
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.384       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10985E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    13.249       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32526       1.0000         .10000E-03   10000.    
     7 'norm      '    5.9834       1.0000         .10000E-03   10000.    
     8 'norm      '    .59128       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4509       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10962E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    31.199       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.774       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11750E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.498       1.0000         .10000E-03   10000.    
    17 'norm      '    .53632       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.308       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.8272       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.995       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1366       1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1500       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .60389       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=   3421.496     FROM MIGRAD    STATUS=CONVERGED   1247 CALLS     4607 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.384        5.7881        .97497E-04   -.19182E-04
   2  Prefactor     .10000E-03    3.7271        .11011E-02** at limit **
   3  Prefactor     .10000E-03    11.735        .58439E-01** at limit **
   4  norm          13.250        10.816        .11004E-03    .55272E-05
   5  Prefactor     .10000E-03    21.789        .18142E-02** at limit **
   6  Prefactor     .27690        100.41        .14287        .47982E-04
   7  norm          5.9826        6.6062        .13667E-03    .46543E-04
   8  norm          .59128        .41279        .29359E-04   -.91194E-04
   9  Prefactor     .10000E-03    4.3145        .11866E-02** at limit **
  10  Prefactor     .10000E-03    11.121        .18142E-02** at limit **
  11  Prefactor     2.4499        8.9339        .26129E-03    .10458E-03
  12  Prefactor     .10000E-03    9.1750        .34149E-03** at limit **
  13  norm          31.195        29.784        .71734E-04   -.16245E-04
  14  Prefactor     53.762        79.162        .54697E-04   -.49676E-05
  15  Prefactor     .10000E-03    84.946        .18142E-02** at limit **
  16  Prefactor     35.491        31.429        .67263E-04    .32114E-04
  17  norm          .53805        1.7476        .14630E-02    .23069E-03
  18  Prefactor     .10000E-03    18.526        .18142E-02** at limit **
  19  Prefactor     28.306        21.127        .75299E-04    .33669E-04
  20  Prefactor     .10000E-03    6.0658        .14041E-02** at limit **
  21  norm          8.8289        8.2516        .13119E-03   -.39041E-03
  22  Prefactor     27.010        30.570        .77104E-04   -.34182E-03
  23  Prefactor     4.1235        15.880        .19819E-03   -.45294E-03
  24  norm          .10000E-03    .26584        .58087E-04** at limit **
  25  Prefactor     .10000E-03    50.527        .18142E-02** at limit **
  26  Prefactor     .10000E-03    6.6534        .14698E-02** at limit **
  27  Normalizat    1.1499        .27413        .22991E-03   -.27053E-03
  28  Prefactor     .60382        .21762        .25736E-03    .12329E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3835
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 13.2498
  Prefactor  = 0.0001
  Prefactor  = 0.276897
  norm       = 5.98262
  norm       = 0.591283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.44988
  Prefactor  = 0.0001
  norm       = 31.1949
  Prefactor  = 53.7615
  Prefactor  = 0.000100001
  Prefactor  = 35.4908
  norm       = 0.538051
  Prefactor  = 0.0001
  Prefactor  = 28.3059
  Prefactor  = 0.0001
  norm       = 8.82891
  Prefactor  = 27.0101
  Prefactor  = 4.12347
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14991
  Prefactor  = 0.603816
 **********
 **   18 **HESSE 
 **********

 FCN=   3421.496     FROM HESSE     STATUS=OK           513 CALLS     5120 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.384        5.7881        .38999E-05   -1.5033    
   2  Prefactor     .10000E-03    3.7273        .22022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.330        .60075E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.250        10.816        .44017E-05   -1.4980    
   5  Prefactor     .10000E-03    21.790        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27690        100.13        .14310       -1.5603    
   7  norm          5.9826        6.6055        .54666E-05   -1.5219    
   8  norm          .59128        .41278        .11743E-05   -1.5554    
   9  Prefactor     .10000E-03    4.3145        .23731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4499        8.9327        .10452E-04   -1.5395    
  12  Prefactor     .10000E-03    9.1753        .68297E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          31.195        29.781        .28694E-05   -1.4590    
  14  Prefactor     53.762        79.160        .10939E-04   -1.4240    
  15  Prefactor     .10000E-03    84.993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.491        31.425        .26905E-05   -1.4516    
  17  norm          .53805        1.7453        .58518E-04   -1.5561    
  18  Prefactor     .10000E-03    18.526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.306        21.127        .30120E-05   -1.4643    
  20  Prefactor     .10000E-03    6.0663        .28082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.8289        8.2481        .52474E-05   -1.5114    
  22  Prefactor     27.010        30.541        .15421E-04   -1.4668    
  23  Prefactor     4.1235        15.853        .79275E-05   -1.5302    
  24  norm          .10000E-03    .26584        .11617E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    50.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.6541        .29396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1499        .27433        .45982E-04   -.88165    
  28  Prefactor     .60382        .21776        .10294E-04   -1.0743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75753e-09
Minuit parameter uncertainties:
  1  5.78839
  2  3.36886e-06
  3  0.00038613
  4  10.8177
  5  7.36326e-05
  6  10.5469
  7  6.60627
  8  0.412778
  9  8.84129e-07
  10  7.34982e-07
  11  8.93756
  12  9.65446e-05
  13  29.7954
  14  79.3157
  15  0.000453667
  16  31.4393
  17  1.74545
  18  3.66072e-05
  19  21.1327
  20  2.80681e-05
  21  8.24919
  22  30.5584
  23  15.8693
  24  1.98745e-06
  25  0.000314715
  26  1.58093e-05
  27  0.274669
  28  0.218067
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  2.450e+00  8.938e+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:  6.038e-01  2.181e-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.150e+00  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273102/likelihoodResults_433468801_433728001_4FGL_J2221.9-3504_daily_bin749.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) = 3421.44542675
delta logL = 0.0506474858253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3421.44210703
delta logL = 0.0539672035598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4566       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0762       1.0000          .0000       10.000    
     3 'Normalizat'    1.1547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59973       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=   3421.442     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      288 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4553        9.0865        .21753E-03   -.26132E-06
   2  Index         2.0763        1.4668        .12924E-01   -.53721E-04
   3  Normalizat    1.1548        .25072        .22945E-03    .30719E-05
   4  Prefactor     .59969        .20984        .25810E-03   -.55060E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.4553
  Index      = 2.07626
  Normalizat = 1.1548
  Prefactor  = 0.599688
 **********
 **   18 **HESSE 
 **********

 FCN=   3421.442     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .69E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4553        9.1442        .87010E-05   -1.5336    
   2  Index         2.0763        1.4763        .25847E-02   -.62457    
   3  Normalizat    1.1548        .25093        .91782E-05   -.88011    
   4  Prefactor     .59969        .21001        .10324E-04   -1.0760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92905e-13
Minuit parameter uncertainties:
  1  9.14792
  2  1.51104
  3  0.251195
  4  0.210281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273102': 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) = 3421.44210698
delta logL = 0.0539672586387

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.455e+00  9.148e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.076e+00  1.511e+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:  5.997e-01  2.103e-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.155e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/273102/cmap_HighResolution_433468801_433728001_4FGL_J2221.9-3504_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-28 10:08:17.932443', job_id='273102', GAL2='0.60', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632848897.93', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='5.40e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='749' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:08:17 PDT 2021


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

Job <4FGL_J2221.9-3504_daily_bin749> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 09:55:20 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:55:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:55:22 2021
Terminated at Tue Sep 28 10:08:18 2021
Results reported at Tue Sep 28 10:08:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin749 335.497 -35.0712 433468801 433728001 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 :                                   627.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            778 sec.

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

