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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1002
RA = 351.19, Dec = 8.0282
tmin = 499046401, tmax = 499305601
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='842277', job_status='RUN', time_executed='2021-09-29 16:24:13.573690', time_epoch_executed='1632957853.57' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842277/ft1_4FGL_J2324.7+0801_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842277/ft2_4FGL_J2324.7+0801_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842277/ft1_4FGL_J2324.7+0801_daily_bin1002.fits outfile=/scratch/kocevski/842277/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1002.fits ra=351.19 dec=8.0282 rad=12.0 tmin=499046401.0 tmax=499305601.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 4.29
user 4.08
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/842277/ft2_4FGL_J2324.7+0801_daily_bin1002.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/842277/ft2_4FGL_J2324.7+0801_daily_bin1002.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/842277/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1002.fits evtable="EVENTS" outfile="/scratch/kocevski/842277/ft1_filtered_4FGL_J2324.7+0801_daily_bin1002.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842277/ft1_filtered_4FGL_J2324.7+0801_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/842277/ft2_4FGL_J2324.7+0801_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/842277/ltcube_499046401_499305601_4FGL_J2324.7+0801_daily_bin1002.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/842277/ft2_4FGL_J2324.7+0801_daily_bin1002.fits
.....................!
real 11.78
user 11.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842277/ft1_filtered_4FGL_J2324.7+0801_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/842277/ft2_4FGL_J2324.7+0801_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/842277/ltcube_499046401_499305601_4FGL_J2324.7+0801_daily_bin1002.fits outfile=/scratch/kocevski/842277/expmap_499046401_499305601_4FGL_J2324.7+0801_daily_bin1002.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/842277/ltcube_499046401_499305601_4FGL_J2324.7+0801_daily_bin1002.fits
.....................!
real 189.73
user 185.27
sys 4.14

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7+0801 @ 351.19 8.0282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/842277/ft1_filtered_4FGL_J2324.7+0801_daily_bin1002.fits scfile=/scratch/kocevski/842277/ft2_4FGL_J2324.7+0801_daily_bin1002.fits outfile=/scratch/kocevski/842277/cmap_499046401_499305601_4FGL_J2324.7+0801_daily_bin1002.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=351.19 yref=8.0282 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842277/ft1_filtered_4FGL_J2324.7+0801_daily_bin1002.fits scfile=/scratch/kocevski/842277/ft2_4FGL_J2324.7+0801_daily_bin1002.fits outfile=/scratch/kocevski/842277/cmap_HighResolution_499046401_499305601_4FGL_J2324.7+0801_daily_bin1002.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=351.19 yref=8.0282 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842277/ft1_filtered_4FGL_J2324.7+0801_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/842277/ft2_4FGL_J2324.7+0801_daily_bin1002.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842277/Model_4FGL_J2324.7+0801_daily_bin1002.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/842277/ft1_filtered_4FGL_J2324.7+0801_daily_bin1002.fits....................!
real 69.25
user 67.95
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/842277/ft1_filtered_4FGL_J2324.7+0801_daily_bin1002.fits', '/scratch/kocevski/842277/ft2_4FGL_J2324.7+0801_daily_bin1002.fits', expMap='/scratch/kocevski/842277/expmap_499046401_499305601_4FGL_J2324.7+0801_daily_bin1002.fits', expCube='/scratch/kocevski/842277/ltcube_499046401_499305601_4FGL_J2324.7+0801_daily_bin1002.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/842277/Model_4FGL_J2324.7+0801_daily_bin1002.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7+0801'

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/842277/ft1_filtered_4FGL_J2324.7+0801_daily_bin1002.fits
Spacecraft file(s): /scratch/kocevski/842277/ft2_4FGL_J2324.7+0801_daily_bin1002.fits
Exposure map: /scratch/kocevski/842277/expmap_499046401_499305601_4FGL_J2324.7+0801_daily_bin1002.fits
Exposure cube: /scratch/kocevski/842277/ltcube_499046401_499305601_4FGL_J2324.7+0801_daily_bin1002.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/842277/Model_4FGL_J2324.7+0801_daily_bin1002.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) = 5674.89946273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3861       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8996       1.0000         .10000E-03   10000.    
     4 'Prefactor '    71.636       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9550       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.315       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3419       1.0000         .10000E-03   10000.    
     9 'norm      '    .11906E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.229       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.813       1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    139.77       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    29.403       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5880       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.516       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.959       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .57991       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5674.882     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2892 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.583       -.40389E-06** at limit **
   2  Prefactor     6.3860        .50116       -.87724E-09    .15384E-03
   3  norm          1.9012        27.774        .28390E-05    .27346E-04
   4  Prefactor     71.621        57.129        .81098E-06    .78045E-05
   5  Prefactor     4.9547        7.0626       -.80926E-10    .56412E-05
   6  Prefactor     12.314        18.628       -.34212E-07    .66662E-06
   7  Prefactor     .10000E-03    9.9371       -.11308E-06** at limit **
   8  Prefactor     3.3386        11.256        .99170E-06    .53591E-04
   9  norm          .10000E-03    1.3611        .19940E-05** at limit **
  10  Prefactor     34.225        19.402        .13189E-07   -.34773E-06
  11  Prefactor     .10000E-03    12.183        .47035E-06** at limit **
  12  Prefactor     16.830        48.929       -.18788E-05   -.37308E-04
  13  norm          .10000E-03    14.024       -.39610E-07** at limit **
  14  Prefactor     .10000E-03    11.152       -.59647E-06** at limit **
  15  Prefactor     140.14        212.86       -.17254E-04   -.93856E-04
  16  Prefactor     .10000E-03    5.1777        .20700E-06** at limit **
  17  Prefactor     .10000E-03    30.699        .18170E-06** at limit **
  18  norm          29.399        22.441        .21154E-06    .14601E-04
  19  norm          .10000E-03    9.7926        .16154E-06** at limit **
  20  Prefactor     3.5893        4.6172        .23442E-06   -.18085E-03
  21  Prefactor     .10000E-03    17.256       -.16289E-06** at limit **
  22  Prefactor     37.504        35.521        .74583E-06    .11222E-04
  23  Prefactor     20.957        15.125        .35645E-07    .57006E-05
  24  Normalizat    .58016        .28634        .10777E-06   -.11227E-03
  25  Prefactor     .97888        .16950        .69534E-10   -.12526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.38596
  norm       = 1.9012
  Prefactor  = 71.6214
  Prefactor  = 4.95469
  Prefactor  = 12.3142
  Prefactor  = 0.0001
  Prefactor  = 3.33863
  norm       = 0.000100001
  Prefactor  = 34.2245
  Prefactor  = 0.0001
  Prefactor  = 16.8303
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 140.145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.3985
  norm       = 0.0001
  Prefactor  = 3.58933
  Prefactor  = 0.0001
  Prefactor  = 37.5043
  Prefactor  = 20.9565
  Normalizat = 0.58016
  Prefactor  = 0.978884
 **********
 **   18 **HESSE 
 **********

 FCN=   5674.882     FROM HESSE     STATUS=OK           425 CALLS     3317 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3860        .50106        .14293E-04   -1.5203    
   3  norm          1.9012        28.911        .15089E-02   -1.5432    
   4  Prefactor     71.621        57.182        .47431E-04   -1.4013    
   5  Prefactor     4.9547        7.0579        .18067E-03   -1.5263    
   6  Prefactor     12.314        18.615        .11415E-03   -1.5006    
   7  Prefactor     .10000E-03    9.9526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3386        11.429        .11070E-02   -1.5343    
   9  norm          .10000E-03    1.7966        .13908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.225        19.358        .68494E-04   -1.4537    
  11  Prefactor     .10000E-03    12.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.830        48.968        .97679E-04   -1.4887    
  13  norm          .10000E-03    14.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     140.14        223.27        .17037E-03   -1.3335    
  16  Prefactor     .10000E-03    5.1815        .16742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          29.399        22.446        .73886E-04   -1.4623    
  19  norm          .10000E-03    9.7937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.5893        4.6017        .17735E-03   -1.5329    
  21  Prefactor     .10000E-03    17.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.504        35.601        .65435E-04   -1.4482    
  23  Prefactor     20.957        15.123        .87489E-04   -1.4792    
  24  Normalizat    .58016        .31249        .48470E-03   -1.0883    
  25  Prefactor     .97888        .18886        .23534E-03   -.93437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0371e-09
