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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1302
RA = 350.478, Dec = 32.0737
tmin = 576806401, tmax = 577065601
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='788226', job_status='RUN', time_executed='2021-09-29 13:24:26.032879', time_epoch_executed='1632947066.03' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788226/ft1_4FGL_J2321.9+3204_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788226/ft2_4FGL_J2321.9+3204_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788226/ft1_4FGL_J2321.9+3204_daily_bin1302.fits outfile=/scratch/kocevski/788226/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1302.fits ra=350.478 dec=32.0737 rad=12.0 tmin=576806401.0 tmax=577065601.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.14
user 2.89
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/788226/ft2_4FGL_J2321.9+3204_daily_bin1302.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/788226/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1302.fits evtable="EVENTS" outfile="/scratch/kocevski/788226/ft1_filtered_4FGL_J2321.9+3204_daily_bin1302.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788226/ft1_filtered_4FGL_J2321.9+3204_daily_bin1302.fits" evtable="EVENTS" scfile=/scratch/kocevski/788226/ft2_4FGL_J2321.9+3204_daily_bin1302.fits sctable="SC_DATA" outfile=/scratch/kocevski/788226/ltcube_576806401_577065601_4FGL_J2321.9+3204_daily_bin1302.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/788226/ft2_4FGL_J2321.9+3204_daily_bin1302.fits
.....................!
real 12.37
user 11.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788226/ft1_filtered_4FGL_J2321.9+3204_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/788226/ft2_4FGL_J2321.9+3204_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/788226/ltcube_576806401_577065601_4FGL_J2321.9+3204_daily_bin1302.fits outfile=/scratch/kocevski/788226/expmap_576806401_577065601_4FGL_J2321.9+3204_daily_bin1302.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/788226/ltcube_576806401_577065601_4FGL_J2321.9+3204_daily_bin1302.fits
.....................!
real 190.26
user 185.24
sys 4.55

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/788226/ft1_filtered_4FGL_J2321.9+3204_daily_bin1302.fits scfile=/scratch/kocevski/788226/ft2_4FGL_J2321.9+3204_daily_bin1302.fits outfile=/scratch/kocevski/788226/cmap_576806401_577065601_4FGL_J2321.9+3204_daily_bin1302.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788226/ft1_filtered_4FGL_J2321.9+3204_daily_bin1302.fits scfile=/scratch/kocevski/788226/ft2_4FGL_J2321.9+3204_daily_bin1302.fits outfile=/scratch/kocevski/788226/cmap_HighResolution_576806401_577065601_4FGL_J2321.9+3204_daily_bin1302.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788226/ft1_filtered_4FGL_J2321.9+3204_daily_bin1302.fits', '/scratch/kocevski/788226/ft2_4FGL_J2321.9+3204_daily_bin1302.fits', expMap='/scratch/kocevski/788226/expmap_576806401_577065601_4FGL_J2321.9+3204_daily_bin1302.fits', expCube='/scratch/kocevski/788226/ltcube_576806401_577065601_4FGL_J2321.9+3204_daily_bin1302.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788226/Model_4FGL_J2321.9+3204_daily_bin1302.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/788226/ft1_filtered_4FGL_J2321.9+3204_daily_bin1302.fits
Spacecraft file(s): /scratch/kocevski/788226/ft2_4FGL_J2321.9+3204_daily_bin1302.fits
Exposure map: /scratch/kocevski/788226/expmap_576806401_577065601_4FGL_J2321.9+3204_daily_bin1302.fits
Exposure cube: /scratch/kocevski/788226/ltcube_576806401_577065601_4FGL_J2321.9+3204_daily_bin1302.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788226/Model_4FGL_J2321.9+3204_daily_bin1302.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) = 6521.77577201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.2154       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3549       1.0000         .10000E-03   10000.    
     6 'norm      '    .92115E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9105       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.805       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11082E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.539       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.936       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4544       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21394E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0441       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3941       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87904       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=   6521.738     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     2855 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.262        .47242E-06** at limit **
   2  Prefactor     .10000E-03    16.985        .48179E-06** at limit **
   3  norm          4.2151        1.7041        .18079E-06    .70476E-03
   4  Prefactor     .10000E-03    17.914       -.95872E-06** at limit **
   5  Prefactor     1.3443        115.66       -.16178E-04   -.27954E-04
   6  norm          .10000E-03    1.6865       -.81510E-07** at limit **
   7  Prefactor     .10000E-03    4.9397        .11455E-07** at limit **
   8  Prefactor     5.9123        4.7918        .17041E-06   -.97513E-04
   9  Prefactor     16.814        13.907        .31488E-05   -.47235E-03
  10  Prefactor     .10000E-03    7.5947       -.15929E-06** at limit **
  11  norm          .10000E-03    .67765        .22371E-07** at limit **
  12  Prefactor     .10018E-03    28.502       -.23296E-05** at limit **
  13  Prefactor     12.528        14.160       -.28422E-05    .27338E-03
  14  Prefactor     .10000E-03    21.911        .88383E-06** at limit **
  15  norm          .10000E-03    4.0339        .81415E-07** at limit **
  16  norm          .10000E-03    5.7836       -.39955E-07** at limit **
  17  Prefactor     36.925        26.107       -.27280E-05    .28450E-03
  18  norm          1.4539        2.1469        .53412E-07   -.15055E-03
  19  Prefactor     .10000E-03    7.9615        .14634E-06** at limit **
  20  Prefactor     .10000E-03    36.012       -.14840E-05** at limit **
  21  Prefactor     .10000E-03    233.35        .10805E-04** at limit **
  22  Prefactor     2.0287        19.644       -.90945E-05   -.18691E-04
  23  Normalizat    1.3946        .26822        .29970E-05    .14216E-03
  24  Prefactor     .87905        .11288        .45972E-07    .38884E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.21508
  Prefactor  = 0.0001
  Prefactor  = 1.34426
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.91227
  Prefactor  = 16.8142
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100176
  Prefactor  = 12.5282
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 36.9251
  norm       = 1.45386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.0287
  Normalizat = 1.39462
  Prefactor  = 0.879048
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.738     FROM HESSE     STATUS=OK           411 CALLS     3266 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2151        1.6689        .58027E-04   -1.5297    
   4  Prefactor     .10000E-03    17.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3443        120.31        .37558E-03   -1.5476    
   6  norm          .10000E-03    2.5779        .38582E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9415        .17530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.9123        4.7891        .15386E-03   -1.5222    
   9  Prefactor     16.814        13.709        .97700E-04   -1.4888    
  10  Prefactor     .10000E-03    7.5965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.660        .12775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10018E-03    35.269        .11100       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.528        14.112        .11312E-03   -1.5000    
  14  Prefactor     .10000E-03    21.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0540        .15814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.7961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.925        26.059        .65945E-04   -1.4492    
  18  norm          1.4539        2.1158        .13849E-03   -1.5467    
  19  Prefactor     .10000E-03    7.9631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    236.00        .20167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.0287        21.218        .28920E-03   -1.5423    
  23  Normalizat    1.3946        .31737        .34458E-03   -.80784    
  24  Prefactor     .87905        .13384        .18675E-03   -.96877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09296e-10
