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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin991
RA = 350.478, Dec = 32.0737
tmin = 496195201, tmax = 496454401
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='786698', job_status='RUN', time_executed='2021-09-29 13:15:52.281366', time_epoch_executed='1632946552.28' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='991'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786698

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786698/ft1_4FGL_J2321.9+3204_daily_bin991.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786698/ft2_4FGL_J2321.9+3204_daily_bin991.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786698/ft1_4FGL_J2321.9+3204_daily_bin991.fits outfile=/scratch/kocevski/786698/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin991.fits ra=350.478 dec=32.0737 rad=12.0 tmin=496195201.0 tmax=496454401.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.49
user 3.29
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786698/ft1_filtered_4FGL_J2321.9+3204_daily_bin991.fits evtable="EVENTS" scfile=/scratch/kocevski/786698/ft2_4FGL_J2321.9+3204_daily_bin991.fits sctable="SC_DATA" expcube=/scratch/kocevski/786698/ltcube_496195201_496454401_4FGL_J2321.9+3204_daily_bin991.fits outfile=/scratch/kocevski/786698/expmap_496195201_496454401_4FGL_J2321.9+3204_daily_bin991.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/786698/ltcube_496195201_496454401_4FGL_J2321.9+3204_daily_bin991.fits
.....................!
real 192.42
user 186.89
sys 5.01

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/786698/ft1_filtered_4FGL_J2321.9+3204_daily_bin991.fits scfile=/scratch/kocevski/786698/ft2_4FGL_J2321.9+3204_daily_bin991.fits outfile=/scratch/kocevski/786698/cmap_496195201_496454401_4FGL_J2321.9+3204_daily_bin991.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786698/ft1_filtered_4FGL_J2321.9+3204_daily_bin991.fits scfile=/scratch/kocevski/786698/ft2_4FGL_J2321.9+3204_daily_bin991.fits outfile=/scratch/kocevski/786698/cmap_HighResolution_496195201_496454401_4FGL_J2321.9+3204_daily_bin991.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10611E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .68567E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    23.634       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11409E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .29766       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.769       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.958       1.0000         .10000E-03   10000.    
    15 'norm      '    .86211E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .39393       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.308       1.0000         .10000E-03   10000.    
    18 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4697       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19395E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .81258       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .67500       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1877       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=   8799.566     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2749 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.626       -.46141E-06** at limit **
   2  Prefactor     .10002E-03    7.7809       -.64724E-05** at limit **
   3  norm          .10000E-03    .25067       -.39058E-06** at limit **
   4  Prefactor     .10000E-03    15.578       -.52698E-06** at limit **
   5  Prefactor     .10000E-03    3.6489       -.23528E-06** at limit **
   6  norm          23.630        5.9400       -.13464E-06    .23101E-03
   7  Prefactor     .10000E-03    3.5096       -.11128E-06** at limit **
   8  Prefactor     .10000E-03    3.2759       -.42979E-06** at limit **
   9  Prefactor     .10000E-03    12.871       -.28890E-05** at limit **
  10  Prefactor     .10000E-03    28.624        .14014E-05** at limit **
  11  norm          .29785        .94527       -.19918E-06    .28937E-03
  12  Prefactor     .10000E-03    10.076       -.92019E-06** at limit **
  13  Prefactor     25.763        11.548        .36113E-07    .34384E-03
  14  Prefactor     24.956        25.832       -.25834E-06    .19097E-03
  15  norm          .10000E-03    3.4718       -.15197E-05** at limit **
  16  norm          .26778        8.1506        .35633E-05   -.26819E-03
  17  Prefactor     10.362        20.526        .73092E-06    .50087E-03
  18  norm          .10000E-03    1.5285       -.47330E-06** at limit **
  19  Prefactor     .10000E-03    6.8715        .56592E-06** at limit **
  20  Prefactor     1.3909        244.22        .15954E-04    .23986E-04
  21  Prefactor     .10000E-03    35.549       -.19964E-05** at limit **
  22  Prefactor     .81324        7.5675        .84586E-05   -.15475E-03
  23  Normalizat    .67491        .21994       -.26227E-05    .67918E-03
  24  Prefactor     1.1879        .10734        .28383E-05    .44820E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100024
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.6299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.297848
  Prefactor  = 0.0001
  Prefactor  = 25.7631
  Prefactor  = 24.9562
  norm       = 0.0001
  norm       = 0.267776
  Prefactor  = 10.3623
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.39085
  Prefactor  = 0.0001
  Prefactor  = 0.813241
  Normalizat = 0.674912
  Prefactor  = 1.18788
 **********
 **   18 **HESSE 
 **********

 FCN=   8799.566     FROM HESSE     STATUS=OK           397 CALLS     3146 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    28.408        .39883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .26238        .91794E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6507        .17502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          23.630        5.9362        .82395E-04   -1.4735    
   7  Prefactor     .10000E-03    3.5102        .17164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3104        .16580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .29785        1.2011        .15002E-02   -1.5599    
  12  Prefactor     .10000E-03    10.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.763        11.524        .78914E-04   -1.4692    
  14  Prefactor     24.956        25.822        .80183E-04   -1.4708    
  15  norm          .10000E-03    22.473        .28862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .26778        100.34        .45827E-02   -1.5604    
  17  Prefactor     10.362        17.915        .12480E-03   -1.5064    
  18  norm          .10000E-03    1.5687        .11339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3909        250.48        .35451E-02   -1.5472    
  21  Prefactor     .10000E-03    35.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .81324        8.5780        .24973E-02   -1.5528    
  23  Normalizat    .67491        .23212        .40683E-03   -1.0489    
  24  Prefactor     1.1879        .11301        .16123E-03   -.86705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26619e-09