Minuit parameter uncertainties:
  1  2.4023e-05
  2  0.501057
  3  14.8359
  4  57.2254
  5  7.0591
  6  18.6234
  7  8.20468e-06
  8  11.4364
  9  8.7981e-05
  10  19.3616
  11  2.96631e-05
  12  49.0847
  13  3.08706e-05
  14  3.93477e-05
  15  224.635
  16  1.07726e-05
  17  3.65881e-05
  18  22.4525
  19  1.43204e-05
  20  4.60212
  21  1.11967e-05
  22  35.6216
  23  15.1258
  24  0.313447
  25  0.188985
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.422e+01  1.936e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.789e-01  1.890e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  5.802e-01  3.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.94
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 6.96e-08
Energy Flux (Fixed Index): 5.26e-05 +/- 2.98e-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) = 5674.25065145
delta logL = 0.631352704931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5674.24283446
delta logL = 0.639169703094

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.799       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6146       1.0000          .0000       10.000    
     3 'Normalizat'    .62751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97189       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5674.243     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      297 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.786        32.884        .62756E-04    .45289E-05
   2  Index         1.6144        .61735        .90467E-02   -.74608E-05
   3  Normalizat    .62801        .30255        .46851E-03   -.16671E-04
   4  Prefactor     .97151        .18907        .23663E-03   -.17013E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.7857
  Index      = 1.61442
  Normalizat = 0.62801
  Prefactor  = 0.971514
 **********
 **   18 **HESSE 
 **********

 FCN=   5674.243     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.786        33.604        .12551E-04   -1.4430    
   2  Index         1.6144        .63051        .36187E-03   -.74384    
   3  Normalizat    .62801        .30266        .18740E-04   -1.0681    
   4  Prefactor     .97151        .18925        .47325E-04   -.93685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34883e-11
