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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1556
RA = 351.19, Dec = 8.0282
tmin = 642643201, tmax = 642902401
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='844146', job_status='RUN', time_executed='2021-09-29 16:28:37.230638', time_epoch_executed='1632958117.23' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844146

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844146/ft1_4FGL_J2324.7+0801_daily_bin1556.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844146/ft2_4FGL_J2324.7+0801_daily_bin1556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844146/ft1_4FGL_J2324.7+0801_daily_bin1556.fits outfile=/scratch/kocevski/844146/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1556.fits ra=351.19 dec=8.0282 rad=12.0 tmin=642643201.0 tmax=642902401.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.64
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844146/ft1_filtered_4FGL_J2324.7+0801_daily_bin1556.fits" evtable="EVENTS" scfile=/scratch/kocevski/844146/ft2_4FGL_J2324.7+0801_daily_bin1556.fits sctable="SC_DATA" outfile=/scratch/kocevski/844146/ltcube_642643201_642902401_4FGL_J2324.7+0801_daily_bin1556.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/844146/ft2_4FGL_J2324.7+0801_daily_bin1556.fits
.....................!
real 12.06
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844146/ft1_filtered_4FGL_J2324.7+0801_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/844146/ft2_4FGL_J2324.7+0801_daily_bin1556.fits sctable="SC_DATA" expcube=/scratch/kocevski/844146/ltcube_642643201_642902401_4FGL_J2324.7+0801_daily_bin1556.fits outfile=/scratch/kocevski/844146/expmap_642643201_642902401_4FGL_J2324.7+0801_daily_bin1556.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/844146/ltcube_642643201_642902401_4FGL_J2324.7+0801_daily_bin1556.fits
.....................!
real 189.53
user 184.90
sys 4.32

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/844146/ft1_filtered_4FGL_J2324.7+0801_daily_bin1556.fits scfile=/scratch/kocevski/844146/ft2_4FGL_J2324.7+0801_daily_bin1556.fits outfile=/scratch/kocevski/844146/cmap_642643201_642902401_4FGL_J2324.7+0801_daily_bin1556.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844146/ft1_filtered_4FGL_J2324.7+0801_daily_bin1556.fits scfile=/scratch/kocevski/844146/ft2_4FGL_J2324.7+0801_daily_bin1556.fits outfile=/scratch/kocevski/844146/cmap_HighResolution_642643201_642902401_4FGL_J2324.7+0801_daily_bin1556.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844146/ft1_filtered_4FGL_J2324.7+0801_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/844146/ft2_4FGL_J2324.7+0801_daily_bin1556.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844146/Model_4FGL_J2324.7+0801_daily_bin1556.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/844146/ft1_filtered_4FGL_J2324.7+0801_daily_bin1556.fits.....................!
real 73.83
user 72.62
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72076E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58192       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9440       1.0000         .10000E-03   10000.    
     4 'Prefactor '    68.919       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0756       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.860       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11426E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3665       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5568       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .55245E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6507       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.375       1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.920       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.7698       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76845       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88557       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=   6670.397     FROM MIGRAD    STATUS=CONVERGED   1038 CALLS     3444 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88936E-01    15.493        .90237E-01    .15711E-03
   2  Prefactor     .58192        .16635        .16727E-04    .94471E-04
   3  norm          3.9439        12.435        .20312E-03    .62686E-05
   4  Prefactor     68.929        40.611        .48351E-04   -.51728E-05
   5  Prefactor     3.0767        5.9910        .23129E-03    .32442E-04
   6  Prefactor     .10000E-03    15.760        .18142E-02** at limit **
   7  Prefactor     .10000E-03    6.0631        .18142E-02** at limit **
   8  Prefactor     24.864        9.0430        .80341E-04    .42452E-06
   9  norm          .10000E-03    .24234        .38999E-03** at limit **
  10  Prefactor     .10000E-03    5.4371        .18142E-02** at limit **
  11  Prefactor     .10000E-03    13.229        .18142E-02** at limit **
  12  Prefactor     .10000E-03    190.70        .18142E-02** at limit **
  13  norm          .10000E-03    6.2181        .18142E-02** at limit **
  14  Prefactor     8.3635        8.1352        .13860E-03    .13124E-05
  15  Prefactor     .10000E-03    136.22        .18142E-02** at limit **
  16  Prefactor     1.5563        9.0687        .34116E-03   -.13829E-04
  17  Prefactor     .10000E-03    125.94        .64349E-02** at limit **
  18  norm          .10000E-03    5.4848        .18142E-02** at limit **
  19  norm          .10000E-03    14.436        .18142E-02** at limit **
  20  Prefactor     3.6524        4.2692        .16608E-03   -.59622E-04
  21  Prefactor     28.364        27.713        .75210E-04   -.93718E-05
  22  Prefactor     40.921        26.969        .62663E-04    .36285E-05
  23  Prefactor     6.7708        6.2341        .15421E-03    .60451E-05
  24  Normalizat    .76821        .23078        .31603E-03    .48564E-05
  25  Prefactor     .88559        .13411        .18643E-03   -.90520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0889358
  Prefactor  = 0.581919
  norm       = 3.94387
  Prefactor  = 68.9291
  Prefactor  = 3.0767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8637
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.36354
  Prefactor  = 0.0001
  Prefactor  = 1.55631
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.65242
  Prefactor  = 28.3645
  Prefactor  = 40.9211
  Prefactor  = 6.77078
  Normalizat = 0.768211
  Prefactor  = 0.885592
 **********
 **   18 **HESSE 
 **********

 FCN=   6670.397     FROM HESSE     STATUS=OK           411 CALLS     3855 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88936E-01    14.284        .96550E-01   -1.5648    
   2  Prefactor     .58192        .16639        .66909E-06   -1.5555    
   3  norm          3.9439        12.434        .81249E-05   -1.5311    
   4  Prefactor     68.929        40.617        .19340E-05   -1.4046    
   5  Prefactor     3.0767        5.9903        .92514E-05   -1.5357    
   6  Prefactor     .10000E-03    15.770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.864        9.0426        .32136E-05   -1.4710    
   9  norm          .10000E-03    .24234        .77999E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.231        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    190.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.2195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3635        8.1317        .55438E-05   -1.5129    
  15  Prefactor     .10000E-03    136.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5563        9.0535        .13647E-04   -1.5458    
  17  Prefactor     .10000E-03    128.64        .12870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.4851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.436        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6524        4.2663        .66432E-05   -1.5326    
  21  Prefactor     28.364        27.714        .30084E-05   -1.4642    
  22  Prefactor     40.921        26.968        .25065E-05   -1.4428    
  23  Prefactor     6.7708        6.2340        .61685E-05   -1.5187    
  24  Normalizat    .76821        .23093        .12641E-04   -1.0126    
  25  Prefactor     .88559        .13420        .37286E-04   -.96646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51034e-10
