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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1306
RA = 350.478, Dec = 32.0737
tmin = 577843201, tmax = 578102401
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='788232', job_status='RUN', time_executed='2021-09-29 13:21:26.522269', time_epoch_executed='1632946886.52' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788232

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788232/ft1_4FGL_J2321.9+3204_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788232/ft2_4FGL_J2321.9+3204_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788232/ft1_4FGL_J2321.9+3204_daily_bin1306.fits outfile=/scratch/kocevski/788232/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1306.fits ra=350.478 dec=32.0737 rad=12.0 tmin=577843201.0 tmax=578102401.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.30
user 3.04
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/788232/ft2_4FGL_J2321.9+3204_daily_bin1306.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/788232/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1306.fits evtable="EVENTS" outfile="/scratch/kocevski/788232/ft1_filtered_4FGL_J2321.9+3204_daily_bin1306.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.57
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788232/ft1_filtered_4FGL_J2321.9+3204_daily_bin1306.fits" evtable="EVENTS" scfile=/scratch/kocevski/788232/ft2_4FGL_J2321.9+3204_daily_bin1306.fits sctable="SC_DATA" outfile=/scratch/kocevski/788232/ltcube_577843201_578102401_4FGL_J2321.9+3204_daily_bin1306.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/788232/ft2_4FGL_J2321.9+3204_daily_bin1306.fits
.....................!
real 12.11
user 11.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788232/ft1_filtered_4FGL_J2321.9+3204_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/788232/ft2_4FGL_J2321.9+3204_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/788232/ltcube_577843201_578102401_4FGL_J2321.9+3204_daily_bin1306.fits outfile=/scratch/kocevski/788232/expmap_577843201_578102401_4FGL_J2321.9+3204_daily_bin1306.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/788232/ltcube_577843201_578102401_4FGL_J2321.9+3204_daily_bin1306.fits
.....................!
real 190.54
user 185.11
sys 4.97

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/788232/ft1_filtered_4FGL_J2321.9+3204_daily_bin1306.fits scfile=/scratch/kocevski/788232/ft2_4FGL_J2321.9+3204_daily_bin1306.fits outfile=/scratch/kocevski/788232/cmap_577843201_578102401_4FGL_J2321.9+3204_daily_bin1306.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788232/ft1_filtered_4FGL_J2321.9+3204_daily_bin1306.fits scfile=/scratch/kocevski/788232/ft2_4FGL_J2321.9+3204_daily_bin1306.fits outfile=/scratch/kocevski/788232/cmap_HighResolution_577843201_578102401_4FGL_J2321.9+3204_daily_bin1306.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.40
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788232/ft1_filtered_4FGL_J2321.9+3204_daily_bin1306.fits', '/scratch/kocevski/788232/ft2_4FGL_J2321.9+3204_daily_bin1306.fits', expMap='/scratch/kocevski/788232/expmap_577843201_578102401_4FGL_J2321.9+3204_daily_bin1306.fits', expCube='/scratch/kocevski/788232/ltcube_577843201_578102401_4FGL_J2321.9+3204_daily_bin1306.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788232/Model_4FGL_J2321.9+3204_daily_bin1306.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/788232/ft1_filtered_4FGL_J2321.9+3204_daily_bin1306.fits
Spacecraft file(s): /scratch/kocevski/788232/ft2_4FGL_J2321.9+3204_daily_bin1306.fits
Exposure map: /scratch/kocevski/788232/expmap_577843201_578102401_4FGL_J2321.9+3204_daily_bin1306.fits
Exposure cube: /scratch/kocevski/788232/ltcube_577843201_578102401_4FGL_J2321.9+3204_daily_bin1306.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788232/Model_4FGL_J2321.9+3204_daily_bin1306.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4785.69299037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17309E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.237       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.716       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.801       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7341       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59008       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.5766       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4383       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.000       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    124.51       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9387       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87536       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0556       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=   4785.670     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2813 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10032E-03    287.05       -.10106E-04** at limit **
   2  Prefactor     .10000E-03    10.174        .58422E-06** at limit **
   3  norm          10.238        2.2061        .33620E-07   -.88631E-04
   4  Prefactor     .10000E-03    38.576        .25512E-05** at limit **
   5  Prefactor     .10000E-03    7.3866        .33191E-07** at limit **
   6  norm          .10000E-03    4.4152        .29928E-06** at limit **
   7  Prefactor     .10000E-03    7.7441        .24335E-08** at limit **
   8  Prefactor     .10000E-03    36.077        .16383E-04** at limit **
   9  Prefactor     15.720        14.901        .12957E-06   -.80769E-05
  10  Prefactor     24.821        37.727        .28734E-06   -.63804E-04
  11  norm          2.7347        2.2338        .13847E-07   -.26590E-03
  12  Prefactor     .10000E-03    15.663       -.32959E-06** at limit **
  13  Prefactor     .54273        13.321        .65936E-06   -.12965E-03
  14  Prefactor     .10000E-03    9.8793       -.37595E-06** at limit **
  15  norm          8.5717        6.9503       -.86730E-07   -.42620E-04
  16  norm          3.4297        9.5380       -.20300E-06   -.21561E-04
  17  Prefactor     18.052        22.866        .86199E-06   -.14809E-04
  18  norm          .10000E-03    1.7324        .17282E-07** at limit **
  19  Prefactor     .10000E-03    8.3521        .13069E-06** at limit **
  20  Prefactor     .10000E-03    16.771        .59770E-06** at limit **
  21  Prefactor     124.24        153.04       -.70162E-06   -.55657E-04
  22  Prefactor     2.9681        44.835        .62323E-05   -.49928E-04
  23  Normalizat    .87494        .29526       -.15771E-05   -.27957E-03
  24  Prefactor     1.0558        .13810       -.17639E-06   -.67189E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100323
  Prefactor  = 0.0001
  norm       = 10.2376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 15.7196
  Prefactor  = 24.8207
  norm       = 2.73469
  Prefactor  = 0.0001
  Prefactor  = 0.542729
  Prefactor  = 0.0001
  norm       = 8.57167
  norm       = 3.42969
  Prefactor  = 18.0516
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 124.239
  Prefactor  = 2.96807
  Normalizat = 0.874939
  Prefactor  = 1.05578
 **********
 **   18 **HESSE 
 **********

 FCN=   4785.670     FROM HESSE     STATUS=OK           395 CALLS     3208 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10032E-03    303.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.238        2.2074        .45877E-04   -1.5068    
   4  Prefactor     .10000E-03    38.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.4708        .14156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.774        .35984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.720        14.910        .10103E-03   -1.4915    
  10  Prefactor     24.821        37.696        .80437E-04   -1.4711    
  11  norm          2.7347        2.2213        .87640E-04   -1.5377    
  12  Prefactor     .10000E-03    15.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .54273        155.08        .46412E-02   -1.5561    
  14  Prefactor     .10000E-03    9.8808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5717        6.9458        .13688E-03   -1.5122    
  16  norm          3.4297        9.5199        .21813E-03   -1.5338    
  17  Prefactor     18.052        22.917        .94401E-04   -1.4858    
  18  norm          .10000E-03    1.7416        .88877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.3524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     124.24        153.22        .18036E-03   -1.3474    
  22  Prefactor     2.9681        44.753        .23694E-03   -1.5363    
  23  Normalizat    .87494        .33324        .39551E-03   -.97346    
  24  Prefactor     1.0558        .15723        .17474E-03   -.90893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88806e-09
