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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin641
RA = 351.19, Dec = 8.0282
tmin = 405475201, tmax = 405734401
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='840670', job_status='RUN', time_executed='2021-09-29 16:19:15.628357', time_epoch_executed='1632957555.63' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840670

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840670/ft1_4FGL_J2324.7+0801_daily_bin641.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840670/ft2_4FGL_J2324.7+0801_daily_bin641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840670/ft1_4FGL_J2324.7+0801_daily_bin641.fits outfile=/scratch/kocevski/840670/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin641.fits ra=351.19 dec=8.0282 rad=12.0 tmin=405475201.0 tmax=405734401.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 7.31
user 6.99
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840670/ft1_filtered_4FGL_J2324.7+0801_daily_bin641.fits" evtable="EVENTS" scfile=/scratch/kocevski/840670/ft2_4FGL_J2324.7+0801_daily_bin641.fits sctable="SC_DATA" outfile=/scratch/kocevski/840670/ltcube_405475201_405734401_4FGL_J2324.7+0801_daily_bin641.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/840670/ft2_4FGL_J2324.7+0801_daily_bin641.fits
.....................!
real 11.58
user 11.19
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840670/ft1_filtered_4FGL_J2324.7+0801_daily_bin641.fits evtable="EVENTS" scfile=/scratch/kocevski/840670/ft2_4FGL_J2324.7+0801_daily_bin641.fits sctable="SC_DATA" expcube=/scratch/kocevski/840670/ltcube_405475201_405734401_4FGL_J2324.7+0801_daily_bin641.fits outfile=/scratch/kocevski/840670/expmap_405475201_405734401_4FGL_J2324.7+0801_daily_bin641.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/840670/ltcube_405475201_405734401_4FGL_J2324.7+0801_daily_bin641.fits
.....................!
real 191.24
user 186.49
sys 4.40

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/840670/ft1_filtered_4FGL_J2324.7+0801_daily_bin641.fits scfile=/scratch/kocevski/840670/ft2_4FGL_J2324.7+0801_daily_bin641.fits outfile=/scratch/kocevski/840670/cmap_405475201_405734401_4FGL_J2324.7+0801_daily_bin641.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/840670/ft1_filtered_4FGL_J2324.7+0801_daily_bin641.fits scfile=/scratch/kocevski/840670/ft2_4FGL_J2324.7+0801_daily_bin641.fits outfile=/scratch/kocevski/840670/cmap_HighResolution_405475201_405734401_4FGL_J2324.7+0801_daily_bin641.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.318       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7186       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.601       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.331       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.627       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9437       1.0000         .10000E-03   10000.    
     9 'norm      '    .73058       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8368       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .80261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    21.429       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    225.55       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .95862E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.193       1.0000         .10000E-03   10000.    
    19 'norm      '    27.466       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .72726E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.122       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.600       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21891E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .24750       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1497       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=   5224.705     FROM MIGRAD    STATUS=FAILED      1025 CALLS     3423 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.325        33.069        .64748E-04   -.68477E-05
   2  Prefactor     3.7187        .44852        .15578E-04   -.94873E-05
   3  norm          .10000E-03    5.3223        .16278E-02** at limit **
   4  Prefactor     27.639        47.747        .76256E-04   -.14312E-04
   5  Prefactor     14.333        10.059        .10580E-03   -.79515E-05
   6  Prefactor     11.629        11.289        .11748E-03   -.75479E-05
   7  Prefactor     .10000E-03    8.6886        .18142E-02** at limit **
   8  Prefactor     2.9452        7.5394        .23672E-03   -.18346E-04
   9  norm          .73021        .83732        .71116E-03    .70607E-03
  10  Prefactor     7.8396        10.401        .14324E-03   -.94450E-05
  11  Prefactor     .79377        123.19        .56168E-02    .71000E-03
  12  Prefactor     .10000E-03    52.568        .18142E-02** at limit **
  13  norm          21.436        12.195        .86526E-04   -.65695E-05
  14  Prefactor     .10000E-03    3.3481        .12897E-02** at limit **
  15  Prefactor     225.16        236.87        .13470E-03   -.13521E-04
  16  Prefactor     .10001E-03    94.902        .47486E-02** at limit **
  17  Prefactor     .10000E-03    18.515        .18142E-02** at limit **
  18  norm          20.200        20.114        .89133E-04    .48468E-05
  19  norm          27.411        24.761        .38221E-03   -.11107E-03
  20  Prefactor     .10001E-03    11.457        .23794E-02** at limit **
  21  Prefactor     30.058        45.674        .73002E-04   -.17598E-04
  22  Prefactor     12.613        29.127        .11285E-03   -.94698E-05
  23  Prefactor     .10003E-03    91.874        .36060E-02** at limit **
  24  Normalizat    .24706        .26663        .59277E-03   -.48446E-04
  25  Prefactor     1.1498        .17010        .18885E-03   -.83196E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5224.705     FROM SIMPLEX   STATUS=UNCHANGED   1180 CALLS     4603 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.325        33.069        .36558E-06   -1.4469    
   2  Prefactor     3.7187        .44852        .29418E-06   -1.5322    
   3  norm          .10000E-03    5.3223        .41331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.639        47.747        .27531E-06   -1.4656    
   5  Prefactor     14.333        10.059        .27950E-06   -1.4951    
   6  Prefactor     11.629        11.289        .28074E-06   -1.5026    
   7  Prefactor     .10000E-03    8.6886        .49655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9452        7.5394        .28852E-06   -1.5365    
   9  norm          .73021        .83732        .29024E-06   -1.5537    
  10  Prefactor     7.8396        10.401        .28517E-06   -1.5148    
  11  Prefactor     .79377        123.19        .33939E-06   -1.5530    
  12  Prefactor     .10000E-03    52.568        .10932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.436        12.195        .27564E-06   -1.4782    
  14  Prefactor     .10000E-03    3.3481        .16311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     225.16        236.87        .23786E-06   -1.2696    
  16  Prefactor     .10001E-03    94.902        .73590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.515        .60904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.200        20.114        .27626E-06   -1.4809    
  19  norm          27.411        24.761        .27444E-06   -1.4660    
  20  Prefactor     .10001E-03    11.457        .41454E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.058        45.674        .27359E-06   -1.4611    
  22  Prefactor     12.613        29.127        .28563E-06   -1.4998    
  23  Prefactor     .10003E-03    91.874        .74183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .24706        .26663        .24414E-06   -1.2615    
  25  Prefactor     1.1498        .17010        .16495E-06   -.87890    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5224.705     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     5011 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.325        33.063        .25899E-05   -.35117E-06
   2  Prefactor     3.7187        .44850        .62312E-06   -.28631E-04
   3  norm          .10000E-03    5.3225        .32557E-03** at limit **
   4  Prefactor     27.639        47.724        .30502E-05   -.74543E-06
   5  Prefactor     14.333        10.059        .42321E-05   -.26863E-05
   6  Prefactor     11.629        11.289        .46994E-05   -.48384E-06
   7  Prefactor     .10000E-03    8.6890        .36285E-03** at limit **
   8  Prefactor     2.9452        7.4992        .94690E-05   -.84044E-05
   9  norm          .73020        .83691        .28446E-04   -.53154E-04
  10  Prefactor     7.8396        10.399        .57295E-05   -.15874E-05
  11  Prefactor     .79393        122.98        .11234E-02    .28839E-04
  12  Prefactor     .10000E-03    52.570        .36285E-03** at limit **
  13  norm          21.436        12.193        .34610E-05   -.39417E-05
  14  Prefactor     .10000E-03    3.3482        .25793E-03** at limit **
  15  Prefactor     225.16        236.65        .26940E-04   -.72584E-05
  16  Prefactor     .10000E-03    96.395        .18994E-03** at limit **
  17  Prefactor     .10000E-03    18.516        .36285E-03** at limit **
  18  norm          20.200        20.113        .35653E-05   -.51019E-05
  19  norm          27.411        24.708        .15289E-04   -.30042E-04
  20  Prefactor     .10000E-03    11.514        .47587E-03** at limit **
  21  Prefactor     30.058        45.666        .29201E-05   -.70079E-05
  22  Prefactor     12.613        29.115        .45140E-05   -.15111E-05
  23  Prefactor     .10000E-03    95.063        .14424E-03** at limit **
  24  Normalizat    .24706        .26603        .23711E-04   -.22056E-04
  25  Prefactor     1.1498        .16985        .75540E-05   -.49364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.3252
  Prefactor  = 3.71874
  norm       = 0.0001
  Prefactor  = 27.6386
  Prefactor  = 14.3334
  Prefactor  = 11.6286
  Prefactor  = 0.0001
  Prefactor  = 2.94522
  norm       = 0.7302
  Prefactor  = 7.83959
  Prefactor  = 0.793931
  Prefactor  = 0.0001
  norm       = 21.4359
  Prefactor  = 0.0001
  Prefactor  = 225.159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.2005
  norm       = 27.4111
  Prefactor  = 0.0001
  Prefactor  = 30.0578
  Prefactor  = 12.613
  Prefactor  = 0.0001
  Normalizat = 0.247057
  Prefactor  = 1.14982
 **********
 **   18 **HESSE 
 **********

 FCN=   5224.705     FROM HESSE     STATUS=OK           403 CALLS     5414 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.325        33.061        .25899E-05   -1.4469    
   2  Prefactor     3.7187        .44852        .36531E-06   -1.5322    
   3  norm          .10000E-03    5.3225        .65114E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.639        48.275        .61005E-06   -1.4656    
   5  Prefactor     14.333        10.065        .84642E-06   -1.4951    
   6  Prefactor     11.629        11.279        .93988E-06   -1.5026    
   7  Prefactor     .10000E-03    8.6891        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9452        7.4922        .18938E-05   -1.5365    
   9  norm          .73020        .83688        .11379E-05   -1.5537    
  10  Prefactor     7.8396        10.403        .11459E-05   -1.5148    
  11  Prefactor     .79393        122.57        .22467E-03   -1.5530    
  12  Prefactor     .10000E-03    52.570        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.436        12.196        .69221E-06   -1.4782    
  14  Prefactor     .10000E-03    3.3482        .51586E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     225.16        236.56        .53880E-05   -1.2696    
  16  Prefactor     .10000E-03    96.400        .37989E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.516        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.200        20.127        .71306E-06   -1.4809    
  19  norm          27.411        24.705        .30577E-05   -1.4660    
  20  Prefactor     .10000E-03    11.516        .95174E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.058        44.900        .58401E-06   -1.4611    
  22  Prefactor     12.613        29.193        .90279E-06   -1.4998    
  23  Prefactor     .10000E-03    95.069        .28848E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .24706        .26542        .47421E-05   -1.2615    
  25  Prefactor     1.1498        .16953        .15108E-05   -.87890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41695e-12
