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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1551
RA = 351.19, Dec = 8.0282
tmin = 641347201, tmax = 641606401
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='844141', job_status='RUN', time_executed='2021-09-29 16:29:37.260107', time_epoch_executed='1632958177.26' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844141

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844141/ft1_4FGL_J2324.7+0801_daily_bin1551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844141/ft2_4FGL_J2324.7+0801_daily_bin1551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844141/ft1_4FGL_J2324.7+0801_daily_bin1551.fits outfile=/scratch/kocevski/844141/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1551.fits ra=351.19 dec=8.0282 rad=12.0 tmin=641347201.0 tmax=641606401.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 2.81
user 2.59
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/844141/ft2_4FGL_J2324.7+0801_daily_bin1551.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/844141/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1551.fits evtable="EVENTS" outfile="/scratch/kocevski/844141/ft1_filtered_4FGL_J2324.7+0801_daily_bin1551.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844141/ft1_filtered_4FGL_J2324.7+0801_daily_bin1551.fits" evtable="EVENTS" scfile=/scratch/kocevski/844141/ft2_4FGL_J2324.7+0801_daily_bin1551.fits sctable="SC_DATA" outfile=/scratch/kocevski/844141/ltcube_641347201_641606401_4FGL_J2324.7+0801_daily_bin1551.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/844141/ft2_4FGL_J2324.7+0801_daily_bin1551.fits
.....................!
real 12.38
user 12.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844141/ft1_filtered_4FGL_J2324.7+0801_daily_bin1551.fits evtable="EVENTS" scfile=/scratch/kocevski/844141/ft2_4FGL_J2324.7+0801_daily_bin1551.fits sctable="SC_DATA" expcube=/scratch/kocevski/844141/ltcube_641347201_641606401_4FGL_J2324.7+0801_daily_bin1551.fits outfile=/scratch/kocevski/844141/expmap_641347201_641606401_4FGL_J2324.7+0801_daily_bin1551.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/844141/ltcube_641347201_641606401_4FGL_J2324.7+0801_daily_bin1551.fits
.....................!
real 190.80
user 185.68
sys 4.76

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/844141/ft1_filtered_4FGL_J2324.7+0801_daily_bin1551.fits scfile=/scratch/kocevski/844141/ft2_4FGL_J2324.7+0801_daily_bin1551.fits outfile=/scratch/kocevski/844141/cmap_641347201_641606401_4FGL_J2324.7+0801_daily_bin1551.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844141/ft1_filtered_4FGL_J2324.7+0801_daily_bin1551.fits scfile=/scratch/kocevski/844141/ft2_4FGL_J2324.7+0801_daily_bin1551.fits outfile=/scratch/kocevski/844141/cmap_HighResolution_641347201_641606401_4FGL_J2324.7+0801_daily_bin1551.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .50424       1.0000         .10000E-03   10000.    
     3 'norm      '    25.099       1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.833       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.074       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5081       1.0000         .10000E-03   10000.    
     9 'norm      '    .13498E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1156       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10722E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.669       1.0000         .10000E-03   10000.    
    15 'Prefactor '    66.072       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8248       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87759       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85514       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=   5463.669     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2889 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1519       -.14449E-06** at limit **
   2  Prefactor     .50428        .15596        .13038E-08   -.78616E-04
   3  norm          25.098        14.349        .56359E-07   -.27993E-04
   4  Prefactor     54.838        39.457        .83489E-06    .13305E-03
   5  Prefactor     .10000E-03    1.6348        .68213E-08** at limit **
   6  Prefactor     16.076        12.262       -.12955E-06    .83593E-06
   7  Prefactor     .10000E-03    18.937       -.58538E-07** at limit **
   8  Prefactor     7.5086        6.1167        .34621E-06   -.18395E-03
   9  norm          .10000E-03    .82131       -.46062E-07** at limit **
  10  Prefactor     4.1166        11.103        .66528E-05   -.52271E-03
  11  Prefactor     .10000E-03    12.981       -.36247E-06** at limit **
  12  Prefactor     .10000E-03    19.751       -.12225E-05** at limit **
  13  norm          .10000E-03    8.6985       -.64701E-06** at limit **
  14  Prefactor     17.668        8.9424       -.41188E-06   -.20730E-04
  15  Prefactor     65.989        162.78       -.20059E-04   -.16263E-03
  16  Prefactor     .10000E-03    4.8904       -.53280E-07** at limit **
  17  Prefactor     .10000E-03    12.250       -.12640E-05** at limit **
  18  norm          .10000E-03    8.8101       -.11306E-06** at limit **
  19  norm          .10000E-03    8.5239        .37894E-06** at limit **
  20  Prefactor     .10000E-03    2.9403       -.28948E-06** at limit **
  21  Prefactor     .10000E-03    13.914        .58542E-06** at limit **
  22  Prefactor     .10000E-03    16.310        .19516E-05** at limit **
  23  Prefactor     6.8251        8.2795        .85396E-06   -.23145E-03
  24  Normalizat    .87740        .20870       -.49110E-07   -.39331E-04
  25  Prefactor     .85522        .12659       -.29124E-06   -.16689E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.504279
  norm       = 25.0979
  Prefactor  = 54.838
  Prefactor  = 0.0001
  Prefactor  = 16.0761
  Prefactor  = 0.0001
  Prefactor  = 7.50856
  norm       = 0.000100003
  Prefactor  = 4.11662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.6684
  Prefactor  = 65.9892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.82512
  Normalizat = 0.877398
  Prefactor  = 0.85522
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.669     FROM HESSE     STATUS=OK           421 CALLS     3310 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1581        .16387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .50428        .15550        .15653E-04   -1.5566    
   3  norm          25.098        14.354        .79959E-04   -1.4706    
   4  Prefactor     54.838        39.611        .54169E-04   -1.4226    
   5  Prefactor     .10000E-03    1.6400        .92294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.076        12.261        .99897E-04   -1.4906    
   7  Prefactor     .10000E-03    19.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.5086        6.1237        .73181E-03   -1.5160    
   9  norm          .10000E-03    2.1983        .12904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1166        11.851        .99354E-03   -1.5302    
  11  Prefactor     .10000E-03    13.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.8214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.668        8.9441        .95284E-04   -1.4867    
  15  Prefactor     65.989        176.50        .24687E-03   -1.4081    
  16  Prefactor     .10000E-03    4.9040        .15964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.8344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.5454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.9618        .12357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.8251        8.3057        .76791E-03   -1.5185    
  24  Normalizat    .87740        .24235        .30422E-03   -.97259    
  25  Prefactor     .85522        .14791        .19171E-03   -.97724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06463e-09
