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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1084
RA = 350.385, Dec = -16.3176
tmin = 520300801, tmax = 520560001
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='764944', job_status='RUN', time_executed='2021-09-29 12:06:17.443430', time_epoch_executed='1632942377.44' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764944

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764944/ft1_4FGL_J2321.5-1619_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764944/ft2_4FGL_J2321.5-1619_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764944/ft1_4FGL_J2321.5-1619_daily_bin1084.fits outfile=/scratch/kocevski/764944/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1084.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.06
user 5.79
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/764944/ft2_4FGL_J2321.5-1619_daily_bin1084.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/764944/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/764944/ft1_filtered_4FGL_J2321.5-1619_daily_bin1084.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/764944/ft1_filtered_4FGL_J2321.5-1619_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/764944/ft2_4FGL_J2321.5-1619_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/764944/ltcube_520300801_520560001_4FGL_J2321.5-1619_daily_bin1084.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/764944/ft2_4FGL_J2321.5-1619_daily_bin1084.fits
.....................!
real 12.28
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764944/ft1_filtered_4FGL_J2321.5-1619_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/764944/ft2_4FGL_J2321.5-1619_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/764944/ltcube_520300801_520560001_4FGL_J2321.5-1619_daily_bin1084.fits outfile=/scratch/kocevski/764944/expmap_520300801_520560001_4FGL_J2321.5-1619_daily_bin1084.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/764944/ltcube_520300801_520560001_4FGL_J2321.5-1619_daily_bin1084.fits
.....................!
real 191.80
user 186.20
sys 5.29

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/764944/ft1_filtered_4FGL_J2321.5-1619_daily_bin1084.fits scfile=/scratch/kocevski/764944/ft2_4FGL_J2321.5-1619_daily_bin1084.fits outfile=/scratch/kocevski/764944/cmap_520300801_520560001_4FGL_J2321.5-1619_daily_bin1084.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764944/ft1_filtered_4FGL_J2321.5-1619_daily_bin1084.fits scfile=/scratch/kocevski/764944/ft2_4FGL_J2321.5-1619_daily_bin1084.fits outfile=/scratch/kocevski/764944/cmap_HighResolution_520300801_520560001_4FGL_J2321.5-1619_daily_bin1084.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764944/ft1_filtered_4FGL_J2321.5-1619_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/764944/ft2_4FGL_J2321.5-1619_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764944/Model_4FGL_J2321.5-1619_daily_bin1084.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/764944/ft1_filtered_4FGL_J2321.5-1619_daily_bin1084.fits.....................!
real 48.82
user 47.49
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/764944/ft1_filtered_4FGL_J2321.5-1619_daily_bin1084.fits', '/scratch/kocevski/764944/ft2_4FGL_J2321.5-1619_daily_bin1084.fits', expMap='/scratch/kocevski/764944/expmap_520300801_520560001_4FGL_J2321.5-1619_daily_bin1084.fits', expCube='/scratch/kocevski/764944/ltcube_520300801_520560001_4FGL_J2321.5-1619_daily_bin1084.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/764944/Model_4FGL_J2321.5-1619_daily_bin1084.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/764944/ft1_filtered_4FGL_J2321.5-1619_daily_bin1084.fits
Spacecraft file(s): /scratch/kocevski/764944/ft2_4FGL_J2321.5-1619_daily_bin1084.fits
Exposure map: /scratch/kocevski/764944/expmap_520300801_520560001_4FGL_J2321.5-1619_daily_bin1084.fits
Exposure cube: /scratch/kocevski/764944/ltcube_520300801_520560001_4FGL_J2321.5-1619_daily_bin1084.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/764944/Model_4FGL_J2321.5-1619_daily_bin1084.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5357.99759785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.349       1.0000         .10000E-03   10000.    
     2 'norm      '    6.6679       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36836E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .16247       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.355       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.221       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4641       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0173       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6155       1.0000         .10000E-03   10000.    
    12 'norm      '    9.6006       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4557       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.912       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.834       1.0000         .10000E-03   10000.    
    19 'norm      '    3.3270       1.0000         .10000E-03   10000.    
    20 'norm      '    3.9220       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1335       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82689       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75457       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=   5357.961     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2542 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.349        34.505       -.13433E-06   -.18591E-05
   2  norm          6.6673        1.2985        .46211E-07   -.25333E-03
   3  Prefactor     .10093E-03    11.352        .17626E-05** at limit **
   4  norm          .16173        1.7370       -.45289E-07   -.12825E-02
   5  Prefactor     22.320        25.785        .19883E-05   -.25755E-04
   6  Prefactor     11.218        10.664        .40142E-06   -.34822E-05
   7  Prefactor     8.4635        6.7597       -.39315E-07   -.32764E-04
   8  Prefactor     9.0159        11.118        .28652E-05    .50266E-03
   9  Prefactor     .10000E-03    21.850        .59929E-07** at limit **
  10  Prefactor     .10000E-03    8.4179        .14509E-06** at limit **
  11  Prefactor     3.6159        9.3205        .81752E-06    .62788E-04
  12  norm          9.6005        6.5966       -.10687E-06   -.38803E-04
  13  norm          3.4567        3.8303        .99906E-07    .28380E-04
  14  Prefactor     .10000E-03    22.515        .32353E-06** at limit **
  15  Prefactor     .10000E-03    5.0333        .16353E-06** at limit **
  16  Prefactor     36.930        40.843       -.14857E-05   -.56229E-04
  17  Prefactor     .10000E-03    27.803        .15547E-06** at limit **
  18  Prefactor     22.543        146.87       -.81557E-05   -.45453E-04
  19  norm          3.3273        .92681       -.41001E-07   -.19619E-03
  20  norm          3.9219        3.8289       -.12333E-07    .68569E-06
  21  Prefactor     6.1341        7.3479        .12479E-08    .13664E-04
  22  Normalizat    .82660        .21697        .64384E-05   -.82795E-04
  23  Prefactor     .75478        .18794       -.60201E-05   -.22351E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 23.3494
  norm       = 6.66733
  Prefactor  = 0.000100929
  norm       = 0.161731
  Prefactor  = 22.3197
  Prefactor  = 11.2179
  Prefactor  = 8.46351
  Prefactor  = 9.01591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61593
  norm       = 9.60048
  norm       = 3.4567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.9302
  Prefactor  = 0.0001
  Prefactor  = 22.5433
  norm       = 3.32726
  norm       = 3.92195
  Prefactor  = 6.13407
  Normalizat = 0.8266
  Prefactor  = 0.754782
 **********
 **   18 **HESSE 
 **********

 FCN=   5357.961     FROM HESSE     STATUS=OK           378 CALLS     2920 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.349        34.505        .82896E-04   -1.4741    
   2  norm          6.6673        1.2964        .35125E-04   -1.5191    
   3  Prefactor     .10093E-03    58.790        .33335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .16173        .95290        .11576E-03   -1.5628    
   5  Prefactor     22.320        23.786        .84717E-04   -1.4763    
   6  Prefactor     11.218        10.663        .11960E-03   -1.5038    
   7  Prefactor     8.4635        6.7576        .13779E-03   -1.5126    
   8  Prefactor     9.0159        11.396        .66736E-03   -1.5107    
   9  Prefactor     .10000E-03    21.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.4223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6159        9.2914        .21249E-03   -1.5328    
  12  norm          9.6005        6.5867        .12933E-03   -1.5088    
  13  norm          3.4567        3.8093        .13371E-03   -1.5336    
  14  Prefactor     .10000E-03    22.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0378        .16038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.930        40.718        .65966E-04   -1.4492    
  17  Prefactor     .10000E-03    27.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.543        149.99        .41912E-03   -1.4758    
  19  norm          3.3273        .93135        .34803E-04   -1.5343    
  20  norm          3.9219        3.8473        .13326E-03   -1.5312    
  21  Prefactor     6.1341        7.3448        .16211E-03   -1.5213    
  22  Normalizat    .82660        .22764        .26636E-03   -.99089    
  23  Prefactor     .75478        .19549        .24361E-03   -1.0142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61883e-08
