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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1292
RA = 351.182, Dec = -40.6834
tmin = 574214401, tmax = 574473601
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='853228', job_status='RUN', time_executed='2021-09-29 16:50:38.428320', time_epoch_executed='1632959438.43' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853228/ft1_4FGL_J2324.7-4041_daily_bin1292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853228/ft2_4FGL_J2324.7-4041_daily_bin1292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853228/ft1_4FGL_J2324.7-4041_daily_bin1292.fits outfile=/scratch/kocevski/853228/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1292.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=574214401.0 tmax=574473601.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.56
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853228/ft2_4FGL_J2324.7-4041_daily_bin1292.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/853228/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1292.fits evtable="EVENTS" outfile="/scratch/kocevski/853228/ft1_filtered_4FGL_J2324.7-4041_daily_bin1292.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853228/ft1_filtered_4FGL_J2324.7-4041_daily_bin1292.fits" evtable="EVENTS" scfile=/scratch/kocevski/853228/ft2_4FGL_J2324.7-4041_daily_bin1292.fits sctable="SC_DATA" outfile=/scratch/kocevski/853228/ltcube_574214401_574473601_4FGL_J2324.7-4041_daily_bin1292.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/853228/ft2_4FGL_J2324.7-4041_daily_bin1292.fits
.....................!
real 11.70
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853228/ft1_filtered_4FGL_J2324.7-4041_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/853228/ft2_4FGL_J2324.7-4041_daily_bin1292.fits sctable="SC_DATA" expcube=/scratch/kocevski/853228/ltcube_574214401_574473601_4FGL_J2324.7-4041_daily_bin1292.fits outfile=/scratch/kocevski/853228/expmap_574214401_574473601_4FGL_J2324.7-4041_daily_bin1292.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/853228/ltcube_574214401_574473601_4FGL_J2324.7-4041_daily_bin1292.fits
.....................!
real 189.22
user 185.17
sys 3.73

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/853228/ft1_filtered_4FGL_J2324.7-4041_daily_bin1292.fits scfile=/scratch/kocevski/853228/ft2_4FGL_J2324.7-4041_daily_bin1292.fits outfile=/scratch/kocevski/853228/cmap_574214401_574473601_4FGL_J2324.7-4041_daily_bin1292.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853228/ft1_filtered_4FGL_J2324.7-4041_daily_bin1292.fits scfile=/scratch/kocevski/853228/ft2_4FGL_J2324.7-4041_daily_bin1292.fits outfile=/scratch/kocevski/853228/cmap_HighResolution_574214401_574473601_4FGL_J2324.7-4041_daily_bin1292.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853228/ft1_filtered_4FGL_J2324.7-4041_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/853228/ft2_4FGL_J2324.7-4041_daily_bin1292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853228/Model_4FGL_J2324.7-4041_daily_bin1292.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/853228/ft1_filtered_4FGL_J2324.7-4041_daily_bin1292.fits.....................!
real 40.19
user 39.00
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.408       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26594E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.513       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.577       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .55811       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13588E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28983E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.829       1.0000         .10000E-03   10000.    
    14 'norm      '    19.342       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5003       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.592       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.381       1.0000         .10000E-03   10000.    
    21 'norm      '    3.5930       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.835       1.0000         .10000E-03   10000.    
    23 'norm      '    .67667E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5119       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .41394       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12759E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.7830       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.1248       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .75491       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1341       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=   5279.628     FROM MIGRAD    STATUS=CONVERGED    893 CALLS     4443 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.416        33.843       -.35991E-07   -.22026E-04
   2  Prefactor     .10000E-03    8.9734       -.13919E-07** at limit **
   3  Prefactor     .10000E-03    11.850        .25087E-06** at limit **
   4  Prefactor     .10329E-03    1.6764       -.33844E-06** at limit **
   5  Prefactor     .10000E-03    19.108       -.89794E-07** at limit **
   6  Prefactor     11.519        8.4367       -.75916E-06   -.63017E-03
   7  Prefactor     46.562        29.137        .66955E-06    .13401E-03
   8  Prefactor     .10000E-03    12.296       -.24786E-06** at limit **
   9  Prefactor     .10000E-03    8.0540        .90042E-07** at limit **
  10  Prefactor     .55497        10.016        .46959E-05   -.14462E-03
  11  Prefactor     .10000E-03    57.748       -.80897E-06** at limit **
  12  Prefactor     .10003E-03    346.75        .90090E-05** at limit **
  13  Prefactor     20.829        14.778       -.42827E-07   -.61690E-04
  14  norm          19.340        12.053       -.28563E-06   -.19238E-03
  15  norm          .10000E-03    2.4777       -.10825E-07** at limit **
  16  norm          .10000E-03    1.6916        .16311E-07** at limit **
  17  norm          10.059        7.6362       -.28345E-08   -.70032E-04
  18  Prefactor     5.4984        5.8601       -.31192E-07   -.93435E-04
  19  Prefactor     21.575        35.993        .13579E-05    .78206E-04
  20  Prefactor     31.370        36.884        .94797E-06    .80891E-04
  21  norm          3.5933        3.7150       -.12498E-06   -.42134E-04
  22  Prefactor     14.840        18.637       -.16511E-06   -.12266E-03
  23  norm          .67943E-01    .90089        .18093E-06   -.47719E-03
  24  norm          .10000E-03    1.3973        .63039E-07** at limit **
  25  Prefactor     4.5173        4.0368       -.53662E-07   -.37733E-03
  26  Prefactor     .28013        18.142        .16064E-05   -.21038E-03
  27  Prefactor     .10001E-03    515.49       -.54492E-05** at limit **
  28  Prefactor     2.7813        4.8755        .40520E-06   -.32875E-04
  29  Prefactor     5.1248        4.0728        .75876E-07   -.15902E-03
  30  Prefactor     .10000E-03    51.215        .27262E-06** at limit **
  31  Normalizat    .75502        .18958       -.83544E-06   -.17079E-03
  32  Prefactor     1.1343        .20389       -.11989E-06   -.17476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103293
  Prefactor  = 0.0001
  Prefactor  = 11.5194
  Prefactor  = 46.5625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.55497
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 20.8288
  norm       = 19.34
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.0592
  Prefactor  = 5.49841
  Prefactor  = 21.5751
  Prefactor  = 31.3701
  norm       = 3.5933
  Prefactor  = 14.8402
  norm       = 0.067943
  norm       = 0.0001
  Prefactor  = 4.51731
  Prefactor  = 0.280135
  Prefactor  = 0.000100011
  Prefactor  = 2.78127
  Prefactor  = 5.12476
  Prefactor  = 0.0001
  Normalizat = 0.755022
  Prefactor  = 1.13433
 **********
 **   18 **HESSE 
 **********

 FCN=   5279.628     FROM HESSE     STATUS=OK           677 CALLS     5120 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.416        33.857        .73880E-04   -1.4623    
   2  Prefactor     .10000E-03    8.9828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10329E-03    3.2324        .33368E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.519        8.7358        .11807E-03   -1.5029    
   7  Prefactor     46.562        29.287        .58751E-04   -1.4342    
   8  Prefactor     .10000E-03    12.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.0967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55497        10.711        .44683E-02   -1.5559    
  11  Prefactor     .10000E-03    58.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    362.83        .42808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.829        14.665        .87762E-04   -1.4795    
  14  norm          19.340        12.091        .91071E-04   -1.4828    
  15  norm          .10000E-03    2.4818        .11167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6924        .92266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.059        7.6438        .12634E-03   -1.5074    
  18  Prefactor     5.4984        5.8391        .16026E-03   -1.5239    
  19  Prefactor     21.575        36.449        .86198E-04   -1.4779    
  20  Prefactor     31.370        37.108        .71526E-04   -1.4587    
  21  norm          3.5933        3.7268        .11881E-03   -1.5329    
  22  Prefactor     14.840        18.471        .10399E-03   -1.4937    
  23  norm          .67943E-01    2.2493        .12346E-02   -1.5656    
  24  norm          .10000E-03    1.4054        .83820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.5173        4.0296        .12576E-03   -1.5283    
  26  Prefactor     .28013        21.956        .90709E-01   -1.5602    
  27  Prefactor     .10001E-03    534.08        .36347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.7813        4.8751        .20331E-03   -1.5374    
  29  Prefactor     5.1248        4.0698        .12438E-03   -1.5255    
  30  Prefactor     .10000E-03    51.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .75502        .22843        .25732E-03   -1.0176    
  32  Prefactor     1.1343        .24679        .24295E-03   -.88377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65965e-07
