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


Performing analysis on: 4FGL_J1921.8-1607_daily_bin1632
RA = 290.463, Dec = -16.1231
tmin = 662342401, tmax = 662601601
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='628286', job_status='RUN', time_executed='2021-12-31 00:36:07.149144', time_epoch_executed='1640939767.15' WHERE source_name='4FGL J1921.8-1607' and cadence='daily' and bin_id='1632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628286

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628286/ft1_4FGL_J1921.8-1607_daily_bin1632.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628286/ft2_4FGL_J1921.8-1607_daily_bin1632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628286/ft1_4FGL_J1921.8-1607_daily_bin1632.fits outfile=/scratch/kocevski/628286/ft1_filteredMKT_4FGL_J1921.8-1607_daily_bin1632.fits ra=290.463 dec=-16.1231 rad=12.0 tmin=662342401.0 tmax=662601601.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 2.93
user 2.68
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/628286/ft2_4FGL_J1921.8-1607_daily_bin1632.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/628286/ft2_4FGL_J1921.8-1607_daily_bin1632.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/628286/ft1_filteredMKT_4FGL_J1921.8-1607_daily_bin1632.fits evtable="EVENTS" outfile="/scratch/kocevski/628286/ft1_filtered_4FGL_J1921.8-1607_daily_bin1632.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628286/ft1_filtered_4FGL_J1921.8-1607_daily_bin1632.fits" evtable="EVENTS" scfile=/scratch/kocevski/628286/ft2_4FGL_J1921.8-1607_daily_bin1632.fits sctable="SC_DATA" outfile=/scratch/kocevski/628286/ltcube_662342401_662601601_4FGL_J1921.8-1607_daily_bin1632.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/628286/ft2_4FGL_J1921.8-1607_daily_bin1632.fits
.....................!
real 12.85
user 12.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628286/ft1_filtered_4FGL_J1921.8-1607_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/628286/ft2_4FGL_J1921.8-1607_daily_bin1632.fits sctable="SC_DATA" expcube=/scratch/kocevski/628286/ltcube_662342401_662601601_4FGL_J1921.8-1607_daily_bin1632.fits outfile=/scratch/kocevski/628286/expmap_662342401_662601601_4FGL_J1921.8-1607_daily_bin1632.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/628286/ltcube_662342401_662601601_4FGL_J1921.8-1607_daily_bin1632.fits
.....................!
real 192.38
user 186.89
sys 5.11

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
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 373 point sources and 16 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1921.8-1607 @ 290.463 -16.1231

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/628286/ft1_filtered_4FGL_J1921.8-1607_daily_bin1632.fits scfile=/scratch/kocevski/628286/ft2_4FGL_J1921.8-1607_daily_bin1632.fits outfile=/scratch/kocevski/628286/cmap_662342401_662601601_4FGL_J1921.8-1607_daily_bin1632.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=290.463 yref=-16.1231 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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628286/ft1_filtered_4FGL_J1921.8-1607_daily_bin1632.fits scfile=/scratch/kocevski/628286/ft2_4FGL_J1921.8-1607_daily_bin1632.fits outfile=/scratch/kocevski/628286/cmap_HighResolution_662342401_662601601_4FGL_J1921.8-1607_daily_bin1632.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=290.463 yref=-16.1231 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/628286/ft1_filtered_4FGL_J1921.8-1607_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/628286/ft2_4FGL_J1921.8-1607_daily_bin1632.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628286/Model_4FGL_J1921.8-1607_daily_bin1632.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source HESS J1825-137
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 28
adding source W 30
adding source W 41
adding source W 44
Working on...
/scratch/kocevski/628286/ft1_filtered_4FGL_J1921.8-1607_daily_bin1632.fits.....................!
real 97.43
user 95.89
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/628286/ft1_filtered_4FGL_J1921.8-1607_daily_bin1632.fits', '/scratch/kocevski/628286/ft2_4FGL_J1921.8-1607_daily_bin1632.fits', expMap='/scratch/kocevski/628286/expmap_662342401_662601601_4FGL_J1921.8-1607_daily_bin1632.fits', expCube='/scratch/kocevski/628286/ltcube_662342401_662601601_4FGL_J1921.8-1607_daily_bin1632.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/628286/Model_4FGL_J1921.8-1607_daily_bin1632.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1921.8-1607'

4FGL J1921.8-1607
   Spectrum: LogParabola
