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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1625
RA = 350.478, Dec = 32.0737
tmin = 660528001, tmax = 660787201
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='107431', job_status='RUN', time_executed='2021-12-10 00:43:38.554641', time_epoch_executed='1639125818.55' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107431

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107431/ft1_4FGL_J2321.9+3204_daily_bin1625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107431/ft2_4FGL_J2321.9+3204_daily_bin1625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107431/ft1_4FGL_J2321.9+3204_daily_bin1625.fits outfile=/scratch/kocevski/107431/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1625.fits ra=350.478 dec=32.0737 rad=12.0 tmin=660528001.0 tmax=660787201.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.71
user 3.48
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107431/ft2_4FGL_J2321.9+3204_daily_bin1625.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/107431/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1625.fits evtable="EVENTS" outfile="/scratch/kocevski/107431/ft1_filtered_4FGL_J2321.9+3204_daily_bin1625.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.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107431/ft1_filtered_4FGL_J2321.9+3204_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/107431/ft2_4FGL_J2321.9+3204_daily_bin1625.fits sctable="SC_DATA" expcube=/scratch/kocevski/107431/ltcube_660528001_660787201_4FGL_J2321.9+3204_daily_bin1625.fits outfile=/scratch/kocevski/107431/expmap_660528001_660787201_4FGL_J2321.9+3204_daily_bin1625.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/107431/ltcube_660528001_660787201_4FGL_J2321.9+3204_daily_bin1625.fits
.....................!
real 189.81
user 185.05
sys 4.40

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/107431/ft1_filtered_4FGL_J2321.9+3204_daily_bin1625.fits scfile=/scratch/kocevski/107431/ft2_4FGL_J2321.9+3204_daily_bin1625.fits outfile=/scratch/kocevski/107431/cmap_660528001_660787201_4FGL_J2321.9+3204_daily_bin1625.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/107431/ft1_filtered_4FGL_J2321.9+3204_daily_bin1625.fits scfile=/scratch/kocevski/107431/ft2_4FGL_J2321.9+3204_daily_bin1625.fits outfile=/scratch/kocevski/107431/cmap_HighResolution_660528001_660787201_4FGL_J2321.9+3204_daily_bin1625.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10457E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3029       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6564       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0620       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5066       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.128       1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.662       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.428       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.068       1.0000         .10000E-03   10000.    
    15 'norm      '    6.3098       1.0000         .10000E-03   10000.    
    16 'norm      '    7.1385       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11959E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .17337       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.584       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.5589       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .58410       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1545       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=   9429.604     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2339 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.8916       -.84783E-06** at limit **
   2  Prefactor     5.3019        6.6769        .51731E-05   -.57244E-03
   3  norm          5.6563        1.5125        .49483E-07    .11817E-04
   4  Prefactor     .10000E-03    19.365        .39051E-06** at limit **
   5  Prefactor     5.0591        15.142        .49751E-06   -.19205E-04
   6  norm          .10000E-03    1.1833       -.36069E-07** at limit **
   7  Prefactor     .10000E-03    5.5641       -.13806E-06** at limit **
   8  Prefactor     7.5058        5.8792        .16314E-05   -.30428E-03
   9  Prefactor     .10000E-03    4.2889        .47896E-07** at limit **
  10  Prefactor     26.126        20.680       -.22321E-07   -.44793E-04
  11  norm          .10000E-03    .35565        .17185E-06** at limit **
  12  Prefactor     18.662        21.021        .66076E-06   -.35526E-06
  13  Prefactor     22.425        12.228        .34525E-07   -.31998E-04
  14  Prefactor     21.070        16.469        .17342E-06    .32059E-04
  15  norm          6.3144        4.1034        .78647E-07   -.20198E-03
  16  norm          7.1382        6.6715       -.42833E-06    .74904E-04
  17  Prefactor     .10000E-03    21.821        .24143E-07** at limit **
  18  norm          .16785        1.0696        .41444E-07    .10462E-03
  19  Prefactor     .10000E-03    4.6742        .14058E-06** at limit **
  20  Prefactor     .10000E-03    11.900       -.29828E-06** at limit **
  21  Prefactor     23.520        38.346       -.69248E-05   -.60446E-03
  22  Prefactor     5.5581        5.8503        .37659E-05   -.47925E-03
  23  Normalizat    .58406        .20334       -.38582E-05   -.56411E-04
  24  Prefactor     1.1546        .10126        .33070E-06   -.16637E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.30192
  norm       = 5.65633
  Prefactor  = 0.0001
  Prefactor  = 5.05914
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.50583
  Prefactor  = 0.0001
  Prefactor  = 26.1256
  norm       = 0.0001
  Prefactor  = 18.6619
  Prefactor  = 22.4249
  Prefactor  = 21.0704
  norm       = 6.31439
  norm       = 7.13822
  Prefactor  = 0.0001
  norm       = 0.167847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5202
  Prefactor  = 5.55809
  Normalizat = 0.584055
  Prefactor  = 1.15459
 **********
 **   18 **HESSE 
 **********

 FCN=   9429.604     FROM HESSE     STATUS=OK           399 CALLS     2738 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3019        6.6892        .87267E-03   -1.5247    
   3  norm          5.6563        1.5110        .58183E-04   -1.5232    
   4  Prefactor     .10000E-03    19.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0591        15.128        .17872E-03   -1.5258    
   6  norm          .10000E-03    1.1882        .10312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.5058        5.8932        .73189E-03   -1.5160    
   9  Prefactor     .10000E-03    4.3006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.126        20.682        .78371E-04   -1.4685    
  11  norm          .10000E-03    .51595        .11208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.662        20.998        .92713E-04   -1.4844    
  13  Prefactor     22.425        12.131        .84578E-04   -1.4761    
  14  Prefactor     21.070        16.465        .87262E-04   -1.4790    
  15  norm          6.3144        4.0880        .15288E-03   -1.5205    
  16  norm          7.1382        6.6722        .75068E-03   -1.5174    
  17  Prefactor     .10000E-03    22.422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .16785        6.9121        .18945E-02   -1.5626    
  19  Prefactor     .10000E-03    4.6777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.520        39.429        .82483E-04   -1.4738    
  22  Prefactor     5.5581        5.8511        .85199E-03   -1.5236    
  23  Normalizat    .58406        .21907        .43597E-03   -1.0867    
  24  Prefactor     1.1546        .11167        .16207E-03   -.87740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74673e-09
