/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 54 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin416
RA = 351.19, Dec = 8.0282
tmin = 347155201, tmax = 347414401
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='839230', job_status='RUN', time_executed='2021-09-29 16:11:20.417095', time_epoch_executed='1632957080.42' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='416'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839230/ft1_4FGL_J2324.7+0801_daily_bin416.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839230/ft2_4FGL_J2324.7+0801_daily_bin416.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839230/ft1_4FGL_J2324.7+0801_daily_bin416.fits outfile=/scratch/kocevski/839230/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin416.fits ra=351.19 dec=8.0282 rad=12.0 tmin=347155201.0 tmax=347414401.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.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/839230/ft2_4FGL_J2324.7+0801_daily_bin416.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/839230/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin416.fits evtable="EVENTS" outfile="/scratch/kocevski/839230/ft1_filtered_4FGL_J2324.7+0801_daily_bin416.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/839230/ft1_filtered_4FGL_J2324.7+0801_daily_bin416.fits" evtable="EVENTS" scfile=/scratch/kocevski/839230/ft2_4FGL_J2324.7+0801_daily_bin416.fits sctable="SC_DATA" outfile=/scratch/kocevski/839230/ltcube_347155201_347414401_4FGL_J2324.7+0801_daily_bin416.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/839230/ft2_4FGL_J2324.7+0801_daily_bin416.fits
.....................!
real 11.77
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839230/ft1_filtered_4FGL_J2324.7+0801_daily_bin416.fits evtable="EVENTS" scfile=/scratch/kocevski/839230/ft2_4FGL_J2324.7+0801_daily_bin416.fits sctable="SC_DATA" expcube=/scratch/kocevski/839230/ltcube_347155201_347414401_4FGL_J2324.7+0801_daily_bin416.fits outfile=/scratch/kocevski/839230/expmap_347155201_347414401_4FGL_J2324.7+0801_daily_bin416.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/839230/ltcube_347155201_347414401_4FGL_J2324.7+0801_daily_bin416.fits
.....................!
real 189.67
user 185.04
sys 4.32

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7+0801 @ 351.19 8.0282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/839230/ft1_filtered_4FGL_J2324.7+0801_daily_bin416.fits scfile=/scratch/kocevski/839230/ft2_4FGL_J2324.7+0801_daily_bin416.fits outfile=/scratch/kocevski/839230/cmap_347155201_347414401_4FGL_J2324.7+0801_daily_bin416.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839230/ft1_filtered_4FGL_J2324.7+0801_daily_bin416.fits scfile=/scratch/kocevski/839230/ft2_4FGL_J2324.7+0801_daily_bin416.fits outfile=/scratch/kocevski/839230/cmap_HighResolution_347155201_347414401_4FGL_J2324.7+0801_daily_bin416.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/839230/ft1_filtered_4FGL_J2324.7+0801_daily_bin416.fits evtable="EVENTS" scfile=/scratch/kocevski/839230/ft2_4FGL_J2324.7+0801_daily_bin416.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839230/Model_4FGL_J2324.7+0801_daily_bin416.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/839230/ft1_filtered_4FGL_J2324.7+0801_daily_bin416.fits.....................!
real 75.74
user 74.38
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .20634       1.0000         .10000E-03   10000.    
     3 'norm      '    5.9777       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5846       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0325       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1476       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29650       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.577       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.274       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.727       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3276       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.186       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.851       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.699       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92820       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1134       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=   7194.581     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2973 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8050       -.13033E-06** at limit **
   2  Prefactor     .20633        .12042        .10126E-07    .90983E-05
   3  norm          5.9778        10.178        .19904E-06    .62309E-05
   4  Prefactor     .10000E-03    22.585       -.20931E-06** at limit **
   5  Prefactor     .10000E-03    5.4599       -.20974E-06** at limit **
   6  Prefactor     .10000E-03    4.0891       -.61088E-07** at limit **
   7  Prefactor     19.472        20.521        .47569E-06    .43027E-04
   8  Prefactor     .10000E-03    13.282       -.63594E-07** at limit **
   9  norm          1.5845        1.0802        .36942E-06    .60754E-04
  10  Prefactor     1.0325        6.9686        .27936E-04   -.13837E-03
  11  Prefactor     7.1564        20.509       -.28790E-07    .99530E-05
  12  Prefactor     .10006E-03    51.760       -.57534E-06** at limit **
  13  norm          .10000E-03    3.2209       -.14764E-07** at limit **
  14  Prefactor     .10000E-03    5.0063       -.57323E-06** at limit **
  15  Prefactor     55.027        172.46       -.70470E-04   -.49548E-04
  16  Prefactor     .10000E-03    10.917        .20158E-05** at limit **
  17  Prefactor     19.273        23.742       -.14111E-05    .33218E-04
  18  norm          .10000E-03    5.0221        .37625E-06** at limit **
  19  norm          15.727        22.920        .11275E-05    .11696E-04
  20  Prefactor     4.3258        5.2023        .82343E-06    .15428E-03
  21  Prefactor     19.239        38.686        .35893E-05    .34510E-04
  22  Prefactor     11.839        25.422       -.79311E-06   -.64281E-06
  23  Prefactor     18.700        11.935        .74225E-07    .15369E-04
  24  Normalizat    .92831        .21457        .10706E-05    .15663E-03
  25  Prefactor     1.1134        .12904       -.13410E-05    .19786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.206328
  norm       = 5.97783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4716
  Prefactor  = 0.0001
  norm       = 1.58447
  Prefactor  = 1.03252
  Prefactor  = 7.1564
  Prefactor  = 0.000100058
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.0269
  Prefactor  = 0.000100002
  Prefactor  = 19.2726
  norm       = 0.0001
  norm       = 15.7269
  Prefactor  = 4.32578
  Prefactor  = 19.2395
  Prefactor  = 11.8392
  Prefactor  = 18.6999
  Normalizat = 0.928315
  Prefactor  = 1.11335
 **********
 **   18 **HESSE 
 **********

 FCN=   7194.581     FROM HESSE     STATUS=OK           439 CALLS     3412 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .20633        .11946        .21742E-04   -1.5617    
   3  norm          5.9778        10.170        .16423E-03   -1.5219    
   4  Prefactor     .10000E-03    22.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.6007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0949        .16750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.472        20.535        .90779E-04   -1.4825    
   8  Prefactor     .10000E-03    13.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5845        1.0803        .33727E-04   -1.5456    
  10  Prefactor     1.0325        6.9725        .21774E-02   -1.5505    
  11  Prefactor     7.1564        20.476        .15004E-03   -1.5173    
  12  Prefactor     .10006E-03    49.259        .17368       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.2318        .14862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     55.027        172.40        .27148E-03   -1.4223    
  16  Prefactor     .10000E-03    10.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.273        23.750        .91230E-04   -1.4830    
  18  norm          .10000E-03    5.0269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.727        22.855        .10100E-03   -1.4915    
  20  Prefactor     4.3258        5.1839        .18833E-03   -1.5292    
  21  Prefactor     19.239        38.794        .91440E-04   -1.4830    
  22  Prefactor     11.839        25.426        .11637E-03   -1.5020    
  23  Prefactor     18.700        11.942        .92622E-04   -1.4843    
  24  Normalizat    .92831        .24550        .33876E-03   -.95472    
  25  Prefactor     1.1134        .14765        .19734E-03   -.89041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75939e-10
