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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1007
RA = 351.182, Dec = -40.6834
tmin = 500342401, tmax = 500601601
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='851713', job_status='RUN', time_executed='2021-09-29 16:46:50.720586', time_epoch_executed='1632959210.72' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851713

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851713/ft1_4FGL_J2324.7-4041_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851713/ft2_4FGL_J2324.7-4041_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851713/ft1_4FGL_J2324.7-4041_daily_bin1007.fits outfile=/scratch/kocevski/851713/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1007.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=500342401.0 tmax=500601601.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 4.74
user 4.48
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851713/ft2_4FGL_J2324.7-4041_daily_bin1007.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/851713/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/851713/ft1_filtered_4FGL_J2324.7-4041_daily_bin1007.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851713/ft1_filtered_4FGL_J2324.7-4041_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/851713/ft2_4FGL_J2324.7-4041_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/851713/ltcube_500342401_500601601_4FGL_J2324.7-4041_daily_bin1007.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/851713/ft2_4FGL_J2324.7-4041_daily_bin1007.fits
.....................!
real 11.86
user 11.55
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851713/ft1_filtered_4FGL_J2324.7-4041_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/851713/ft2_4FGL_J2324.7-4041_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/851713/ltcube_500342401_500601601_4FGL_J2324.7-4041_daily_bin1007.fits outfile=/scratch/kocevski/851713/expmap_500342401_500601601_4FGL_J2324.7-4041_daily_bin1007.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/851713/ltcube_500342401_500601601_4FGL_J2324.7-4041_daily_bin1007.fits
.....................!
real 189.90
user 185.15
sys 4.44

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/851713/ft1_filtered_4FGL_J2324.7-4041_daily_bin1007.fits scfile=/scratch/kocevski/851713/ft2_4FGL_J2324.7-4041_daily_bin1007.fits outfile=/scratch/kocevski/851713/cmap_500342401_500601601_4FGL_J2324.7-4041_daily_bin1007.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851713/ft1_filtered_4FGL_J2324.7-4041_daily_bin1007.fits scfile=/scratch/kocevski/851713/ft2_4FGL_J2324.7-4041_daily_bin1007.fits outfile=/scratch/kocevski/851713/cmap_HighResolution_500342401_500601601_4FGL_J2324.7-4041_daily_bin1007.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851713/ft1_filtered_4FGL_J2324.7-4041_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/851713/ft2_4FGL_J2324.7-4041_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851713/Model_4FGL_J2324.7-4041_daily_bin1007.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/851713/ft1_filtered_4FGL_J2324.7-4041_daily_bin1007.fits.....................!
real 28.52
user 27.27
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    106.92       1.0000         .10000E-03   10000.    
     2 'Prefactor '    74.590       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17195E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.024       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.443       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.708       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7116       1.0000         .10000E-03   10000.    
    23 'norm      '    .36082       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.569       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.703       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .67778       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3396       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=   2814.692     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4441 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     106.94        126.56        .23717E-04    .90016E-04
   2  Prefactor     74.601        47.402        .46659E-05    .16705E-03
   3  Prefactor     .10005E-03    314.55       -.24205E-03** at limit **
   4  Prefactor     .10001E-03    2.9339        .29704E-06** at limit **
   5  Prefactor     .10000E-03    21.655        .11687E-04** at limit **
   6  Prefactor     .10000E-03    5.6586        .44298E-06** at limit **
   7  Prefactor     11.017        32.067        .89969E-06   -.21608E-03
   8  Prefactor     .10001E-03    179.45        .12224E-03** at limit **
   9  Prefactor     23.445        24.520        .91315E-06   -.92306E-04
  10  Prefactor     .10000E-03    4.7204        .13029E-06** at limit **
  11  Prefactor     .10000E-03    25.468       -.26466E-04** at limit **
  12  Prefactor     .10000E-03    48.600       -.20349E-04** at limit **
  13  Prefactor     .10000E-03    33.638        .20427E-04** at limit **
  14  norm          .10000E-03    12.689       -.47005E-06** at limit **
  15  norm          .10000E-03    4.6749        .87644E-08** at limit **
  16  norm          .10000E-03    2.8413        .13837E-07** at limit **
  17  norm          .10000E-03    9.3804        .23746E-06** at limit **
  18  Prefactor     .10000E-03    5.5608       -.23146E-06** at limit **
  19  Prefactor     40.708        48.700        .43329E-06   -.13414E-04
  20  Prefactor     .10000E-03    79.884        .29727E-04** at limit **
  21  norm          .10000E-03    2.6805        .29602E-07** at limit **
  22  Prefactor     1.7108        28.736       -.18670E-06   -.14727E-03
  23  norm          .36116        1.1055       -.69908E-07   -.93075E-03
  24  norm          .10000E-03    2.6692        .18905E-07** at limit **
  25  Prefactor     .10000E-03    1.6233        .69295E-07** at limit **
  26  Prefactor     .10000E-03    56.075       -.35085E-04** at limit **
  27  Prefactor     14.618        97.418        .83822E-04   -.12942E-05
  28  Prefactor     11.705        13.752       -.10053E-05   -.10820E-03
  29  Prefactor     .10000E-03    6.6828       -.28646E-06** at limit **
  30  Prefactor     .10000E-03    37.096        .21038E-04** at limit **
  31  Normalizat    .67736        .27935       -.58306E-05   -.27158E-04
  32  Prefactor     1.3400        .28707       -.46961E-06   -.21048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 106.944
  Prefactor  = 74.601
  Prefactor  = 0.000100047
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0167
  Prefactor  = 0.000100011
  Prefactor  = 23.4446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.7076
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.71085
  norm       = 0.361158
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 14.6176
  Prefactor  = 11.7047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.677358
  Prefactor  = 1.33996
 **********
 **   18 **HESSE 
 **********

 FCN=   2814.692     FROM HESSE     STATUS=OK           643 CALLS     5084 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     106.94        126.81        .38894E-04   -1.3636    
   2  Prefactor     74.601        47.395        .46490E-04   -1.3978    
   3  Prefactor     .10005E-03    316.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    36.504        .17430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6795        .12324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.017        32.130        .12066E-03   -1.5044    
   8  Prefactor     .10001E-03    182.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.445        24.515        .82729E-04   -1.4739    
  10  Prefactor     .10000E-03    4.7315        .11257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.6851        .11202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8414        .87327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.4139        .15869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.5626        .12181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     40.708        48.699        .62826E-04   -1.4431    
  20  Prefactor     .10000E-03    79.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.6812        .84736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7108        28.117        .32129E-03   -1.5446    
  23  norm          .36116        .97373        .92427E-03   -1.5588    
  24  norm          .10000E-03    2.6719        .84628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.6256        .66012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    57.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.618        97.253        .10494E-03   -1.4943    
  28  Prefactor     11.705        13.765        .11710E-03   -1.5024    
  29  Prefactor     .10000E-03    6.7466        .13347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    37.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .67736        .34000        .28953E-03   -1.0479    
  32  Prefactor     1.3400        .35493        .23225E-03   -.82126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72306e-09
