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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1013
RA = 351.182, Dec = -40.6834
tmin = 501897601, tmax = 502156801
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='851722', job_status='RUN', time_executed='2021-09-29 16:46:25.446658', time_epoch_executed='1632959185.45' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851722

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851722/ft1_4FGL_J2324.7-4041_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851722/ft2_4FGL_J2324.7-4041_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851722/ft1_4FGL_J2324.7-4041_daily_bin1013.fits outfile=/scratch/kocevski/851722/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1013.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=501897601.0 tmax=502156801.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.48
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851722/ft2_4FGL_J2324.7-4041_daily_bin1013.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/851722/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/851722/ft1_filtered_4FGL_J2324.7-4041_daily_bin1013.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/851722/ft1_filtered_4FGL_J2324.7-4041_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/851722/ft2_4FGL_J2324.7-4041_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/851722/ltcube_501897601_502156801_4FGL_J2324.7-4041_daily_bin1013.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/851722/ft2_4FGL_J2324.7-4041_daily_bin1013.fits
.....................!
real 11.74
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851722/ft1_filtered_4FGL_J2324.7-4041_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/851722/ft2_4FGL_J2324.7-4041_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/851722/ltcube_501897601_502156801_4FGL_J2324.7-4041_daily_bin1013.fits outfile=/scratch/kocevski/851722/expmap_501897601_502156801_4FGL_J2324.7-4041_daily_bin1013.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/851722/ltcube_501897601_502156801_4FGL_J2324.7-4041_daily_bin1013.fits
.....................!
real 192.25
user 187.41
sys 4.45

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/851722/ft1_filtered_4FGL_J2324.7-4041_daily_bin1013.fits scfile=/scratch/kocevski/851722/ft2_4FGL_J2324.7-4041_daily_bin1013.fits outfile=/scratch/kocevski/851722/cmap_501897601_502156801_4FGL_J2324.7-4041_daily_bin1013.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851722/ft1_filtered_4FGL_J2324.7-4041_daily_bin1013.fits scfile=/scratch/kocevski/851722/ft2_4FGL_J2324.7-4041_daily_bin1013.fits outfile=/scratch/kocevski/851722/cmap_HighResolution_501897601_502156801_4FGL_J2324.7-4041_daily_bin1013.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851722/ft1_filtered_4FGL_J2324.7-4041_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/851722/ft2_4FGL_J2324.7-4041_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851722/Model_4FGL_J2324.7-4041_daily_bin1013.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/851722/ft1_filtered_4FGL_J2324.7-4041_daily_bin1013.fits.....................!
real 47.48
user 46.13
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15968E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0122       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0376       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1900       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13948       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7305       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11363E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.137       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8247       1.0000         .10000E-03   10000.    
    16 'norm      '    4.9789       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9142       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3880       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29695       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.377       1.0000         .10000E-03   10000.    
    21 'norm      '    .14549E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.3671       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.8248       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.849       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3040       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .66287       1.0000         .10000E-03   10000.    
    30 'Prefactor '    21.243       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .76622       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0293       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=   6787.893     FROM MIGRAD    STATUS=CONVERGED   1619 CALLS     5864 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    135.37        .18142E-02** at limit **
   2  Prefactor     2.0109        11.028        .14592E-02   -.59151E-04
   3  Prefactor     6.0387        12.333        .16341E-03   -.44527E-05
   4  Prefactor     1.1903        1.6425        .12290E-03    .45049E-04
   5  Prefactor     .53424E-01    19.643        .11984        .19789E-03
   6  Prefactor     .10000E-03    4.4049        .16767E-02** at limit **
   7  Prefactor     .10000E-03    23.545        .18142E-02** at limit **
   8  Prefactor     3.7312        8.1699        .20906E-03    .15988E-04
   9  Prefactor     .10000E-03    41.104        .35402E-02** at limit **
  10  Prefactor     5.3196        5.1232        .17427E-03    .26029E-04
  11  Prefactor     32.139        42.747        .70682E-04    .20910E-04
  12  Prefactor     .10000E-03    51.870        .18142E-02** at limit **
  13  Prefactor     .10000E-03    5.0059        .17965E-02** at limit **
  14  norm          .10000E-03    5.2797        .18142E-02** at limit **
  15  norm          1.8249        2.9159        .17445E-03   -.10558E-04
  16  norm          4.9766        4.0322        .70221E-03    .37308E-03
  17  norm          3.9141        4.4122        .17709E-03   -.43334E-04
  18  Prefactor     1.3882        3.4948        .22385E-03   -.65872E-04
  19  Prefactor     .27091        43.292        .97412E-01    .33078E-03
  20  Prefactor     19.379        38.153        .90988E-04    .19991E-04
  21  norm          .10316E-03    4.4063        .34326E-01** at limit **
  22  Prefactor     9.3659        11.673        .13094E-03    .41414E-04
  23  norm          .10000E-03    .16967        .32999E-03** at limit **
  24  norm          3.8228        3.2164        .12044E-03    .78393E-03
  25  Prefactor     .10000E-03    3.7635        .20160E-02** at limit **
  26  Prefactor     .10000E-03    4.7253        .17481E-02** at limit **
  27  Prefactor     10.858        32.680        .12164E-03    .10187E-04
  28  Prefactor     3.3047        3.8903        .16908E-03   -.35906E-04
  29  Prefactor     .66441        2.5231        .24060E-03    .93887E-04
  30  Prefactor     21.237        25.240        .86902E-04   -.12166E-04
  31  Normalizat    .76609        .17669        .22555E-03    .30510E-03
  32  Prefactor     1.0294        .19469        .22773E-03    .43134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 2.01086
  Prefactor  = 6.03865
  Prefactor  = 1.19031
  Prefactor  = 0.0534239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.73124
  Prefactor  = 0.0001
  Prefactor  = 5.31964
  Prefactor  = 32.1385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.82489
  norm       = 4.97662
  norm       = 3.91411
  Prefactor  = 1.38816
  Prefactor  = 0.270907
  Prefactor  = 19.379
  norm       = 0.000103159
  Prefactor  = 9.36594
  norm       = 0.0001
  norm       = 3.82275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8582
  Prefactor  = 3.30475
  Prefactor  = 0.664407
  Prefactor  = 21.2367
  Normalizat = 0.766095
  Prefactor  = 1.02943
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.893     FROM HESSE     STATUS=OK           657 CALLS     6521 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    135.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0109        11.017        .58367E-04   -1.5424    
   3  Prefactor     6.0387        12.333        .65362E-05   -1.5216    
   4  Prefactor     1.1903        1.6425        .49160E-05   -1.5490    
   5  Prefactor     .53424E-01    19.377        .12136       -1.5662    
   6  Prefactor     .10000E-03    4.4068        .33534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.564        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7312        8.1697        .83624E-05   -1.5322    
   9  Prefactor     .10000E-03    41.764        .70804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3196        5.1230        .69707E-05   -1.5247    
  11  Prefactor     32.139        42.757        .28273E-05   -1.4574    
  12  Prefactor     .10000E-03    51.894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0067        .35929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.2816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8249        2.9159        .69779E-05   -1.5438    
  16  norm          4.9766        4.0283        .28088E-04   -1.5262    
  17  norm          3.9141        4.4120        .70835E-05   -1.5312    
  18  Prefactor     1.3882        3.4930        .89539E-05   -1.5472    
  19  Prefactor     .27091        37.137        .10528       -1.5604    
  20  Prefactor     19.379        38.150        .36395E-05   -1.4827    
  21  norm          .10316E-03    3.5024        .40120E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.3659        11.667        .52378E-05   -1.5096    
  23  norm          .10000E-03    .16967        .65997E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.8228        3.2038        .48176E-05   -1.5317    
  25  Prefactor     .10000E-03    3.7868        .40320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.7255        .34961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.858        32.684        .48656E-05   -1.5049    
  28  Prefactor     3.3047        3.8901        .67632E-05   -1.5344    
  29  Prefactor     .66441        2.5218        .96241E-05   -1.5545    
  30  Prefactor     21.237        25.244        .34761E-05   -1.4786    
  31  Normalizat    .76609        .17661        .90220E-05   -1.0134    
  32  Prefactor     1.0294        .19479        .45546E-04   -.91755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47197e-09