Minuit parameter uncertainties:
  1  33.0768
  2  0.448518
  3  3.07767e-08
  4  48.3433
  5  10.0659
  6  11.281
  7  1.01404e-07
  8  7.49456
  9  0.83689
  10  10.4056
  11  19.7693
  12  1.32157e-06
  13  12.1971
  14  4.63805e-08
  15  237.574
  16  0.000134264
  17  2.54666e-07
  18  20.1335
  19  24.7145
  20  8.89775e-06
  21  44.9509
  22  29.2262
  23  0.000149384
  24  0.266785
  25  0.169607
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  7.840e+00  1.041e+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.150e+00  1.696e-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:  2.471e-01  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.82e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.60e-05

TS (Fixed Index): 1.12
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840670/likelihoodResults_405475201_405734401_4FGL_J2324.7+0801_daily_bin641.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) = 5224.49782727
delta logL = 0.207285438019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5224.49719625
delta logL = 0.207916460628

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.468       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6730       1.0000          .0000       10.000    
     3 'Normalizat'    .26055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1427       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=   5224.497     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      305 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.469        15.514        .10914E-03   -.70918E-03
   2  Index         1.6730        .68832        .10840E-01   -.17904E-03
   3  Normalizat    .26059        .24997        .57770E-03    .52189E-04
   4  Prefactor     1.1426        .16776        .18932E-03    .17041E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4688
  Index      = 1.67298
  Normalizat = 0.260589
  Prefactor  = 1.14265
 **********
 **   18 **HESSE 
 **********

 FCN=   5224.497     FROM HESSE     STATUS=OK            23 CALLS      328 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.469        15.412        .21829E-04   -1.4974    
   2  Index         1.6730        .68396        .43359E-03   -.72804    
   3  Normalizat    .26059        .24976        .23108E-04   -1.2527    
   4  Prefactor     1.1426        .16763        .37864E-04   -.88115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75985e-09
