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


Performing analysis on: 4FGL_J1921.8-1607_daily_bin1171
RA = 290.463, Dec = -16.1231
tmin = 542851201, tmax = 543110401
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='806204', job_status='RUN', time_executed='2021-09-22 17:02:51.428780', time_epoch_executed='1632355371.43' WHERE source_name='4FGL J1921.8-1607' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806204

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806204/ft1_4FGL_J1921.8-1607_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806204/ft2_4FGL_J1921.8-1607_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806204/ft1_4FGL_J1921.8-1607_daily_bin1171.fits outfile=/scratch/kocevski/806204/ft1_filteredMKT_4FGL_J1921.8-1607_daily_bin1171.fits ra=290.463 dec=-16.1231 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.75
user 0.59
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806204/ft2_4FGL_J1921.8-1607_daily_bin1171.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/806204/ft1_filteredMKT_4FGL_J1921.8-1607_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/806204/ft1_filtered_4FGL_J1921.8-1607_daily_bin1171.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.46
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806204/ft1_filtered_4FGL_J1921.8-1607_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/806204/ft2_4FGL_J1921.8-1607_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/806204/ltcube_542851201_543110401_4FGL_J1921.8-1607_daily_bin1171.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/806204/ft2_4FGL_J1921.8-1607_daily_bin1171.fits
.....................!
real 1.81
user 1.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806204/ft1_filtered_4FGL_J1921.8-1607_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/806204/ft2_4FGL_J1921.8-1607_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/806204/ltcube_542851201_543110401_4FGL_J1921.8-1607_daily_bin1171.fits outfile=/scratch/kocevski/806204/expmap_542851201_543110401_4FGL_J1921.8-1607_daily_bin1171.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/806204/ltcube_542851201_543110401_4FGL_J1921.8-1607_daily_bin1171.fits
.....................!
real 191.19
user 186.11
sys 4.75

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/806204/ft1_filtered_4FGL_J1921.8-1607_daily_bin1171.fits scfile=/scratch/kocevski/806204/ft2_4FGL_J1921.8-1607_daily_bin1171.fits outfile=/scratch/kocevski/806204/cmap_542851201_543110401_4FGL_J1921.8-1607_daily_bin1171.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.51
user 0.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806204/ft1_filtered_4FGL_J1921.8-1607_daily_bin1171.fits scfile=/scratch/kocevski/806204/ft2_4FGL_J1921.8-1607_daily_bin1171.fits outfile=/scratch/kocevski/806204/cmap_HighResolution_542851201_543110401_4FGL_J1921.8-1607_daily_bin1171.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.51
user 0.37
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806204/ft1_filtered_4FGL_J1921.8-1607_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/806204/ft2_4FGL_J1921.8-1607_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806204/Model_4FGL_J1921.8-1607_daily_bin1171.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/806204/ft1_filtered_4FGL_J1921.8-1607_daily_bin1171.fits........................!
real 40.20
user 39.00
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806204/ft1_filtered_4FGL_J1921.8-1607_daily_bin1171.fits', '/scratch/kocevski/806204/ft2_4FGL_J1921.8-1607_daily_bin1171.fits', expMap='/scratch/kocevski/806204/expmap_542851201_543110401_4FGL_J1921.8-1607_daily_bin1171.fits', expCube='/scratch/kocevski/806204/ltcube_542851201_543110401_4FGL_J1921.8-1607_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806204/Model_4FGL_J1921.8-1607_daily_bin1171.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/806204/ft1_filtered_4FGL_J1921.8-1607_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/806204/ft2_4FGL_J1921.8-1607_daily_bin1171.fits
Exposure map: /scratch/kocevski/806204/expmap_542851201_543110401_4FGL_J1921.8-1607_daily_bin1171.fits
Exposure cube: /scratch/kocevski/806204/ltcube_542851201_543110401_4FGL_J1921.8-1607_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806204/Model_4FGL_J1921.8-1607_daily_bin1171.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) = 1183.73122705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.551       1.0000         .10000E-03   10000.    
     2 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.0440       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14456E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.924       1.0000         .10000E-03   10000.    
     6 'norm      '    .10469E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    115.86       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.945       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10705E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42469E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.466       1.0000         .10000E-03   10000.    
    14 'Prefactor '    134.72       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46419E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7466       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10938E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4783       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .69367       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=   1183.505     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1956 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.185        260.47        .11673E-05   -.43586E-05
   2  norm          .10000E-03    17.571       -.62462E-06** at limit **
   3  norm          5.0478        5.5037        .31964E-06    .17295E-04
   4  Prefactor     .10000E-03    141.02       -.13926E-05** at limit **
   5  Prefactor     14.919        13.784        .21728E-06    .33249E-04
   6  norm          .10000E-03    50.542        .34653E-07** at limit **
   7  Prefactor     115.95        156.63        .16634E-05    .31367E-05
   8  Prefactor     13.893        41.436        .48769E-06   -.18081E-05
   9  norm          .10000E-03    15.111        .23964E-06** at limit **
  10  norm          .10000E-03    22.906       -.38059E-06** at limit **
  11  Prefactor     .10000E-03    41.947        .20946E-05** at limit **
  12  Prefactor     .10000E-03    1477.3       -.11926E-04** at limit **
  13  Prefactor     12.449        25.006        .26081E-05   -.25891E-04
  14  Prefactor     135.46        287.05       -.11140E-05   -.36194E-05
  15  Prefactor     .10000E-03    271.29        .11188E-04** at limit **
  16  Prefactor     4.7371        11.167        .22140E-05    .23852E-04
  17  Prefactor     .10000E-03    62.732       -.20413E-06** at limit **
  18  Normalizat    1.4738        1.2914       -.32897E-04   -.10082E-04
  19  Prefactor     .69409        .15241        .36084E-05   -.12351E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.1848
  norm       = 0.0001
  norm       = 5.04784
  Prefactor  = 0.0001
  Prefactor  = 14.9186
  norm       = 0.0001
  Prefactor  = 115.951
  Prefactor  = 13.8926
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4488
  Prefactor  = 135.464
  Prefactor  = 0.000100002
  Prefactor  = 4.73709
  Prefactor  = 0.0001
  Normalizat = 1.4738
  Prefactor  = 0.694087
 **********
 **   18 **HESSE 
 **********

 FCN=   1183.505     FROM HESSE     STATUS=OK           266 CALLS     2222 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.185        260.85        .20776E-03   -1.3774    
   2  norm          .10000E-03    17.599        .14086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.0478        5.5050        .76043E-04   -1.5259    
   4  Prefactor     .10000E-03    141.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.919        13.804        .10368E-03   -1.4935    
   6  norm          .10000E-03    50.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     115.95        156.62        .18690E-03   -1.3550    
   8  Prefactor     13.893        41.493        .10726E-03   -1.4962    
   9  norm          .10000E-03    15.111        .13066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    22.910        .16083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1478.8        .19419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.449        24.957        .11345E-03   -1.5002    
  14  Prefactor     135.46        286.62        .17348E-03   -1.3375    
  15  Prefactor     .10000E-03    273.33        .21194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7371        11.167        .15921E-03   -1.5273    
  17  Prefactor     .10000E-03    62.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4738        1.2939        .71946E-03   -.78517    
  19  Prefactor     .69409        .15444        .12962E-03   -1.0376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2034e-11
