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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin998
RA = 335.497, Dec = -35.0712
tmin = 498009601, tmax = 498268801
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='273502', job_status='RUN', time_executed='2021-09-28 09:58:45.995868', time_epoch_executed='1632848326.0' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273502

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273502/ft1_4FGL_J2221.9-3504_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273502/ft2_4FGL_J2221.9-3504_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273502/ft1_4FGL_J2221.9-3504_daily_bin998.fits outfile=/scratch/kocevski/273502/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin998.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.09
user 7.80
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273502/ft1_filtered_4FGL_J2221.9-3504_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/273502/ft2_4FGL_J2221.9-3504_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/273502/ltcube_498009601_498268801_4FGL_J2221.9-3504_daily_bin998.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/273502/ft2_4FGL_J2221.9-3504_daily_bin998.fits
.....................!
real 11.41
user 11.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273502/ft1_filtered_4FGL_J2221.9-3504_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/273502/ft2_4FGL_J2221.9-3504_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/273502/ltcube_498009601_498268801_4FGL_J2221.9-3504_daily_bin998.fits outfile=/scratch/kocevski/273502/expmap_498009601_498268801_4FGL_J2221.9-3504_daily_bin998.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/273502/ltcube_498009601_498268801_4FGL_J2221.9-3504_daily_bin998.fits
.....................!
real 190.70
user 185.81
sys 4.56

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/273502/ft1_filtered_4FGL_J2221.9-3504_daily_bin998.fits scfile=/scratch/kocevski/273502/ft2_4FGL_J2221.9-3504_daily_bin998.fits outfile=/scratch/kocevski/273502/cmap_498009601_498268801_4FGL_J2221.9-3504_daily_bin998.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273502/ft1_filtered_4FGL_J2221.9-3504_daily_bin998.fits scfile=/scratch/kocevski/273502/ft2_4FGL_J2221.9-3504_daily_bin998.fits outfile=/scratch/kocevski/273502/cmap_HighResolution_498009601_498268801_4FGL_J2221.9-3504_daily_bin998.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273502/ft1_filtered_4FGL_J2221.9-3504_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/273502/ft2_4FGL_J2221.9-3504_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273502/Model_4FGL_J2221.9-3504_daily_bin998.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/273502/ft1_filtered_4FGL_J2221.9-3504_daily_bin998.fits.....................!
real 31.03
user 29.82
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.982       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2486       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.9254       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.070       1.0000         .10000E-03   10000.    
     8 'norm      '    .85917       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.412       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15082E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    21.399       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .72147       1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.528       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .71334E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .24507E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.398       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1638       1.0000         .10000E-03   10000.    
    24 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .78825       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .80124       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=   3106.833     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3518 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.982        6.4440        .11653E-06    .19798E-03
   2  Prefactor     1.2479        12.790       -.83840E-05    .20559E-03
   3  Prefactor     .10000E-03    7.7813        .67447E-06** at limit **
   4  norm          4.9247        5.5142        .42769E-06    .22304E-03
   5  Prefactor     .10000E-03    6.4814       -.63796E-06** at limit **
   6  Prefactor     .10000E-03    19.116       -.14827E-05** at limit **
   7  norm          11.068        5.3654       -.10047E-06    .20280E-03
   8  norm          .85920        .44006       -.96848E-08    .37900E-03
   9  Prefactor     .10000E-03    3.8308       -.51996E-07** at limit **
  10  Prefactor     11.409        11.736       -.94985E-07   -.52055E-05
  11  Prefactor     .10000E-03    2.4408       -.75231E-07** at limit **
  12  Prefactor     .10000E-03    3.9849       -.24478E-06** at limit **
  13  norm          21.384        26.232       -.12633E-06    .13151E-03
  14  Prefactor     .10000E-03    22.274        .11999E-05** at limit **
  15  Prefactor     .10000E-03    9.7131        .98669E-08** at limit **
  16  Prefactor     .10000E-03    6.6255        .68766E-06** at limit **
  17  norm          .71669        2.6803        .11497E-05    .79373E-03
  18  Prefactor     47.515        64.805        .31850E-06    .17420E-03
  19  Prefactor     .10001E-03    102.93       -.33334E-04** at limit **
  20  Prefactor     .10000E-03    3.3977       -.12675E-06** at limit **
  21  norm          .10000E-03    4.2471       -.15162E-05** at limit **
  22  Prefactor     21.380        26.357        .11448E-05    .45275E-03
  23  Prefactor     5.1698        14.052       -.18464E-05    .33901E-03
  24  norm          .10000E-03    .39543       -.91181E-07** at limit **
  25  Prefactor     .10004E-03    75.136       -.11325E-04** at limit **
  26  Prefactor     .10000E-03    9.1214       -.23536E-06** at limit **
  27  Normalizat    .78840        .20238        .33720E-06    .48844E-03
  28  Prefactor     .80119        .17508        .14152E-05    .43106E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9818
  Prefactor  = 1.24793
  Prefactor  = 0.0001
  norm       = 4.92472
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.0682
  norm       = 0.859196
  Prefactor  = 0.0001
  Prefactor  = 11.4087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.716691
  Prefactor  = 47.5147
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 21.3804
  Prefactor  = 5.16977
  norm       = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Normalizat = 0.788397
  Prefactor  = 0.801185
 **********
 **   18 **HESSE 
 **********

 FCN=   3106.833     FROM HESSE     STATUS=OK           515 CALLS     4033 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.982        6.4411        .10468E-03   -1.5045    
   2  Prefactor     1.2479        12.763        .37137E-03   -1.5485    
   3  Prefactor     .10000E-03    7.8653        .15199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9247        5.5129        .13425E-03   -1.5264    
   5  Prefactor     .10000E-03    6.4899        .13865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.068        5.3605        .83483E-04   -1.5042    
   8  norm          .85920        .44017        .24867E-04   -1.5523    
   9  Prefactor     .10000E-03    3.8343        .10655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.409        11.737        .11859E-03   -1.5032    
  11  Prefactor     .10000E-03    2.4451        .85045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8832        .21475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.384        26.234        .86586E-04   -1.4783    
  14  Prefactor     .10000E-03    22.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.7234        .16968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6343        .14021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .71669        2.3703        .14833E-02   -1.5539    
  18  Prefactor     47.515        63.548        .58163E-04   -1.4328    
  19  Prefactor     .10001E-03    100.77        .36909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.4038        .10035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    24.972        .20648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.380        25.929        .86588E-04   -1.4783    
  23  Prefactor     5.1698        13.572        .17691E-03   -1.5253    
  24  norm          .10000E-03    .41955        .64480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10004E-03    76.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.1238        .16422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .78840        .22786        .23343E-03   -1.0050    
  28  Prefactor     .80119        .19993        .20755E-03   -.99685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45153e-09