Minuit parameter uncertainties:
  1  15.4163
  2  0.68785
  3  0.250835
  4  0.167708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840670': 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) = 5224.49719623
delta logL = 0.207916475464

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.347e+01  1.542e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.673e+00  6.879e-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.143e+00  1.677e-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:  2.606e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.67 +/- 0.69
Photon Flux (Free Index): 1.92e-08 +/- 2.61e-08
Energy Flux (Free Index): 3.42e-05 +/- 6.37e-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/840670/cmap_HighResolution_405475201_405734401_4FGL_J2324.7+0801_daily_bin641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', photon_flux='2.82e-08', energy_flux2='3.42e-05', photon_flux_error='3.74e-08', dlogl='2.08e-01', energy_flux='1.20e-05', photon_flux2='1.92e-08', job_status='DONE', time_completed='2021-09-29 16:31:48.621051', photon_index_error2='0.69', photon_index2='1.67', ts='1.12', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='6.37e-05', EG='0.25', time_epoch_completed='1632958308.62', return_code='0', job_id='840670', GAL2='1.14', EG2='0.26', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='2.61e-08', ts2='1.53', photon_index='2.23' WHERE bin_id='641' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:31:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 840670: <4FGL_J2324.7+0801_daily_bin641> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin641 351.19 8.0282 405475201 405734401 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 :                                   751.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