Minuit parameter uncertainties:
  1  33.8786
  2  2.33005e-06
  3  4.14713e-05
  4  0.00652514
  5  1.42299e-05
  6  8.73679
  7  29.2959
  8  5.63015e-05
  9  3.83932e-06
  10  4.87685
  11  7.69453e-05
  12  0.00639936
  13  14.6671
  14  12.0924
  15  3.37968e-07
  16  4.80585e-07
  17  7.64455
  18  5.83966
  19  36.4862
  20  37.1352
  21  3.72703
  22  18.4778
  23  0.781303
  24  7.1561e-07
  25  4.0298
  26  4.96108
  27  0.00493365
  28  4.87579
  29  4.07006
  30  0.000101047
  31  0.228715
  32  0.247044
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  4.806e-07  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.134e+00  2.470e-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.550e-01  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/853228/likelihoodResults_574214401_574473601_4FGL_J2324.7-4041_daily_bin1292.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): 102
logL (Free Index) = 5279.63031061
delta logL = -0.00233289574498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5279.62797943
delta logL = -1.71642022906e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10344E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6172       1.0000          .0000       5.0000    
     3 'Normalizat'    .75476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1346       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=   5279.628     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      235 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.2523        .92450E-03** at limit **
   2  alpha         1.4299        4.0821        .17994        .48207E-07
   3  Normalizat    .75502        .21264        .25732E-03   -.19126E-03
   4  Prefactor     1.1343        .24261        .24295E-03   -.19943E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.42985
  Normalizat = 0.755022
  Prefactor  = 1.13433
 **********
 **   18 **HESSE 
 **********

 FCN=   5279.628     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7430        .18490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4299        2.8476        .71976E-02   -.44234    
   3  Normalizat    .75502        .21287        .10293E-04   -1.0176    
   4  Prefactor     1.1343        .24287        .48589E-04   -.88377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03467e-11
Minuit parameter uncertainties:
  1  1.13935e-05
  2  146.288
  3  0.213101
  4  0.243106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853228': 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) = 5279.62797686
delta logL = 8.56111910252e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.139e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.430e+00  1.463e+02  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.134e+00  2.431e-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.550e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.182 -40.683

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/853228/cmap_HighResolution_574214401_574473601_4FGL_J2324.7-4041_daily_bin1292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-05', job_status='DONE', photon_flux_upper_limit='2.32e-08', time_completed='2021-09-29 17:03:59.771374', job_id='853228', GAL2='1.13', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632960239.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='8.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1292' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:03:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 853228: <4FGL_J2324.7-4041_daily_bin1292> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1292> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:50:24 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:50:25 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:50:25 2021
Terminated at Wed Sep 29 17:04:00 2021
Results reported at Wed Sep 29 17:04:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1292 351.182 -40.6834 574214401 574473601 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 :                                   796.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            816 sec.

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

