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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin662
RA = 351.19, Dec = 8.0282
tmin = 410918401, tmax = 411177601
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='840700', job_status='RUN', time_executed='2021-09-29 16:16:55.454031', time_epoch_executed='1632957415.45' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840700/ft1_4FGL_J2324.7+0801_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840700/ft2_4FGL_J2324.7+0801_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840700/ft1_4FGL_J2324.7+0801_daily_bin662.fits outfile=/scratch/kocevski/840700/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin662.fits ra=351.19 dec=8.0282 rad=12.0 tmin=410918401.0 tmax=411177601.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 6.93
user 6.61
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840700/ft2_4FGL_J2324.7+0801_daily_bin662.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/840700/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin662.fits evtable="EVENTS" outfile="/scratch/kocevski/840700/ft1_filtered_4FGL_J2324.7+0801_daily_bin662.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/840700/ft1_filtered_4FGL_J2324.7+0801_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/840700/ft2_4FGL_J2324.7+0801_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/840700/ltcube_410918401_411177601_4FGL_J2324.7+0801_daily_bin662.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/840700/ft2_4FGL_J2324.7+0801_daily_bin662.fits
.....................!
real 11.92
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840700/ft1_filtered_4FGL_J2324.7+0801_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/840700/ft2_4FGL_J2324.7+0801_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/840700/ltcube_410918401_411177601_4FGL_J2324.7+0801_daily_bin662.fits outfile=/scratch/kocevski/840700/expmap_410918401_411177601_4FGL_J2324.7+0801_daily_bin662.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/840700/ltcube_410918401_411177601_4FGL_J2324.7+0801_daily_bin662.fits
.....................!
real 190.67
user 185.47
sys 4.88

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/840700/ft1_filtered_4FGL_J2324.7+0801_daily_bin662.fits scfile=/scratch/kocevski/840700/ft2_4FGL_J2324.7+0801_daily_bin662.fits outfile=/scratch/kocevski/840700/cmap_410918401_411177601_4FGL_J2324.7+0801_daily_bin662.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840700/ft1_filtered_4FGL_J2324.7+0801_daily_bin662.fits scfile=/scratch/kocevski/840700/ft2_4FGL_J2324.7+0801_daily_bin662.fits outfile=/scratch/kocevski/840700/cmap_HighResolution_410918401_411177601_4FGL_J2324.7+0801_daily_bin662.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840700/ft1_filtered_4FGL_J2324.7+0801_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/840700/ft2_4FGL_J2324.7+0801_daily_bin662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840700/Model_4FGL_J2324.7+0801_daily_bin662.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/840700/ft1_filtered_4FGL_J2324.7+0801_daily_bin662.fits.....................!
real 48.12
user 46.81
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.742       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6988       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.651       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.419       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.109       1.0000         .10000E-03   10000.    
     9 'norm      '    .85321       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8821       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22851E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.882       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .13154E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.669       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.440       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2827       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72328       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=   3761.618     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2920 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.739        38.346       -.22975E-05   -.31206E-05
   2  Prefactor     1.6988        .43451       -.73648E-07    .52678E-03
   3  norm          .10000E-03    5.9007       -.18401E-08** at limit **
   4  Prefactor     57.668        66.377        .74193E-05    .60821E-04
   5  Prefactor     22.417        14.485       -.13911E-05    .25191E-04
   6  Prefactor     .10000E-03    16.851       -.29648E-05** at limit **
   7  Prefactor     .10000E-03    7.9349        .24810E-06** at limit **
   8  Prefactor     14.108        13.255       -.11971E-05    .17945E-04
   9  norm          .85002        1.5128        .50486E-06    .12285E-02
  10  Prefactor     .10000E-03    4.5671       -.45117E-07** at limit **
  11  Prefactor     .10000E-03    32.860        .60062E-06** at limit **
  12  Prefactor     8.6610        130.12       -.36090E-03    .59670E-04
  13  norm          .10000E-03    2.8522       -.63711E-07** at limit **
  14  Prefactor     .10000E-03    3.2208       -.12955E-06** at limit **
  15  Prefactor     .10000E-03    281.96        .18011E-03** at limit **
  16  Prefactor     16.894        24.514        .76303E-05    .29991E-03
  17  Prefactor     .10000E-03    10.858        .28092E-06** at limit **
  18  norm          .10000E-03    6.4286       -.42997E-07** at limit **
  19  norm          .10000E-03    109.00       -.19124E-04** at limit **
  20  Prefactor     14.661        10.434       -.16612E-05   -.65175E-03
  21  Prefactor     .10000E-03    12.928       -.11672E-05** at limit **
  22  Prefactor     17.447        35.107       -.98088E-05    .57992E-04
  23  Prefactor     .10000E-03    15.132        .28201E-05** at limit **
  24  Normalizat    1.2824        .28578        .12683E-04   -.51575E-04
  25  Prefactor     .72352        .16570        .31786E-05    .35894E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7388
  Prefactor  = 1.69878
  norm       = 0.0001
  Prefactor  = 57.6684
  Prefactor  = 22.4174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1076
  norm       = 0.850015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.66097
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8938
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 14.6606
  Prefactor  = 0.0001
  Prefactor  = 17.4467
  Prefactor  = 0.000100001
  Normalizat = 1.28238
  Prefactor  = 0.723522
 **********
 **   18 **HESSE 
 **********

 FCN=   3761.618     FROM HESSE     STATUS=OK           419 CALLS     3339 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.739        38.449        .87944E-04   -1.4797    
   2  Prefactor     1.6988        .43602        .19132E-04   -1.5447    
   3  norm          .10000E-03    5.9027        .14551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.668        66.951        .52836E-04   -1.4188    
   5  Prefactor     22.417        14.488        .84596E-04   -1.4761    
   6  Prefactor     .10000E-03    17.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9394        .16875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.108        13.263        .10663E-03   -1.4957    
   9  norm          .85002        1.4050        .92833E-03   -1.5524    
  10  Prefactor     .10000E-03    4.5737        .12801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.6610        131.37        .13449E-03   -1.5119    
  13  norm          .10000E-03    2.8540        .10116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2280        .10749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    282.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.894        24.410        .97478E-04   -1.4886    
  17  Prefactor     .10000E-03    10.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.4296        .15189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    109.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.661        10.459        .52288E-03   -1.4942    
  21  Prefactor     .10000E-03    12.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.447        35.232        .95907E-04   -1.4872    
  23  Prefactor     .10000E-03    15.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2824        .33491        .28815E-03   -.84094    
  25  Prefactor     .72352        .19288        .22773E-03   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85707e-09