Minuit parameter uncertainties:
  1  2.48659e-05
  2  0.00164634
  3  4.61944e-07
  4  4.77208e-05
  5  4.53647e-06
  6  5.93638
  7  4.24673e-06
  8  2.01727e-05
  9  8.78711e-05
  10  0.000113541
  11  1.19607
  12  4.79099e-05
  13  11.5249
  14  25.8337
  15  5.84556e-05
  16  10.3825
  17  17.9244
  18  2.33802e-05
  19  2.91539e-05
  20  37.4888
  21  0.00026574
  22  5.28305
  23  0.232457
  24  0.113028
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  5.846e-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:  1.188e+00  1.130e-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:  6.749e-01  2.325e-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: 7.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/786698/likelihoodResults_496195201_496454401_4FGL_J2321.9+3204_daily_bin991.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) = 8799.5657139
delta logL = -0.000211854581721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8799.56545921
delta logL = 4.28313269367e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26200E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2809       1.0000          .0000       5.0000    
     3 'Normalizat'    .67521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1877       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=   8799.038     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      307 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90979E-01    3.1133        .62945E-02   -.37524E-02
   2  alpha         5.0000        2.5965        .41353    ** at limit **
   3  Normalizat    .60731        .79459E-01    .96367E-01    .28219E-03
   4  Prefactor     1.2060        .36754E-01    .34927E-01    .14411E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0909791
  alpha      = 5
  Normalizat = 0.607311
  Prefactor  = 1.20603
 **********
 **   18 **HESSE 
 **********

 FCN=   8799.038     FROM HESSE     STATUS=OK            35 CALLS      342 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90979E-01    .11595        .28697E-03   -1.5648    
   2  alpha         5.0000        3.3790        .50000        1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .60731        .22065        .42706E-03   -1.0767    
   4  Prefactor     1.2060        .11003        .16008E-03   -.86146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6728e-09
Minuit parameter uncertainties:
  1  0.115954
  2  0.000181702
  3  0.220966
  4  0.110051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786698': 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) = 8799.03845376
delta logL = 0.52704828168

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  9.098e-02  1.160e-01  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  5.000e+00  1.817e-04  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.206e+00  1.101e-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:  6.073e-01  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 350.478 32.074
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.57e-08 +/- 7.06e-08
Energy Flux (Free Index): 7.66e-06 +/- 9.74e-06

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/786698/cmap_HighResolution_496195201_496454401_4FGL_J2321.9+3204_daily_bin991.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-05', comment='SUCCESS', energy_flux2='7.66e-06', dlogl='5.27e-01', photon_flux2='5.57e-08', job_status='DONE', time_completed='2021-09-29 13:30:09.627415', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='7.86e-08', energy_flux_error2='9.74e-06', EG='0.67', time_epoch_completed='1632947409.63', return_code='0', job_id='786698', GAL2='1.21', EG2='0.61', return_code2='0', photon_flux_error2='7.06e-08', ts2='1.14', photon_index='2.14' WHERE bin_id='991' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:30:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 786698: <4FGL_J2321.9+3204_daily_bin991> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin991> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 13:15:38 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:15:39 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:15:39 2021
Terminated at Wed Sep 29 13:30:10 2021
Results reported at Wed Sep 29 13:30:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin991 350.478 32.0737 496195201 496454401 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 :                                   847.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