Minuit parameter uncertainties:
  1  6.19753e-05
  2  6.69017
  3  1.51101
  4  0.00015272
  5  15.1393
  6  3.27483e-06
  7  3.86457e-05
  8  5.89369
  9  8.90256e-06
  10  20.6876
  11  1.56323e-06
  12  21.0067
  13  12.132
  14  16.4688
  15  4.08818
  16  6.67288
  17  5.28314e-05
  18  2.15385
  19  3.45403e-05
  20  0.000101958
  21  39.4726
  22  5.85173
  23  0.219395
  24  0.111697
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.314e+00  4.088e+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:  1.155e+00  1.117e-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:  5.841e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.12
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.84e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.12e-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) = 9429.55739677
delta logL = 0.0469472799468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9429.5562427
delta logL = 0.0481013451208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3908       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3949       1.0000          .0000       5.0000    
     3 'Normalizat'    .57315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1584       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=   9429.556     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      262 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3928        68.276        .43270E-02    .26345E-03
   2  alpha         2.3956        3.5636        .41198        .55501E-04
   3  Normalizat    .57358        .90129E-01    .99222E-01    .41856E-04
   4  Prefactor     1.1581        .34114E-01    .35698E-01   -.13491E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.39278
  alpha      = 2.39555
  Normalizat = 0.573578
  Prefactor  = 1.15808
 **********
 **   18 **HESSE 
 **********

 FCN=   9429.556     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3928        5.3283        .13910E-03   -1.5243    
   2  alpha         2.3956        .90989        .16703E-01   -.41792E-01
   3  Normalizat    .57358        .21573        .43975E-03   -1.0912    
   4  Prefactor     1.1581        .10951        .16186E-03   -.87631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12692e-09
Minuit parameter uncertainties:
  1  5.32882
  2  0.93132
  3  0.216044
  4  0.109533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107431': 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) = 9429.55623662
delta logL = 0.0481074240979

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  5.393e+00  5.329e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.396e+00  9.313e-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:  1.158e+00  1.095e-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:  5.736e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.40 +/- 0.93
Photon Flux (Free Index): 4.50e-08 +/- 3.52e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.19e-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/107431/cmap_HighResolution_660528001_660787201_4FGL_J2321.9+3204_daily_bin1625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.84e-08', energy_flux2='1.51e-05', photon_flux_error='2.49e-08', dlogl='4.81e-02', energy_flux='1.73e-05', photon_flux2='4.50e-08', job_status='DONE', time_completed='2021-12-10 00:55:37.559081', photon_index_error2='0.93', photon_index2='2.40', ts='4.12', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='0.58', time_epoch_completed='1639126537.56', return_code='0', job_id='107431', GAL2='1.16', EG2='0.57', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.52e-08', ts2='4.21', photon_index='2.14' WHERE bin_id='1625' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 10 00:55:37 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 107431: <4FGL_J2321.9+3204_daily_bin1625> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1625> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 10 00:40:34 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 10 00:40:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 10 00:40:36 2021
Terminated at Fri Dec 10 00:55:38 2021
Results reported at Fri Dec 10 00:55:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1625 350.478 32.0737 660528001 660787201 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 :                                   721.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

