/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 2 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2321.9+3204_daily_bin405
RA = 350.478, Dec = 32.0737
tmin = 344304001, tmax = 344563201
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='782655', job_status='RUN', time_executed='2021-09-29 13:00:57.551921', time_epoch_executed='1632945657.55' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782655/ft1_4FGL_J2321.9+3204_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782655/ft2_4FGL_J2321.9+3204_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782655/ft1_4FGL_J2321.9+3204_daily_bin405.fits outfile=/scratch/kocevski/782655/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin405.fits ra=350.478 dec=32.0737 rad=12.0 tmin=344304001.0 tmax=344563201.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.41
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782655/ft1_filtered_4FGL_J2321.9+3204_daily_bin405.fits" evtable="EVENTS" scfile=/scratch/kocevski/782655/ft2_4FGL_J2321.9+3204_daily_bin405.fits sctable="SC_DATA" outfile=/scratch/kocevski/782655/ltcube_344304001_344563201_4FGL_J2321.9+3204_daily_bin405.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/782655/ft2_4FGL_J2321.9+3204_daily_bin405.fits
.....................!
real 11.61
user 11.28
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782655/ft1_filtered_4FGL_J2321.9+3204_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/782655/ft2_4FGL_J2321.9+3204_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/782655/ltcube_344304001_344563201_4FGL_J2321.9+3204_daily_bin405.fits outfile=/scratch/kocevski/782655/expmap_344304001_344563201_4FGL_J2321.9+3204_daily_bin405.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/782655/ltcube_344304001_344563201_4FGL_J2321.9+3204_daily_bin405.fits
.....................!
real 189.06
user 184.83
sys 3.85

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/782655/ft1_filtered_4FGL_J2321.9+3204_daily_bin405.fits scfile=/scratch/kocevski/782655/ft2_4FGL_J2321.9+3204_daily_bin405.fits outfile=/scratch/kocevski/782655/cmap_344304001_344563201_4FGL_J2321.9+3204_daily_bin405.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/782655/ft1_filtered_4FGL_J2321.9+3204_daily_bin405.fits scfile=/scratch/kocevski/782655/ft2_4FGL_J2321.9+3204_daily_bin405.fits outfile=/scratch/kocevski/782655/cmap_HighResolution_344304001_344563201_4FGL_J2321.9+3204_daily_bin405.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.071       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .17374E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.986       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18092       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7384       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.435       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.726       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5950       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.004       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6988       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8483       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.387       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87497       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0151       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=   8451.178     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2746 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.071        15.840        .13490E-06    .36211E-04
   2  Prefactor     .10000E-03    1.9204       -.94919E-08** at limit **
   3  norm          .10000E-03    .46716        .71476E-07** at limit **
   4  Prefactor     41.967        74.798       -.69494E-05   -.14622E-03
   5  Prefactor     .23277        11.787       -.79068E-06    .11835E-03
   6  norm          .10000E-03    2.0183        .75295E-08** at limit **
   7  Prefactor     .10000E-03    5.5377        .27744E-07** at limit **
   8  Prefactor     6.7383        5.4507        .44291E-06    .32849E-03
   9  Prefactor     12.435        9.1182        .69471E-07    .27101E-04
  10  Prefactor     16.714        26.253        .37972E-07    .30168E-04
  11  norm          1.5952        1.0905       -.59571E-07   -.10204E-03
  12  Prefactor     17.009        21.283       -.47575E-06   -.60386E-04
  13  Prefactor     6.0675        10.435        .31159E-05   -.63045E-03
  14  Prefactor     .10000E-03    27.846        .12825E-06** at limit **
  15  norm          1.6944        3.9404        .65142E-06   -.26780E-03
  16  norm          .10000E-03    3.8004       -.28753E-07** at limit **
  17  Prefactor     .10000E-03    19.145       -.20117E-06** at limit **
  18  norm          .10000E-03    .82097       -.75401E-07** at limit **
  19  Prefactor     8.8495        10.963        .70215E-07    .37404E-06
  20  Prefactor     26.352        30.756       -.33805E-05   -.27516E-03
  21  Prefactor     .10000E-03    23.009       -.80884E-07** at limit **
  22  Prefactor     .10000E-03    2.6901       -.13604E-07** at limit **
  23  Normalizat    .87473        .18897        .42679E-06   -.26111E-04
  24  Prefactor     1.0152        .92578E-01   -.31737E-06    .79218E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.071
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.9674
  Prefactor  = 0.232775
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.73835
  Prefactor  = 12.4353
  Prefactor  = 16.7143
  norm       = 1.59525
  Prefactor  = 17.0086
  Prefactor  = 6.06746
  Prefactor  = 0.0001
  norm       = 1.69436
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.84948
  Prefactor  = 26.3516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.874734
  Prefactor  = 1.01525
 **********
 **   18 **HESSE 
 **********

 FCN=   8451.178     FROM HESSE     STATUS=OK           403 CALLS     3149 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.071        15.834        .74307E-04   -1.4629    
   2  Prefactor     .10000E-03    1.9315        .12440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6859        .11934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.967        78.243        .61866E-04   -1.4411    
   5  Prefactor     .23277        11.011        .10147       -1.5611    
   6  norm          .10000E-03    2.0373        .12747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7383        5.4891        .15457E-03   -1.5189    
   9  Prefactor     12.435        9.1196        .11360E-03   -1.5003    
  10  Prefactor     16.714        26.297        .97931E-04   -1.4890    
  11  norm          1.5952        1.0903        .33585E-04   -1.5455    
  12  Prefactor     17.009        21.380        .97128E-04   -1.4883    
  13  Prefactor     6.0675        11.887        .81505E-03   -1.5215    
  14  Prefactor     .10000E-03    28.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6944        3.9530        .26906E-03   -1.5448    
  16  norm          .10000E-03    3.8388        .17502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .82849        .81368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.8495        10.962        .13475E-03   -1.5113    
  20  Prefactor     26.352        32.154        .77986E-04   -1.4681    
  21  Prefactor     .10000E-03    23.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.7042        .14718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .87473        .21552        .34857E-03   -.97354    
  24  Prefactor     1.0152        .10633        .16398E-03   -.92223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49201e-09