Minuit parameter uncertainties:
  1  0.00128649
  2  9.41616
  3  12.3382
  4  1.64251
  5  2.03363
  6  4.2779e-05
  7  3.93968e-05
  8  8.17214
  9  0.000128519
  10  5.12343
  11  42.7974
  12  8.83368e-05
  13  8.73257e-06
  14  4.95519e-06
  15  2.91611
  16  4.02855
  17  4.41236
  18  3.49352
  19  6.34655
  20  38.198
  21  0.00665276
  22  11.6698
  23  2.76221e-07
  24  3.20391
  25  2.89646e-05
  26  2.38206e-06
  27  32.7382
  28  3.89037
  29  2.52224
  30  25.2567
  31  0.176743
  32  0.194924
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.977e+00  4.029e+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.029e+00  1.949e-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.661e-01  1.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.62
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.22e-08 +/- 9.88e-09
Energy Flux (Fixed Index): 2.64e-05 +/- 2.14e-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) = 6787.87257184
delta logL = 0.0207650458469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6787.87071999
delta logL = 0.0226168908339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7322       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7647       1.0000          .0000       5.0000    
     3 'Normalizat'    .76494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0288       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.

 FCN=   6787.871     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      205 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7322        83.036        .46243E-02    .37392E-03
   2  alpha         1.7647        3.2338        .37631        .55136E-04
   3  Normalizat    .76494        .65107E-01    .43151E-01   -.56740E-05
   4  Prefactor     1.0288        .58614E-01    .41358E-01    .25914E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.73218
  alpha      = 1.76475
  Normalizat = 0.764942
  Prefactor  = 1.02876
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.871     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7322        4.0344        .13426E-03   -1.5273    
   2  alpha         1.7647        .66852        .12910E-01   -.29852    
   3  Normalizat    .76494        .16402        .22569E-03   -1.0138    
   4  Prefactor     1.0288        .19053        .22777E-03   -.91777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99191e-11
