/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 219 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 = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2321.9+3204_daily_bin64
RA = 350.478, Dec = 32.0737
tmin = 255916801, tmax = 256176001
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='781109', job_status='RUN', time_executed='2021-09-29 12:59:20.304218', time_epoch_executed='1632945560.3' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781109/ft1_4FGL_J2321.9+3204_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781109/ft2_4FGL_J2321.9+3204_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781109/ft1_4FGL_J2321.9+3204_daily_bin64.fits outfile=/scratch/kocevski/781109/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin64.fits ra=350.478 dec=32.0737 rad=12.0 tmin=255916801.0 tmax=256176001.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 1.46
user 1.28
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/781109/ft2_4FGL_J2321.9+3204_daily_bin64.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/781109/ft2_4FGL_J2321.9+3204_daily_bin64.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/781109/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin64.fits evtable="EVENTS" outfile="/scratch/kocevski/781109/ft1_filtered_4FGL_J2321.9+3204_daily_bin64.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/781109/ft1_filtered_4FGL_J2321.9+3204_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/781109/ft2_4FGL_J2321.9+3204_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/781109/ltcube_255916801_256176001_4FGL_J2321.9+3204_daily_bin64.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/781109/ft2_4FGL_J2321.9+3204_daily_bin64.fits
.....................!
real 12.56
user 12.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781109/ft1_filtered_4FGL_J2321.9+3204_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/781109/ft2_4FGL_J2321.9+3204_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/781109/ltcube_255916801_256176001_4FGL_J2321.9+3204_daily_bin64.fits outfile=/scratch/kocevski/781109/expmap_255916801_256176001_4FGL_J2321.9+3204_daily_bin64.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/781109/ltcube_255916801_256176001_4FGL_J2321.9+3204_daily_bin64.fits
.....................!
real 191.46
user 185.67
sys 5.44

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

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/781109/ft1_filtered_4FGL_J2321.9+3204_daily_bin64.fits scfile=/scratch/kocevski/781109/ft2_4FGL_J2321.9+3204_daily_bin64.fits outfile=/scratch/kocevski/781109/cmap_255916801_256176001_4FGL_J2321.9+3204_daily_bin64.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.478 yref=32.0737 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781109/ft1_filtered_4FGL_J2321.9+3204_daily_bin64.fits scfile=/scratch/kocevski/781109/ft2_4FGL_J2321.9+3204_daily_bin64.fits outfile=/scratch/kocevski/781109/cmap_HighResolution_255916801_256176001_4FGL_J2321.9+3204_daily_bin64.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.478 yref=32.0737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/781109/ft1_filtered_4FGL_J2321.9+3204_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/781109/ft2_4FGL_J2321.9+3204_daily_bin64.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/781109/Model_4FGL_J2321.9+3204_daily_bin64.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/781109/ft1_filtered_4FGL_J2321.9+3204_daily_bin64.fits.....................!
real 78.09
user 76.67
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/781109/ft1_filtered_4FGL_J2321.9+3204_daily_bin64.fits', '/scratch/kocevski/781109/ft2_4FGL_J2321.9+3204_daily_bin64.fits', expMap='/scratch/kocevski/781109/expmap_255916801_256176001_4FGL_J2321.9+3204_daily_bin64.fits', expCube='/scratch/kocevski/781109/ltcube_255916801_256176001_4FGL_J2321.9+3204_daily_bin64.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/781109/Model_4FGL_J2321.9+3204_daily_bin64.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/781109/ft1_filtered_4FGL_J2321.9+3204_daily_bin64.fits
Spacecraft file(s): /scratch/kocevski/781109/ft2_4FGL_J2321.9+3204_daily_bin64.fits
Exposure map: /scratch/kocevski/781109/expmap_255916801_256176001_4FGL_J2321.9+3204_daily_bin64.fits
Exposure cube: /scratch/kocevski/781109/ltcube_255916801_256176001_4FGL_J2321.9+3204_daily_bin64.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/781109/Model_4FGL_J2321.9+3204_daily_bin64.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) = 7126.38271993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.140       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4037       1.0000         .10000E-03   10000.    
     3 'norm      '    .30864       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8669       1.0000         .10000E-03   10000.    
     6 'norm      '    .71784       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.113       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2460       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .79163       1.0000         .10000E-03   10000.    
    11 'norm      '    .78049       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17654E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4041       1.0000         .10000E-03   10000.    
    16 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2651       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5226       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72233       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7126.379     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2774 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.134        18.135       -.57644E-07   -.22830E-04
   2  Prefactor     5.4035        5.6602       -.96658E-07   -.15937E-03
   3  norm          .30833        .99821       -.17875E-07   -.75714E-04
   4  Prefactor     .10000E-03    20.048        .23545E-08** at limit **
   5  Prefactor     6.8682        22.399       -.52716E-07    .25954E-03
   6  norm          .71692        4.7039       -.16894E-06   -.24266E-04
   7  Prefactor     20.112        17.267        .15540E-07   -.22404E-03
   8  Prefactor     6.0064        5.2709        .18810E-07   -.27960E-03
   9  Prefactor     4.2454        5.3005       -.19766E-06   -.19330E-03
  10  Prefactor     .62237        15.128       -.37798E-07   -.91226E-05
  11  norm          .78073        1.0964       -.55928E-08   -.47621E-04
  12  Prefactor     .10000E-03    5.5356        .81320E-09** at limit **
  13  Prefactor     .10000E-03    5.2826       -.83168E-08** at limit **
  14  Prefactor     .10000E-03    6.4377        .74444E-10** at limit **
  15  norm          5.4036        4.5758        .16510E-09   -.69360E-06
  16  norm          .10000E-03    9.6783       -.27100E-08** at limit **
  17  Prefactor     5.2658        16.516       -.38993E-07    .32645E-04
  18  norm          .10000E-03    1.6131       -.13642E-08** at limit **
  19  Prefactor     .10000E-03    7.0001       -.37772E-09** at limit **
  20  Prefactor     .10002E-03    36.252       -.11306E-06** at limit **
  21  Prefactor     .10001E-03    35.471        .96001E-07** at limit **
  22  Prefactor     .10000E-03    5.1367       -.11630E-09** at limit **
  23  Normalizat    1.5225        .20864        .42870E-07    .79215E-05
  24  Prefactor     .72242        .97708E-01    .26005E-07   -.83546E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.134
  Prefactor  = 5.4035
  norm       = 0.308333
  Prefactor  = 0.0001
  Prefactor  = 6.86824
  norm       = 0.716917
  Prefactor  = 20.1124
  Prefactor  = 6.00639
  Prefactor  = 4.24537
  Prefactor  = 0.622374
  norm       = 0.780732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.40362
  norm       = 0.0001
  Prefactor  = 5.26578
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Normalizat = 1.52246
  Prefactor  = 0.722424
 **********
 **   18 **HESSE 
 **********

 FCN=   7126.379     FROM HESSE     STATUS=OK           409 CALLS     3183 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.134        18.333        .53259E-03   -1.4956    
   2  Prefactor     5.4035        6.4210        .86435E-03   -1.5243    
   3  norm          .30833        1.1748        .13256E-02   -1.5597    
   4  Prefactor     .10000E-03    20.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8682        21.530        .15311E-03   -1.5184    
   6  norm          .71692        5.9917        .37847E-02   -1.5539    
   7  Prefactor     20.112        17.275        .89309E-04   -1.4811    
   8  Prefactor     6.0064        5.2464        .16381E-03   -1.5218    
   9  Prefactor     4.2454        7.6325        .97771E-03   -1.5296    
  10  Prefactor     .62237        296.79        .62420E-02   -1.5550    
  11  norm          .78073        .94728        .99576E-03   -1.5531    
  12  Prefactor     .10000E-03    5.5399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.670        .37208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4036        4.5455        .14921E-03   -1.5243    
  16  norm          .10000E-03    9.7801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2658        16.511        .17517E-03   -1.5249    
  18  norm          .10000E-03    1.6402        .10461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    36.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    35.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.1815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5225        .24554        .28124E-03   -.77149    
  24  Prefactor     .72242        .11614        .18427E-03   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57901e-07
