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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1053
RA = 351.182, Dec = -40.6834
tmin = 512265601, tmax = 512524801
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='851783', job_status='RUN', time_executed='2021-09-29 16:46:36.016545', time_epoch_executed='1632959196.02' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851783/ft1_4FGL_J2324.7-4041_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851783/ft2_4FGL_J2324.7-4041_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851783/ft1_4FGL_J2324.7-4041_daily_bin1053.fits outfile=/scratch/kocevski/851783/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1053.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=512265601.0 tmax=512524801.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.58
user 3.36
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/851783/ft2_4FGL_J2324.7-4041_daily_bin1053.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851783/ft2_4FGL_J2324.7-4041_daily_bin1053.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/851783/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1053.fits evtable="EVENTS" outfile="/scratch/kocevski/851783/ft1_filtered_4FGL_J2324.7-4041_daily_bin1053.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/851783/ft1_filtered_4FGL_J2324.7-4041_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/851783/ft2_4FGL_J2324.7-4041_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/851783/ltcube_512265601_512524801_4FGL_J2324.7-4041_daily_bin1053.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/851783/ft2_4FGL_J2324.7-4041_daily_bin1053.fits
.....................!
real 12.03
user 11.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851783/ft1_filtered_4FGL_J2324.7-4041_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/851783/ft2_4FGL_J2324.7-4041_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/851783/ltcube_512265601_512524801_4FGL_J2324.7-4041_daily_bin1053.fits outfile=/scratch/kocevski/851783/expmap_512265601_512524801_4FGL_J2324.7-4041_daily_bin1053.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/851783/ltcube_512265601_512524801_4FGL_J2324.7-4041_daily_bin1053.fits
.....................!
real 191.29
user 185.71
sys 5.01

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7-4041 @ 351.182 -40.6834

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/851783/ft1_filtered_4FGL_J2324.7-4041_daily_bin1053.fits scfile=/scratch/kocevski/851783/ft2_4FGL_J2324.7-4041_daily_bin1053.fits outfile=/scratch/kocevski/851783/cmap_512265601_512524801_4FGL_J2324.7-4041_daily_bin1053.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.182 yref=-40.6834 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851783/ft1_filtered_4FGL_J2324.7-4041_daily_bin1053.fits scfile=/scratch/kocevski/851783/ft2_4FGL_J2324.7-4041_daily_bin1053.fits outfile=/scratch/kocevski/851783/cmap_HighResolution_512265601_512524801_4FGL_J2324.7-4041_daily_bin1053.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.182 yref=-40.6834 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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851783/ft1_filtered_4FGL_J2324.7-4041_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/851783/ft2_4FGL_J2324.7-4041_daily_bin1053.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851783/Model_4FGL_J2324.7-4041_daily_bin1053.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/851783/ft1_filtered_4FGL_J2324.7-4041_daily_bin1053.fits.....................!
real 41.71
user 40.30
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/851783/ft1_filtered_4FGL_J2324.7-4041_daily_bin1053.fits', '/scratch/kocevski/851783/ft2_4FGL_J2324.7-4041_daily_bin1053.fits', expMap='/scratch/kocevski/851783/expmap_512265601_512524801_4FGL_J2324.7-4041_daily_bin1053.fits', expCube='/scratch/kocevski/851783/ltcube_512265601_512524801_4FGL_J2324.7-4041_daily_bin1053.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/851783/Model_4FGL_J2324.7-4041_daily_bin1053.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7-4041'

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.376e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/851783/ft1_filtered_4FGL_J2324.7-4041_daily_bin1053.fits
Spacecraft file(s): /scratch/kocevski/851783/ft2_4FGL_J2324.7-4041_daily_bin1053.fits
Exposure map: /scratch/kocevski/851783/expmap_512265601_512524801_4FGL_J2324.7-4041_daily_bin1053.fits
Exposure cube: /scratch/kocevski/851783/ltcube_512265601_512524801_4FGL_J2324.7-4041_daily_bin1053.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/851783/Model_4FGL_J2324.7-4041_daily_bin1053.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) = 5584.13495822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.819       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.899       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.144       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6585       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.1412       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0857       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    80.774       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.302       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3683       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.247       1.0000         .10000E-03   10000.    
    23 'norm      '    .14104E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    4.5130       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .47406       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.6663       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .73187       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1042       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5584.029     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     4383 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.822        64.074        .22019E-05    .68547E-05
   2  Prefactor     .10000E-03    10.092        .14584E-05** at limit **
   3  Prefactor     .10000E-03    15.738       -.28378E-05** at limit **
   4  Prefactor     11.899        5.1184        .67305E-07   -.35277E-04
   5  Prefactor     48.142        40.965       -.35233E-06   -.29551E-05
   6  Prefactor     4.6587        8.0808        .28116E-06   -.11003E-03
   7  Prefactor     .10000E-03    7.7800        .73819E-06** at limit **
   8  Prefactor     .10000E-03    16.106       -.25331E-05** at limit **
   9  Prefactor     .10000E-03    4.9709        .22726E-06** at limit **
  10  Prefactor     .10000E-03    1.9992       -.69579E-08** at limit **
  11  Prefactor     .10000E-03    25.652        .37526E-05** at limit **
  12  Prefactor     .10000E-03    21.811        .30378E-05** at limit **
  13  Prefactor     .10000E-03    7.7054        .57249E-06** at limit **
  14  norm          .10000E-03    2.9579        .62437E-07** at limit **
  15  norm          .10000E-03    3.2289       -.73990E-07** at limit **
  16  norm          8.1410        6.9193       -.15790E-05   -.20927E-03
  17  norm          2.0859        5.3359        .20756E-06   -.23668E-03
  18  Prefactor     .10000E-03    2.4189       -.16814E-07** at limit **
  19  Prefactor     80.781        51.405       -.53097E-05   -.16478E-03
  20  Prefactor     24.298        27.481       -.10140E-05   -.44071E-04
  21  norm          1.3690        11.818        .87127E-05   -.27143E-03
  22  Prefactor     33.247        15.876        .11786E-06   -.75252E-04
  23  norm          .14715E-01    .50626       -.10630E-07   -.84811E-05
  24  norm          4.5131        4.3335       -.71961E-06   -.29446E-03
  25  Prefactor     .47398        2.5087        .66120E-06   -.52426E-03
  26  Prefactor     .10000E-03    7.1527       -.16426E-05** at limit **
  27  Prefactor     .10000E-03    24.794        .39124E-05** at limit **
  28  Prefactor     .10000E-03    1.5099       -.36669E-08** at limit **
  29  Prefactor     5.6668        4.6890        .12466E-06   -.16626E-03
  30  Prefactor     .10000E-03    34.059       -.76903E-05** at limit **
  31  Normalizat    .73176        .18064       -.84799E-06   -.43532E-04
  32  Prefactor     1.1044        .19610       -.65747E-07   -.85007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8988
  Prefactor  = 48.1423
  Prefactor  = 4.65868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.14103
  norm       = 2.08593
  Prefactor  = 0.0001
  Prefactor  = 80.7808
  Prefactor  = 24.2978
  norm       = 1.36895
  Prefactor  = 33.2466
  norm       = 0.0147147
  norm       = 4.51308
  Prefactor  = 0.473982
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.66675
  Prefactor  = 0.000100002
  Normalizat = 0.731758
  Prefactor  = 1.10436
 **********
 **   18 **HESSE 
 **********

 FCN=   5584.029     FROM HESSE     STATUS=OK           655 CALLS     5038 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.822        64.170        .12181E-03   -1.5050    
   2  Prefactor     .10000E-03    10.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.899        5.1169        .10289E-03   -1.5018    
   5  Prefactor     48.142        40.970        .57791E-04   -1.4319    
   6  Prefactor     4.6587        8.0708        .18646E-03   -1.5276    
   7  Prefactor     .10000E-03    7.7975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9975        .16270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0066        .10318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9584        .12552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2790        .13111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.1410        6.9311        .14051E-03   -1.5137    
  17  norm          2.0859        5.3069        .26631E-03   -1.5419    
  18  Prefactor     .10000E-03    2.4216        .11335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     80.781        51.852        .44688E-04   -1.3908    
  20  Prefactor     24.298        27.511        .81257E-04   -1.4722    
  21  norm          1.3690        12.486        .31918E-03   -1.5474    
  22  Prefactor     33.247        15.789        .34748E-03   -1.4554    
  23  norm          .14715E-01    7.4947        .99785E-03   -1.5684    
  24  norm          4.5131        4.3178        .13988E-03   -1.5283    
  25  Prefactor     .47398        2.4621        .22762E-03   -1.5570    
  26  Prefactor     .10000E-03    7.1818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    24.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.5146        .89661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.6668        4.6876        .13911E-03   -1.5232    
  30  Prefactor     .10000E-03    34.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .73176        .22019        .25389E-03   -1.0265    
  32  Prefactor     1.1044        .24122        .23986E-03   -.89327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39061e-08
