/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 141 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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin104
RA = 351.19, Dec = 8.0282
tmin = 266284801, tmax = 266544001
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='837747', job_status='RUN', time_executed='2021-09-29 16:07:55.498166', time_epoch_executed='1632956875.5' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837747

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837747/ft1_4FGL_J2324.7+0801_daily_bin104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837747/ft2_4FGL_J2324.7+0801_daily_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837747/ft1_4FGL_J2324.7+0801_daily_bin104.fits outfile=/scratch/kocevski/837747/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin104.fits ra=351.19 dec=8.0282 rad=12.0 tmin=266284801.0 tmax=266544001.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 1.39
user 1.21
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837747/ft1_filtered_4FGL_J2324.7+0801_daily_bin104.fits" evtable="EVENTS" scfile=/scratch/kocevski/837747/ft2_4FGL_J2324.7+0801_daily_bin104.fits sctable="SC_DATA" outfile=/scratch/kocevski/837747/ltcube_266284801_266544001_4FGL_J2324.7+0801_daily_bin104.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/837747/ft2_4FGL_J2324.7+0801_daily_bin104.fits
.....................!
real 13.36
user 12.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837747/ft1_filtered_4FGL_J2324.7+0801_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/837747/ft2_4FGL_J2324.7+0801_daily_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/837747/ltcube_266284801_266544001_4FGL_J2324.7+0801_daily_bin104.fits outfile=/scratch/kocevski/837747/expmap_266284801_266544001_4FGL_J2324.7+0801_daily_bin104.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/837747/ltcube_266284801_266544001_4FGL_J2324.7+0801_daily_bin104.fits
.....................!
real 190.40
user 185.49
sys 4.50

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/837747/ft1_filtered_4FGL_J2324.7+0801_daily_bin104.fits scfile=/scratch/kocevski/837747/ft2_4FGL_J2324.7+0801_daily_bin104.fits outfile=/scratch/kocevski/837747/cmap_266284801_266544001_4FGL_J2324.7+0801_daily_bin104.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/837747/ft1_filtered_4FGL_J2324.7+0801_daily_bin104.fits scfile=/scratch/kocevski/837747/ft2_4FGL_J2324.7+0801_daily_bin104.fits outfile=/scratch/kocevski/837747/cmap_HighResolution_266284801_266544001_4FGL_J2324.7+0801_daily_bin104.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/837747/ft1_filtered_4FGL_J2324.7+0801_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/837747/ft2_4FGL_J2324.7+0801_daily_bin104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/837747/Model_4FGL_J2324.7+0801_daily_bin104.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/837747/ft1_filtered_4FGL_J2324.7+0801_daily_bin104.fits.....................!
real 81.53
user 80.14
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/837747/ft1_filtered_4FGL_J2324.7+0801_daily_bin104.fits', '/scratch/kocevski/837747/ft2_4FGL_J2324.7+0801_daily_bin104.fits', expMap='/scratch/kocevski/837747/expmap_266284801_266544001_4FGL_J2324.7+0801_daily_bin104.fits', expCube='/scratch/kocevski/837747/ltcube_266284801_266544001_4FGL_J2324.7+0801_daily_bin104.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/837747/Model_4FGL_J2324.7+0801_daily_bin104.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/837747/ft1_filtered_4FGL_J2324.7+0801_daily_bin104.fits
Spacecraft file(s): /scratch/kocevski/837747/ft2_4FGL_J2324.7+0801_daily_bin104.fits
Exposure map: /scratch/kocevski/837747/expmap_266284801_266544001_4FGL_J2324.7+0801_daily_bin104.fits
Exposure cube: /scratch/kocevski/837747/ltcube_266284801_266544001_4FGL_J2324.7+0801_daily_bin104.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/837747/Model_4FGL_J2324.7+0801_daily_bin104.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) = 7763.62933498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0834       1.0000         .10000E-03   10000.    
     3 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.140       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.810       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0036       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.138       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .46776       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8063       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.538       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11833E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.891       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .97076       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12133E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28948E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .39641E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2978       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6127       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8919       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91949       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88406       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=   7763.590     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     2588 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6477       -.13621E-07** at limit **
   2  Prefactor     1.0834        .19542        .87699E-09    .59495E-03
   3  norm          .10000E-03    7.0894       -.13904E-06** at limit **
   4  Prefactor     11.064        36.313        .62614E-06    .54617E-04
   5  Prefactor     12.809        5.9635       -.92676E-08    .51786E-04
   6  Prefactor     5.0035        6.1537        .64900E-07    .19986E-03
   7  Prefactor     42.133        22.925        .93771E-07    .78565E-04
   8  Prefactor     .10000E-03    3.4723       -.27359E-07** at limit **
   9  norm          .46755        .72571       -.24670E-06   -.90302E-03
  10  Prefactor     1.8079        4.4448        .12787E-06    .94127E-03
  11  Prefactor     33.537        19.784        .90455E-07    .35409E-04
  12  Prefactor     .10000E-03    46.325       -.10118E-06** at limit **
  13  norm          15.899        8.5659        .79312E-06    .62793E-03
  14  Prefactor     .96078        7.7569       -.19284E-05   -.18463E-05
  15  Prefactor     .10000E-03    129.69       -.18170E-05** at limit **
  16  Prefactor     .10000E-03    8.8044       -.18411E-06** at limit **
  17  Prefactor     .10165E-03    12.846       -.24056E-05** at limit **
  18  norm          .10002E-03    29.741        .25083E-05** at limit **
  19  norm          .10000E-03    5.0846       -.19355E-07** at limit **
  20  Prefactor     8.3005        4.4680       -.36354E-07    .95311E-04
  21  Prefactor     3.6219        16.093        .56421E-07    .95532E-04
  22  Prefactor     .10000E-03    5.9023       -.17260E-06** at limit **
  23  Prefactor     6.8922        7.2300        .16266E-07    .23642E-04
  24  Normalizat    .91947        .18459       -.22279E-06    .35453E-03
  25  Prefactor     .88430        .11470        .94574E-06    .42888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.08335
  norm       = 0.0001
  Prefactor  = 11.0642
  Prefactor  = 12.809
  Prefactor  = 5.00347
  Prefactor  = 42.1333
  Prefactor  = 0.0001
  norm       = 0.467551
  Prefactor  = 1.80786
  Prefactor  = 33.5368
  Prefactor  = 0.0001
  norm       = 15.8993
  Prefactor  = 0.960785
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000101652
  norm       = 0.00010002
  norm       = 0.0001
  Prefactor  = 8.30047
  Prefactor  = 3.62185
  Prefactor  = 0.0001
  Prefactor  = 6.89219
  Normalizat = 0.919474
  Prefactor  = 0.884298
 **********
 **   18 **HESSE 
 **********

 FCN=   7763.590     FROM HESSE     STATUS=OK           437 CALLS     3025 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0834        .19545        .15962E-04   -1.5500    
   3  norm          .10000E-03    7.1120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.064        36.347        .12003E-03   -1.5043    
   5  Prefactor     12.809        5.9636        .11192E-03   -1.4992    
   6  Prefactor     5.0035        6.1631        .89888E-03   -1.5261    
   7  Prefactor     42.133        22.927        .61754E-04   -1.4409    
   8  Prefactor     .10000E-03    3.4966        .16023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .46755        .64917        .93444E-03   -1.5571    
  10  Prefactor     1.8079        5.4538        .15547E-02   -1.5439    
  11  Prefactor     33.537        19.777        .69194E-04   -1.4549    
  12  Prefactor     .10000E-03    46.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.899        8.4718        .10047E-03   -1.4910    
  14  Prefactor     .96078        7.7644        .43603E-03   -1.5512    
  15  Prefactor     .10000E-03    129.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10165E-03    163.90        .48041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10002E-03    48.424        .52563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.0865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.3005        4.4607        .13020E-03   -1.5132    
  21  Prefactor     3.6219        16.252        .10629E-02   -1.5327    
  22  Prefactor     .10000E-03    5.9148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.8922        7.2307        .15282E-03   -1.5183    
  24  Normalizat    .91947        .21395        .30591E-03   -.95779    
  25  Prefactor     .88430        .13051        .19927E-03   -.96692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10344e-08