Minuit parameter uncertainties:
  1  4.03461
  2  0.677565
  3  0.164129
  4  0.19065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851722': 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) = 6787.87071999
delta logL = 0.0226168910158

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.732e+00  4.035e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.765e+00  6.776e-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.029e+00  1.907e-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.649e-01  1.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.66
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.76 +/- 0.68
Photon Flux (Free Index): 1.47e-08 +/- 1.68e-08
Energy Flux (Free Index): 2.20e-05 +/- 2.56e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/851722/cmap_HighResolution_501897601_502156801_4FGL_J2324.7-4041_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.22e-08', energy_flux2='2.20e-05', photon_flux_error='9.88e-09', dlogl='2.26e-02', energy_flux='2.64e-05', photon_flux2='1.47e-08', job_status='DONE', time_completed='2021-09-29 17:02:10.802031', photon_index_error2='0.68', photon_index2='1.76', ts='4.62', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='0.77', time_epoch_completed='1632960130.8', return_code='0', job_id='851722', GAL2='1.03', EG2='0.76', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='1.68e-08', ts2='4.66', photon_index='1.62' WHERE bin_id='1013' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:02:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 851722: <4FGL_J2324.7-4041_daily_bin1013> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1013> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:39 2021
Job was executed on host(s) <bullet0223>, 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 17:02:11 2021
Results reported at Wed Sep 29 17:02:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1013 351.182 -40.6834 501897601 502156801 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 :                                   930.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

