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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1219
RA = 350.385, Dec = -16.3176
tmin = 555292801, tmax = 555552001
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='765147', job_status='RUN', time_executed='2021-09-29 12:07:14.576491', time_epoch_executed='1632942434.58' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765147/ft1_4FGL_J2321.5-1619_daily_bin1219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765147/ft2_4FGL_J2321.5-1619_daily_bin1219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765147/ft1_4FGL_J2321.5-1619_daily_bin1219.fits outfile=/scratch/kocevski/765147/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1219.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=555292801.0 tmax=555552001.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 3.61
user 3.37
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/765147/ft2_4FGL_J2321.5-1619_daily_bin1219.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/765147/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1219.fits evtable="EVENTS" outfile="/scratch/kocevski/765147/ft1_filtered_4FGL_J2321.5-1619_daily_bin1219.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765147/ft1_filtered_4FGL_J2321.5-1619_daily_bin1219.fits" evtable="EVENTS" scfile=/scratch/kocevski/765147/ft2_4FGL_J2321.5-1619_daily_bin1219.fits sctable="SC_DATA" outfile=/scratch/kocevski/765147/ltcube_555292801_555552001_4FGL_J2321.5-1619_daily_bin1219.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/765147/ft2_4FGL_J2321.5-1619_daily_bin1219.fits
.....................!
real 11.95
user 11.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765147/ft1_filtered_4FGL_J2321.5-1619_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/765147/ft2_4FGL_J2321.5-1619_daily_bin1219.fits sctable="SC_DATA" expcube=/scratch/kocevski/765147/ltcube_555292801_555552001_4FGL_J2321.5-1619_daily_bin1219.fits outfile=/scratch/kocevski/765147/expmap_555292801_555552001_4FGL_J2321.5-1619_daily_bin1219.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/765147/ltcube_555292801_555552001_4FGL_J2321.5-1619_daily_bin1219.fits
.....................!
real 190.31
user 185.15
sys 4.85

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/765147/ft1_filtered_4FGL_J2321.5-1619_daily_bin1219.fits scfile=/scratch/kocevski/765147/ft2_4FGL_J2321.5-1619_daily_bin1219.fits outfile=/scratch/kocevski/765147/cmap_555292801_555552001_4FGL_J2321.5-1619_daily_bin1219.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765147/ft1_filtered_4FGL_J2321.5-1619_daily_bin1219.fits scfile=/scratch/kocevski/765147/ft2_4FGL_J2321.5-1619_daily_bin1219.fits outfile=/scratch/kocevski/765147/cmap_HighResolution_555292801_555552001_4FGL_J2321.5-1619_daily_bin1219.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/765147/ft1_filtered_4FGL_J2321.5-1619_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/765147/ft2_4FGL_J2321.5-1619_daily_bin1219.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/765147/Model_4FGL_J2321.5-1619_daily_bin1219.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/765147/ft1_filtered_4FGL_J2321.5-1619_daily_bin1219.fits.....................!
real 61.39
user 60.14
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/765147/ft1_filtered_4FGL_J2321.5-1619_daily_bin1219.fits', '/scratch/kocevski/765147/ft2_4FGL_J2321.5-1619_daily_bin1219.fits', expMap='/scratch/kocevski/765147/expmap_555292801_555552001_4FGL_J2321.5-1619_daily_bin1219.fits', expCube='/scratch/kocevski/765147/ltcube_555292801_555552001_4FGL_J2321.5-1619_daily_bin1219.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/765147/Model_4FGL_J2321.5-1619_daily_bin1219.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/765147/ft1_filtered_4FGL_J2321.5-1619_daily_bin1219.fits
Spacecraft file(s): /scratch/kocevski/765147/ft2_4FGL_J2321.5-1619_daily_bin1219.fits
Exposure map: /scratch/kocevski/765147/expmap_555292801_555552001_4FGL_J2321.5-1619_daily_bin1219.fits
Exposure cube: /scratch/kocevski/765147/ltcube_555292801_555552001_4FGL_J2321.5-1619_daily_bin1219.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/765147/Model_4FGL_J2321.5-1619_daily_bin1219.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) = 6953.58216269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    57.572       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3365       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.928       1.0000         .10000E-03   10000.    
     4 'norm      '    39.561       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6388       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72210E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.991       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .95650       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3674       1.0000         .10000E-03   10000.    
    14 'Prefactor '    97.058       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11869E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    75.737       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .23395       1.0000         .10000E-03   10000.    
    20 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.554       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1714       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .66366       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=   6953.520     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2643 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          57.612        50.961        .15540E-06    .19605E-04
   2  norm          1.3364        .74773       -.20035E-08    .12767E-04
   3  Prefactor     36.954        76.373        .20086E-05    .61144E-04
   4  norm          39.558        7.1332       -.17560E-06    .45343E-03
   5  Prefactor     .10000E-03    20.484       -.34417E-06** at limit **
   6  Prefactor     6.6370        7.2413       -.20719E-07   -.31637E-04
   7  Prefactor     .10000E-03    4.6766        .38343E-07** at limit **
   8  Prefactor     .10001E-03    15.508        .59078E-07** at limit **
   9  Prefactor     29.990        37.687       -.11054E-06    .25480E-03
  10  Prefactor     .10000E-03    28.570        .54639E-06** at limit **
  11  Prefactor     .10002E-03    5.4405       -.21687E-05** at limit **
  12  norm          .95968        4.6702        .31806E-05    .25062E-03
  13  norm          5.3683        3.8419        .55917E-07   -.35377E-04
  14  Prefactor     97.036        65.247       -.44138E-06   -.27551E-04
  15  Prefactor     .10000E-03    31.828       -.12097E-05** at limit **
  16  Prefactor     .10000E-03    18.118        .48709E-06** at limit **
  17  Prefactor     75.774        63.092       -.60605E-07    .16591E-03
  18  Prefactor     .10000E-03    133.35        .14670E-06** at limit **
  19  norm          .23367        .46890        .69199E-07    .35836E-03
  20  norm          .10000E-03    2.4828       -.53063E-07** at limit **
  21  Prefactor     12.556        7.9288       -.98472E-07   -.28975E-03
  22  Normalizat    1.1710        .22204       -.32327E-06    .25743E-03
  23  Prefactor     .66412        .17800       -.10610E-06    .19436E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 57.612
  norm       = 1.33643
  Prefactor  = 36.9539
  norm       = 39.5584
  Prefactor  = 0.0001
  Prefactor  = 6.63699
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 29.9897
  Prefactor  = 0.000100001
  Prefactor  = 0.000100017
  norm       = 0.959676
  norm       = 5.3683
  Prefactor  = 97.0356
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 75.7741
  Prefactor  = 0.0001
  norm       = 0.233671
  norm       = 0.0001
  Prefactor  = 12.5556
  Normalizat = 1.17096
  Prefactor  = 0.664122
 **********
 **   18 **HESSE 
 **********

 FCN=   6953.520     FROM HESSE     STATUS=OK           376 CALLS     3019 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          57.612        50.985        .52872E-04   -1.4188    
   2  norm          1.3364        .75583        .52350E-04   -1.5477    
   3  Prefactor     36.954        78.969        .65952E-04   -1.4491    
   4  norm          39.558        7.3676        .40045E-04   -1.4449    
   5  Prefactor     .10000E-03    20.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6370        7.2435        .15574E-03   -1.5193    
   7  Prefactor     .10000E-03    4.6839        .17611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    18.441        .10333       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.990        36.373        .73161E-04   -1.4612    
  10  Prefactor     .10000E-03    28.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    16.649        .31671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .95968        5.0392        .34836E-03   -1.5512    
  13  norm          5.3683        3.8429        .13331E-03   -1.5245    
  14  Prefactor     97.036        65.260        .40801E-04   -1.3735    
  15  Prefactor     .10000E-03    31.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     75.774        63.577        .46139E-04   -1.3965    
  18  Prefactor     .10000E-03    133.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .23367        .37729        .76382E-03   -1.5611    
  20  norm          .10000E-03    2.5044        .12804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.556        7.9933        .11305E-03   -1.4999    
  22  Normalizat    1.1710        .27178        .30318E-03   -.87505    
  23  Prefactor     .66412        .21586        .32982E-03   -1.0495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55655e-09
