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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1438
RA = 350.385, Dec = -16.3176
tmin = 612057601, tmax = 612316801
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='766646', job_status='RUN', time_executed='2021-09-29 12:11:34.076537', time_epoch_executed='1632942694.08' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766646

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766646/ft1_4FGL_J2321.5-1619_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766646/ft2_4FGL_J2321.5-1619_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766646/ft1_4FGL_J2321.5-1619_daily_bin1438.fits outfile=/scratch/kocevski/766646/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1438.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=612057601.0 tmax=612316801.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 4.54
user 4.26
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/766646/ft2_4FGL_J2321.5-1619_daily_bin1438.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/766646/ft2_4FGL_J2321.5-1619_daily_bin1438.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/766646/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1438.fits evtable="EVENTS" outfile="/scratch/kocevski/766646/ft1_filtered_4FGL_J2321.5-1619_daily_bin1438.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/766646/ft1_filtered_4FGL_J2321.5-1619_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/766646/ft2_4FGL_J2321.5-1619_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/766646/ltcube_612057601_612316801_4FGL_J2321.5-1619_daily_bin1438.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/766646/ft2_4FGL_J2321.5-1619_daily_bin1438.fits
.....................!
real 13.56
user 13.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766646/ft1_filtered_4FGL_J2321.5-1619_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/766646/ft2_4FGL_J2321.5-1619_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/766646/ltcube_612057601_612316801_4FGL_J2321.5-1619_daily_bin1438.fits outfile=/scratch/kocevski/766646/expmap_612057601_612316801_4FGL_J2321.5-1619_daily_bin1438.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/766646/ltcube_612057601_612316801_4FGL_J2321.5-1619_daily_bin1438.fits
.....................!
real 191.82
user 186.04
sys 5.43

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2321.5-1619 @ 350.385 -16.3176

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/766646/ft1_filtered_4FGL_J2321.5-1619_daily_bin1438.fits scfile=/scratch/kocevski/766646/ft2_4FGL_J2321.5-1619_daily_bin1438.fits outfile=/scratch/kocevski/766646/cmap_612057601_612316801_4FGL_J2321.5-1619_daily_bin1438.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=350.385 yref=-16.3176 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766646/ft1_filtered_4FGL_J2321.5-1619_daily_bin1438.fits scfile=/scratch/kocevski/766646/ft2_4FGL_J2321.5-1619_daily_bin1438.fits outfile=/scratch/kocevski/766646/cmap_HighResolution_612057601_612316801_4FGL_J2321.5-1619_daily_bin1438.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=350.385 yref=-16.3176 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/766646/ft1_filtered_4FGL_J2321.5-1619_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/766646/ft2_4FGL_J2321.5-1619_daily_bin1438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766646/Model_4FGL_J2321.5-1619_daily_bin1438.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/766646/ft1_filtered_4FGL_J2321.5-1619_daily_bin1438.fits.....................!
real 59.55
user 58.07
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/766646/ft1_filtered_4FGL_J2321.5-1619_daily_bin1438.fits', '/scratch/kocevski/766646/ft2_4FGL_J2321.5-1619_daily_bin1438.fits', expMap='/scratch/kocevski/766646/expmap_612057601_612316801_4FGL_J2321.5-1619_daily_bin1438.fits', expCube='/scratch/kocevski/766646/ltcube_612057601_612316801_4FGL_J2321.5-1619_daily_bin1438.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/766646/Model_4FGL_J2321.5-1619_daily_bin1438.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.5-1619'

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  2.964e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.829e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  3.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/766646/ft1_filtered_4FGL_J2321.5-1619_daily_bin1438.fits
Spacecraft file(s): /scratch/kocevski/766646/ft2_4FGL_J2321.5-1619_daily_bin1438.fits
Exposure map: /scratch/kocevski/766646/expmap_612057601_612316801_4FGL_J2321.5-1619_daily_bin1438.fits
Exposure cube: /scratch/kocevski/766646/ltcube_612057601_612316801_4FGL_J2321.5-1619_daily_bin1438.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/766646/Model_4FGL_J2321.5-1619_daily_bin1438.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) = 7481.29854112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .93946       1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.561       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3068       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39940E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1834       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.893       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6049       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7543       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.077       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1397       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86458       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7480.817     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2622 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.583        .18044E-06** at limit **
   2  norm          .93949        .65813       -.34093E-07   -.85582E-03
   3  Prefactor     52.555        32.301        .39168E-06   -.71697E-03
   4  norm          2.3065        2.7051       -.24256E-06   -.23724E-02
   5  Prefactor     .10000E-03    18.599        .21254E-04** at limit **
   6  Prefactor     .22202E-01    3.9407       -.21064E-06   -.12605E-03
   7  Prefactor     7.1829        8.4874       -.18248E-06   -.20651E-03
   8  Prefactor     .10000E-03    5.3266       -.89018E-07** at limit **
   9  Prefactor     13.890        33.755        .71032E-05    .24444E-05
  10  Prefactor     .10000E-03    4.0819       -.13394E-07** at limit **
  11  Prefactor     3.6055        5.0002       -.94568E-06   -.30083E-03
  12  norm          .10000E-03    2.8357        .65650E-09** at limit **
  13  norm          .10000E-03    .69643        .31137E-07** at limit **
  14  Prefactor     .10000E-03    16.403       -.83624E-05** at limit **
  15  Prefactor     .10000E-03    3.4230        .22737E-07** at limit **
  16  Prefactor     3.7430        11.727       -.68324E-06   -.99997E-04
  17  Prefactor     .10000E-03    21.481       -.17775E-04** at limit **
  18  Prefactor     .10000E-03    29.152        .51002E-05** at limit **
  19  norm          .10000E-03    .94407E-01    .28423E-08** at limit **
  20  norm          11.077        3.4598        .19481E-07    .26297E-04
  21  Prefactor     8.1397        5.2869        .12721E-05   -.10324E-03
  22  Normalizat    .86465        .13945       -.61408E-06   -.37360E-04
  23  Prefactor     .78658        .12867       -.14266E-07   -.88608E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.939485
  Prefactor  = 52.5555
  norm       = 2.30646
  Prefactor  = 0.0001
  Prefactor  = 0.0222024
  Prefactor  = 7.18291
  Prefactor  = 0.0001
  Prefactor  = 13.8897
  Prefactor  = 0.0001
  Prefactor  = 3.60555
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.0773
  Prefactor  = 8.13972
  Normalizat = 0.864651
  Prefactor  = 0.786577
 **********
 **   18 **HESSE 
 **********

 FCN=   7480.817     FROM HESSE     STATUS=OK           378 CALLS     3000 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .93949        .63507        .56489E-03   -1.5514    
   3  Prefactor     52.555        33.846        .55321E-04   -1.4257    
   4  norm          2.3065        2.8253        .64921E-04   -1.5404    
   5  Prefactor     .10000E-03    18.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .22202E-01    4.0930        .61477E-01   -1.5678    
   7  Prefactor     7.1829        8.4904        .14966E-03   -1.5172    
   8  Prefactor     .10000E-03    5.3883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.890        33.585        .10746E-03   -1.4962    
  10  Prefactor     .10000E-03    4.0824        .17067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6055        4.9655        .20289E-03   -1.5328    
  12  norm          .10000E-03    2.8971        .28392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .70555        .70447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4311        .15627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7430        11.719        .20837E-03   -1.5321    
  17  Prefactor     .10000E-03    21.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .97038E-01    .51530E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.077        3.4463        .85898E-04   -1.5042    
  21  Prefactor     8.1397        5.2801        .14053E-03   -1.5137    
  22  Normalizat    .86465        .16270        .23409E-03   -.97714    
  23  Prefactor     .78658        .14995        .22692E-03   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78636e-10
