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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin666
RA = 351.19, Dec = 8.0282
tmin = 411955201, tmax = 412214401
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='840707', job_status='RUN', time_executed='2021-09-29 16:16:30.364948', time_epoch_executed='1632957390.36' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840707/ft1_4FGL_J2324.7+0801_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840707/ft2_4FGL_J2324.7+0801_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840707/ft1_4FGL_J2324.7+0801_daily_bin666.fits outfile=/scratch/kocevski/840707/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin666.fits ra=351.19 dec=8.0282 rad=12.0 tmin=411955201.0 tmax=412214401.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 5.57
user 5.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840707/ft1_filtered_4FGL_J2324.7+0801_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/840707/ft2_4FGL_J2324.7+0801_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/840707/ltcube_411955201_412214401_4FGL_J2324.7+0801_daily_bin666.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/840707/ft2_4FGL_J2324.7+0801_daily_bin666.fits
.....................!
real 11.88
user 11.56
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840707/ft1_filtered_4FGL_J2324.7+0801_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/840707/ft2_4FGL_J2324.7+0801_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/840707/ltcube_411955201_412214401_4FGL_J2324.7+0801_daily_bin666.fits outfile=/scratch/kocevski/840707/expmap_411955201_412214401_4FGL_J2324.7+0801_daily_bin666.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/840707/ltcube_411955201_412214401_4FGL_J2324.7+0801_daily_bin666.fits
.....................!
real 192.24
user 187.11
sys 4.81

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/840707/ft1_filtered_4FGL_J2324.7+0801_daily_bin666.fits scfile=/scratch/kocevski/840707/ft2_4FGL_J2324.7+0801_daily_bin666.fits outfile=/scratch/kocevski/840707/cmap_411955201_412214401_4FGL_J2324.7+0801_daily_bin666.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/840707/ft1_filtered_4FGL_J2324.7+0801_daily_bin666.fits scfile=/scratch/kocevski/840707/ft2_4FGL_J2324.7+0801_daily_bin666.fits outfile=/scratch/kocevski/840707/cmap_HighResolution_411955201_412214401_4FGL_J2324.7+0801_daily_bin666.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840707/ft1_filtered_4FGL_J2324.7+0801_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/840707/ft2_4FGL_J2324.7+0801_daily_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840707/Model_4FGL_J2324.7+0801_daily_bin666.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/840707/ft1_filtered_4FGL_J2324.7+0801_daily_bin666.fits......................!
real 36.32
user 35.08
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    2.1867       1.0000         .10000E-03   10000.    
     3 'norm      '    .10441E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.803       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    65.142       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38928E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4011       1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.450       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .70441E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .57451       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.692       1.0000         .10000E-03   10000.    
    18 'norm      '    .10501E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3160       1.0000         .10000E-03   10000.    
    21 'Prefactor '    105.57       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.117       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .31918       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1790       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=   2583.128     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2895 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.365       -.54367E-07** at limit **
   2  Prefactor     2.1866        .41510       -.18555E-07   -.37767E-03
   3  norm          .10000E-03    71.563        .28317E-07** at limit **
   4  Prefactor     28.787        65.140       -.11774E-05   -.13833E-04
   5  Prefactor     .10000E-03    28.092       -.26312E-06** at limit **
   6  Prefactor     .10000E-03    9.6796       -.11649E-06** at limit **
   7  Prefactor     65.128        47.659       -.58529E-06   -.35795E-05
   8  Prefactor     .10000E-03    20.886       -.24305E-06** at limit **
   9  norm          .10000E-03    1.0727        .76137E-07** at limit **
  10  Prefactor     .10000E-03    14.735       -.40753E-06** at limit **
  11  Prefactor     7.3307        58.066       -.16351E-05   -.15646E-04
  12  Prefactor     52.608        109.86       -.21520E-05    .35424E-04
  13  norm          .10000E-03    18.461       -.72988E-06** at limit **
  14  Prefactor     .10000E-03    9.5638       -.35468E-06** at limit **
  15  Prefactor     .10000E-03    479.95        .44551E-06** at limit **
  16  Prefactor     .15464        33.963        .24441E-05    .72511E-04
  17  Prefactor     25.660        51.970       -.79090E-06   -.17736E-04
  18  norm          .10000E-03    52.358       -.27009E-06** at limit **
  19  norm          .10000E-03    32.060        .19652E-06** at limit **
  20  Prefactor     9.4039        12.291       -.27393E-05    .85494E-04
  21  Prefactor     105.58        78.998       -.10266E-05    .13275E-04
  22  Prefactor     .10000E-03    35.613       -.16419E-06** at limit **
  23  Prefactor     11.118        13.982       -.12998E-06   -.12670E-04
  24  Normalizat    .31959        .47848        .10600E-04    .10892E-04
  25  Prefactor     1.1791        .27208       -.30696E-05    .76010E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.18663
  norm       = 0.0001
  Prefactor  = 28.787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.1276
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.33074
  Prefactor  = 52.6077
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.15464
  Prefactor  = 25.6601
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.40391
  Prefactor  = 105.58
  Prefactor  = 0.0001
  Prefactor  = 11.1175
  Normalizat = 0.319594
  Prefactor  = 1.1791
 **********
 **   18 **HESSE 
 **********

 FCN=   2583.128     FROM HESSE     STATUS=OK           429 CALLS     3324 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1866        .41404        .13552E-04   -1.5412    
   3  norm          .10000E-03    72.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.787        64.794        .74650E-04   -1.4634    
   5  Prefactor     .10000E-03    28.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.6837        .15445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     65.128        47.566        .49723E-04   -1.4092    
   8  Prefactor     .10000E-03    21.612        .42552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.0800        .51353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3307        54.757        .14743E-03   -1.5166    
  12  Prefactor     52.608        109.72        .27690E-03   -1.4256    
  13  norm          .10000E-03    18.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6162        .15341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    480.03        .20976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .15464        71.251        .78520E-01   -1.5629    
  17  Prefactor     25.660        51.724        .79032E-04   -1.4694    
  18  norm          .10000E-03    53.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    32.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.4039        14.086        .13130E-03   -1.5095    
  21  Prefactor     105.58        78.943        .19569E-03   -1.3649    
  22  Prefactor     .10000E-03    35.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.118        13.971        .12015E-03   -1.5041    
  24  Normalizat    .31959        .43442        .55848E-03   -1.2169    
  25  Prefactor     1.1791        .25670        .19128E-03   -.86977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.423e-10
