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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin623
RA = 351.19, Dec = 8.0282
tmin = 400809601, tmax = 401068801
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='840643', job_status='RUN', time_executed='2021-09-29 16:18:53.867759', time_epoch_executed='1632957533.87' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840643

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840643/ft1_4FGL_J2324.7+0801_daily_bin623.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840643/ft2_4FGL_J2324.7+0801_daily_bin623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840643/ft1_4FGL_J2324.7+0801_daily_bin623.fits outfile=/scratch/kocevski/840643/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin623.fits ra=351.19 dec=8.0282 rad=12.0 tmin=400809601.0 tmax=401068801.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.40
user 3.20
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840643/ft1_filtered_4FGL_J2324.7+0801_daily_bin623.fits" evtable="EVENTS" scfile=/scratch/kocevski/840643/ft2_4FGL_J2324.7+0801_daily_bin623.fits sctable="SC_DATA" outfile=/scratch/kocevski/840643/ltcube_400809601_401068801_4FGL_J2324.7+0801_daily_bin623.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/840643/ft2_4FGL_J2324.7+0801_daily_bin623.fits
.....................!
real 11.76
user 11.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840643/ft1_filtered_4FGL_J2324.7+0801_daily_bin623.fits evtable="EVENTS" scfile=/scratch/kocevski/840643/ft2_4FGL_J2324.7+0801_daily_bin623.fits sctable="SC_DATA" expcube=/scratch/kocevski/840643/ltcube_400809601_401068801_4FGL_J2324.7+0801_daily_bin623.fits outfile=/scratch/kocevski/840643/expmap_400809601_401068801_4FGL_J2324.7+0801_daily_bin623.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/840643/ltcube_400809601_401068801_4FGL_J2324.7+0801_daily_bin623.fits
.....................!
real 189.46
user 184.90
sys 4.17

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/840643/ft1_filtered_4FGL_J2324.7+0801_daily_bin623.fits scfile=/scratch/kocevski/840643/ft2_4FGL_J2324.7+0801_daily_bin623.fits outfile=/scratch/kocevski/840643/cmap_400809601_401068801_4FGL_J2324.7+0801_daily_bin623.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840643/ft1_filtered_4FGL_J2324.7+0801_daily_bin623.fits scfile=/scratch/kocevski/840643/ft2_4FGL_J2324.7+0801_daily_bin623.fits outfile=/scratch/kocevski/840643/cmap_HighResolution_400809601_401068801_4FGL_J2324.7+0801_daily_bin623.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/840643/ft1_filtered_4FGL_J2324.7+0801_daily_bin623.fits evtable="EVENTS" scfile=/scratch/kocevski/840643/ft2_4FGL_J2324.7+0801_daily_bin623.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840643/Model_4FGL_J2324.7+0801_daily_bin623.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/840643/ft1_filtered_4FGL_J2324.7+0801_daily_bin623.fits.....................!
real 81.47
user 80.04
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3905       1.0000         .10000E-03   10000.    
     3 'norm      '    8.4890       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3598       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.296       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .95433       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6572       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1866       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.283       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1721       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1489       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6682       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .54359E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.489       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0003       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81806       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=   7444.619     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2464 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6977        .56461E-05** at limit **
   2  Prefactor     2.3906        .31222        .15521E-08    .88477E-04
   3  norm          8.4897        12.950       -.51855E-06   -.20177E-04
   4  Prefactor     .10000E-03    21.251       -.12683E-05** at limit **
   5  Prefactor     8.3623        10.395       -.29893E-06   -.65773E-04
   6  Prefactor     21.299        17.882       -.14527E-05    .13130E-04
   7  Prefactor     .93157        14.312       -.93407E-07   -.32841E-03
   8  Prefactor     3.6582        8.0506       -.29478E-05   -.18695E-03
   9  norm          1.1869        1.0037       -.27938E-06   -.68846E-03
  10  Prefactor     10.283        7.6705       -.17778E-07    .82629E-04
  11  Prefactor     .10000E-03    9.4249       -.80063E-05** at limit **
  12  Prefactor     .10000E-03    30.778        .20377E-05** at limit **
  13  norm          .10000E-03    2.7844        .22574E-06** at limit **
  14  Prefactor     9.8584        7.9636       -.25460E-05   -.27001E-04
  15  Prefactor     .10000E-03    87.434        .45820E-05** at limit **
  16  Prefactor     3.1643        10.581       -.30597E-06   -.15385E-03
  17  Prefactor     7.1460        20.421        .65008E-06    .40414E-04
  18  norm          .10000E-03    4.2799        .13126E-07** at limit **
  19  norm          .10000E-03    8.9855        .26286E-05** at limit **
  20  Prefactor     7.6681        4.9971        .15038E-05    .12738E-03
  21  Prefactor     .10001E-03    170.73       -.62043E-04** at limit **
  22  Prefactor     29.474        23.090       -.28260E-05    .22298E-03
  23  Prefactor     .10000E-03    3.9780       -.11649E-06** at limit **
  24  Normalizat    1.0001        .20741        .23894E-05    .36152E-03
  25  Prefactor     .81806        .11861        .18020E-06    .49870E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.39055
  norm       = 8.48967
  Prefactor  = 0.0001
  Prefactor  = 8.36234
  Prefactor  = 21.2985
  Prefactor  = 0.931569
  Prefactor  = 3.65822
  norm       = 1.18685
  Prefactor  = 10.2829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.85837
  Prefactor  = 0.0001
  Prefactor  = 3.16426
  Prefactor  = 7.14604
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.66807
  Prefactor  = 0.000100015
  Prefactor  = 29.4739
  Prefactor  = 0.0001
  Normalizat = 1.00014
  Prefactor  = 0.818057
 **********
 **   18 **HESSE 
 **********

 FCN=   7444.619     FROM HESSE     STATUS=OK           425 CALLS     2889 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3906        .31284        .16393E-04   -1.5399    
   3  norm          8.4897        12.937        .13759E-03   -1.5125    
   4  Prefactor     .10000E-03    21.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.3623        10.392        .13865E-03   -1.5130    
   6  Prefactor     21.299        17.920        .86795E-04   -1.4785    
   7  Prefactor     .93157        113.50        .59971E-02   -1.5515    
   8  Prefactor     3.6582        8.0994        .21123E-03   -1.5325    
   9  norm          1.1869        .98148        .75530E-04   -1.5490    
  10  Prefactor     10.283        7.6649        .12495E-03   -1.5067    
  11  Prefactor     .10000E-03    9.4049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.7893        .14053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.8584        8.0365        .12764E-03   -1.5080    
  15  Prefactor     .10000E-03    87.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1643        10.455        .22755E-03   -1.5352    
  17  Prefactor     7.1460        20.387        .15003E-03   -1.5173    
  18  norm          .10000E-03    4.2846        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.9741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6681        4.9665        .13583E-03   -1.5154    
  21  Prefactor     .10001E-03    172.27        .42231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.474        23.133        .73779E-04   -1.4622    
  23  Prefactor     .10000E-03    3.9976        .16806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0001        .24543        .31675E-03   -.93026    
  25  Prefactor     .81806        .13888        .21327E-03   -.99066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34146e-09