Minuit parameter uncertainties:
  1  2.25111e-06
  2  0.63507
  3  33.8583
  4  2.82549
  5  1.71477e-05
  6  0.601589
  7  8.49183
  8  4.8406e-06
  9  33.6306
  10  7.06569e-07
  11  4.96602
  12  3.35308e-06
  13  1.25081e-06
  14  1.47015e-05
  15  2.65541e-06
  16  11.7266
  17  2.07589e-06
  18  6.40425e-06
  19  4.32751e-08
  20  3.44633
  21  5.28037
  22  0.162795
  23  0.150032
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  7.066e-07  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.829e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  3.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  7.866e-01  1.500e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  8.647e-01  1.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.385 -16.318
Photon Flux Upper Limit: 1.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/766646/likelihoodResults_612057601_612316801_4FGL_J2321.5-1619_daily_bin1438.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) = 7480.81837042
delta logL = -0.00114645621488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7480.81722347
delta logL = 5.00152054883e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7949       1.0000          .0000       10.000    
     3 'Normalizat'    .86464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78660       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+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=   7480.817     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10165E-03    27.719        .17900E-02** at limit **
   2  Index         1.7329        9.0507        .50000        .52606E-04
   3  Normalizat    .86465        .84959E-02    .23409E-03   -.50508E-05
   4  Prefactor     .78658        .79348E-02    .22692E-03    .26052E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101649
  Index      = 1.73295
  Normalizat = 0.86465
  Prefactor  = 0.786577
 **********
 **   18 **HESSE 
 **********

 FCN=   7480.817     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10165E-03    122.27        .35800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7329        7.3540        .50000       -.71208    
   3  Normalizat    .86465        .18274E-01    .93636E-05   -.97714    
   4  Prefactor     .78658        .17066E-01    .90767E-05   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.85874e-08
Minuit parameter uncertainties:
  1  0.0284537
  2  234.018
  3  0.0182737
  4  0.0170664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766646': 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) = 7480.81722265
delta logL = 1.31943670567e-06

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.016e-04  2.845e-02  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.733e+00  2.340e+02  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  3.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  7.866e-01  1.707e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  8.647e-01  1.827e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.385 -16.318

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/766646/cmap_HighResolution_612057601_612316801_4FGL_J2321.5-1619_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-03', job_status='DONE', photon_flux_upper_limit='1.92e-08', time_completed='2021-09-29 12:23:24.016927', job_id='766646', GAL2='0.79', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632943404.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1438' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:23:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 766646: <4FGL_J2321.5-1619_daily_bin1438> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1438> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 12:10:29 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:10:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 12:10:30 2021
Terminated at Wed Sep 29 12:23:24 2021
Results reported at Wed Sep 29 12:23:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1438 350.385 -16.3176 612057601 612316801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2321.5-1619 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            775 sec.

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

