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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin123
RA = 351.19, Dec = 8.0282
tmin = 271209601, tmax = 271468801
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='837778', job_status='RUN', time_executed='2021-09-29 16:06:56.911012', time_epoch_executed='1632956816.91' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837778

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837778/ft1_4FGL_J2324.7+0801_daily_bin123.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837778/ft2_4FGL_J2324.7+0801_daily_bin123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837778/ft1_4FGL_J2324.7+0801_daily_bin123.fits outfile=/scratch/kocevski/837778/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin123.fits ra=351.19 dec=8.0282 rad=12.0 tmin=271209601.0 tmax=271468801.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 1.60
user 1.43
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/837778/ft2_4FGL_J2324.7+0801_daily_bin123.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/837778/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin123.fits evtable="EVENTS" outfile="/scratch/kocevski/837778/ft1_filtered_4FGL_J2324.7+0801_daily_bin123.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/837778/ft1_filtered_4FGL_J2324.7+0801_daily_bin123.fits" evtable="EVENTS" scfile=/scratch/kocevski/837778/ft2_4FGL_J2324.7+0801_daily_bin123.fits sctable="SC_DATA" outfile=/scratch/kocevski/837778/ltcube_271209601_271468801_4FGL_J2324.7+0801_daily_bin123.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/837778/ft2_4FGL_J2324.7+0801_daily_bin123.fits
.....................!
real 12.26
user 11.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837778/ft1_filtered_4FGL_J2324.7+0801_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/837778/ft2_4FGL_J2324.7+0801_daily_bin123.fits sctable="SC_DATA" expcube=/scratch/kocevski/837778/ltcube_271209601_271468801_4FGL_J2324.7+0801_daily_bin123.fits outfile=/scratch/kocevski/837778/expmap_271209601_271468801_4FGL_J2324.7+0801_daily_bin123.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/837778/ltcube_271209601_271468801_4FGL_J2324.7+0801_daily_bin123.fits
.....................!
real 192.78
user 187.20
sys 5.19

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/837778/ft1_filtered_4FGL_J2324.7+0801_daily_bin123.fits scfile=/scratch/kocevski/837778/ft2_4FGL_J2324.7+0801_daily_bin123.fits outfile=/scratch/kocevski/837778/cmap_271209601_271468801_4FGL_J2324.7+0801_daily_bin123.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.19 yref=8.0282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837778/ft1_filtered_4FGL_J2324.7+0801_daily_bin123.fits scfile=/scratch/kocevski/837778/ft2_4FGL_J2324.7+0801_daily_bin123.fits outfile=/scratch/kocevski/837778/cmap_HighResolution_271209601_271468801_4FGL_J2324.7+0801_daily_bin123.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.19 yref=8.0282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/837778/ft1_filtered_4FGL_J2324.7+0801_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/837778/ft2_4FGL_J2324.7+0801_daily_bin123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/837778/Model_4FGL_J2324.7+0801_daily_bin123.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/837778/ft1_filtered_4FGL_J2324.7+0801_daily_bin123.fits.....................!
real 91.30
user 89.85
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3248       1.0000         .10000E-03   10000.    
     3 'norm      '    21.565       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.934       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9946       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.401       1.0000         .10000E-03   10000.    
     9 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8683       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0906       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10712E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0670       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.305       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.330       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.782       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2077       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68097       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=   8328.508     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2506 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.068       -.34316E-04** at limit **
   2  Prefactor     2.3248        .26285        .19700E-07    .60901E-02
   3  norm          21.566        18.920       -.64570E-06   -.38530E-03
   4  Prefactor     .10000E-03    22.852       -.26466E-05** at limit **
   5  Prefactor     .10000E-03    2.3876       -.14469E-07** at limit **
   6  Prefactor     16.935        12.242       -.87397E-07    .85045E-04
   7  Prefactor     8.9952        10.605       -.46897E-07   -.65083E-06
   8  Prefactor     12.402        8.0971        .43485E-07   -.10802E-04
   9  norm          .10000E-03    .37199       -.12066E-06** at limit **
  10  Prefactor     8.8693        7.8685       -.12999E-06    .72929E-04
  11  Prefactor     9.0895        20.675       -.91211E-06   -.13938E-04
  12  Prefactor     .10000E-03    12.187        .65453E-05** at limit **
  13  norm          .10000E-03    3.9572       -.55497E-07** at limit **
  14  Prefactor     .10000E-03    9.8055       -.51453E-05** at limit **
  15  Prefactor     .10000E-03    51.594        .32574E-04** at limit **
  16  Prefactor     .10000E-03    4.4978        .64221E-07** at limit **
  17  Prefactor     .10000E-03    17.436       -.25343E-05** at limit **
  18  norm          5.0675        9.7965       -.17396E-06   -.59406E-04
  19  norm          .10000E-03    8.1360        .12522E-05** at limit **
  20  Prefactor     10.306        4.8747        .15274E-05   -.19338E-03
  21  Prefactor     16.332        21.409        .43690E-06   -.31877E-05
  22  Prefactor     16.782        14.607       -.12926E-06    .12452E-04
  23  Prefactor     .10000E-03    2.8328       -.15991E-07** at limit **
  24  Normalizat    1.2075        .18204       -.33153E-06    .36460E-03
  25  Prefactor     .68108        .10750        .26756E-06    .34517E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 2.32485
  norm       = 21.5663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9355
  Prefactor  = 8.99518
  Prefactor  = 12.4015
  norm       = 0.0001
  Prefactor  = 8.86934
  Prefactor  = 9.0895
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.0675
  norm       = 0.0001
  Prefactor  = 10.3058
  Prefactor  = 16.3317
  Prefactor  = 16.7824
  Prefactor  = 0.0001
  Normalizat = 1.20751
  Prefactor  = 0.681077
 **********
 **   18 **HESSE 
 **********

 FCN=   8328.508     FROM HESSE     STATUS=OK           427 CALLS     2933 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3248        .26304        .15210E-04   -1.5403    
   3  norm          21.566        19.018        .43126E-03   -1.4779    
   4  Prefactor     .10000E-03    22.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4022        .13769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.935        12.246        .97328E-04   -1.4885    
   7  Prefactor     8.9952        10.608        .13364E-03   -1.5108    
   8  Prefactor     12.402        8.0689        .11375E-03   -1.5004    
   9  norm          .10000E-03    2.5811        .10742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.8693        7.8662        .13459E-03   -1.5112    
  11  Prefactor     9.0895        20.657        .13293E-03   -1.5105    
  12  Prefactor     .10000E-03    12.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.9953        .17712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.143        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0675        9.7883        .17863E-03   -1.5258    
  19  norm          .10000E-03    8.1360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.306        4.8554        .12482E-03   -1.5066    
  21  Prefactor     16.332        21.434        .99112E-04   -1.4899    
  22  Prefactor     16.782        14.627        .97768E-04   -1.4888    
  23  Prefactor     .10000E-03    2.8429        .15000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2075        .21369        .27991E-03   -.86371    
  25  Prefactor     .68108        .12570        .22312E-03   -1.0427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.062e-10