Minuit parameter uncertainties:
  1  6.44153
  2  7.98373
  3  0.00011972
  4  5.51351
  5  5.22088e-05
  6  0.000211896
  7  5.36073
  8  0.440175
  9  3.44531e-06
  10  11.7395
  11  1.47695e-06
  12  6.04104e-05
  13  26.2481
  14  0.000202259
  15  9.88977e-06
  16  6.50755e-05
  17  2.37061
  18  63.639
  19  0.0018051
  20  5.42346e-06
  21  0.000383108
  22  25.9431
  23  13.5801
  24  1.89228e-05
  25  0.00330734
  26  7.03416e-05
  27  0.228139
  28  0.200113
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.477e-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:  8.012e-01  2.001e-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:  7.884e-01  2.281e-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: 6.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273502/likelihoodResults_498009601_498268801_4FGL_J2221.9-3504_daily_bin998.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) = 3106.83509814
delta logL = -0.0019099897745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3106.83318814
delta logL = 1.11240296974e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6655       1.0000          .0000       10.000    
     3 'Normalizat'    .78834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80124       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=   3106.833     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      248 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.229        .85514E-02** at limit **
   2  Index         2.1020        5.8229        .50000       -.71213E-07
   3  Normalizat    .78839        .21699E-01    .23343E-03    .11080E-04
   4  Prefactor     .80119        .19564E-01    .20755E-03    .18158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10196
  Normalizat = 0.788394
  Prefactor  = 0.801186
 **********
 **   18 **HESSE 
 **********

 FCN=   3106.833     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    369.65        .91958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1020        5.8414        .50000       -.61825    
   3  Normalizat    .78839        .71651E-01    .93373E-05   -1.0050    
   4  Prefactor     .80119        .64601E-01    .83022E-05   -.99685    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.98981e-10
Minuit parameter uncertainties:
  1  2.12701e-05
  2  1355.32
  3  0.07166
  4  0.0646072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273502': 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) = 3106.83318521
delta logL = 2.93491666525e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.127e-05  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.102e+00  1.355e+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:  8.012e-01  6.461e-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:  7.884e-01  7.166e-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/273502/cmap_HighResolution_498009601_498268801_4FGL_J2221.9-3504_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-09-28 10:08:03.797253', job_id='273502', GAL2='0.80', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632848883.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.93e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='998' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:08:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 273502: <4FGL_J2221.9-3504_daily_bin998> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin998> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 09:55:59 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:56:00 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:56:00 2021
Terminated at Tue Sep 28 10:08:04 2021
Results reported at Tue Sep 28 10:08:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin998 335.497 -35.0712 498009601 498268801 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 :                                   557.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             280.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            725 sec.

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

