/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 23 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1126
RA = 351.182, Dec = -40.6834
tmin = 531187201, tmax = 531446401
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='851898', job_status='RUN', time_executed='2021-09-29 16:46:26.073763', time_epoch_executed='1632959186.07' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851898

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851898/ft1_4FGL_J2324.7-4041_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851898/ft2_4FGL_J2324.7-4041_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851898/ft1_4FGL_J2324.7-4041_daily_bin1126.fits outfile=/scratch/kocevski/851898/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1126.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=531187201.0 tmax=531446401.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.98
user 3.76
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851898/ft2_4FGL_J2324.7-4041_daily_bin1126.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/851898/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/851898/ft1_filtered_4FGL_J2324.7-4041_daily_bin1126.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851898/ft1_filtered_4FGL_J2324.7-4041_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/851898/ft2_4FGL_J2324.7-4041_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/851898/ltcube_531187201_531446401_4FGL_J2324.7-4041_daily_bin1126.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/851898/ft2_4FGL_J2324.7-4041_daily_bin1126.fits
.....................!
real 11.49
user 11.09
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851898/ft1_filtered_4FGL_J2324.7-4041_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/851898/ft2_4FGL_J2324.7-4041_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/851898/ltcube_531187201_531446401_4FGL_J2324.7-4041_daily_bin1126.fits outfile=/scratch/kocevski/851898/expmap_531187201_531446401_4FGL_J2324.7-4041_daily_bin1126.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/851898/ltcube_531187201_531446401_4FGL_J2324.7-4041_daily_bin1126.fits
.....................!
real 190.68
user 185.16
sys 5.22

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/851898/ft1_filtered_4FGL_J2324.7-4041_daily_bin1126.fits scfile=/scratch/kocevski/851898/ft2_4FGL_J2324.7-4041_daily_bin1126.fits outfile=/scratch/kocevski/851898/cmap_531187201_531446401_4FGL_J2324.7-4041_daily_bin1126.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851898/ft1_filtered_4FGL_J2324.7-4041_daily_bin1126.fits scfile=/scratch/kocevski/851898/ft2_4FGL_J2324.7-4041_daily_bin1126.fits outfile=/scratch/kocevski/851898/cmap_HighResolution_531187201_531446401_4FGL_J2324.7-4041_daily_bin1126.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.53
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/851898/ft1_filtered_4FGL_J2324.7-4041_daily_bin1126.fits', '/scratch/kocevski/851898/ft2_4FGL_J2324.7-4041_daily_bin1126.fits', expMap='/scratch/kocevski/851898/expmap_531187201_531446401_4FGL_J2324.7-4041_daily_bin1126.fits', expCube='/scratch/kocevski/851898/ltcube_531187201_531446401_4FGL_J2324.7-4041_daily_bin1126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/851898/Model_4FGL_J2324.7-4041_daily_bin1126.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/851898/ft1_filtered_4FGL_J2324.7-4041_daily_bin1126.fits
Spacecraft file(s): /scratch/kocevski/851898/ft2_4FGL_J2324.7-4041_daily_bin1126.fits
Exposure map: /scratch/kocevski/851898/expmap_531187201_531446401_4FGL_J2324.7-4041_daily_bin1126.fits
Exposure cube: /scratch/kocevski/851898/ltcube_531187201_531446401_4FGL_J2324.7-4041_daily_bin1126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/851898/Model_4FGL_J2324.7-4041_daily_bin1126.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) = 4663.30063104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.601       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4077       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.884       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.794       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9666       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.913       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11588E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6833       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3954       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3086       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    107.23       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .38424       1.0000         .10000E-03   10000.    
    24 'norm      '    1.8071       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.6543       1.0000         .10000E-03   10000.    
    27 'Prefactor '    86.224       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .19058E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .38419E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10740E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4525       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .64527       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=   4663.299     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     4375 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.594        51.324        .14958E-05    .16178E-04
   2  Prefactor     .10000E-03    18.052       -.16692E-05** at limit **
   3  Prefactor     .10000E-03    10.620       -.39098E-06** at limit **
   4  Prefactor     .10000E-03    1.0484       -.96867E-07** at limit **
   5  Prefactor     .10000E-03    15.346        .78722E-07** at limit **
   6  Prefactor     8.4207        9.2423        .10389E-05    .47427E-04
   7  Prefactor     30.927        27.716       -.28976E-05    .82286E-04
   8  Prefactor     18.795        19.500       -.33850E-08    .26812E-04
   9  Prefactor     .10000E-03    7.6849       -.35918E-06** at limit **
  10  Prefactor     5.9789        8.2028       -.11321E-06    .27246E-04
  11  Prefactor     23.962        38.891       -.62891E-05    .62621E-04
  12  Prefactor     .10000E-03    55.908        .36641E-05** at limit **
  13  Prefactor     .10000E-03    4.0371       -.92921E-07** at limit **
  14  norm          .10000E-03    8.5579       -.33582E-06** at limit **
  15  norm          2.6841        4.1996        .20926E-06    .11180E-04
  16  norm          3.3969        4.2451        .18298E-08    .10032E-04
  17  norm          1.3138        8.0480        .18175E-04    .11515E-04
  18  Prefactor     .10000E-03    2.7217       -.30039E-06** at limit **
  19  Prefactor     .10000E-03    14.737        .52083E-06** at limit **
  20  Prefactor     107.33        68.226       -.97871E-05    .11889E-03
  21  norm          .10000E-03    1.5757       -.67422E-07** at limit **
  22  Prefactor     .10000E-03    7.9299       -.42120E-07** at limit **
  23  norm          .38427        .51479       -.96227E-07   -.52646E-03
  24  norm          1.8098        3.8388       -.93694E-07    .24311E-04
  25  Prefactor     .10000E-03    1.8448       -.65812E-06** at limit **
  26  Prefactor     5.6210        22.211        .47691E-05    .82105E-04
  27  Prefactor     86.259        79.530       -.36244E-05    .19098E-04
  28  Prefactor     .10000E-03    6.6388        .13626E-05** at limit **
  29  Prefactor     .19113        3.5886       -.72979E-06    .10097E-03
  30  Prefactor     .10000E-03    59.687        .27646E-05** at limit **
  31  Normalizat    1.4513        .21347       -.26154E-05    .31219E-03
  32  Prefactor     .64541        .22546        .56936E-05    .35153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.42068
  Prefactor  = 30.9266
  Prefactor  = 18.7953
  Prefactor  = 0.0001
  Prefactor  = 5.97893
  Prefactor  = 23.962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.6841
  norm       = 3.39691
  norm       = 1.31379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 107.332
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.38427
  norm       = 1.80979
  Prefactor  = 0.0001
  Prefactor  = 5.62105
  Prefactor  = 86.2586
  Prefactor  = 0.000100005
  Prefactor  = 0.191132
  Prefactor  = 0.0001
  Normalizat = 1.45135
  Prefactor  = 0.645408
 **********
 **   18 **HESSE 
 **********

 FCN=   4663.299     FROM HESSE     STATUS=OK           655 CALLS     5030 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.594        51.357        .95466E-04   -1.4869    
   2  Prefactor     .10000E-03    18.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0516        .68281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.4207        9.2444        .69127E-03   -1.5128    
   7  Prefactor     30.927        27.725        .72098E-04   -1.4595    
   8  Prefactor     18.795        19.498        .92388E-04   -1.4841    
   9  Prefactor     .10000E-03    7.7219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9789        8.1964        .16439E-03   -1.5219    
  11  Prefactor     23.962        38.864        .81914E-04   -1.4729    
  12  Prefactor     .10000E-03    55.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0409        .13400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.6043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6841        4.1818        .17003E-03   -1.5380    
  16  norm          3.3969        4.2412        .15297E-03   -1.5339    
  17  norm          1.3138        8.1365        .18768E-02   -1.5479    
  18  Prefactor     .10000E-03    2.7402        .11001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     107.33        68.492        .19418E-03   -1.3632    
  21  norm          .10000E-03    1.5794        .83664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.9586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .38427        .47690        .55041E-03   -1.5584    
  24  norm          1.8098        3.8106        .18712E-03   -1.5439    
  25  Prefactor     .10000E-03    1.8647        .90540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.6210        22.186        .16893E-03   -1.5234    
  27  Prefactor     86.259        79.442        .21632E-03   -1.3848    
  28  Prefactor     .10000E-03    24.017        .33699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .19113        45.652        .23940E-02   -1.5621    
  30  Prefactor     .10000E-03    59.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.4513        .25312        .21226E-03   -.79155    
  32  Prefactor     .64541        .26573        .32606E-03   -1.0571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12798e-09