Minuit parameter uncertainties:
  1  34.5345
  2  1.29641
  3  0.0147973
  4  0.784922
  5  23.7963
  6  10.6645
  7  6.75826
  8  11.3983
  9  4.61884e-06
  10  1.0422e-05
  11  9.29506
  12  6.58716
  13  3.80955
  14  2.20351e-05
  15  5.98066e-06
  16  40.7489
  17  5.03875e-06
  18  116.725
  19  0.931351
  20  3.84757
  21  7.34591
  22  0.227907
  23  0.195665
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.042e-05  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.548e-01  1.957e-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.266e-01  2.279e-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: 3.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/764944/likelihoodResults_520300801_520560001_4FGL_J2321.5-1619_daily_bin1084.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) = 5357.96106807
delta logL = -0.000562888410059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5357.96050493
delta logL = 2.55035956798e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7956       1.0000          .0000       10.000    
     3 'Normalizat'    .82661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75477       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=   5357.961     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10075E-03    40.779        .18142E-02** at limit **
   2  Index         1.7499        5.8704        .50000        .23983E-04
   3  Normalizat    .82660        .95790E-02    .26635E-03   -.26891E-05
   4  Prefactor     .75478        .84564E-02    .24361E-03   -.11854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100746
  Index      = 1.74993
  Normalizat = 0.826602
  Prefactor  = 0.754781
 **********
 **   18 **HESSE 
 **********

 FCN=   5357.961     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10075E-03    183.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7499        8.1036        .50000       -.70760    
   3  Normalizat    .82660        .20729E-01    .10654E-04   -.99089    
   4  Prefactor     .75478        .18300E-01    .97444E-05   -1.0142    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.28141e-09
Minuit parameter uncertainties:
  1  0.0235022
  2  209.77
  3  0.0207296
  4  0.0183001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764944': 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) = 5357.96050466
delta logL = 5.23444214195e-07

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.007e-04  2.350e-02  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.750e+00  2.098e+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.548e-01  1.830e-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.266e-01  2.073e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/764944/cmap_HighResolution_520300801_520560001_4FGL_J2321.5-1619_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-03', job_status='DONE', photon_flux_upper_limit='3.56e-08', time_completed='2021-09-29 12:16:34.779508', job_id='764944', GAL2='0.75', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632942994.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='5.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1084' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:16:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 764944: <4FGL_J2321.5-1619_daily_bin1084> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1084> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:05:44 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:05:46 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:05:46 2021
Terminated at Wed Sep 29 12:16:35 2021
Results reported at Wed Sep 29 12:16:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1084 350.385 -16.3176 520300801 520560001 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 :                                   579.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            651 sec.

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

