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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin199
RA = 350.478, Dec = 32.0737
tmin = 290908801, tmax = 291168001
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='782357', job_status='RUN', time_executed='2021-09-29 13:00:32.725021', time_epoch_executed='1632945632.73' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782357/ft1_4FGL_J2321.9+3204_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782357/ft2_4FGL_J2321.9+3204_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782357/ft1_4FGL_J2321.9+3204_daily_bin199.fits outfile=/scratch/kocevski/782357/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin199.fits ra=350.478 dec=32.0737 rad=12.0 tmin=290908801.0 tmax=291168001.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.46
user 3.19
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782357/ft1_filtered_4FGL_J2321.9+3204_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/782357/ft2_4FGL_J2321.9+3204_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/782357/ltcube_290908801_291168001_4FGL_J2321.9+3204_daily_bin199.fits outfile=/scratch/kocevski/782357/expmap_290908801_291168001_4FGL_J2321.9+3204_daily_bin199.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/782357/ltcube_290908801_291168001_4FGL_J2321.9+3204_daily_bin199.fits
.....................!
real 194.74
user 188.99
sys 5.30

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/782357/ft1_filtered_4FGL_J2321.9+3204_daily_bin199.fits scfile=/scratch/kocevski/782357/ft2_4FGL_J2321.9+3204_daily_bin199.fits outfile=/scratch/kocevski/782357/cmap_290908801_291168001_4FGL_J2321.9+3204_daily_bin199.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782357/ft1_filtered_4FGL_J2321.9+3204_daily_bin199.fits scfile=/scratch/kocevski/782357/ft2_4FGL_J2321.9+3204_daily_bin199.fits outfile=/scratch/kocevski/782357/cmap_HighResolution_290908801_291168001_4FGL_J2321.9+3204_daily_bin199.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.35
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.654       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.2862       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9594       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9230       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.162       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0254       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.076       1.0000         .10000E-03   10000.    
    15 'norm      '    11.384       1.0000         .10000E-03   10000.    
    16 'norm      '    5.8878       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1096       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9173       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3677       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99742       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=   9449.490     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2731 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.654        18.961       -.36948E-05   -.82612E-05
   2  Prefactor     .10000E-03    7.2317       -.34803E-05** at limit **
   3  norm          .10000E-03    .54879       -.11021E-06** at limit **
   4  Prefactor     .10000E-03    29.269       -.42051E-06** at limit **
   5  Prefactor     .10000E-03    9.8572        .12959E-06** at limit **
   6  norm          4.2858        3.0378       -.71450E-08    .19903E-03
   7  Prefactor     5.9578        11.077        .10054E-05   -.37158E-04
   8  Prefactor     .10000E-03    2.4724       -.23800E-07** at limit **
   9  Prefactor     6.9180        15.193       -.11195E-05   -.47194E-04
  10  Prefactor     14.165        20.584       -.62700E-05   -.34095E-05
  11  norm          4.0252        1.6215       -.21839E-07   -.67010E-04
  12  Prefactor     5.8868        15.775       -.58622E-06   -.38366E-04
  13  Prefactor     .10000E-03    10.313       -.15116E-06** at limit **
  14  Prefactor     20.072        27.998       -.39886E-07    .25562E-05
  15  norm          11.384        6.0586        .65825E-07   -.23144E-04
  16  norm          5.8900        9.0665       -.70612E-05   -.64299E-04
  17  Prefactor     .10000E-03    6.3846        .24919E-07** at limit **
  18  norm          1.1052        2.2606       -.28954E-06   -.11616E-02
  19  Prefactor     .10000E-03    7.4360        .35439E-05** at limit **
  20  Prefactor     1.7727        296.19       -.13396E-04   -.13046E-04
  21  Prefactor     .10000E-03    48.870        .63818E-06** at limit **
  22  Prefactor     .10000E-03    5.3670        .11232E-06** at limit **
  23  Normalizat    1.3680        .21895        .45050E-06    .17316E-03
  24  Prefactor     .99741        .10029        .10616E-05    .11343E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6539
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.28582
  Prefactor  = 5.95777
  Prefactor  = 0.0001
  Prefactor  = 6.91795
  Prefactor  = 14.1647
  norm       = 4.02518
  Prefactor  = 5.88681
  Prefactor  = 0.0001
  Prefactor  = 20.0722
  norm       = 11.3837
  norm       = 5.89004
  Prefactor  = 0.0001
  norm       = 1.10517
  Prefactor  = 0.0001
  Prefactor  = 1.77268
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36797
  Prefactor  = 0.99741
 **********
 **   18 **HESSE 
 **********

 FCN=   9449.490     FROM HESSE     STATUS=OK           403 CALLS     3134 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.654        18.962        .10840E-03   -1.4969    
   2  Prefactor     .10000E-03    7.4066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2616        .13841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2858        3.0405        .13891E-03   -1.5294    
   7  Prefactor     5.9578        11.062        .16449E-03   -1.5220    
   8  Prefactor     .10000E-03    2.4832        .14924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9180        15.208        .15248E-03   -1.5182    
  10  Prefactor     14.165        20.574        .10643E-03   -1.4955    
  11  norm          4.0252        1.6198        .75256E-04   -1.5307    
  12  Prefactor     5.8868        15.763        .16547E-03   -1.5223    
  13  Prefactor     .10000E-03    10.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.072        27.986        .89391E-04   -1.4812    
  15  norm          11.384        6.0544        .11873E-03   -1.5033    
  16  norm          5.8900        8.9962        .16550E-03   -1.5223    
  17  Prefactor     .10000E-03    6.3914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1052        1.9266        .20112E-02   -1.5498    
  19  Prefactor     .10000E-03    7.4283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7727        299.90        .30014E-03   -1.5442    
  21  Prefactor     .10000E-03    48.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.4160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3680        .25447        .35357E-03   -.81560    
  24  Prefactor     .99741        .11755        .18850E-03   -.92816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37855e-10
