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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin66
RA = 350.478, Dec = 32.0737
tmin = 256435201, tmax = 256694401
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='781113', job_status='RUN', time_executed='2021-09-29 12:59:19.174566', time_epoch_executed='1632945559.17' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781113

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781113/ft1_4FGL_J2321.9+3204_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781113/ft2_4FGL_J2321.9+3204_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781113/ft1_4FGL_J2321.9+3204_daily_bin66.fits outfile=/scratch/kocevski/781113/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin66.fits ra=350.478 dec=32.0737 rad=12.0 tmin=256435201.0 tmax=256694401.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.45
user 1.28
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781113/ft1_filtered_4FGL_J2321.9+3204_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/781113/ft2_4FGL_J2321.9+3204_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/781113/ltcube_256435201_256694401_4FGL_J2321.9+3204_daily_bin66.fits outfile=/scratch/kocevski/781113/expmap_256435201_256694401_4FGL_J2321.9+3204_daily_bin66.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/781113/ltcube_256435201_256694401_4FGL_J2321.9+3204_daily_bin66.fits
.....................!
real 190.94
user 186.64
sys 3.95

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/781113/ft1_filtered_4FGL_J2321.9+3204_daily_bin66.fits scfile=/scratch/kocevski/781113/ft2_4FGL_J2321.9+3204_daily_bin66.fits outfile=/scratch/kocevski/781113/cmap_256435201_256694401_4FGL_J2321.9+3204_daily_bin66.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/781113/ft1_filtered_4FGL_J2321.9+3204_daily_bin66.fits scfile=/scratch/kocevski/781113/ft2_4FGL_J2321.9+3204_daily_bin66.fits outfile=/scratch/kocevski/781113/cmap_HighResolution_256435201_256694401_4FGL_J2321.9+3204_daily_bin66.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.202       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7854       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.446       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.467       1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.521       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.160       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6903       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.278       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6759       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3728       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .65402       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=   6184.872     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2632 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.200        19.650       -.83309E-06   -.20615E-05
   2  Prefactor     .10000E-03    3.1164       -.86548E-07** at limit **
   3  norm          3.7851        1.3981       -.39826E-07   -.29706E-04
   4  Prefactor     .10000E-03    25.809       -.15926E-04** at limit **
   5  Prefactor     .10000E-03    14.118        .80954E-06** at limit **
   6  norm          .10000E-03    1.2542        .45866E-07** at limit **
   7  Prefactor     14.446        13.554        .84812E-07    .29608E-04
   8  Prefactor     .10000E-03    2.0486        .89716E-08** at limit **
   9  Prefactor     .10000E-03    4.6830        .48960E-05** at limit **
  10  Prefactor     .10000E-03    10.746       -.76055E-05** at limit **
  11  norm          .10000E-03    .44945       -.10199E-07** at limit **
  12  Prefactor     .10000E-03    7.2533        .56657E-05** at limit **
  13  Prefactor     .10000E-03    4.8833       -.60541E-05** at limit **
  14  Prefactor     19.466        26.108       -.16499E-05   -.15076E-04
  15  norm          .10000E-03    1.6358        .15749E-06** at limit **
  16  norm          17.522        14.950       -.13378E-07    .19605E-04
  17  Prefactor     22.152        18.012       -.54171E-05   -.24319E-04
  18  norm          1.6909        2.1973       -.86905E-07   -.16164E-03
  19  Prefactor     .10000E-03    6.5063       -.13787E-05** at limit **
  20  Prefactor     .10000E-03    20.358        .17576E-04** at limit **
  21  Prefactor     27.275        52.592       -.65441E-05   -.15778E-05
  22  Prefactor     5.6752        6.3194        .59819E-06    .24279E-04
  23  Normalizat    1.3731        .21148        .18075E-05   -.98841E-04
  24  Prefactor     .65388        .98117E-01    .37633E-07    .81386E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 27.2002
  Prefactor  = 0.0001
  norm       = 3.7851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4656
  norm       = 0.0001
  norm       = 17.5215
  Prefactor  = 22.1515
  norm       = 1.69091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2745
  Prefactor  = 5.67518
  Normalizat = 1.37314
  Prefactor  = 0.653878
 **********
 **   18 **HESSE 
 **********

 FCN=   6184.872     FROM HESSE     STATUS=OK           393 CALLS     3025 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.200        19.654        .76812E-04   -1.4664    
   2  Prefactor     .10000E-03    3.1265        .13558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7851        1.3994        .54688E-04   -1.5319    
   4  Prefactor     .10000E-03    25.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2577        .86008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.446        13.558        .10538E-03   -1.4948    
   8  Prefactor     .10000E-03    2.0539        .10992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6899        .16612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .45722        .51457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.2608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.8976        .16966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.466        26.110        .90776E-04   -1.4825    
  15  norm          .10000E-03    1.6386        .98199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.522        14.951        .95684E-04   -1.4871    
  17  Prefactor     22.152        18.086        .85088E-04   -1.4766    
  18  norm          1.6909        2.1796        .12805E-03   -1.5448    
  19  Prefactor     .10000E-03    6.5084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.275        52.510        .76704E-04   -1.4663    
  22  Prefactor     5.6752        6.3071        .16861E-03   -1.5231    
  23  Normalizat    1.3731        .24711        .27933E-03   -.81409    
  24  Prefactor     .65388        .11460        .18304E-03   -1.0536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43076e-10