Minuit parameter uncertainties:
  1  18.3404
  2  6.42184
  3  1.1749
  4  2.74762e-05
  5  21.5548
  6  4.14541
  7  17.2796
  8  5.24676
  9  7.6342
  10  27.3167
  11  0.947297
  12  5.04215e-06
  13  0.000277886
  14  1.99937e-06
  15  4.54575
  16  6.06342e-06
  17  16.5256
  18  3.16997e-07
  19  4.24703e-07
  20  0.00170669
  21  0.00141284
  22  6.70378e-06
  23  0.245738
  24  0.116184
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  5.404e+00  4.546e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  7.224e-01  1.162e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.522e+00  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.15
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.29e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.24e-05

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) = 7126.25830676
delta logL = 0.120831229337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7126.25087728
delta logL = 0.12826071274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8888       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6771       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71968       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7126.251     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8904        4.1971        .45480E-02    .32589E-03
   2  alpha         1.6756        .66629        .44399       -.83481E-04
   3  Normalizat    1.5369        .20299        .63352E-01   -.16279E-03
   4  Prefactor     .71953        .95612E-01    .42663E-01   -.65542E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.89043
  alpha      = 1.67558
  Normalizat = 1.53695
  Prefactor  = 0.719532
 **********
 **   18 **HESSE 
 **********

 FCN=   7126.251     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8904        4.4507        .14871E-03   -1.5266    
   2  alpha         1.6756        .82716        .22215E-01   -.33606    
   3  Normalizat    1.5369        .23608        .28020E-03   -.76745    
   4  Prefactor     .71953        .11161        .18462E-03   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46033e-10
Minuit parameter uncertainties:
  1  4.451
  2  0.845106
  3  0.236254
  4  0.111641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781109': 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) = 7126.25087398
delta logL = 0.128264006385

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  4.890e+00  4.451e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  1.676e+00  8.451e-01  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  7.195e-01  1.116e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.537e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.41
Ra Dec: 350.478 32.074
Photon Index (Free Index): 1.68 +/- 0.85
Photon Flux (Free Index): 1.92e-08 +/- 2.48e-08
Energy Flux (Free Index): 1.87e-05 +/- 2.03e-05

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/781109/cmap_HighResolution_255916801_256176001_4FGL_J2321.9+3204_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.29e-08', energy_flux2='1.87e-05', photon_flux_error='2.77e-08', dlogl='1.28e-01', energy_flux='1.48e-05', photon_flux2='1.92e-08', job_status='DONE', time_completed='2021-09-29 13:10:11.316846', photon_index_error2='0.85', photon_index2='1.68', ts='4.15', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='1.52', time_epoch_completed='1632946211.32', return_code='0', job_id='781109', GAL2='0.72', EG2='1.54', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='2.48e-08', ts2='4.41', photon_index='2.14' WHERE bin_id='64' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:10:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 781109: <4FGL_J2321.9+3204_daily_bin64> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin64> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:55:31 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:55: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:55:33 2021
Terminated at Wed Sep 29 13:10:12 2021
Results reported at Wed Sep 29 13:10:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin64 350.478 32.0737 255916801 256176001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2321.9+3204 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            881 sec.

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