Minuit parameter uncertainties:
  1  2.25351
  2  0.166393
  3  12.4426
  4  40.6333
  5  5.99147
  6  3.08896e-06
  7  6.45057e-07
  8  9.04307
  9  4.10072e-07
  10  4.03732e-07
  11  3.32006e-06
  12  0.00026306
  13  2.24896e-06
  14  8.1328
  15  0.000179439
  16  7.50881
  17  6.4086e-06
  18  1.51168e-06
  19  2.41376e-05
  20  4.26668
  21  27.7267
  22  26.9757
  23  6.23464
  24  0.231226
  25  0.134249
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.037e-07  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.856e-01  1.342e-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:  7.682e-01  2.312e-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: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/844146/likelihoodResults_642643201_642902401_4FGL_J2324.7+0801_daily_bin1556.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) = 6670.39794562
delta logL = -0.000876477825841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6670.39706985
delta logL = -7.04792910255e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2411       1.0000          .0000       10.000    
     3 'Normalizat'    .76803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88571       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=   6670.397     FROM MIGRAD    STATUS=FAILED        89 CALLS      242 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    435.06        .18142E-02** at limit **
   2  Index         2.2544        6.6549        .50000       -.21357E-04
   3  Normalizat    .76821        .46287E-01    .31603E-03    .34282E-04
   4  Prefactor     .88559        .29381E-01    .18643E-03    .50309E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6670.397     FROM SIMPLEX   STATUS=UNCHANGED    169 CALLS      411 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    435.06        .35616E-03** at limit **
   2  Index         2.2544        6.6549        .32587E-05   -.21357E-04
   3  Normalizat    .76821        .46287E-01    .95854E-07    .34282E-04
   4  Prefactor     .88559        .29381E-01    .26942E-07    .50309E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6670.397     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      445 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1235.0        .36285E-03** at limit **
   2  Index         2.2546        6.8124        .50000       -.21365E-04
   3  Normalizat    .76821        .15016        .12641E-04    .32376E-04
   4  Prefactor     .88559        .95335E-01    .74573E-05    .47260E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.25457
  Normalizat = 0.768211
  Prefactor  = 0.885593
 **********
 **   18 **HESSE 
 **********

 FCN=   6670.397     FROM HESSE     STATUS=OK            29 CALLS      474 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8211        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2546        6.1254        .50000       -.58127    
   3  Normalizat    .76821        .20729        .25283E-05   -1.0126    
   4  Prefactor     .88559        .13167        .14915E-05   -.96646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33055e-10
Minuit parameter uncertainties:
  1  0.000239498
  2  4.29713
  3  0.207499
  4  0.131718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844146': 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) = 6670.39706901
delta logL = 1.31283741212e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  2.395e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.255e+00  4.297e+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.856e-01  1.317e-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:  7.682e-01  2.075e-01  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/844146/cmap_HighResolution_642643201_642902401_4FGL_J2324.7+0801_daily_bin1556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-29 16:41:11.554824', job_id='844146', GAL2='0.89', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632958871.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1556' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:41:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 844146: <4FGL_J2324.7+0801_daily_bin1556> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1556> 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) <bullet0278>, 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:41:12 2021
Results reported at Wed Sep 29 16:41:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1556 351.19 8.0282 642643201 642902401 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 :                                   749.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

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

