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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin501
RA = 350.478, Dec = 32.0737
tmin = 369187201, tmax = 369446401
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='783807', job_status='RUN', time_executed='2021-09-29 13:05:34.743033', time_epoch_executed='1632945934.74' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/783807

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/783807/ft1_4FGL_J2321.9+3204_daily_bin501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/783807/ft2_4FGL_J2321.9+3204_daily_bin501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/783807/ft1_4FGL_J2321.9+3204_daily_bin501.fits outfile=/scratch/kocevski/783807/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin501.fits ra=350.478 dec=32.0737 rad=12.0 tmin=369187201.0 tmax=369446401.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.44
user 3.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/783807/ft2_4FGL_J2321.9+3204_daily_bin501.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/783807/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin501.fits evtable="EVENTS" outfile="/scratch/kocevski/783807/ft1_filtered_4FGL_J2321.9+3204_daily_bin501.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/783807/ft1_filtered_4FGL_J2321.9+3204_daily_bin501.fits" evtable="EVENTS" scfile=/scratch/kocevski/783807/ft2_4FGL_J2321.9+3204_daily_bin501.fits sctable="SC_DATA" outfile=/scratch/kocevski/783807/ltcube_369187201_369446401_4FGL_J2321.9+3204_daily_bin501.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/783807/ft2_4FGL_J2321.9+3204_daily_bin501.fits
.....................!
real 12.22
user 11.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/783807/ft1_filtered_4FGL_J2321.9+3204_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/783807/ft2_4FGL_J2321.9+3204_daily_bin501.fits sctable="SC_DATA" expcube=/scratch/kocevski/783807/ltcube_369187201_369446401_4FGL_J2321.9+3204_daily_bin501.fits outfile=/scratch/kocevski/783807/expmap_369187201_369446401_4FGL_J2321.9+3204_daily_bin501.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/783807/ltcube_369187201_369446401_4FGL_J2321.9+3204_daily_bin501.fits
.....................!
real 192.45
user 187.24
sys 4.88

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/783807/ft1_filtered_4FGL_J2321.9+3204_daily_bin501.fits scfile=/scratch/kocevski/783807/ft2_4FGL_J2321.9+3204_daily_bin501.fits outfile=/scratch/kocevski/783807/cmap_369187201_369446401_4FGL_J2321.9+3204_daily_bin501.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/783807/ft1_filtered_4FGL_J2321.9+3204_daily_bin501.fits scfile=/scratch/kocevski/783807/ft2_4FGL_J2321.9+3204_daily_bin501.fits outfile=/scratch/kocevski/783807/cmap_HighResolution_369187201_369446401_4FGL_J2321.9+3204_daily_bin501.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/783807/ft1_filtered_4FGL_J2321.9+3204_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/783807/ft2_4FGL_J2321.9+3204_daily_bin501.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/783807/Model_4FGL_J2321.9+3204_daily_bin501.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/783807/ft1_filtered_4FGL_J2321.9+3204_daily_bin501.fits.....................!
real 95.14
user 93.80
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    57.837       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0160       1.0000         .10000E-03   10000.    
     4 'Prefactor '    65.085       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4650       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .44756E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5308       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31049E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.1782       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2460       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3165       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9706       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93786       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94922       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=   8466.483     FROM MIGRAD    STATUS=CONVERGED   1000 CALLS     3607 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          57.818        32.140        .52751E-04   -.34051E-04
   2  Prefactor     .10000E-03    4.1102        .18142E-02** at limit **
   3  norm          1.0165        .90775        .81811E-04    .90325E-04
   4  Prefactor     65.090        56.913        .49745E-04    .56677E-05
   5  Prefactor     .10000E-03    39.124        .18142E-02** at limit **
   6  norm          .10000E-03    1.1291        .95338E-03** at limit **
   7  Prefactor     .10000E-03    12.298        .18142E-02** at limit **
   8  Prefactor     3.1099        5.3743        .22985E-03    .58167E-04
   9  Prefactor     .10000E-03    11.729        .18142E-02** at limit **
  10  Prefactor     .10000E-03    9.8101        .18142E-02** at limit **
  11  norm          3.4645        1.7896        .83046E-04   -.34279E-03
  12  Prefactor     .10000E-03    26.891        .18142E-02** at limit **
  13  Prefactor     .14937        17.273        .73050E-01    .20516E-03
  14  Prefactor     .10000E-03    16.463        .18142E-02** at limit **
  15  norm          4.5279        7.2456        .18913E-03   -.53954E-03
  16  norm          .10000E-03    5.3762        .18142E-02** at limit **
  17  Prefactor     .10007E-03    25.562        .91115E-01** at limit **
  18  norm          9.1696        4.0168        .56070E-03    .46014E-03
  19  Prefactor     7.2460        8.7209        .14901E-03   -.15259E-04
  20  Prefactor     3.3133        26.212        .22228E-03   -.40916E-05
  21  Prefactor     .10000E-03    41.498        .18142E-02** at limit **
  22  Prefactor     1.9861        20.096        .14769E-02    .42045E-04
  23  Normalizat    .93780        .23828        .36383E-03    .28685E-04
  24  Prefactor     .94914        .11254        .17096E-03   -.69450E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 57.8181
  Prefactor  = 0.0001
  norm       = 1.01646
  Prefactor  = 65.0901
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.10995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.46447
  Prefactor  = 0.000100001
  Prefactor  = 0.149374
  Prefactor  = 0.0001
  norm       = 4.52786
  norm       = 0.0001
  Prefactor  = 0.000100075
  norm       = 9.16957
  Prefactor  = 7.24603
  Prefactor  = 3.31325
  Prefactor  = 0.0001
  Prefactor  = 1.98613
  Normalizat = 0.937803
  Prefactor  = 0.949143
 **********
 **   18 **HESSE 
 **********

 FCN=   8466.483     FROM HESSE     STATUS=OK           395 CALLS     4002 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          57.818        31.879        .21100E-05   -1.4186    
   2  Prefactor     .10000E-03    4.1112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0165        .90768        .32725E-05   -1.5506    
   4  Prefactor     65.090        56.913        .99490E-05   -1.4093    
   5  Prefactor     .10000E-03    39.141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1291        .19068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1099        5.3735        .91939E-05   -1.5355    
   9  Prefactor     .10000E-03    11.733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4645        1.7895        .33218E-05   -1.5336    
  12  Prefactor     .10000E-03    26.896        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14937        13.456        .84468E-01   -1.5631    
  14  Prefactor     .10000E-03    16.466        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5279        7.2047        .75653E-05   -1.5282    
  16  norm          .10000E-03    5.3769        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10007E-03    23.302        .96162E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.1696        4.0049        .22428E-04   -1.5102    
  19  Prefactor     7.2460        8.7210        .59603E-05   -1.5170    
  20  Prefactor     3.3133        26.210        .88914E-05   -1.5344    
  21  Prefactor     .10000E-03    41.498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.9861        19.711        .59075E-04   -1.5426    
  23  Normalizat    .93780        .23837        .14553E-04   -.95144    
  24  Prefactor     .94914        .11260        .34193E-04   -.94444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25949e-09