Minuit parameter uncertainties:
  1  2.17644e-05
  2  5.36539e-05
  3  1.66893
  4  6.75993e-05
  5  25.4868
  6  2.79725e-05
  7  2.46296e-06
  8  4.78941
  9  13.7118
  10  8.07827e-06
  11  0.00020522
  12  0.00499155
  13  14.1161
  14  5.79577e-05
  15  2.46104e-05
  16  3.38378e-06
  17  26.0675
  18  2.11594
  19  6.43612e-06
  20  0.000139799
  21  0.00076332
  22  13.1273
  23  0.317819
  24  0.133887
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  2.461e-05  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:  8.790e-01  1.339e-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.395e+00  3.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 8.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/788226/likelihoodResults_576806401_577065601_4FGL_J2321.9+3204_daily_bin1302.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) = 6521.73880739
delta logL = -0.00117571674491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6521.73763169
delta logL = -2.2314452508e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1372       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87906       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6521.738     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      240 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    743.87        .15815E-02** at limit **
   2  alpha         2.1260        3.9280        .16685        .73070E-06
   3  Normalizat    1.3946        .13645        .34457E-03    .65987E-07
   4  Prefactor     .87905        .60749E-01    .18675E-03    .85226E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100011
  alpha      = 2.126
  Normalizat = 1.39462
  Prefactor  = 0.879047
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.738     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    4.0607        .31631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1260        3.8982        .66741E-02   -.15016    
   3  Normalizat    1.3946        .29527        .13783E-04   -.80784    
   4  Prefactor     .87905        .13153        .74701E-05   -.96877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47268e-09
Minuit parameter uncertainties:
  1  0.000424391
  2  212.565
  3  0.295632
  4  0.131579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788226': 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) = 6521.73763167
delta logL = 4.00450517191e-09

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  4.244e-04  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.126e+00  2.126e+02  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:  8.790e-01  1.316e-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.395e+00  2.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.478 32.074

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/788226/cmap_HighResolution_576806401_577065601_4FGL_J2321.9+3204_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', job_status='DONE', photon_flux_upper_limit='8.72e-08', time_completed='2021-09-29 13:36:21.862071', job_id='788226', GAL2='0.88', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632947781.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.00e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1302' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:36:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 788226: <4FGL_J2321.9+3204_daily_bin1302> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1302> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 13:21:03 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:21:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 13:21:05 2021
Terminated at Wed Sep 29 13:36:22 2021
Results reported at Wed Sep 29 13:36:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1302 350.478 32.0737 576806401 577065601 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 :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