Minuit parameter uncertainties:
  1  127.128
  2  47.4193
  3  0.00777774
  4  0.000931369
  5  3.9944e-06
  6  1.96922e-05
  7  32.1801
  8  0.00287011
  9  24.5253
  10  3.62988e-06
  11  2.68249e-05
  12  4.33674e-05
  13  8.99338e-06
  14  2.36798e-05
  15  4.37541e-06
  16  9.95672e-07
  17  2.20094e-05
  18  1.86015e-05
  19  48.747
  20  7.64807e-05
  21  2.46668e-06
  22  13.8787
  23  0.973768
  24  4.79222e-07
  25  3.88555e-06
  26  0.000909512
  27  75.5865
  28  13.7688
  29  5.13457e-05
  30  3.25198e-05
  31  0.34106
  32  0.355578
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  9.957e-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.340e+00  3.556e-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:  6.774e-01  3.411e-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: 4.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851713/likelihoodResults_500342401_500601601_4FGL_J2324.7-4041_daily_bin1007.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) = 2814.69265068
delta logL = -0.000946801604641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2814.69170382
delta logL = 4.88130353915e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6155       1.0000          .0000       5.0000    
     3 'Normalizat'    .67735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3400       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=   2814.692     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      245 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    156.32        .87680E-02** at limit **
   2  alpha         1.3503        4.2849        .18001       -.56209E-08
   3  Normalizat    .67735        .47619E-01    .28953E-03    .78531E-05
   4  Prefactor     1.3400        .52242E-01    .23225E-03    .96039E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.35027
  Normalizat = 0.677353
  Prefactor  = 1.33997
 **********
 **   18 **HESSE 
 **********

 FCN=   2814.692     FROM HESSE     STATUS=OK            27 CALLS      272 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4099        .90051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3503        3.0968        .72003E-01   -.47788    
   3  Normalizat    .67735        .31772        .11581E-04   -1.0479    
   4  Prefactor     1.3400        .34890        .46451E-04   -.82126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37229e-12
Minuit parameter uncertainties:
  1  9.22785e-06
  2  198.492
  3  0.31859
  4  0.349517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851713': 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) = 2814.69170283
delta logL = 1.04341279439e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  9.228e-06  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.350e+00  1.985e+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.340e+00  3.495e-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:  6.774e-01  3.186e-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/851713/cmap_HighResolution_500342401_500601601_4FGL_J2324.7-4041_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-05', job_status='DONE', photon_flux_upper_limit='4.00e-08', time_completed='2021-09-29 16:56:38.386611', job_id='851713', GAL2='1.34', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632959798.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='1.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1007' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:56:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 851713: <4FGL_J2324.7-4041_daily_bin1007> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1007 351.182 -40.6834 500342401 500601601 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 :                                   575.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            661 sec.

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

