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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin285
RA = 350.478, Dec = 32.0737
tmin = 313200001, tmax = 313459201
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='782480', job_status='RUN', time_executed='2021-09-29 13:02:58.650327', time_epoch_executed='1632945778.65' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782480

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782480/ft1_4FGL_J2321.9+3204_daily_bin285.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782480/ft2_4FGL_J2321.9+3204_daily_bin285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782480/ft1_4FGL_J2321.9+3204_daily_bin285.fits outfile=/scratch/kocevski/782480/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin285.fits ra=350.478 dec=32.0737 rad=12.0 tmin=313200001.0 tmax=313459201.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.37
user 3.17
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782480/ft1_filtered_4FGL_J2321.9+3204_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/782480/ft2_4FGL_J2321.9+3204_daily_bin285.fits sctable="SC_DATA" expcube=/scratch/kocevski/782480/ltcube_313200001_313459201_4FGL_J2321.9+3204_daily_bin285.fits outfile=/scratch/kocevski/782480/expmap_313200001_313459201_4FGL_J2321.9+3204_daily_bin285.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/782480/ltcube_313200001_313459201_4FGL_J2321.9+3204_daily_bin285.fits
.....................!
real 190.23
user 185.25
sys 4.66

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782480/ft1_filtered_4FGL_J2321.9+3204_daily_bin285.fits scfile=/scratch/kocevski/782480/ft2_4FGL_J2321.9+3204_daily_bin285.fits outfile=/scratch/kocevski/782480/cmap_HighResolution_313200001_313459201_4FGL_J2321.9+3204_daily_bin285.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5351       1.0000         .10000E-03   10000.    
     3 'norm      '    3.8685       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.398       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7181       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5247       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.667       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.941       1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.448       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.354       1.0000         .10000E-03   10000.    
    16 'norm      '    10.036       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9430       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1116       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87258       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=   10769.80     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2708 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2916        .19217E-05** at limit **
   2  Prefactor     2.5349        5.4342       -.89856E-06   -.52376E-03
   3  norm          3.8684        1.4417        .77340E-07    .16365E-03
   4  Prefactor     13.385        48.493       -.25453E-04    .10087E-03
   5  Prefactor     1.7183        43.940       -.77092E-05   -.84090E-04
   6  norm          .10000E-03    .85361        .17607E-07** at limit **
   7  Prefactor     9.5237        16.776       -.19630E-05    .34323E-04
   8  Prefactor     .10000E-03    1.5985       -.16834E-07** at limit **
   9  Prefactor     12.664        15.475       -.17833E-05   -.83660E-03
  10  Prefactor     .10000E-03    8.3965        .44144E-05** at limit **
  11  norm          18.940        2.5638       -.33758E-07    .54490E-03
  12  Prefactor     46.445        24.116       -.16185E-05    .86186E-04
  13  Prefactor     .10000E-03    12.605       -.65729E-05** at limit **
  14  Prefactor     .10000E-03    14.107        .54232E-05** at limit **
  15  norm          15.354        6.0245       -.86698E-07    .14589E-03
  16  norm          10.035        8.4220       -.15481E-06    .13857E-03
  17  Prefactor     .10000E-03    7.0004       -.37220E-05** at limit **
  18  norm          .10001E-03    1.0599       -.59937E-06** at limit **
  19  Prefactor     .10000E-03    4.1509        .34655E-05** at limit **
  20  Prefactor     .10000E-03    10.662       -.27885E-06** at limit **
  21  Prefactor     2.8406        52.096       -.39023E-05   -.87739E-05
  22  Prefactor     .10000E-03    4.3375       -.24912E-05** at limit **
  23  Normalizat    1.1117        .19015        .76408E-06    .31345E-03
  24  Prefactor     .87258        .89070E-01    .96409E-06    .44454E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.53489
  norm       = 3.86844
  Prefactor  = 13.3848
  Prefactor  = 1.71833
  norm       = 0.0001
  Prefactor  = 9.52368
  Prefactor  = 0.0001
  Prefactor  = 12.6644
  Prefactor  = 0.0001
  norm       = 18.9403
  Prefactor  = 46.4454
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 15.3539
  norm       = 10.0354
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.84055
  Prefactor  = 0.0001
  Normalizat = 1.11167
  Prefactor  = 0.872583
 **********
 **   18 **HESSE 
 **********

 FCN=   10769.80     FROM HESSE     STATUS=OK           393 CALLS     3101 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5349        5.4673        .25651E-03   -1.5390    
   3  norm          3.8684        1.4296        .69991E-04   -1.5315    
   4  Prefactor     13.385        48.103        .10943E-03   -1.4976    
   5  Prefactor     1.7183        44.546        .32054E-03   -1.5446    
   6  norm          .10000E-03    .85591        .93628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.5237        16.845        .12985E-03   -1.5091    
   8  Prefactor     .10000E-03    1.6037        .12811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.664        15.931        .56274E-03   -1.4996    
  10  Prefactor     .10000E-03    8.3628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.940        2.5663        .57654E-04   -1.4837    
  12  Prefactor     46.445        24.090        .58832E-04   -1.4344    
  13  Prefactor     .10000E-03    12.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.354        6.0198        .10221E-03   -1.4924    
  16  norm          10.035        8.4111        .12648E-03   -1.5074    
  17  Prefactor     .10000E-03    6.9999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    4.0136        .20427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8406        52.259        .23675E-03   -1.5371    
  22  Prefactor     .10000E-03    4.4457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1117        .22115        .35554E-03   -.89378    
  24  Prefactor     .87258        .10349        .18712E-03   -.97106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97466e-09
