/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 128 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 = 7470
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin440
RA = 351.19, Dec = 8.0282
tmin = 353376001, tmax = 353635201
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='839265', job_status='RUN', time_executed='2021-09-29 16:12:36.686213', time_epoch_executed='1632957156.69' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839265

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839265/ft1_4FGL_J2324.7+0801_daily_bin440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839265/ft2_4FGL_J2324.7+0801_daily_bin440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839265/ft1_4FGL_J2324.7+0801_daily_bin440.fits outfile=/scratch/kocevski/839265/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin440.fits ra=351.19 dec=8.0282 rad=12.0 tmin=353376001.0 tmax=353635201.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.47
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839265/ft1_filtered_4FGL_J2324.7+0801_daily_bin440.fits" evtable="EVENTS" scfile=/scratch/kocevski/839265/ft2_4FGL_J2324.7+0801_daily_bin440.fits sctable="SC_DATA" outfile=/scratch/kocevski/839265/ltcube_353376001_353635201_4FGL_J2324.7+0801_daily_bin440.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/839265/ft2_4FGL_J2324.7+0801_daily_bin440.fits
.....................!
real 11.98
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839265/ft1_filtered_4FGL_J2324.7+0801_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/839265/ft2_4FGL_J2324.7+0801_daily_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/839265/ltcube_353376001_353635201_4FGL_J2324.7+0801_daily_bin440.fits outfile=/scratch/kocevski/839265/expmap_353376001_353635201_4FGL_J2324.7+0801_daily_bin440.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/839265/ltcube_353376001_353635201_4FGL_J2324.7+0801_daily_bin440.fits
.....................!
real 191.40
user 185.68
sys 5.29

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/839265/ft1_filtered_4FGL_J2324.7+0801_daily_bin440.fits scfile=/scratch/kocevski/839265/ft2_4FGL_J2324.7+0801_daily_bin440.fits outfile=/scratch/kocevski/839265/cmap_353376001_353635201_4FGL_J2324.7+0801_daily_bin440.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839265/ft1_filtered_4FGL_J2324.7+0801_daily_bin440.fits scfile=/scratch/kocevski/839265/ft2_4FGL_J2324.7+0801_daily_bin440.fits outfile=/scratch/kocevski/839265/cmap_HighResolution_353376001_353635201_4FGL_J2324.7+0801_daily_bin440.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839265/ft1_filtered_4FGL_J2324.7+0801_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/839265/ft2_4FGL_J2324.7+0801_daily_bin440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839265/Model_4FGL_J2324.7+0801_daily_bin440.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/839265/ft1_filtered_4FGL_J2324.7+0801_daily_bin440.fits.....................!
real 68.02
user 66.23
sys 1.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54292       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43563E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6150       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.801       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2757       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33645E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .52707       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.486       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.218       1.0000         .10000E-03   10000.    
    13 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.879       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26078E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.001       1.0000         .10000E-03   10000.    
    19 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.271       1.0000         .10000E-03   10000.    
    21 'Prefactor '    112.98       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.294       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82595       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1092       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=   6214.359     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2948 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62673        9.8068        .10691E-06   -.34095E-03
   2  Prefactor     .43758E-01    .91490E-01   -.13087E-06   -.72263E-02
   3  norm          2.6182        12.973       -.18498E-05   -.17814E-03
   4  Prefactor     20.825        34.907        .23803E-04   -.39243E-04
   5  Prefactor     .10000E-03    2.5347       -.20914E-07** at limit **
   6  Prefactor     5.2740        9.1529       -.13554E-05   -.14142E-03
   7  Prefactor     .10027E-03    11.128        .17928E-05** at limit **
   8  Prefactor     .10000E-03    5.8133       -.37122E-06** at limit **
   9  norm          .52799        .89190       -.57520E-07   -.11231E-02
  10  Prefactor     18.489        10.149        .32896E-06   -.40103E-03
  11  Prefactor     .10000E-03    10.215       -.18390E-06** at limit **
  12  Prefactor     23.209        44.914       -.10714E-04   -.24024E-04
  13  norm          .10000E-03    3.4591       -.16741E-06** at limit **
  14  Prefactor     12.878        7.9625       -.54717E-06   -.47685E-03
  15  Prefactor     .10000E-03    80.424        .12797E-05** at limit **
  16  Prefactor     .10000E-03    6.0251        .14038E-06** at limit **
  17  Prefactor     .10034E-03    17.470        .53539E-05** at limit **
  18  norm          12.006        11.098        .67113E-06    .21131E-05
  19  norm          .10000E-03    11.986        .29002E-07** at limit **
  20  Prefactor     16.268        7.4958        .10197E-05   -.96285E-04
  21  Prefactor     112.94        58.073       -.22237E-04   -.14222E-03
  22  Prefactor     10.283        23.693        .21410E-05   -.82081E-04
  23  Prefactor     .10000E-03    2.7390       -.65183E-07** at limit **
  24  Normalizat    .82691        .23209        .41869E-05   -.39754E-03
  25  Prefactor     1.1085        .14085       -.12024E-05   -.31132E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.62673
  Prefactor  = 0.0437575
  norm       = 2.61822
  Prefactor  = 20.8247
  Prefactor  = 0.0001
  Prefactor  = 5.27397
  Prefactor  = 0.000100266
  Prefactor  = 0.0001
  norm       = 0.527992
  Prefactor  = 18.4891
  Prefactor  = 0.0001
  Prefactor  = 23.2087
  norm       = 0.0001
  Prefactor  = 12.8777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100339
  norm       = 12.0057
  norm       = 0.0001
  Prefactor  = 16.268
  Prefactor  = 112.945
  Prefactor  = 10.2831
  Prefactor  = 0.0001
  Normalizat = 0.82691
  Prefactor  = 1.10853
 **********
 **   18 **HESSE 
 **********

 FCN=   6214.359     FROM HESSE     STATUS=OK           437 CALLS     3385 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62673        53.609        .46844E-02   -1.5550    
   2  Prefactor     .43758E-01    .81615E-01    .32608E-03   -1.5666    
   3  norm          2.6182        12.978        .25223E-03   -1.5384    
   4  Prefactor     20.825        34.839        .87820E-04   -1.4795    
   5  Prefactor     .10000E-03    2.5553        .12254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2740        9.1438        .17499E-03   -1.5249    
   7  Prefactor     .10027E-03    54.597        .50717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .52799        .76353        .93452E-03   -1.5563    
  10  Prefactor     18.489        10.086        .93153E-04   -1.4848    
  11  Prefactor     .10000E-03    10.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.209        44.867        .83129E-04   -1.4744    
  13  norm          .10000E-03    3.4672        .14304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.878        7.9516        .11161E-03   -1.4990    
  15  Prefactor     .10000E-03    80.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.0518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10034E-03    80.929        .62330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.006        11.099        .11564E-03   -1.5015    
  19  norm          .10000E-03    12.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.268        7.4753        .99290E-04   -1.4901    
  21  Prefactor     112.94        58.229        .18924E-03   -1.3578    
  22  Prefactor     10.283        23.636        .12488E-03   -1.5067    
  23  Prefactor     .10000E-03    2.7444        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82691        .26461        .33930E-03   -.99078    
  25  Prefactor     1.1085        .16264        .19261E-03   -.89194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16891e-08