Minuit parameter uncertainties:
  1  19.6587
  2  2.85942e-06
  3  1.39943
  4  3.04618e-06
  5  1.05832e-05
  6  7.601e-07
  7  13.5611
  8  1.30934e-06
  9  6.52947e-06
  10  6.94663e-08
  11  1.36852e-06
  12  3.18781e-06
  13  2.29216e-06
  14  26.1252
  15  1.51315e-05
  16  14.9542
  17  18.0906
  18  2.17973
  19  1.32557e-06
  20  9.13307e-06
  21  52.5991
  22  6.30781
  23  0.247327
  24  0.114641
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  1.513e-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:  6.539e-01  1.146e-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.373e+00  2.473e-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: 5.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781113/likelihoodResults_256435201_256694401_4FGL_J2321.9+3204_daily_bin66.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) = 6184.87475712
delta logL = -0.00286154239529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6184.8718956
delta logL = -2.37523636315e-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.3731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65390       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6184.872     FROM MIGRAD    STATUS=FAILED        85 CALLS      228 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    2.9567        .98206E-03** at limit **
   2  alpha         2.1078        3.4541        .16685        .18222E-05
   3  Normalizat    1.3731        .23892        .27933E-03   -.69189E-05
   4  Prefactor     .65388        .11295        .18304E-03   -.11366E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6184.872     FROM SIMPLEX   STATUS=UNCHANGED    122 CALLS      350 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    2.9567        .21258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1078        3.4541        .39432E-03   -.15755    
   3  Normalizat    1.3731        .23892        .52097E-04   -.81409    
   4  Prefactor     .65388        .11295        .28247E-04   -1.0536    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6184.872     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      377 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6411        .19641E-03** at limit **
   2  alpha         2.0710        3.4130        .66741E-02   -.20339E-06
   3  Normalizat    1.3731        .23912        .11173E-04    .10989E-04
   4  Prefactor     .65388        .11304        .73215E-05    .15217E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.07101
  Normalizat = 1.37314
  Prefactor  = 0.653877
 **********
 **   18 **HESSE 
 **********

 FCN=   6184.872     FROM HESSE     STATUS=OK            23 CALLS      400 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6411        .39282E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0710        3.3458        .13348E-02   -.17245    
   3  Normalizat    1.3731        .23930        .22347E-05   -.81409    
   4  Prefactor     .65388        .11312        .14643E-05   -1.0536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51504e-10
Minuit parameter uncertainties:
  1  7.72127e-05
  2  209.791
  3  0.239497
  4  0.11316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781113': 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) = 6184.87189553
delta logL = 4.46743797511e-08

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  7.721e-05  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.071e+00  2.098e+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:  6.539e-01  1.132e-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.373e+00  2.395e-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/781113/cmap_HighResolution_256435201_256694401_4FGL_J2321.9+3204_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-09-29 13:10:20.527765', job_id='781113', GAL2='0.65', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1632946220.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='4.47e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='66' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:10:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 781113: <4FGL_J2321.9+3204_daily_bin66> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin66 350.478 32.0737 256435201 256694401 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 :                                   661.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            889 sec.

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