Minuit parameter uncertainties:
  1  1.95574e-06
  2  0.312842
  3  12.9414
  4  1.48773e-05
  5  10.394
  6  17.9246
  7  20.6042
  8  8.10184
  9  0.981495
  10  7.66567
  11  2.33866e-05
  12  2.04726e-05
  13  1.97668e-05
  14  8.03737
  15  6.22123e-05
  16  10.4615
  17  20.4065
  18  1.57659e-06
  19  4.10549e-05
  20  4.96674
  21  0.00321702
  22  23.1403
  23  2.67059e-06
  24  0.245707
  25  0.138944
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.028e+01  7.666e+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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.181e-01  1.389e-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.000e+00  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.18
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.70e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.18e-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) = 7444.22815458
delta logL = 0.390578066272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7444.20582961
delta logL = 0.412903037482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.369       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7178       1.0000          .0000       10.000    
     3 'Normalizat'    1.0153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81394       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=   7444.206     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      238 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.369        34.217        .27387E-02    .38821E-03
   2  Index         1.7177        1.5153        .20225       -.51436E-05
   3  Normalizat    1.0153        .20305        .71125E-01   -.43039E-04
   4  Prefactor     .81394        .11924        .43898E-01    .52876E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3692
  Index      = 1.71765
  Normalizat = 1.01535
  Prefactor  = 0.813944
 **********
 **   18 **HESSE 
 **********

 FCN=   7444.206     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.369        10.070        .10955E-03   -1.4977    
   2  Index         1.7177        .52434        .10073E-01   -.71613    
   3  Normalizat    1.0153        .22134        .31469E-03   -.92518    
   4  Prefactor     .81394        .13693        .21376E-03   -.99216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62568e-10
Minuit parameter uncertainties:
  1  10.0717
  2  0.526046
  3  0.221543
  4  0.136984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840643': 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) = 7444.20582956
delta logL = 0.412903087697

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.337e+01  1.007e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.718e+00  5.260e-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:  8.139e-01  1.370e-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.015e+00  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.98
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.72 +/- 0.53
Photon Flux (Free Index): 2.03e-08 +/- 2.10e-08
Energy Flux (Free Index): 3.13e-05 +/- 3.80e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/840643/cmap_HighResolution_400809601_401068801_4FGL_J2324.7+0801_daily_bin623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.70e-08', energy_flux2='3.13e-05', photon_flux_error='2.76e-08', dlogl='4.13e-01', energy_flux='1.58e-05', photon_flux2='2.03e-08', job_status='DONE', time_completed='2021-09-29 16:29:26.316462', photon_index_error2='0.53', photon_index2='1.72', ts='5.18', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='3.80e-05', EG='1.00', time_epoch_completed='1632958166.32', return_code='0', job_id='840643', GAL2='0.81', EG2='1.02', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.10e-08', ts2='5.98', photon_index='2.23' WHERE bin_id='623' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:29:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 840643: <4FGL_J2324.7+0801_daily_bin623> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin623 351.19 8.0282 400809601 401068801 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 :                                   631.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            845 sec.

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