Minuit parameter uncertainties:
  1  0.0199075
  2  2.10113e-05
  3  2.20742
  4  0.000143248
  5  6.43615e-06
  6  1.21753e-05
  7  4.6608e-06
  8  0.000615372
  9  14.9138
  10  37.7322
  11  2.22134
  12  3.77445e-05
  13  18.3952
  14  3.97327e-06
  15  6.94648
  16  9.52415
  17  22.9282
  18  1.3262e-06
  19  6.89538e-07
  20  2.23471e-05
  21  153.71
  22  23.0706
  23  0.334029
  24  0.157301
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  8.572e+00  6.946e+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.056e+00  1.573e-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.749e-01  3.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.11
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.22e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.90e-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) = 4785.09307897
delta logL = 0.576728269592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4785.08547484
delta logL = 0.584332398929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7342       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4515       1.0000          .0000       5.0000    
     3 'Normalizat'    .89492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0529       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=   4785.085     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7330        7.3965       -.14329E-05   -.14180E-03
   2  alpha         1.4514        .62849       -.25584E-04    .10030E-04
   3  Normalizat    .89491        .28139        .54170E-06    .74933E-04
   4  Prefactor     1.0529        .13630        .76861E-07    .13250E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.73296
  alpha      = 1.45138
  Normalizat = 0.89491
  Prefactor  = 1.0529
 **********
 **   18 **HESSE 
 **********

 FCN=   4785.085     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7330        7.2768        .14419E-03   -1.5152    
   2  alpha         1.4514        .61855        .14853E-01   -.43284    
   3  Normalizat    .89491        .31965        .39157E-03   -.96639    
   4  Prefactor     1.0529        .15524        .17501E-03   -.90986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08649e-11
Minuit parameter uncertainties:
  1  7.27767
  2  0.626479
  3  0.320333
  4  0.155303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788232': 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) = 4785.08547481
delta logL = 0.584332430707

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  7.733e+00  7.278e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  1.451e+00  6.265e-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:  1.053e+00  1.553e-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.949e-01  3.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.30
Ra Dec: 350.478 32.074
Photon Index (Free Index): 1.45 +/- 0.63
Photon Flux (Free Index): 2.68e-08 +/- 2.92e-08
Energy Flux (Free Index): 4.25e-05 +/- 4.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/788232/cmap_HighResolution_577843201_578102401_4FGL_J2321.9+3204_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.22e-08', energy_flux2='4.25e-05', photon_flux_error='4.23e-08', dlogl='5.84e-01', energy_flux='2.35e-05', photon_flux2='2.68e-08', job_status='DONE', time_completed='2021-09-29 13:30:48.299167', photon_index_error2='0.63', photon_index2='1.45', ts='7.11', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='4.64e-05', EG='0.87', time_epoch_completed='1632947448.3', return_code='0', job_id='788232', GAL2='1.05', EG2='0.89', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='2.92e-08', ts2='8.30', photon_index='2.14' WHERE bin_id='1306' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:30:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 788232: <4FGL_J2321.9+3204_daily_bin1306> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1306> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 13:21:04 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:21:06 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:21:06 2021
Terminated at Wed Sep 29 13:30:49 2021
Results reported at Wed Sep 29 13:30:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1306 350.478 32.0737 577843201 578102401 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 :                                   551.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            585 sec.

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

