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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin10
RA = 350.478, Dec = 32.0737
tmin = 241920001, tmax = 242179201
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='781028', job_status='RUN', time_executed='2021-09-29 12:58:41.126877', time_epoch_executed='1632945521.13' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='10'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781028

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781028/ft1_4FGL_J2321.9+3204_daily_bin10.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781028/ft2_4FGL_J2321.9+3204_daily_bin10.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781028/ft1_4FGL_J2321.9+3204_daily_bin10.fits outfile=/scratch/kocevski/781028/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin10.fits ra=350.478 dec=32.0737 rad=12.0 tmin=241920001.0 tmax=242179201.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.43
user 1.22
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/781028/ft2_4FGL_J2321.9+3204_daily_bin10.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/781028/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin10.fits evtable="EVENTS" outfile="/scratch/kocevski/781028/ft1_filtered_4FGL_J2321.9+3204_daily_bin10.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/781028/ft1_filtered_4FGL_J2321.9+3204_daily_bin10.fits" evtable="EVENTS" scfile=/scratch/kocevski/781028/ft2_4FGL_J2321.9+3204_daily_bin10.fits sctable="SC_DATA" outfile=/scratch/kocevski/781028/ltcube_241920001_242179201_4FGL_J2321.9+3204_daily_bin10.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/781028/ft2_4FGL_J2321.9+3204_daily_bin10.fits
.....................!
real 12.93
user 12.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781028/ft1_filtered_4FGL_J2321.9+3204_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/781028/ft2_4FGL_J2321.9+3204_daily_bin10.fits sctable="SC_DATA" expcube=/scratch/kocevski/781028/ltcube_241920001_242179201_4FGL_J2321.9+3204_daily_bin10.fits outfile=/scratch/kocevski/781028/expmap_241920001_242179201_4FGL_J2321.9+3204_daily_bin10.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/781028/ltcube_241920001_242179201_4FGL_J2321.9+3204_daily_bin10.fits
.....................!
real 192.70
user 187.17
sys 5.14

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/781028/ft1_filtered_4FGL_J2321.9+3204_daily_bin10.fits scfile=/scratch/kocevski/781028/ft2_4FGL_J2321.9+3204_daily_bin10.fits outfile=/scratch/kocevski/781028/cmap_241920001_242179201_4FGL_J2321.9+3204_daily_bin10.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.478 yref=32.0737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781028/ft1_filtered_4FGL_J2321.9+3204_daily_bin10.fits scfile=/scratch/kocevski/781028/ft2_4FGL_J2321.9+3204_daily_bin10.fits outfile=/scratch/kocevski/781028/cmap_HighResolution_241920001_242179201_4FGL_J2321.9+3204_daily_bin10.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/781028/ft1_filtered_4FGL_J2321.9+3204_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/781028/ft2_4FGL_J2321.9+3204_daily_bin10.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/781028/Model_4FGL_J2321.9+3204_daily_bin10.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/781028/ft1_filtered_4FGL_J2321.9+3204_daily_bin10.fits.....................!
real 81.64
user 80.29
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.325       1.0000         .10000E-03   10000.    
     3 'norm      '    .92364       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6588       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1134       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64070       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.363       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.073       1.0000         .10000E-03   10000.    
    11 'norm      '    .95897       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10927E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5872       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.5085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10887E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0998       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2246       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81886       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=   7553.546     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2358 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6557       -.10995E-05** at limit **
   2  Prefactor     11.324        8.3175       -.15042E-07    .15929E-04
   3  norm          .92360        .69619        .15786E-08   -.13228E-04
   4  Prefactor     .10000E-03    20.886       -.12948E-05** at limit **
   5  Prefactor     .10000E-03    13.388        .27274E-06** at limit **
   6  norm          2.6596        3.9028        .15661E-06   -.87510E-06
   7  Prefactor     4.1142        18.070        .48313E-07   -.26185E-06
   8  Prefactor     .64524        3.6798       -.41384E-07   -.29803E-04
   9  Prefactor     12.363        10.381        .89125E-07   -.15878E-04
  10  Prefactor     17.081        18.429        .15616E-06    .22234E-04
  11  norm          .95886        .96751        .46459E-07    .98222E-05
  12  Prefactor     .10000E-03    34.044        .44614E-05** at limit **
  13  Prefactor     9.5927        12.173       -.23224E-06    .24687E-04
  14  Prefactor     .10000E-03    8.1074       -.18178E-06** at limit **
  15  norm          .10000E-03    1.6657        .41388E-07** at limit **
  16  norm          5.5118        10.574        .36473E-05   -.24425E-04
  17  Prefactor     .10000E-03    10.207        .70158E-06** at limit **
  18  norm          .10000E-03    1.6422       -.20416E-06** at limit **
  19  Prefactor     .10000E-03    8.9270       -.41296E-06** at limit **
  20  Prefactor     .10000E-03    48.858       -.32319E-05** at limit **
  21  Prefactor     5.0667        102.83       -.38029E-05   -.17929E-04
  22  Prefactor     .10000E-03    6.8759       -.24397E-05** at limit **
  23  Normalizat    1.2246        .19255       -.13923E-06    .41089E-04
  24  Prefactor     .81889        .93967E-01    .45787E-07    .80855E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.3241
  norm       = 0.923601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.65961
  Prefactor  = 4.11421
  Prefactor  = 0.645236
  Prefactor  = 12.3633
  Prefactor  = 17.0809
  norm       = 0.958855
  Prefactor  = 0.000100001
  Prefactor  = 9.59265
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.51175
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.06666
  Prefactor  = 0.0001
  Normalizat = 1.2246
  Prefactor  = 0.818888
 **********
 **   18 **HESSE 
 **********

 FCN=   7553.546     FROM HESSE     STATUS=OK           403 CALLS     2761 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.324        8.3360        .11905E-03   -1.5035    
   3  norm          .92360        .69732        .61147E-04   -1.5516    
   4  Prefactor     .10000E-03    20.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6596        3.8778        .18936E-03   -1.5382    
   7  Prefactor     4.1142        18.047        .19876E-03   -1.5302    
   8  Prefactor     .64524        14.613        .29750E-02   -1.5547    
   9  Prefactor     12.363        10.381        .11393E-03   -1.5005    
  10  Prefactor     17.081        18.422        .96932E-04   -1.4881    
  11  norm          .95886        .94931        .82777E-04   -1.5512    
  12  Prefactor     .10000E-03    35.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5927        12.008        .12942E-03   -1.5088    
  14  Prefactor     .10000E-03    8.1223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6748        .10952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5118        10.722        .85595E-03   -1.5238    
  17  Prefactor     .10000E-03    10.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3006        .21302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.9761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    49.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.0667        105.87        .17804E-03   -1.5258    
  22  Prefactor     .10000E-03    6.9117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2246        .22461        .30105E-03   -.85846    
  24  Prefactor     .81889        .11029        .17318E-03   -.99036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37526e-08
