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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1279
RA = 351.182, Dec = -40.6834
tmin = 570844801, tmax = 571104001
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='853209', job_status='RUN', time_executed='2021-09-29 16:51:53.490061', time_epoch_executed='1632959513.49' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853209

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853209/ft1_4FGL_J2324.7-4041_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853209/ft2_4FGL_J2324.7-4041_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853209/ft1_4FGL_J2324.7-4041_daily_bin1279.fits outfile=/scratch/kocevski/853209/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1279.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=570844801.0 tmax=571104001.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.04
user 2.81
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853209/ft1_filtered_4FGL_J2324.7-4041_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/853209/ft2_4FGL_J2324.7-4041_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/853209/ltcube_570844801_571104001_4FGL_J2324.7-4041_daily_bin1279.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/853209/ft2_4FGL_J2324.7-4041_daily_bin1279.fits
.....................!
real 12.31
user 11.98
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853209/ft1_filtered_4FGL_J2324.7-4041_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/853209/ft2_4FGL_J2324.7-4041_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/853209/ltcube_570844801_571104001_4FGL_J2324.7-4041_daily_bin1279.fits outfile=/scratch/kocevski/853209/expmap_570844801_571104001_4FGL_J2324.7-4041_daily_bin1279.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/853209/ltcube_570844801_571104001_4FGL_J2324.7-4041_daily_bin1279.fits
.....................!
real 191.67
user 185.64
sys 5.70

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/853209/ft1_filtered_4FGL_J2324.7-4041_daily_bin1279.fits scfile=/scratch/kocevski/853209/ft2_4FGL_J2324.7-4041_daily_bin1279.fits outfile=/scratch/kocevski/853209/cmap_570844801_571104001_4FGL_J2324.7-4041_daily_bin1279.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/853209/ft1_filtered_4FGL_J2324.7-4041_daily_bin1279.fits scfile=/scratch/kocevski/853209/ft2_4FGL_J2324.7-4041_daily_bin1279.fits outfile=/scratch/kocevski/853209/cmap_HighResolution_570844801_571104001_4FGL_J2324.7-4041_daily_bin1279.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13785E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6281       1.0000         .10000E-03   10000.    
     4 'Prefactor '    62.811       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    461.70       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10138E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56882E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2386       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    251.06       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.432       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18880E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    18.013       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    23.765       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3398       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .80700E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .90308E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    4.7050       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6130       1.0000         .10000E-03   10000.    
    24 'norm      '    10.485       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.132       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .33383E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .85280E-02   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2710       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .37888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2301.257     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     3423 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    155.42        .10420E-03** at limit **
   2  Prefactor     .10000E-03    9.1888       -.19178E-05** at limit **
   3  Prefactor     2.9961        43.513        .59791E-05    .27556E-05
   4  Prefactor     71.259        77.797       -.11388E-04   -.18393E-04
   5  Prefactor     .10000E-03    501.92        .48143E-04** at limit **
   6  Prefactor     497.85        240.10        .94683E-05   -.46780E-04
   7  Prefactor     .10000E-03    54.966        .27675E-05** at limit **
   8  Prefactor     .10000E-03    78.868        .18014E-05** at limit **
   9  Prefactor     4.2126        63.060        .28748E-03   -.19846E-03
  10  Prefactor     .10000E-03    8.7791        .15834E-05** at limit **
  11  Prefactor     93.656        172.47        .34655E-04   -.79970E-04
  12  Prefactor     26.246        70.886        .23866E-04   -.14628E-03
  13  Prefactor     .10000E-03    81.199       -.72341E-04** at limit **
  14  norm          17.646        17.634        .20801E-05   -.11415E-03
  15  norm          .10000E-03    5.0990       -.64688E-06** at limit **
  16  norm          .10000E-03    3.4047       -.19208E-06** at limit **
  17  norm          24.047        16.927        .79892E-06    .18920E-03
  18  Prefactor     1.2814        9.8585        .92987E-05    .10363E-04
  19  Prefactor     .10000E-03    28.567        .88272E-05** at limit **
  20  Prefactor     .10000E-03    120.68        .87606E-05** at limit **
  21  norm          4.6886        7.0118        .27916E-05   -.12048E-03
  22  Prefactor     .10000E-03    15.630       -.34911E-06** at limit **
  23  norm          1.6122        1.4356        .12992E-05    .54734E-03
  24  norm          10.449        8.3746       -.90140E-07    .10072E-03
  25  Prefactor     .10000E-03    3.6345        .42128E-06** at limit **
  26  Prefactor     18.369        26.860       -.19410E-04    .88034E-04
  27  Prefactor     .10000E-03    24.049        .15640E-05** at limit **
  28  Prefactor     .10000E-03    8.1801        .95602E-06** at limit **
  29  Prefactor     .10000E-03    2.3360       -.20958E-06** at limit **
  30  Prefactor     .10000E-03    29.078       -.27132E-05** at limit **
  31  Normalizat    1.2552        .32739       -.24488E-04    .67056E-05
  32  Prefactor     .39902        .35070        .25587E-05    .16959E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 2.99614
  Prefactor  = 71.2592
  Prefactor  = 0.000100002
  Prefactor  = 497.846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.21258
  Prefactor  = 0.0001
  Prefactor  = 93.656
  Prefactor  = 26.2464
  Prefactor  = 0.000100001
  norm       = 17.6459
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.047
  Prefactor  = 1.28143
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.68864
  Prefactor  = 0.0001
  norm       = 1.61223
  norm       = 10.4495
  Prefactor  = 0.0001
  Prefactor  = 18.3686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25522
  Prefactor  = 0.399024
 **********
 **   18 **HESSE 
 **********

 FCN=   2301.257     FROM HESSE     STATUS=OK           721 CALLS     4144 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    156.49        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.1325        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9961        43.839        .62887E-02   -1.5362    
   4  Prefactor     71.259        78.577        .12658E-02   -1.4018    
   5  Prefactor     .10000E-03    519.41        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     497.85        239.32        .47652E-03   -1.1208    
   7  Prefactor     .10000E-03    54.859        .10377E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    79.734        .95095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2126        62.539        .48930E-02   -1.5297    
  10  Prefactor     .10000E-03    8.9497        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     93.656        176.90        .63919E-03   -1.3769    
  12  Prefactor     26.246        72.549        .18463E-02   -1.4683    
  13  Prefactor     .10000E-03    76.487        .91171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.646        17.620        .23592E-02   -1.4868    
  15  norm          .10000E-03    5.0862        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3846        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.047        16.937        .20542E-02   -1.4727    
  18  Prefactor     1.2814        10.129        .94681E-02   -1.5482    
  19  Prefactor     .10000E-03    28.560        .92310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    119.86        .94649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6886        7.0206        .46379E-02   -1.5275    
  22  Prefactor     .10000E-03    15.564        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6122        1.4394        .83365E-02   -1.5454    
  24  norm          10.449        8.4070        .30934E-02   -1.5061    
  25  Prefactor     .10000E-03    2.1565        .39152E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.369        27.158        .23514E-02   -1.4851    
  27  Prefactor     .10000E-03    23.990        .98548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.1005        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.3134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    29.129        .91827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2552        .29644        .33345E-01   -.84913    
  32  Prefactor     .39902        .31975        .82969E-01   -1.1686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01586e-08