Minuit parameter uncertainties:
  1  51.4864
  2  6.42813e-05
  3  7.26666e-06
  4  4.66832e-06
  5  1.73e-05
  6  9.246
  7  27.7367
  8  19.5049
  9  2.74724e-06
  10  8.19789
  11  38.905
  12  0.000288001
  13  7.39754e-06
  14  4.00323e-05
  15  4.18227
  16  4.24153
  17  6.54008
  18  2.2133e-05
  19  5.12886e-05
  20  68.5423
  21  5.34977e-06
  22  7.31032e-05
  23  0.476901
  24  3.81115
  25  3.98438e-05
  26  22.2186
  27  79.5396
  28  0.000670013
  29  5.91082
  30  2.9008e-05
  31  0.253338
  32  0.266251
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.397e+00  4.242e+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:  6.454e-01  2.663e-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:  1.451e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 8.33e-09 +/- 1.04e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 2.25e-05

TS (Fixed Index): 1.48
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 4.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851898/likelihoodResults_531187201_531446401_4FGL_J2324.7-4041_daily_bin1126.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) = 4663.2981977
delta logL = 0.000853363038914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4663.29813963
delta logL = 0.000911431769055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4358       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5855       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64555       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=   4663.298     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      259 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4455        4.4629        .15428E-03    .59378E-03
   2  alpha         1.5881        .81296        .16461E-01    .48244E-04
   3  Normalizat    1.4515        .24407        .21226E-03   -.13303E-03
   4  Prefactor     .64548        .26200        .32604E-03   -.29639E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.4455
  alpha      = 1.58811
  Normalizat = 1.4515
  Prefactor  = 0.645482
 **********
 **   18 **HESSE 
 **********

 FCN=   4663.298     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4455        4.4217        .30855E-04   -1.5337    
   2  alpha         1.5881        .80597        .65844E-03   -.37337    
   3  Normalizat    1.4515        .24427        .42452E-04   -.79150    
   4  Prefactor     .64548        .26223        .13042E-04   -1.0570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06016e-10