Minuit parameter uncertainties:
  1  0.000557471
  2  0.26304
  3  19.0228
  4  1.07146e-05
  5  1.24294e-06
  6  12.2479
  7  10.6105
  8  8.06956
  9  1.45114e-05
  10  7.86713
  11  20.673
  12  5.78287e-06
  13  1.33495e-05
  14  0.000100638
  15  3.97474e-05
  16  3.40016e-05
  17  3.29773e-05
  18  9.7914
  19  4.11079e-05
  20  4.85555
  21  21.4439
  22  14.6302
  23  7.42675e-07
  24  0.213849
  25  0.125751
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  8.869e+00  7.867e+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:  6.811e-01  1.258e-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.208e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.19e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.21e-05

TS (Fixed Index): 2.25
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 9.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/837778/likelihoodResults_271209601_271468801_4FGL_J2324.7+0801_daily_bin123.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): 0
logL (Free Index) = 8328.41572215
delta logL = 0.0917780145901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8328.40968501
delta logL = 0.0978151590152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.679       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8469       1.0000          .0000       10.000    
     3 'Normalizat'    1.2239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67538       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=   8328.410     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      268 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.678        9.6826        .12261E-03    .52078E-03
   2  Index         1.8464        .74638        .10883E-01    .12969E-03
   3  Normalizat    1.2240        .20302        .27825E-03   -.11751E-03
   4  Prefactor     .67531        .12498        .22395E-03   -.37118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6781
  Index      = 1.84643
  Normalizat = 1.22404
  Prefactor  = 0.675309
 **********
 **   18 **HESSE 
 **********

 FCN=   8328.410     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.678        9.6318        .24521E-04   -1.5054    
   2  Index         1.8464        .74189        .43531E-03   -.68247    
   3  Normalizat    1.2240        .20303        .11130E-04   -.85863    
   4  Prefactor     .67531        .12505        .89582E-05   -1.0450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71781e-10
Minuit parameter uncertainties:
  1  9.63321
  2  0.746488
  3  0.203161
  4  0.125103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837778': 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) = 8328.40968461
delta logL = 0.0978155631165

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.068e+01  9.633e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.846e+00  7.465e-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:  6.753e-01  1.251e-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.224e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.85 +/- 0.75
Photon Flux (Free Index): 1.96e-08 +/- 2.74e-08
Energy Flux (Free Index): 2.04e-05 +/- 2.88e-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/837778/cmap_HighResolution_271209601_271468801_4FGL_J2324.7+0801_daily_bin123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', comment='SUCCESS', photon_flux='3.19e-08', energy_flux2='2.04e-05', photon_flux_error='2.83e-08', dlogl='9.78e-02', energy_flux='1.36e-05', photon_flux2='1.96e-08', job_status='DONE', time_completed='2021-09-29 16:19:48.253311', photon_index_error2='0.75', photon_index2='1.85', ts='2.25', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='9.88e-08', energy_flux_error2='2.88e-05', EG='1.21', time_epoch_completed='1632957588.25', return_code='0', job_id='837778', GAL2='0.68', EG2='1.22', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='2.74e-08', ts2='2.42', photon_index='2.23' WHERE bin_id='123' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:19:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 837778: <4FGL_J2324.7+0801_daily_bin123> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin123> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:05:27 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:05: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:05:28 2021
Terminated at Wed Sep 29 16:19:50 2021
Results reported at Wed Sep 29 16:19:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin123 351.19 8.0282 271209601 271468801 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 :                                   771.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

