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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin954
RA = 351.19, Dec = 8.0282
tmin = 486604801, tmax = 486864001
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='842207', job_status='RUN', time_executed='2021-09-29 16:23:05.342668', time_epoch_executed='1632957785.34' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='954'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842207

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842207/ft1_4FGL_J2324.7+0801_daily_bin954.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842207/ft2_4FGL_J2324.7+0801_daily_bin954.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842207/ft1_4FGL_J2324.7+0801_daily_bin954.fits outfile=/scratch/kocevski/842207/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin954.fits ra=351.19 dec=8.0282 rad=12.0 tmin=486604801.0 tmax=486864001.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.65
user 3.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842207/ft1_filtered_4FGL_J2324.7+0801_daily_bin954.fits" evtable="EVENTS" scfile=/scratch/kocevski/842207/ft2_4FGL_J2324.7+0801_daily_bin954.fits sctable="SC_DATA" outfile=/scratch/kocevski/842207/ltcube_486604801_486864001_4FGL_J2324.7+0801_daily_bin954.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/842207/ft2_4FGL_J2324.7+0801_daily_bin954.fits
.....................!
real 11.73
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842207/ft1_filtered_4FGL_J2324.7+0801_daily_bin954.fits evtable="EVENTS" scfile=/scratch/kocevski/842207/ft2_4FGL_J2324.7+0801_daily_bin954.fits sctable="SC_DATA" expcube=/scratch/kocevski/842207/ltcube_486604801_486864001_4FGL_J2324.7+0801_daily_bin954.fits outfile=/scratch/kocevski/842207/expmap_486604801_486864001_4FGL_J2324.7+0801_daily_bin954.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/842207/ltcube_486604801_486864001_4FGL_J2324.7+0801_daily_bin954.fits
.....................!
real 192.81
user 186.54
sys 5.75

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/842207/ft1_filtered_4FGL_J2324.7+0801_daily_bin954.fits scfile=/scratch/kocevski/842207/ft2_4FGL_J2324.7+0801_daily_bin954.fits outfile=/scratch/kocevski/842207/cmap_486604801_486864001_4FGL_J2324.7+0801_daily_bin954.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842207/ft1_filtered_4FGL_J2324.7+0801_daily_bin954.fits scfile=/scratch/kocevski/842207/ft2_4FGL_J2324.7+0801_daily_bin954.fits outfile=/scratch/kocevski/842207/cmap_HighResolution_486604801_486864001_4FGL_J2324.7+0801_daily_bin954.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.58
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842207/ft1_filtered_4FGL_J2324.7+0801_daily_bin954.fits evtable="EVENTS" scfile=/scratch/kocevski/842207/ft2_4FGL_J2324.7+0801_daily_bin954.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842207/Model_4FGL_J2324.7+0801_daily_bin954.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/842207/ft1_filtered_4FGL_J2324.7+0801_daily_bin954.fits.....................!
real 83.64
user 82.01
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2537       1.0000         .10000E-03   10000.    
     3 'norm      '    7.0329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.812       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3574       1.0000         .10000E-03   10000.    
     9 'norm      '    .22008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9689       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.896       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0564       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.335       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.311       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8183       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4800       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78429       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=   7486.612     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2893 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.460        .30196E-05** at limit **
   2  Prefactor     1.2537        .22121        .93094E-09   -.49404E-03
   3  norm          7.0333        10.429        .83659E-08   -.73452E-05
   4  Prefactor     .10000E-03    29.191        .95358E-05** at limit **
   5  Prefactor     .10000E-03    3.5836        .17824E-07** at limit **
   6  Prefactor     23.813        13.316       -.58203E-07   -.27043E-04
   7  Prefactor     .10000E-03    11.939       -.32961E-05** at limit **
   8  Prefactor     4.3580        4.8911        .22251E-06   -.12608E-04
   9  norm          .21995        .73809        .57859E-07   -.53406E-03
  10  Prefactor     2.9681        3.6997        .72314E-06   -.14312E-02
  11  Prefactor     24.893        21.313       -.65190E-06   -.21649E-04
  12  Prefactor     .10000E-03    22.977       -.96212E-05** at limit **
  13  norm          .10000E-03    2.9313       -.83018E-07** at limit **
  14  Prefactor     3.0575        4.5183        .43891E-06   -.55477E-04
  15  Prefactor     .10000E-03    58.369       -.34889E-05** at limit **
  16  Prefactor     16.340        11.414       -.49302E-07   -.20630E-04
  17  Prefactor     .10000E-03    6.6235       -.81341E-07** at limit **
  18  norm          .10000E-03    3.8507       -.30160E-06** at limit **
  19  norm          .10000E-03    8.9435        .47362E-06** at limit **
  20  Prefactor     .10000E-03    3.8067        .31157E-06** at limit **
  21  Prefactor     .10000E-03    13.154        .23751E-05** at limit **
  22  Prefactor     28.312        24.014        .35892E-06    .12616E-05
  23  Prefactor     5.8183        7.3842        .23785E-07   -.26201E-04
  24  Normalizat    1.4798        .21530       -.12926E-06   -.34927E-04
  25  Prefactor     .78443        .13019       -.91254E-07   -.36916E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.25369
  norm       = 7.03333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8126
  Prefactor  = 0.0001
  Prefactor  = 4.35802
  norm       = 0.21995
  Prefactor  = 2.96809
  Prefactor  = 24.8927
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.05754
  Prefactor  = 0.0001
  Prefactor  = 16.3395
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.312
  Prefactor  = 5.81832
  Normalizat = 1.47982
  Prefactor  = 0.784428
 **********
 **   18 **HESSE 
 **********

 FCN=   7486.612     FROM HESSE     STATUS=OK           427 CALLS     3320 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2537        .22143        .16462E-04   -1.5484    
   3  norm          7.0333        10.427        .15127E-03   -1.5177    
   4  Prefactor     .10000E-03    29.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6116        .15991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.813        13.324        .82087E-04   -1.4732    
   7  Prefactor     .10000E-03    11.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3580        4.8816        .19296E-03   -1.5290    
   9  norm          .21995        .73095        .13201E-03   -1.5614    
  10  Prefactor     2.9681        7.8902        .11783E-02   -1.5363    
  11  Prefactor     24.893        21.324        .80284E-04   -1.4710    
  12  Prefactor     .10000E-03    23.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.9484        .14463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0575        4.5068        .21505E-03   -1.5358    
  15  Prefactor     .10000E-03    58.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.340        11.394        .99097E-04   -1.4899    
  17  Prefactor     .10000E-03    6.6326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.8525        .16582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.9467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8889        .32885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     28.312        24.075        .75295E-04   -1.4643    
  23  Prefactor     5.8183        7.3835        .16650E-03   -1.5225    
  24  Normalizat    1.4798        .25504        .28809E-03   -.78347    
  25  Prefactor     .78443        .15343        .23613E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.338e-09