Minuit parameter uncertainties:
  1  3.16334e-05
  2  5.46838
  3  1.42965
  4  48.2424
  5  17.512
  6  1.04802e-07
  7  16.8535
  8  3.20124e-07
  9  15.9367
  10  9.04134e-05
  11  2.56635
  12  24.0947
  13  0.000192043
  14  0.000157441
  15  6.02008
  16  8.41213
  17  6.78302e-05
  18  0.000286401
  19  5.08234e-05
  20  2.24403e-06
  21  24.3919
  22  4.91384e-05
  23  0.221339
  24  0.103518
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.535e+01  6.020e+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:  8.726e-01  1.035e-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.112e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.34
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 9.35e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 4.20e-05 +/- 1.65e-05

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) = 10769.7412252
delta logL = 0.0616956352314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10769.7374905
delta logL = 0.0654302408802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.804       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0016       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87025       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=   10769.74     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      213 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.803        123.76        .25187E-02    .45344E-04
   2  alpha         2.0012        3.3704        .34758        .25439E-04
   3  Normalizat    1.1218        .22391        .80030E-01    .26820E-04
   4  Prefactor     .87011        .76495E-01    .44625E-01    .72510E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.8026
  alpha      = 2.00124
  Normalizat = 1.12176
  Prefactor  = 0.870108
 **********
 **   18 **HESSE 
 **********

 FCN=   10769.74     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.803        6.3223        .10075E-03   -1.4913    
   2  alpha         2.0012        .37874        .12868E-01   -.20085    
   3  Normalizat    1.1218        .21399        .35427E-03   -.89056    
   4  Prefactor     .87011        .10115        .18739E-03   -.97194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91516e-13
Minuit parameter uncertainties:
  1  6.32257
  2  0.380263
  3  0.214152
  4  0.101175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782480': 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) = 10769.7374884
delta logL = 0.0654323584477

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.580e+01  6.323e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.001e+00  3.803e-01  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.701e-01  1.012e-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.122e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.56
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.00 +/- 0.38
Photon Flux (Free Index): 8.29e-08 +/- 4.37e-08
Energy Flux (Free Index): 4.53e-05 +/- 2.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/782480/cmap_HighResolution_313200001_313459201_4FGL_J2321.9+3204_daily_bin285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.35e-08', energy_flux2='4.53e-05', photon_flux_error='3.66e-08', dlogl='6.54e-02', energy_flux='4.20e-05', photon_flux2='8.29e-08', job_status='DONE', time_completed='2021-09-29 13:16:53.053695', photon_index_error2='0.38', photon_index2='2.00', ts='17.34', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='1.11', time_epoch_completed='1632946613.05', return_code='0', job_id='782480', GAL2='0.87', EG2='1.12', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='4.37e-08', ts2='17.56', photon_index='2.14' WHERE bin_id='285' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:16:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 782480: <4FGL_J2321.9+3204_daily_bin285> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin285 350.478 32.0737 313200001 313459201 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 :                                   831.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