Minuit parameter uncertainties:
  1  4.42212
  2  0.823012
  3  0.24447
  4  0.262728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851898': 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) = 4663.29812997
delta logL = 0.000921095663216

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.445e+00  4.422e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.588e+00  8.230e-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:  6.455e-01  2.627e-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:  1.451e+00  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.59 +/- 0.82
Photon Flux (Free Index): 8.01e-09 +/- 1.24e-08
Energy Flux (Free Index): 1.91e-05 +/- 3.43e-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/851898/cmap_HighResolution_531187201_531446401_4FGL_J2324.7-4041_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.33e-05', comment='SUCCESS', photon_flux='8.33e-09', energy_flux2='1.91e-05', photon_flux_error='1.04e-08', dlogl='9.21e-04', energy_flux='1.80e-05', photon_flux2='8.01e-09', job_status='DONE', time_completed='2021-09-29 16:59:10.498388', photon_index_error2='0.82', photon_index2='1.59', ts='1.48', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='4.31e-08', energy_flux_error2='3.43e-05', EG='1.45', time_epoch_completed='1632959950.5', return_code='0', job_id='851898', GAL2='0.65', EG2='1.45', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='1.24e-08', ts2='1.48', photon_index='1.62' WHERE bin_id='1126' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 851898: <4FGL_J2324.7-4041_daily_bin1126> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1126 351.182 -40.6834 531187201 531446401 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 :                                   746.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

