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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin600
RA = 350.385, Dec = -16.3176
tmin = 394848001, tmax = 395107201
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='763031', job_status='RUN', time_executed='2021-09-29 12:02:32.547615', time_epoch_executed='1632942152.55' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763031

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763031/ft1_4FGL_J2321.5-1619_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763031/ft2_4FGL_J2321.5-1619_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763031/ft1_4FGL_J2321.5-1619_daily_bin600.fits outfile=/scratch/kocevski/763031/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin600.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=394848001.0 tmax=395107201.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 5.24
user 4.95
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763031/ft2_4FGL_J2321.5-1619_daily_bin600.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/763031/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin600.fits evtable="EVENTS" outfile="/scratch/kocevski/763031/ft1_filtered_4FGL_J2321.5-1619_daily_bin600.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.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763031/ft1_filtered_4FGL_J2321.5-1619_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/763031/ft2_4FGL_J2321.5-1619_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/763031/ltcube_394848001_395107201_4FGL_J2321.5-1619_daily_bin600.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/763031/ft2_4FGL_J2321.5-1619_daily_bin600.fits
.....................!
real 11.72
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763031/ft1_filtered_4FGL_J2321.5-1619_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/763031/ft2_4FGL_J2321.5-1619_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/763031/ltcube_394848001_395107201_4FGL_J2321.5-1619_daily_bin600.fits outfile=/scratch/kocevski/763031/expmap_394848001_395107201_4FGL_J2321.5-1619_daily_bin600.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/763031/ltcube_394848001_395107201_4FGL_J2321.5-1619_daily_bin600.fits
.....................!
real 191.38
user 186.92
sys 4.09

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/763031/ft1_filtered_4FGL_J2321.5-1619_daily_bin600.fits scfile=/scratch/kocevski/763031/ft2_4FGL_J2321.5-1619_daily_bin600.fits outfile=/scratch/kocevski/763031/cmap_394848001_395107201_4FGL_J2321.5-1619_daily_bin600.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763031/ft1_filtered_4FGL_J2321.5-1619_daily_bin600.fits scfile=/scratch/kocevski/763031/ft2_4FGL_J2321.5-1619_daily_bin600.fits outfile=/scratch/kocevski/763031/cmap_HighResolution_394848001_395107201_4FGL_J2321.5-1619_daily_bin600.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.62
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763031/ft1_filtered_4FGL_J2321.5-1619_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/763031/ft2_4FGL_J2321.5-1619_daily_bin600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763031/Model_4FGL_J2321.5-1619_daily_bin600.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/763031/ft1_filtered_4FGL_J2321.5-1619_daily_bin600.fits.....................!
real 38.44
user 36.84
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1881       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12709E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .23931E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9035       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.873       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10995E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11231E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9958       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9491       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.020       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.235       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.063       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0808       1.0000         .10000E-03   10000.    
    20 'norm      '    13.056       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9496       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86885       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91626       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=   4196.003     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2587 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    32.158       -.47966E-06** at limit **
   2  norm          1.1880        1.0682       -.40521E-07   -.41788E-03
   3  Prefactor     .10062E-03    16.856        .26037E-05** at limit **
   4  norm          .10000E-03    .86944        .28640E-06** at limit **
   5  Prefactor     5.9464        33.888       -.67108E-05   -.93020E-04
   6  Prefactor     .10000E-03    6.1940        .11419E-06** at limit **
   7  Prefactor     21.878        15.182       -.66651E-07   -.56296E-04
   8  Prefactor     .10000E-03    23.831       -.14692E-06** at limit **
   9  Prefactor     .10000E-03    55.581        .68500E-07** at limit **
  10  Prefactor     14.418        32.904        .50608E-06   -.20233E-05
  11  Prefactor     .10000E-03    4.8271        .53639E-08** at limit **
  12  norm          1.9960        3.3315        .62169E-07   -.83517E-04
  13  norm          1.9515        3.2940        .10061E-06   -.18123E-03
  14  Prefactor     30.008        60.156       -.62183E-06   -.53410E-05
  15  Prefactor     .10000E-03    14.811       -.96693E-07** at limit **
  16  Prefactor     16.290        32.150        .70107E-06    .47942E-05
  17  Prefactor     .10000E-03    29.216        .54592E-06** at limit **
  18  Prefactor     64.023        106.33       -.23301E-05   -.55013E-05
  19  norm          3.0810        1.1634        .68749E-08   -.43281E-04
  20  norm          13.056        8.4654        .11030E-07   -.21378E-04
  21  Prefactor     9.9539        7.7146        .62384E-07   -.20593E-04
  22  Normalizat    .86968        .22974        .40536E-07   -.74248E-04
  23  Prefactor     .91522        .20099       -.24014E-06   -.89608E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.18802
  Prefactor  = 0.000100615
  norm       = 0.000100001
  Prefactor  = 5.9464
  Prefactor  = 0.0001
  Prefactor  = 21.8779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4178
  Prefactor  = 0.0001
  norm       = 1.99603
  norm       = 1.95153
  Prefactor  = 30.0082
  Prefactor  = 0.0001
  Prefactor  = 16.2901
  Prefactor  = 0.0001
  Prefactor  = 64.0228
  norm       = 3.08099
  norm       = 13.0559
  Prefactor  = 9.95392
  Normalizat = 0.869683
  Prefactor  = 0.915219
 **********
 **   18 **HESSE 
 **********

 FCN=   4196.003     FROM HESSE     STATUS=OK           380 CALLS     2967 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    32.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1880        1.0449        .60944E-04   -1.5490    
   3  Prefactor     .10062E-03    167.66        .40465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.7487        .10053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9464        35.773        .16528E-03   -1.5220    
   6  Prefactor     .10000E-03    6.2126        .15748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.878        15.183        .85643E-04   -1.4772    
   8  Prefactor     .10000E-03    24.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    55.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.418        32.877        .10554E-03   -1.4948    
  11  Prefactor     .10000E-03    4.8494        .13896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9960        3.3068        .14852E-03   -1.5425    
  13  norm          1.9515        3.2615        .14390E-03   -1.5429    
  14  Prefactor     30.008        60.248        .73126E-04   -1.4612    
  15  Prefactor     .10000E-03    14.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.290        32.152        .99401E-04   -1.4901    
  17  Prefactor     .10000E-03    29.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     64.023        106.38        .25069E-03   -1.4106    
  19  norm          3.0810        1.1856        .35151E-04   -1.5357    
  20  norm          13.056        8.6429        .11085E-03   -1.4985    
  21  Prefactor     9.9539        7.7157        .12704E-03   -1.5077    
  22  Normalizat    .86968        .27191        .26930E-03   -.97534    
  23  Prefactor     .91522        .23870        .23527E-03   -.95611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55182e-09