Minuit parameter uncertainties:
  1  0.00275246
  2  3.97379e-05
  3  22.9413
  4  78.6915
  5  0.00212972
  6  239.809
  7  0.000205281
  8  0.000137565
  9  32.5029
  10  3.48367e-05
  11  177.906
  12  72.7941
  13  0.000631112
  14  17.6253
  15  5.52456e-06
  16  1.37513e-06
  17  16.9405
  18  7.20684
  19  0.000274708
  20  8.01342e-05
  21  7.02182
  22  7.62005e-05
  23  1.43944
  24  8.40793
  25  2.84921e-06
  26  27.1763
  27  1.65463e-05
  28  9.55705e-06
  29  1.72728e-06
  30  0.000182941
  31  0.296838
  32  0.321186
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.375e-06  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:  3.990e-01  3.212e-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.255e+00  2.968e-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.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853209/likelihoodResults_570844801_571104001_4FGL_J2324.7-4041_daily_bin1279.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) = 2301.25777591
delta logL = -0.000996913337076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2301.25677899
delta logL = 8.06312527857e-09

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.6179       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39900       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=   2301.257     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      234 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.4069        .86345E-03** at limit **
   2  alpha         1.4215        3.1617        .17991        .64771E-07
   3  Normalizat    1.2552        .31524        .19911E-03    .10894E-04
   4  Prefactor     .39902        .34294        .36759E-03    .60154E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.42153
  Normalizat = 1.25522
  Prefactor  = 0.399023
 **********
 **   18 **HESSE 
 **********

 FCN=   2301.257     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4894        .17269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4215        2.9533        .71963E-02   -.44603    
   3  Normalizat    1.2552        .31537        .39822E-04   -.84913    
   4  Prefactor     .39902        .34307        .14704E-04   -1.1686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91764e-11
Minuit parameter uncertainties:
  1  5.49548e-05
  2  213.631
  3  0.315847
  4  0.34485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853209': 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) = 2301.25677856
delta logL = 4.40350959252e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  5.495e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.422e+00  2.136e+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:  3.990e-01  3.449e-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.255e+00  3.158e-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/853209/cmap_HighResolution_570844801_571104001_4FGL_J2324.7-4041_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-04', job_status='DONE', photon_flux_upper_limit='4.68e-08', time_completed='2021-09-29 17:01:07.030292', job_id='853209', GAL2='0.40', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1632960067.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.40', dlogl='4.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1279' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:01:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 853209: <4FGL_J2324.7-4041_daily_bin1279> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1279 351.182 -40.6834 570844801 571104001 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 :                                   516.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            644 sec.

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