Minuit parameter uncertainties:
  1  52.7904
  2  4.99454e-05
  3  0.000122573
  4  5.11706
  5  40.9935
  6  8.07264
  7  2.65962e-05
  8  8.89827e-05
  9  7.88016e-06
  10  7.77754e-07
  11  0.000210221
  12  0.000160312
  13  2.04516e-05
  14  1.28342e-06
  15  3.39862e-07
  16  6.93178
  17  5.30809
  18  5.54512e-07
  19  51.8811
  20  27.5255
  21  8.27083
  22  15.7915
  23  0.661996
  24  4.3181
  25  2.16045
  26  4.73983e-05
  27  0.000224609
  28  1.33592e-06
  29  4.68791
  30  0.000467918
  31  0.220456
  32  0.241459
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  8.141e+00  6.932e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.104e+00  2.415e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  7.318e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.05
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 2.00e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 4.32e-05 +/- 3.68e-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) = 5583.92427644
delta logL = 0.104684432788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5583.92016369
delta logL = 0.108797182636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6439       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9475       1.0000          .0000       5.0000    
     3 'Normalizat'    .72490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1034       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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=   5583.920     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      270 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6444        6.0667        .13288E-03    .65880E-05
   2  alpha         1.9474        .67119        .12186E-01    .22116E-03
   3  Normalizat    .72490        .20819        .25476E-03   -.71803E-04
   4  Prefactor     1.1035        .23707        .23969E-03   -.51131E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.64442
  alpha      = 1.94736
  Normalizat = 0.724901
  Prefactor  = 1.10346
 **********
 **   18 **HESSE 
 **********

 FCN=   5583.920     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6444        5.8709        .53150E-05   -1.5155    
   2  alpha         1.9474        .64985        .24372E-02   -.22290    
   3  Normalizat    .72490        .20827        .10190E-04   -1.0292    
   4  Prefactor     1.1035        .23734        .95875E-05   -.89356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11898e-11
