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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin716
RA = 350.385, Dec = -16.3176
tmin = 424915201, tmax = 425174401
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='763201', job_status='RUN', time_executed='2021-09-29 12:00:47.414302', time_epoch_executed='1632942047.41' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763201/ft1_4FGL_J2321.5-1619_daily_bin716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763201/ft2_4FGL_J2321.5-1619_daily_bin716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763201/ft1_4FGL_J2321.5-1619_daily_bin716.fits outfile=/scratch/kocevski/763201/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin716.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=424915201.0 tmax=425174401.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.38
user 3.18
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763201/ft2_4FGL_J2321.5-1619_daily_bin716.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/763201/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin716.fits evtable="EVENTS" outfile="/scratch/kocevski/763201/ft1_filtered_4FGL_J2321.5-1619_daily_bin716.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763201/ft1_filtered_4FGL_J2321.5-1619_daily_bin716.fits" evtable="EVENTS" scfile=/scratch/kocevski/763201/ft2_4FGL_J2321.5-1619_daily_bin716.fits sctable="SC_DATA" outfile=/scratch/kocevski/763201/ltcube_424915201_425174401_4FGL_J2321.5-1619_daily_bin716.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/763201/ft2_4FGL_J2321.5-1619_daily_bin716.fits
.....................!
real 11.81
user 11.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763201/ft1_filtered_4FGL_J2321.5-1619_daily_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/763201/ft2_4FGL_J2321.5-1619_daily_bin716.fits sctable="SC_DATA" expcube=/scratch/kocevski/763201/ltcube_424915201_425174401_4FGL_J2321.5-1619_daily_bin716.fits outfile=/scratch/kocevski/763201/expmap_424915201_425174401_4FGL_J2321.5-1619_daily_bin716.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/763201/ltcube_424915201_425174401_4FGL_J2321.5-1619_daily_bin716.fits
.....................!
real 190.40
user 184.93
sys 5.15

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/763201/ft1_filtered_4FGL_J2321.5-1619_daily_bin716.fits scfile=/scratch/kocevski/763201/ft2_4FGL_J2321.5-1619_daily_bin716.fits outfile=/scratch/kocevski/763201/cmap_424915201_425174401_4FGL_J2321.5-1619_daily_bin716.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763201/ft1_filtered_4FGL_J2321.5-1619_daily_bin716.fits scfile=/scratch/kocevski/763201/ft2_4FGL_J2321.5-1619_daily_bin716.fits outfile=/scratch/kocevski/763201/cmap_HighResolution_424915201_425174401_4FGL_J2321.5-1619_daily_bin716.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763201/ft1_filtered_4FGL_J2321.5-1619_daily_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/763201/ft2_4FGL_J2321.5-1619_daily_bin716.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763201/Model_4FGL_J2321.5-1619_daily_bin716.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/763201/ft1_filtered_4FGL_J2321.5-1619_daily_bin716.fits.....................!
real 57.79
user 56.50
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.043       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3005       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.909       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.724       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.852       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0714       1.0000         .10000E-03   10000.    
    20 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2227       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .62138       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=   7270.560     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2486 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.041        22.831        .21829E-02    .40254E-04
   2  norm          1.3005        .69026        .96866E-02   -.12244E-03
   3  Prefactor     .10000E-03    1.6630        .90712E-02** at limit **
   4  norm          .10000E-03    .13748        .90712E-02** at limit **
   5  Prefactor     17.908        11.505        .23660E-02   -.23189E-04
   6  Prefactor     .10000E-03    3.6199        .90712E-02** at limit **
   7  Prefactor     .10000E-03    2.7689        .90712E-02** at limit **
   8  Prefactor     .10000E-03    4.9114        .90712E-02** at limit **
   9  Prefactor     .10000E-03    14.353        .90712E-02** at limit **
  10  Prefactor     .10000E-03    6.5012        .90712E-02** at limit **
  11  Prefactor     .10000E-03    2.9728        .90712E-02** at limit **
  12  norm          .10000E-03    2.2976        .90712E-02** at limit **
  13  norm          .10000E-03    1.3156        .34841E-01** at limit **
  14  Prefactor     .10000E-03    33.756        .90712E-02** at limit **
  15  Prefactor     13.717        16.047        .27030E-02   -.59361E-03
  16  Prefactor     15.857        15.774        .25149E-02    .43965E-03
  17  Prefactor     .10000E-03    20.340        .90712E-02** at limit **
  18  Prefactor     .10000E-03    98.233        .90712E-02** at limit **
  19  norm          3.0713        .67544        .57863E-02    .13060E-03
  20  norm          .10000E-03    3.3660        .90712E-02** at limit **
  21  Prefactor     .10000E-03    1.9208        .90712E-02** at limit **
  22  Normalizat    1.2227        .15387        .34356E-01   -.66742E-03
  23  Prefactor     .62138        .13513        .41345E-01   -.22557E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.0413
  norm       = 1.30045
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.9082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7171
  Prefactor  = 15.8571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.07134
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22273
  Prefactor  = 0.621382
 **********
 **   18 **HESSE 
 **********

 FCN=   7270.560     FROM HESSE     STATUS=OK           356 CALLS     2842 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.041        22.837        .87314E-04   -1.4790    
   2  norm          1.3005        .69077        .49790E-04   -1.5480    
   3  Prefactor     .10000E-03    1.6649        .10737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .13949        .30835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.908        11.493        .94641E-04   -1.4861    
   6  Prefactor     .10000E-03    3.6450        .15842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7773        .13856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9962        .14355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.3237        .12619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4376        .18830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.717        16.081        .10812E-03   -1.4967    
  16  Prefactor     15.857        15.736        .10060E-03   -1.4911    
  17  Prefactor     .10000E-03    20.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    98.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0713        .67419        .31166E-04   -1.5357    
  20  norm          .10000E-03    3.4892        .30430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.9319        .11540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2227        .17394        .21339E-03   -.85903    
  23  Prefactor     .62138        .15268        .25929E-03   -1.0669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84082e-09