Minuit parameter uncertainties:
  1  33.6194
  2  0.633632
  3  0.303459
  4  0.189377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842277': 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) = 5674.24283235
delta logL = 0.639171811863

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.079e+01  3.362e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.614e+00  6.336e-01  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.715e-01  1.894e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  6.280e-01  3.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.03
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.61 +/- 0.63
Photon Flux (Free Index): 5.40e-08 +/- 7.43e-08
Energy Flux (Free Index): 1.17e-04 +/- 1.36e-04

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/842277/cmap_HighResolution_499046401_499305601_4FGL_J2324.7+0801_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='1.17e-04', photon_flux_error='6.96e-08', dlogl='6.39e-01', energy_flux='5.26e-05', photon_flux2='5.40e-08', job_status='DONE', time_completed='2021-09-29 16:34:19.504333', photon_index_error2='0.63', photon_index2='1.61', ts='13.94', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.36e-04', EG='0.58', time_epoch_completed='1632958459.5', return_code='0', job_id='842277', GAL2='0.97', EG2='0.63', return_code2='0', energy_flux_error='2.98e-05', photon_flux_error2='7.43e-08', ts2='15.03', photon_index='2.23' WHERE bin_id='1002' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:34:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 842277: <4FGL_J2324.7+0801_daily_bin1002> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1002> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 16:20:37 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:20:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:20:39 2021
Terminated at Wed Sep 29 16:34:20 2021
Results reported at Wed Sep 29 16:34:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1002 351.19 8.0282 499046401 499305601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7+0801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   600.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