Minuit parameter uncertainties:
  1  51.0233
  2  0.755839
  3  79.1933
  4  7.36772
  5  0.00019319
  6  7.24445
  7  6.34097e-07
  8  0.000889521
  9  36.4002
  10  0.000313308
  11  0.00106493
  12  4.39855
  13  3.84304
  14  65.3086
  15  3.38253e-05
  16  0.000202509
  17  63.6339
  18  0.000140147
  19  0.377295
  20  2.95278e-06
  21  7.99397
  22  0.272112
  23  0.216135
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  3.133e-04  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:  6.641e-01  2.161e-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:  1.171e+00  2.721e-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: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/765147/likelihoodResults_555292801_555552001_4FGL_J2321.5-1619_daily_bin1219.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) = 6953.51986668
delta logL = -0.000164795558703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6953.44729623
delta logL = 0.0724056576937

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28896       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4115       1.0000          .0000       10.000    
     3 'Normalizat'    1.1453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67528       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.

 FCN=   6953.447     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      285 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28854        20.641        .10376E-01    .24300E-02
   2  Index         3.4133        3.6536        .85997E-01    .23086E-03
   3  Normalizat    1.1456        .36934E-01    .69174E-01   -.21172E-04
   4  Prefactor     .67518        .31236E-01    .73936E-01    .18858E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.288541
  Index      = 3.41332
  Normalizat = 1.1456
  Prefactor  = 0.675179
 **********
 **   18 **HESSE 
 **********

 FCN=   6953.447     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      318 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28854        95.699        .11234E-03   -1.5601    
   2  Index         3.4133        5.1410        .10871E-01   -.32292    
   3  Normalizat    1.1456        .17090        .30605E-03   -.88301    
   4  Prefactor     .67518        .13833        .32730E-03   -1.0451    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.66453e-06
Minuit parameter uncertainties:
  1  10.5248
  2  12.1133
  3  0.170985
  4  0.138401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765147': 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) = 6953.44729332
delta logL = 0.0724085694237

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  2.885e-01  1.052e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  3.413e+00  1.211e+01  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:  6.752e-01  1.384e-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:  1.146e+00  1.710e-01  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/765147/cmap_HighResolution_555292801_555552001_4FGL_J2321.5-1619_daily_bin1219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-09-29 12:20:31.410661', job_id='765147', GAL2='0.68', fit_tolerance='1e-08', EG2='1.15', EG='1.17', time_epoch_completed='1632943231.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='7.24e-02', ts2='0.15', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1219' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:20:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 765147: <4FGL_J2321.5-1619_daily_bin1219> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1219> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:06:02 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:06:03 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:06:03 2021
Terminated at Wed Sep 29 12:20:32 2021
Results reported at Wed Sep 29 12:20:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1219 350.385 -16.3176 555292801 555552001 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 :                                   681.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