1050         norm:  1.069e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
1051        alpha:  1.702e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1052         beta:  9.151e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1053           Eb:  3.232e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/628286/ft1_filtered_4FGL_J1921.8-1607_daily_bin1632.fits
Spacecraft file(s): /scratch/kocevski/628286/ft2_4FGL_J1921.8-1607_daily_bin1632.fits
Exposure map: /scratch/kocevski/628286/expmap_662342401_662601601_4FGL_J1921.8-1607_daily_bin1632.fits
Exposure cube: /scratch/kocevski/628286/ltcube_662342401_662601601_4FGL_J1921.8-1607_daily_bin1632.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/628286/Model_4FGL_J1921.8-1607_daily_bin1632.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) = 3455.01747291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15477E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12704E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10699E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    261.45       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12983E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14469E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.137       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.485       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .89405       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10007E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1399E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3454.926     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1851 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    829.22       -.35601E-03** at limit **
   2  norm          .10000E-03    47.582        .31129E-04** at limit **
   3  norm          .10000E-03    21.219        .27224E-06** at limit **
   4  Prefactor     .10000E-03    408.07        .19314E-03** at limit **
   5  Prefactor     .10000E-03    3.2913       -.11371E-06** at limit **
   6  norm          .10000E-03    39.476        .19971E-04** at limit **
   7  Prefactor     .10000E-03    272.17        .18778E-03** at limit **
   8  Prefactor     .10000E-03    174.40       -.99917E-04** at limit **
   9  norm          .10000E-03    35.202       -.96254E-06** at limit **
  10  norm          261.34        237.01       -.63826E-04    .99006E-04
  11  Prefactor     .10042E-03    959.82       -.57241E-03** at limit **
  12  Prefactor     .10001E-03    774.63       -.24172E-04** at limit **
  13  Prefactor     10.142        12.688        .10546E-04    .37906E-03
  14  Prefactor     .10000E-03    104.73        .54126E-05** at limit **
  15  Prefactor     50.520        110.51        .33764E-04    .17156E-03
  16  Prefactor     .90006        14.245       -.43474E-05   -.24901E-03
  17  Prefactor     .10000E-03    43.701       -.47399E-04** at limit **
  18  Normalizat    .10000E-01    .56527       -.38429E-05** at limit **
  19  Prefactor     .84901        .66023E-01   -.11638E-06    .16351E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 261.335
  Prefactor  = 0.000100416
  Prefactor  = 0.000100007
  Prefactor  = 10.1416
  Prefactor  = 0.0001
  Prefactor  = 50.5204
  Prefactor  = 0.900063
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.849008
 **********
 **   18 **HESSE 
 **********

 FCN=   3454.926     FROM HESSE     STATUS=OK           254 CALLS     2105 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    829.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    47.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    21.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    408.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3278        .10406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    39.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    272.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    174.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    35.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          261.34        235.59        .12534E-03   -1.2461    
  11  Prefactor     .10042E-03    967.77        .18176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    775.86        .20499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.142        12.589        .12585E-03   -1.5071    
  14  Prefactor     .10000E-03    104.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.520        108.72        .56442E-04   -1.4285    
  16  Prefactor     .90006        12.987        .39304E-03   -1.5518    
  17  Prefactor     .10000E-03    43.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    1.1402        .21289E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .84901        .57088E-01    .11459E-03   -.97946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84967e-09
Minuit parameter uncertainties:
  1  0.00028209
  2  2.09756e-05
  3  0.000136402
  4  0.000358422
  5  2.76881e-06
  6  1.3693e-05
  7  0.000371434
  8  0.00079134
  9  0.000106301
  10  236.458
  11  0.0408204
  12  0.00476075
  13  12.5925
  14  6.70375e-05
  15  109.152
  16  6.83916
  17  0.000155141
  18  6.86661e-06
  19  0.0570919
Done.

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

Extracting fit parameters...

4FGL J1921.8-1607
   Spectrum: LogParabola
1050         norm:  1.000e-04  1.063e-04  1.000e-04  1.000e+04 ( 1.000e-13)
1051        alpha:  1.702e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1052         beta:  9.151e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1053           Eb:  3.232e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1349    Prefactor:  8.490e-01  5.709e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1350        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1351        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1338   Normalization:  1.000e-02  6.867e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 290.463 -16.123
Photon Flux Upper Limit: 4.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.19e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628286/likelihoodResults_662342401_662601601_4FGL_J1921.8-1607_daily_bin1632.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) = 3454.92620301
delta logL = -0.000139227041473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3454.92606846
delta logL = -4.67403651783e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10249E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5762       1.0000          .0000       5.0000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84901       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1399E+06   .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=   3454.926     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      314 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    145.88        .18142E-01** at limit **
   2  alpha         1.7200        2.8502        .50000        .33538E-07
   3  Normalizat    .10000E-01    .99183E-02    .21289E-01** at limit **
   4  Prefactor     .84901        .50967E-02    .11459E-03   -.14952E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.71998
  Normalizat = 0.01
  Prefactor  = 0.849006
 **********
 **   18 **HESSE 
 **********

 FCN=   3454.926     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      343 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    776.59        .34051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7200        2.8300        .50000       -.31731    
   3  Normalizat    .10000E-01    .56118E-01    .42577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .84901        .12103E-01    .22919E-04   -.97946    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.52448e-09
Minuit parameter uncertainties:
  1  0.00193776
  2  2258.75
  3  2.41748e-06
  4  0.0121029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628286': 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) = 3454.92606378
delta logL = 5.05224306835e-10

Extracting fit parameters...

4FGL J1921.8-1607
   Spectrum: LogParabola
1050         norm:  1.000e-04  1.938e-03  1.000e-04  1.000e+04 ( 1.000e-13)
1051        alpha:  1.720e+00  2.259e+03  0.000e+00  5.000e+00 ( 1.000e+00)
1052         beta:  9.151e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1053           Eb:  3.232e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1349    Prefactor:  8.490e-01  1.210e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1350        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1351        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1338   Normalization:  1.000e-02  2.417e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 290.463 -16.123

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/628286/cmap_HighResolution_662342401_662601601_4FGL_J1921.8-1607_daily_bin1632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.19e-04', job_status='DONE', photon_flux_upper_limit='4.90e-07', time_completed='2021-12-31 00:48:18.856413', job_id='628286', GAL2='0.85', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1640940498.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='5.05e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.70' WHERE bin_id='1632' AND source_name='4FGL J1921.8-1607' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 31 00:48:18 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 628286: <4FGL_J1921.8-1607_daily_bin1632> in cluster <slac> Done

Job <4FGL_J1921.8-1607_daily_bin1632> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 31 00:35:13 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 31 00:35:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 31 00:35:14 2021
Terminated at Fri Dec 31 00:48:19 2021
Results reported at Fri Dec 31 00:48:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1921.8-1607_daily_bin1632 290.463 -16.1231 662342401 662601601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1921.8-1607 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   734.00 sec.
    Max Memory :                                 1099 MB
    Average Memory :                             345.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            786 sec.

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