Minuit parameter uncertainties:
  1  38.4947
  2  0.436017
  3  2.30001e-06
  4  67.0388
  5  14.4899
  6  0.0001555
  7  7.41214e-05
  8  13.2659
  9  1.40503
  10  9.73942e-06
  11  0.000228721
  12  67.641
  13  9.84293e-06
  14  2.29142e-05
  15  0.000176166
  16  24.4249
  17  3.21758e-06
  18  1.67177e-05
  19  0.000843642
  20  10.4602
  21  9.39704e-05
  22  35.274
  23  0.000203248
  24  0.335481
  25  0.193058
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  9.739e-06  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.235e-01  1.931e-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.282e+00  3.355e-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: 8.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840700/likelihoodResults_410918401_411177601_4FGL_J2324.7+0801_daily_bin662.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) = 3761.61877633
delta logL = -0.00102716209039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3761.61774908
delta logL = 8.49809111969e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2051       1.0000          .0000       10.000    
     3 'Normalizat'    1.2824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72354       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=   3761.618     FROM MIGRAD    STATUS=FAILED        87 CALLS      239 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10225E-03    66.687        .13078E-02** at limit **
   2  Index         2.1301        8.4443        .50000        .35208E-04
   3  Normalizat    1.2824        .26522E-01    .28815E-03   -.11087E-04
   4  Prefactor     .72352        .16313E-01    .22773E-03    .34371E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3761.618     FROM SIMPLEX   STATUS=PROGRESS     132 CALLS      371 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10210E-03    66.687        .26854E-03** at limit **
   2  Index         2.1288        8.4443        .46831E-03    .35208E-04
   3  Normalizat    1.2824        .26522E-01    .58876E-05   -.11087E-04
   4  Prefactor     .72351        .16313E-01    .40426E-05    .34371E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3761.618     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      423 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.829        .26155E-02** at limit **
   2  Index         1.6362        8.2918        .50000        .20132E-06
   3  Normalizat    1.2824        .28034E-01    .11526E-04   -.16502E-03
   4  Prefactor     .72352        .17243E-01    .91093E-05   -.25148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.63615
  Normalizat = 1.28239
  Prefactor  = 0.723515
 **********
 **   18 **HESSE 
 **********

 FCN=   3761.618     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      452 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    412.93        .52310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6362        9.0457        .50000       -.73795    
   3  Normalizat    1.2824        .63462E-01    .23052E-05   -.84094    
   4  Prefactor     .72352        .39031E-01    .18219E-05   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.85897e-09
Minuit parameter uncertainties:
  1  5.33226e-05
  2  1059.42
  3  0.0634656
  4  0.0390321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840700': 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) = 3761.61774624
delta logL = 2.92872891805e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  5.332e-05  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.636e+00  1.059e+03  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.235e-01  3.903e-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:  1.282e+00  6.347e-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/840700/cmap_HighResolution_410918401_411177601_4FGL_J2324.7+0801_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.25e-08', time_completed='2021-09-29 16:26:11.152465', job_id='840700', GAL2='0.72', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632957971.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.93e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='662' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:26:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 840700: <4FGL_J2324.7+0801_daily_bin662> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin662 351.19 8.0282 410918401 411177601 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 :                                   553.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            645 sec.

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