Minuit parameter uncertainties:
  1  2.92781e-07
  2  1.04488
  3  0.0203689
  4  0.00014093
  5  29.1959
  6  1.54958e-06
  7  15.1861
  8  1.84721e-05
  9  1.08284e-05
  10  32.918
  11  8.22862e-07
  12  3.30713
  13  3.2618
  14  60.371
  15  4.37413e-05
  16  32.1865
  17  7.30049e-06
  18  106.697
  19  1.18564
  20  8.64376
  21  7.71643
  22  0.272341
  23  0.238973
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.442e+01  3.292e+01  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:  9.152e-01  2.390e-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.697e-01  2.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/763031/likelihoodResults_394848001_395107201_4FGL_J2321.5-1619_daily_bin600.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): 0
logL (Free Index) = 4195.13759634
delta logL = 0.864927377092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4195.11218512
delta logL = 0.890338599177

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2046       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9323       1.0000          .0000       10.000    
     3 'Normalizat'    .80488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94219       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=   4195.112     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      329 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2010        79.773        .49133E-02    .22395E-03
   2  Index         2.9329        2.3803        .89192E-01    .13580E-03
   3  Normalizat    .80464        .74066E-01    .63011E-01    .94874E-05
   4  Prefactor     .94226        .61807E-01    .45540E-01    .32580E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.20098
  Index      = 2.93289
  Normalizat = 0.804639
  Prefactor  = 0.94226
 **********
 **   18 **HESSE 
 **********

 FCN=   4195.112     FROM HESSE     STATUS=OK            33 CALLS      362 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2010        21.355        .10568E-03   -1.5298    
   2  Index         2.9329        1.5733        .32416E-02   -.42621    
   3  Normalizat    .80464        .27057        .27872E-03   -.99897    
   4  Prefactor     .94226        .23851        .23184E-03   -.94680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77954e-11
Minuit parameter uncertainties:
  1  18.9538
  2  1.60646
  3  0.271023
  4  0.238771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763031': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4195.11218388
delta logL = 0.890339835022

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  4.201e+00  1.895e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  2.933e+00  1.606e+00  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:  9.423e-01  2.388e-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.046e-01  2.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 350.385 -16.318
Photon Index (Free Index): 2.93 +/- 1.61
Photon Flux (Free Index): 7.37e-08 +/- 7.06e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.44e-05

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/763031/cmap_HighResolution_394848001_395107201_4FGL_J2321.5-1619_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='8.90e-01', photon_flux2='7.37e-08', job_status='DONE', time_completed='2021-09-29 12:11:18.343668', photon_index_error2='1.61', photon_index2='2.93', ts='0.24', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='8.34e-08', energy_flux_error2='1.44e-05', EG='0.87', time_epoch_completed='1632942678.34', return_code='0', job_id='763031', GAL2='0.94', EG2='0.80', return_code2='0', photon_flux_error2='7.06e-08', ts2='2.07', photon_index='1.83' WHERE bin_id='600' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:11:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 763031: <4FGL_J2321.5-1619_daily_bin600> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin600 350.385 -16.3176 394848001 395107201 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 :                                   524.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            660 sec.

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