Minuit parameter uncertainties:
  1  15.8363
  2  1.0894e-06
  3  2.23706e-05
  4  78.4353
  5  3.20184
  6  3.94173e-06
  7  1.43465e-06
  8  5.48947
  9  9.12061
  10  26.3148
  11  1.09032
  12  21.3897
  13  11.8917
  14  1.27155e-05
  15  3.95365
  16  3.19716e-06
  17  3.49067e-05
  18  3.02758e-06
  19  10.9641
  20  32.1749
  21  1.77335e-05
  22  2.761e-06
  23  0.215736
  24  0.106349
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.694e+00  3.954e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.015e+00  1.063e-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:  8.747e-01  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 6.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782655/likelihoodResults_344304001_344563201_4FGL_J2321.9+3204_daily_bin405.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) = 8451.14324117
delta logL = 0.0351819031857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8451.14267356
delta logL = 0.0357495091284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6097       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4773       1.0000          .0000       5.0000    
     3 'Normalizat'    .87051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0159       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8451.143     FROM MIGRAD    STATUS=FAILED        92 CALLS      251 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6097        152.19        .11292E-02   -.16715E-02
   2  alpha         2.4775        2.7956        .50000       -.62825E-05
   3  Normalizat    .87049        .60039E-01    .34933E-03   -.40472E-03
   4  Prefactor     1.0159        .27908E-01    .16392E-03   -.11262E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8451.143     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      329 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6097        152.19        .25627E-03   -.16715E-02
   2  alpha         2.4775        2.7956        .23841E-02   -.62825E-05
   3  Normalizat    .87049        .60039E-01    .12107E-03   -.40472E-03
   4  Prefactor     1.0159        .27908E-01    .32690E-04   -.11262E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8451.143     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      363 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6098        3.8312        .45167E-04   -.78331E-03
   2  alpha         2.4775        1.3204        .30605E-01   -.53571E-04
   3  Normalizat    .87049        .20604        .13973E-04   -.32252E-03
   4  Prefactor     1.0159        .10423        .32785E-04   -.91699E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60983
  alpha      = 2.4775
  Normalizat = 0.870493
  Prefactor  = 1.01591
 **********
 **   18 **HESSE 
 **********

 FCN=   8451.143     FROM HESSE     STATUS=OK            25 CALLS      388 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6098        3.5865        .18067E-05   -1.5454    
   2  alpha         2.4775        1.2443        .12242E-02   -.90003E-02
   3  Normalizat    .87049        .20582        .27946E-05   -.97505    
   4  Prefactor     1.0159        .10411        .65570E-05   -.92201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0157e-09
Minuit parameter uncertainties:
  1  3.58699
  2  1.30242
  3  0.206001
  4  0.104131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782655': 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) = 8451.14267351
delta logL = 0.0357495593489

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.610e+00  3.587e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.477e+00  1.302e+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:  1.016e+00  1.041e-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:  8.705e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/782655/cmap_HighResolution_344304001_344563201_4FGL_J2321.9+3204_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-09-29 13:14:46.158709', job_id='782655', GAL2='1.02', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632946486.16', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.57e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='405' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:14:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 782655: <4FGL_J2321.9+3204_daily_bin405> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin405> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 13:00:45 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:00:46 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:00:46 2021
Terminated at Wed Sep 29 13:14:46 2021
Results reported at Wed Sep 29 13:14:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin405 350.478 32.0737 344304001 344563201 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 :                                   817.00 sec.
    Max Memory :                                 1146 MB
    Average Memory :                             352.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            841 sec.

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