Minuit parameter uncertainties:
  1  11.6026
  2  0.0816156
  3  11.6621
  4  34.8727
  5  3.39578e-06
  6  9.14621
  7  0.00762238
  8  1.09525e-05
  9  0.763543
  10  10.0868
  11  1.52432e-05
  12  44.9319
  13  6.0929e-06
  14  7.9522
  15  5.01193e-06
  16  3.69828e-05
  17  0.0104859
  18  11.1009
  19  2.24418e-05
  20  7.47571
  21  58.2582
  22  23.657
  23  2.64151e-06
  24  0.265027
  25  0.162711
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.849e+01  1.009e+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:  1.109e+00  1.627e-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.269e-01  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.04
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 6.65e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 1.55e-05

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) = 6212.60452461
delta logL = 1.75471844086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6212.52065466
delta logL = 1.83858838779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.717       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4476       1.0000          .0000       10.000    
     3 'Normalizat'    .86108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1001       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=   6212.521     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.724        16.155        .45863E-05   -.13711E-03
   2  Index         1.4481        .39958        .28414E-04   -.12723E-04
   3  Normalizat    .86106        .21381       -.17449E-05   -.48013E-03
   4  Prefactor     1.1001        .13931       -.22985E-06   -.67760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.7243
  Index      = 1.44805
  Normalizat = 0.861056
  Prefactor  = 1.1001
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.521     FROM HESSE     STATUS=OK            27 CALLS      242 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.724        15.977        .80573E-04   -1.4713    
   2  Index         1.4481        .39532        .72368E-02   -.79005    
   3  Normalizat    .86106        .24597        .33337E-03   -.97842    
   4  Prefactor     1.1001        .16047        .19332E-03   -.89463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46117e-10
Minuit parameter uncertainties:
  1  15.9797
  2  0.396153
  3  0.246291
  4  0.160539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839265': 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) = 6212.52065405
delta logL = 1.83858900454

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.472e+01  1.598e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.448e+00  3.962e-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.100e+00  1.605e-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.611e-01  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.73
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.45 +/- 0.40
Photon Flux (Free Index): 2.76e-08 +/- 2.29e-08
Energy Flux (Free Index): 1.04e-04 +/- 9.93e-05

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/839265/cmap_HighResolution_353376001_353635201_4FGL_J2324.7+0801_daily_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.65e-08', energy_flux2='1.04e-04', photon_flux_error='3.63e-08', dlogl='1.84e+00', energy_flux='2.84e-05', photon_flux2='2.76e-08', job_status='DONE', time_completed='2021-09-29 16:22:57.986874', photon_index_error2='0.40', photon_index2='1.45', ts='13.04', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='9.93e-05', EG='0.83', time_epoch_completed='1632957777.99', return_code='0', job_id='839265', GAL2='1.10', EG2='0.86', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='2.29e-08', ts2='16.73', photon_index='2.23' WHERE bin_id='440' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:22:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 839265: <4FGL_J2324.7+0801_daily_bin440> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin440> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:18 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:19 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:10:19 2021
Terminated at Wed Sep 29 16:22:58 2021
Results reported at Wed Sep 29 16:22:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin440 351.19 8.0282 353376001 353635201 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 :                                   617.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            760 sec.

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