Minuit parameter uncertainties:
  1  264.17
  2  9.95331e-07
  3  5.50554
  4  3.89244e-05
  5  13.8066
  6  1.92683e-06
  7  157.18
  8  41.5796
  9  7.4793e-06
  10  2.35235e-05
  11  0.000148225
  12  0.000669811
  13  24.9781
  14  289.639
  15  0.0014238
  16  11.172
  17  4.38412e-05
  18  1.32467
  19  0.154532
Done.

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

Extracting fit parameters...

4FGL J1921.8-1607
   Spectrum: LogParabola
1050         norm:  1.000e-04  7.479e-06  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:  6.941e-01  1.545e-01  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.474e+00  1.325e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/806204/likelihoodResults_542851201_543110401_4FGL_J1921.8-1607_daily_bin1171.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) = 1183.5047247
delta logL = -3.88480452784e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1183.50469189
delta logL = -6.03480657446e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28463E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6822       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69414       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=   1183.505     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      243 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    622.03        .13183E-01** at limit **
   2  alpha         1.2098        3.1722        .17741        .25600E-07
   3  Normalizat    1.4738        .20085        .71959E-03   -.88632E-05
   4  Prefactor     .69409        .26201E-01    .12962E-03   -.37260E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.20983
  Normalizat = 1.4738
  Prefactor  = 0.694087
 **********
 **   18 **HESSE 
 **********

 FCN=   1183.505     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.164        .14675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2098        2.8980        .70965E-02   -.54225    
   3  Normalizat    1.4738        1.1244        .28783E-04   -.78517    
   4  Prefactor     .69409        .14912        .25923E-04   -1.0376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12676e-11
Minuit parameter uncertainties:
  1  6.34914e-05
  2  431.501
  3  1.14435
  4  0.149204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806204': 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) = 1183.50468517
delta logL = 6.85644636178e-07

Extracting fit parameters...

4FGL J1921.8-1607
   Spectrum: LogParabola
1050         norm:  1.000e-04  6.349e-05  1.000e-04  1.000e+04 ( 1.000e-13)
1051        alpha:  1.210e+00  4.315e+02  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:  6.941e-01  1.492e-01  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.474e+00  1.144e+00  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/806204/cmap_HighResolution_542851201_543110401_4FGL_J1921.8-1607_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-04', job_status='DONE', photon_flux_upper_limit='2.83e-07', time_completed='2021-09-22 17:10:48.760598', job_id='806204', GAL2='0.69', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1632355848.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='6.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.70' WHERE bin_id='1171' AND source_name='4FGL J1921.8-1607' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 22 17:10:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 806204: <4FGL_J1921.8-1607_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1921.8-1607_daily_bin1171> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 22 17:01:01 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 22 17:01:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 22 17:01:03 2021
Terminated at Wed Sep 22 17:10:49 2021
Results reported at Wed Sep 22 17:10:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1921.8-1607_daily_bin1171 290.463 -16.1231 542851201 543110401 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 :                                   481.41 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             307.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            588 sec.

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