Minuit parameter uncertainties:
  1  1.40758e-05
  2  0.119465
  3  10.1734
  4  6.88019e-05
  5  2.59913e-05
  6  9.79058e-06
  7  20.542
  8  1.31342e-05
  9  1.08033
  10  5.36692
  11  20.4956
  12  0.00338765
  13  1.71009e-05
  14  4.0232e-05
  15  174.005
  16  0.000302668
  17  23.762
  18  5.43331e-06
  19  22.8676
  20  5.18441
  21  38.8453
  22  25.4494
  23  11.9434
  24  0.245792
  25  0.147708
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.033e+00  5.367e+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:  1.113e+00  1.477e-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:  9.283e-01  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/839230/likelihoodResults_347155201_347414401_4FGL_J2324.7+0801_daily_bin416.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) = 7194.52916551
delta logL = 0.0523012255144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7194.49396254
delta logL = 0.0875042014113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6509       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6067       1.0000          .0000       10.000    
     3 'Normalizat'    .93210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1106       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7194.494     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      272 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6440        6.6455        .12519E-02    .27336E-03
   2  Index         1.6081        1.1243        .14260E-01   -.33683E-04
   3  Normalizat    .93231        .23005        .33810E-03    .62543E-05
   4  Prefactor     1.1105        .14652        .19754E-03    .52373E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.64397
  Index      = 1.60813
  Normalizat = 0.932314
  Prefactor  = 1.11045
 **********
 **   18 **HESSE 
 **********

 FCN=   7194.494     FROM HESSE     STATUS=OK            27 CALLS      299 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6440        6.6544        .25038E-03   -1.5383    
   2  Index         1.6081        1.1264        .28519E-02   -.74555    
   3  Normalizat    .93231        .23022        .13524E-04   -.95334    
   4  Prefactor     1.1105        .14664        .79014E-05   -.89133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43889e-13
Minuit parameter uncertainties:
  1  6.6563
  2  1.14482
  3  0.230467
  4  0.146689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839230': 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) = 7194.49396064
delta logL = 0.0875060990147

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.644e+00  6.656e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.608e+00  1.145e+00  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.110e+00  1.467e-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:  9.323e-01  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 351.190 8.028

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/839230/cmap_HighResolution_347155201_347414401_4FGL_J2324.7+0801_daily_bin416.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2021-09-29 16:23:22.227819', job_id='839230', GAL2='1.11', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632957802.23', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='8.75e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='416' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:23:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 839230: <4FGL_J2324.7+0801_daily_bin416> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin416 351.19 8.0282 347155201 347414401 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 :                                   720.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             317.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            787 sec.

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