Minuit parameter uncertainties:
  1  3.2442e-06
  2  0.414037
  3  3.19831e-05
  4  64.9525
  5  3.88866e-05
  6  6.73776e-06
  7  47.5937
  8  4.0057e-06
  9  6.34649e-07
  10  3.43532e-05
  11  40.1217
  12  110.149
  13  8.03095e-05
  14  2.12094e-05
  15  0.000754353
  16  6.64457
  17  51.815
  18  3.33265e-05
  19  3.11366e-05
  20  14.091
  21  79.0212
  22  2.4681e-05
  23  13.9754
  24  0.439117
  25  0.256975
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  3.435e-05  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:  1.179e+00  2.570e-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:  3.196e-01  4.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840707/likelihoodResults_411955201_412214401_4FGL_J2324.7+0801_daily_bin666.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): 102
logL (Free Index) = 2583.12855578
delta logL = -0.000322284116464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2583.12823349
delta logL = 6.10589268035e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3357       1.0000          .0000       10.000    
     3 'Normalizat'    .31957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1791       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.

 FCN=   2583.128     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    764.99        .90712E-02** at limit **
   2  Index         2.3390        6.1695        .50000       -.21370E-05
   3  Normalizat    .31959        .67187E-01    .12608        .27220E-04
   4  Prefactor     1.1791        .43077E-01    .35145E-01    .37087E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33903
  Normalizat = 0.319593
  Prefactor  = 1.1791
 **********
 **   18 **HESSE 
 **********

 FCN=   2583.128     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1312.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3390        8.0665        .50000       -.56119    
   3  Normalizat    .31959        .93857E-01    .55850E-03   -1.2169    
   4  Prefactor     1.1791        .60378E-01    .19128E-03   -.86977    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.66759e-10
Minuit parameter uncertainties:
  1  4.27809e-05
  2  40.77
  3  0.0939026
  4  0.0603811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840707': 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): 102
logL (Free Index) = 2583.12823347
delta logL = 3.43993633578e-08

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.278e-05  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.339e+00  4.077e+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:  1.179e+00  6.038e-02  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:  3.196e-01  9.390e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/840707/cmap_HighResolution_411955201_412214401_4FGL_J2324.7+0801_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', job_status='DONE', photon_flux_upper_limit='1.87e-07', time_completed='2021-09-29 16:24:23.511540', job_id='840707', GAL2='1.18', fit_tolerance='1e-08', EG2='0.32', EG='0.32', time_epoch_completed='1632957863.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='666' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:24:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 840707: <4FGL_J2324.7+0801_daily_bin666> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin666> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:15:27 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:15:29 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:15:29 2021
Terminated at Wed Sep 29 16:24:24 2021
Results reported at Wed Sep 29 16:24:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin666 351.19 8.0282 411955201 412214401 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 :                                   471.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             359.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   534 sec.
    Turnaround time :                            537 sec.

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