Minuit parameter uncertainties:
  1  1.32974e-05
  2  8.33689
  3  0.697324
  4  0.000134271
  5  1.33967e-05
  6  3.87812
  7  17.2423
  8  6.14254
  9  10.3825
  10  18.4284
  11  0.949324
  12  0.000412829
  13  12.0109
  14  1.57828e-05
  15  3.54461e-07
  16  10.7253
  17  3.71949e-05
  18  2.16376e-05
  19  2.48161e-05
  20  0.000446999
  21  46.4152
  22  9.21517e-05
  23  0.224788
  24  0.110316
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  3.545e-07  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.189e-01  1.103e-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.225e+00  2.248e-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: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781028/likelihoodResults_241920001_242179201_4FGL_J2321.9+3204_daily_bin10.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) = 7553.54839763
delta logL = -0.0028349782915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7553.54556265
delta logL = 1.3851604308e-09

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.1401       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81888       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=   7553.546     FROM MIGRAD    STATUS=FAILED        83 CALLS      224 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    3.1649        .10953E-02** at limit **
   2  alpha         2.1726        3.6644        .16681       -.29401E-05
   3  Normalizat    1.2246        .21835        .30105E-03    .15370E-04
   4  Prefactor     .81889        .10563        .17318E-03    .30198E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7553.546     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      351 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    3.1649        .14669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1726        3.6644        .76552E-03   -.13132    
   3  Normalizat    1.2246        .21835        .10018E-03   -.85846    
   4  Prefactor     .81889        .10563        .52591E-04   -.99036    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7553.546     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      381 TOTAL
                     EDM=   .50E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6796        .21906E-03** at limit **
   2  alpha         2.2126        3.8922        .66726E-02    .30668E-08
   3  Normalizat    1.2246        .21851        .12042E-04   -.17938E-04
   4  Prefactor     .81889        .10571        .69271E-05   -.30526E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.21259
  Normalizat = 1.2246
  Prefactor  = 0.818887
 **********
 **   18 **HESSE 
 **********

 FCN=   7553.546     FROM HESSE     STATUS=OK            23 CALLS      404 TOTAL
                     EDM=   .49E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6795        .43813E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2126        3.8927        .13345E-02   -.11522    
   3  Normalizat    1.2246        .21842        .24084E-05   -.85846    
   4  Prefactor     .81889        .10566        .13854E-05   -.99036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85801e-13
Minuit parameter uncertainties:
  1  4.57209e-07
  2  183.157
  3  0.218586
  4  0.105687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781028': 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) = 7553.54556257
delta logL = 8.18326952867e-08

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  4.572e-07  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.213e+00  1.832e+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.189e-01  1.057e-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.225e+00  2.186e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/781028/cmap_HighResolution_241920001_242179201_4FGL_J2321.9+3204_daily_bin10.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.13e-05', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-29 13:10:44.398305', job_id='781028', GAL2='0.82', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632946244.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='8.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='10' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:10:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 781028: <4FGL_J2321.9+3204_daily_bin10> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin10 350.478 32.0737 241920001 242179201 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 :                                   722.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