Minuit parameter uncertainties:
  1  18.97
  2  2.50203e-05
  3  1.70658e-05
  4  1.18281e-05
  5  6.28247e-06
  6  3.04061
  7  11.0658
  8  2.76211e-06
  9  15.2168
  10  20.5838
  11  1.61982
  12  15.774
  13  2.30117e-05
  14  28.0039
  15  6.05475
  16  8.9983
  17  3.25606e-06
  18  1.92674
  19  4.72053e-07
  20  46.3507
  21  0.000128734
  22  3.05448e-05
  23  0.254707
  24  0.117576
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.138e+01  6.055e+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:  9.974e-01  1.176e-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.368e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.85
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.93e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 1.66e-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) = 9449.2012236
delta logL = 0.289034312191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9449.19286134
delta logL = 0.297396572076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.741       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7648       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99504       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=   9449.193     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.735        7.2130        .30562E-02    .26015E-03
   2  alpha         1.7637        .46172        .40899       -.22297E-04
   3  Normalizat    1.3867        .21152        .79455E-01    .20115E-04
   4  Prefactor     .99506        .98246E-01    .46205E-01    .71502E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7355
  alpha      = 1.76369
  Normalizat = 1.38674
  Prefactor  = 0.995064
 **********
 **   18 **HESSE 
 **********

 FCN=   9449.193     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.735        6.6738        .12225E-03   -1.5053    
   2  alpha         1.7637        .49468        .15474E-01   -.29896    
   3  Normalizat    1.3867        .24619        .35168E-03   -.81013    
   4  Prefactor     .99506        .11494        .18876E-03   -.92894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9184e-11
Minuit parameter uncertainties:
  1  6.67431
  2  0.498281
  3  0.2464
  4  0.114966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782357': 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) = 9449.19285867
delta logL = 0.297399241454

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.074e+01  6.674e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  1.764e+00  4.983e-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:  9.951e-01  1.150e-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.387e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.46
Ra Dec: 350.478 32.074
Photon Index (Free Index): 1.76 +/- 0.50
Photon Flux (Free Index): 4.51e-08 +/- 3.91e-08
Energy Flux (Free Index): 3.70e-05 +/- 2.38e-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/782357/cmap_HighResolution_290908801_291168001_4FGL_J2321.9+3204_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.93e-08', energy_flux2='3.70e-05', photon_flux_error='3.69e-08', dlogl='2.97e-01', energy_flux='3.12e-05', photon_flux2='4.51e-08', job_status='DONE', time_completed='2021-09-29 13:13:20.878289', photon_index_error2='0.50', photon_index2='1.76', ts='9.85', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='1.37', time_epoch_completed='1632946400.88', return_code='0', job_id='782357', GAL2='1.00', EG2='1.39', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='3.91e-08', ts2='10.46', photon_index='2.14' WHERE bin_id='199' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:13:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 782357: <4FGL_J2321.9+3204_daily_bin199> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin199 350.478 32.0737 290908801 291168001 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 :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             385.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