Minuit parameter uncertainties:
  1  31.8888
  2  2.27039e-05
  3  0.907693
  4  56.9611
  5  0.000224735
  6  3.02502e-06
  7  3.11903e-05
  8  5.37432
  9  8.2142e-05
  10  1.13064e-05
  11  1.78954
  12  0.000242252
  13  2.83515
  14  2.85709e-05
  15  7.20607
  16  3.66166e-05
  17  0.00263697
  18  4.00503
  19  8.72253
  20  18.6485
  21  9.16366e-05
  22  12.5188
  23  0.238641
  24  0.112629
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  4.528e+00  7.206e+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:  9.491e-01  1.126e-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:  9.378e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/783807/likelihoodResults_369187201_369446401_4FGL_J2321.9+3204_daily_bin501.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8466.07118477
delta logL = 0.411590912945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8466.06018455
delta logL = 0.422591127202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37291       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4097       1.0000          .0000       5.0000    
     3 'Normalizat'    .85771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97827       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=   8466.060     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      316 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37250        5.5837        .10687E-01    .21233E-02
   2  alpha         4.4105        4.4502        .50000        .65974E-04
   3  Normalizat    .85763        .50042E-01    .85515E-01    .33101E-04
   4  Prefactor     .97830        .23813E-01    .45995E-01    .12403E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.3725
  alpha      = 4.41048
  Normalizat = 0.857629
  Prefactor  = 0.978297
 **********
 **   18 **HESSE 
 **********

 FCN=   8466.060     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      351 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37250        13.840        .49227E-03   -1.5586    
   2  alpha         4.4105        3.1858        .32205E-01    .86979    
   3  Normalizat    .85763        .16905        .37868E-03   -.97965    
   4  Prefactor     .97830        .80614E-01    .16865E-03   -.93456    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.36631e-07
Minuit parameter uncertainties:
  1  4.54165
  2  6.81855
  3  0.16915
  4  0.0806237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/783807': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8466.06018439
delta logL = 0.422591295215

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  3.725e-01  4.542e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  4.410e+00  6.819e+00  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:  9.783e-01  8.062e-02  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:  8.576e-01  1.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 350.478 32.074
Photon Index (Free Index): 4.41 +/- 6.82
Photon Flux (Free Index): 7.85e-08 +/- 6.53e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.54e-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/783807/cmap_HighResolution_369187201_369446401_4FGL_J2321.9+3204_daily_bin501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-05', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='4.23e-01', photon_flux2='7.85e-08', job_status='DONE', time_completed='2021-09-29 13:20:17.465445', photon_index_error2='6.82', photon_index2='4.41', ts='0.70', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.54e-05', EG='0.94', time_epoch_completed='1632946817.47', return_code='0', job_id='783807', GAL2='0.98', EG2='0.86', return_code2='102', photon_flux_error2='6.53e-08', ts2='1.65', photon_index='2.14' WHERE bin_id='501' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:20:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 783807: <4FGL_J2321.9+3204_daily_bin501> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin501> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 13:05:23 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:05:24 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:05:24 2021
Terminated at Wed Sep 29 13:20:18 2021
Results reported at Wed Sep 29 13:20:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin501 350.478 32.0737 369187201 369446401 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 :                                   876.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