Minuit parameter uncertainties:
  1  4.75881e-05
  2  0.221425
  3  10.4297
  4  0.000226648
  5  4.83864e-07
  6  13.3253
  7  4.84672e-05
  8  4.88203
  9  0.730983
  10  7.89293
  11  21.3304
  12  0.000209125
  13  3.04643e-06
  14  4.50726
  15  0.000123279
  16  11.3958
  17  1.87301e-06
  18  2.66249e-06
  19  7.42343e-06
  20  2.67155e-06
  21  3.86592e-05
  22  24.0831
  23  7.3847
  24  0.255263
  25  0.153518
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.968e+00  7.893e+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:  7.844e-01  1.535e-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:  1.480e+00  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/842207/likelihoodResults_486604801_486864001_4FGL_J2324.7+0801_daily_bin954.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) = 7486.61186927
delta logL = 1.54273038788e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7486.61186921
delta logL = 2.10171492654e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9681       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2284       1.0000          .0000       10.000    
     3 'Normalizat'    1.4798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78442       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=   7486.612     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      226 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9654        9.8003        .23569E-03    .24138E-03
   2  Index         2.2290        1.4479        .12947E-01    .82671E-04
   3  Normalizat    1.4798        .24561        .28809E-03   -.97200E-03
   4  Prefactor     .78443        .15289        .23613E-03   -.13801E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.96538
  Index      = 2.22897
  Normalizat = 1.47981
  Prefactor  = 0.78443
 **********
 **   18 **HESSE 
 **********

 FCN=   7486.612     FROM HESSE     STATUS=OK            25 CALLS      251 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9654        8.9888        .94275E-05   -1.5364    
   2  Index         2.2290        1.3335        .51787E-03   -.58741    
   3  Normalizat    1.4798        .24565        .57618E-04   -.78347    
   4  Prefactor     .78443        .15289        .47225E-04   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15958e-09
Minuit parameter uncertainties:
  1  8.99289
  2  1.35749
  3  0.245849
  4  0.152977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842207': 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) = 7486.61186913
delta logL = 2.89897798211e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.965e+00  8.993e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.229e+00  1.357e+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:  7.844e-01  1.530e-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:  1.480e+00  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/842207/cmap_HighResolution_486604801_486864001_4FGL_J2324.7+0801_daily_bin954.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', job_status='DONE', photon_flux_upper_limit='8.43e-08', time_completed='2021-09-29 16:35:57.305939', job_id='842207', GAL2='0.78', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1632958557.31', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.90e-07', ts2='0.17', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='954' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:35:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 842207: <4FGL_J2324.7+0801_daily_bin954> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin954> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 16:20:31 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:20:33 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:33 2021
Terminated at Wed Sep 29 16:35:57 2021
Results reported at Wed Sep 29 16:35:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin954 351.19 8.0282 486604801 486864001 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 :                                   767.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