Minuit parameter uncertainties:
  1  1.75113e-06
  2  0.195448
  3  8.88298e-06
  4  36.4201
  5  5.96388
  6  6.16387
  7  22.9319
  8  4.13526e-06
  9  0.649184
  10  5.45527
  11  19.7812
  12  1.40251e-05
  13  8.47242
  14  5.46327
  15  0.000736032
  16  6.50509e-06
  17  0.0330005
  18  0.00199305
  19  6.27883e-07
  20  4.46089
  21  15.351
  22  8.35222e-06
  23  7.23162
  24  0.214147
  25  0.130561
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.808e+00  5.455e+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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.843e-01  1.306e-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:  9.195e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 6.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/837747/likelihoodResults_266284801_266544001_4FGL_J2324.7+0801_daily_bin104.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7763.49266231
delta logL = 0.0968847390859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7763.47033427
delta logL = 0.11921277399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99166       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0357       1.0000          .0000       10.000    
     3 'Normalizat'    .90702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88787       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=   7763.470     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      263 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99162        6.9499        .15602E-03   -.46269E-03
   2  Index         3.0357        2.5006        .77480E-02   -.88383E-04
   3  Normalizat    .90702        .20594        .30772E-03   -.85492E-04
   4  Prefactor     .88787        .13091        .19886E-03   -.10239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.991621
  Index      = 3.03573
  Normalizat = 0.907022
  Prefactor  = 0.887868
 **********
 **   18 **HESSE 
 **********

 FCN=   7763.470     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99162        3.3122        .62410E-05   -1.5509    
   2  Index         3.0357        1.6306        .30992E-03   -.40373    
   3  Normalizat    .90702        .20481        .12309E-04   -.96214    
   4  Prefactor     .88787        .13050        .79546E-05   -.96566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78448e-10
Minuit parameter uncertainties:
  1  3.31278
  2  1.66688
  3  0.204987
  4  0.130544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837747': 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) = 7763.47033427
delta logL = 0.119212778078

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  9.916e-01  3.313e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.036e+00  1.667e+00  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:  8.879e-01  1.305e-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:  9.070e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 351.190 8.028

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/837747/cmap_HighResolution_266284801_266544001_4FGL_J2324.7+0801_daily_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-09-29 16:20:11.074391', job_id='837747', GAL2='0.89', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1632957611.07', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.19e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='104' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:20:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 837747: <4FGL_J2324.7+0801_daily_bin104> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin104> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:05:24 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:05:26 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:05:26 2021
Terminated at Wed Sep 29 16:20:11 2021
Results reported at Wed Sep 29 16:20:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin104 351.19 8.0282 266284801 266544001 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 :                                   733.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