Minuit parameter uncertainties:
  1  22.846
  2  0.690774
  3  5.31593e-05
  4  2.52803e-06
  5  11.4941
  6  8.6926e-06
  7  1.41151e-05
  8  2.73177e-05
  9  0.000134296
  10  2.89231e-05
  11  1.9409e-05
  12  4.32359e-06
  13  4.31051e-06
  14  0.000181707
  15  16.0859
  16  15.74
  17  0.00015906
  18  5.43017e-05
  19  0.674187
  20  2.74849e-05
  21  7.82203e-06
  22  0.174026
  23  0.152782
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  2.892e-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:  6.214e-01  1.528e-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.223e+00  1.740e-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: 2.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/763201/likelihoodResults_424915201_425174401_4FGL_J2321.5-1619_daily_bin716.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) = 7270.56085092
delta logL = -0.000724645359696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7270.56012659
delta logL = -3.15191755362e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8140       1.0000          .0000       10.000    
     3 'Normalizat'    1.2229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62126       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=   7270.560     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    109.49        .90712E-02** at limit **
   2  Index         1.7986        9.0961        .50000        .17199E-04
   3  Normalizat    1.2227        .15496E-01    .34353E-01    .20712E-04
   4  Prefactor     .62138        .13930E-01    .41343E-01    .40003E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.79861
  Normalizat = 1.22273
  Prefactor  = 0.62138
 **********
 **   18 **HESSE 
 **********

 FCN=   7270.560     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      230 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1215.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7986        5.6939        .50000       -.69486    
   3  Normalizat    1.2227        .78107E-01    .21339E-03   -.85903    
   4  Prefactor     .62138        .70164E-01    .25929E-03   -1.0669    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.65041e-08
Minuit parameter uncertainties:
  1  0.000509774
  2  53.1958
  3  0.0781141
  4  0.0701738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763201': 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) = 7270.56012613
delta logL = 1.4299803297e-07

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  5.098e-04  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.799e+00  5.320e+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.214e-01  7.017e-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:  1.223e+00  7.811e-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/763201/cmap_HighResolution_424915201_425174401_4FGL_J2321.5-1619_daily_bin716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-03', job_status='DONE', photon_flux_upper_limit='2.69e-08', time_completed='2021-09-29 12:11:43.776575', job_id='763201', GAL2='0.62', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632942703.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='716' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:11:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 763201: <4FGL_J2321.5-1619_daily_bin716> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin716> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 12:00:31 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:00:33 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:00:33 2021
Terminated at Wed Sep 29 12:11:44 2021
Results reported at Wed Sep 29 12:11:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin716 350.385 -16.3176 424915201 425174401 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 :                                   652.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            673 sec.

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