Minuit parameter uncertainties:
  1  5.87134
  2  0.657796
  3  0.208495
  4  0.237569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851783': 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) = 5583.92016366
delta logL = 0.108797219104

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  7.644e+00  5.871e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.947e+00  6.578e-01  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.103e+00  2.376e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  7.249e-01  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.29
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.95 +/- 0.66
Photon Flux (Free Index): 3.37e-08 +/- 3.92e-08
Energy Flux (Free Index): 3.26e-05 +/- 2.75e-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/851783/cmap_HighResolution_512265601_512524801_4FGL_J2324.7-4041_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.00e-08', energy_flux2='3.26e-05', photon_flux_error='1.70e-08', dlogl='1.09e-01', energy_flux='4.32e-05', photon_flux2='3.37e-08', job_status='DONE', time_completed='2021-09-29 16:59:24.005925', photon_index_error2='0.66', photon_index2='1.95', ts='9.05', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.75e-05', EG='0.73', time_epoch_completed='1632959964.01', return_code='0', job_id='851783', GAL2='1.10', EG2='0.72', return_code2='0', energy_flux_error='3.68e-05', photon_flux_error2='3.92e-08', ts2='9.29', photon_index='1.62' WHERE bin_id='1053' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 851783: <4FGL_J2324.7-4041_daily_bin1053> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1053> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:44 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:46 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:45:46 2021
Terminated at Wed Sep 29 16:59:24 2021
Results reported at Wed Sep 29 16:59:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1053 351.182 -40.6834 512265601 512524801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7-4041 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   753.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