Minuit parameter uncertainties:
  1  1.13841e-05
  2  0.155496
  3  14.3559
  4  39.6301
  5  1.72822e-07
  6  12.2626
  7  2.79944e-05
  8  6.1242
  9  0.000167846
  10  11.8581
  11  4.67169e-05
  12  0.000173498
  13  7.82285e-05
  14  8.9448
  15  177.93
  16  3.55408e-05
  17  0.000153345
  18  1.26093e-05
  19  7.18691e-05
  20  3.55149e-05
  21  7.20132e-05
  22  0.000249935
  23  8.30705
  24  0.242649
  25  0.147977
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.117e+00  1.186e+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:  8.552e-01  1.480e-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:  8.774e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/844141/likelihoodResults_641347201_641606401_4FGL_J2324.7+0801_daily_bin1551.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) = 5463.39469801
delta logL = 0.27479555541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5463.3252039
delta logL = 0.34428966506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9574       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2615       1.0000          .0000       10.000    
     3 'Normalizat'    .82937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86910       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5463.325     FROM MIGRAD    STATUS=FAILED        84 CALLS      264 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9571        117.22        .11245E-03   -.21732E-02
   2  Index         3.2615        6.4996        .52059E-02   -.42025E-03
   3  Normalizat    .82933        .29763        .31177E-03   -.48668E-03
   4  Prefactor     .86914        .18008        .19018E-03   -.62885E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5463.325     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      349 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9571        117.22        .19854E-03   -.21732E-02
   2  Index         3.2615        6.4996        .14075E-02   -.42025E-03
   3  Normalizat    .82933        .29763        .27170E-03   -.48668E-03
   4  Prefactor     .86914        .18008        .19644E-03   -.62885E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5463.325     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      380 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9569        5.7533        .44981E-05   -.94527E-04
   2  Index         3.2616        1.3471        .20824E-03   -.13157E-04
   3  Normalizat    .82933        .24583        .62353E-04   -.33913E-05
   4  Prefactor     .86914        .14960        .38036E-04   -.28693E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.95691
  Index      = 3.26156
  Normalizat = 0.829334
  Prefactor  = 0.869145
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.325     FROM HESSE     STATUS=OK            23 CALLS      403 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9569        5.6495        .89961E-06   -1.5428    
   2  Index         3.2616        1.3234        .83295E-05   -.35510    
   3  Normalizat    .82933        .24578        .12471E-04   -.98990    
   4  Prefactor     .86914        .14957        .76073E-05   -.97228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36464e-12
Minuit parameter uncertainties:
  1  5.65105
  2  1.34167
  3  0.246112
  4  0.149637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844141': 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) = 5463.32520384
delta logL = 0.344289721437

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.957e+00  5.651e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.262e+00  1.342e+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.691e-01  1.496e-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:  8.293e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/844141/cmap_HighResolution_641347201_641606401_4FGL_J2324.7+0801_daily_bin1551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.02e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-29 16:40:06.688696', job_id='844141', GAL2='0.87', fit_tolerance='1e-08', EG2='0.83', EG='0.88', time_epoch_completed='1632958806.69', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.44e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1551' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:40:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 844141: <4FGL_J2324.7+0801_daily_bin1551> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1551> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:26:12 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:26:14 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:26:14 2021
Terminated at Wed Sep 29 16:40:07 2021
Results reported at Wed Sep 29 16:40:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1551 351.19 8.0282 641347201 641606401 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 :                                   624.18 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             236.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

