/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 204 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7-4041_daily_bin436
RA = 351.182, Dec = -40.6834
tmin = 352339201, tmax = 352598401
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='849291', job_status='RUN', time_executed='2021-09-29 16:43:55.252433', time_epoch_executed='1632959035.25' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849291

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849291/ft1_4FGL_J2324.7-4041_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849291/ft2_4FGL_J2324.7-4041_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849291/ft1_4FGL_J2324.7-4041_daily_bin436.fits outfile=/scratch/kocevski/849291/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin436.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=352339201.0 tmax=352598401.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.50
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849291/ft1_filtered_4FGL_J2324.7-4041_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/849291/ft2_4FGL_J2324.7-4041_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/849291/ltcube_352339201_352598401_4FGL_J2324.7-4041_daily_bin436.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/849291/ft2_4FGL_J2324.7-4041_daily_bin436.fits
.....................!
real 12.79
user 12.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849291/ft1_filtered_4FGL_J2324.7-4041_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/849291/ft2_4FGL_J2324.7-4041_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/849291/ltcube_352339201_352598401_4FGL_J2324.7-4041_daily_bin436.fits outfile=/scratch/kocevski/849291/expmap_352339201_352598401_4FGL_J2324.7-4041_daily_bin436.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/849291/ltcube_352339201_352598401_4FGL_J2324.7-4041_daily_bin436.fits
.....................!
real 191.37
user 186.24
sys 4.60

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/849291/ft1_filtered_4FGL_J2324.7-4041_daily_bin436.fits scfile=/scratch/kocevski/849291/ft2_4FGL_J2324.7-4041_daily_bin436.fits outfile=/scratch/kocevski/849291/cmap_352339201_352598401_4FGL_J2324.7-4041_daily_bin436.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849291/ft1_filtered_4FGL_J2324.7-4041_daily_bin436.fits scfile=/scratch/kocevski/849291/ft2_4FGL_J2324.7-4041_daily_bin436.fits outfile=/scratch/kocevski/849291/cmap_HighResolution_352339201_352598401_4FGL_J2324.7-4041_daily_bin436.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2805       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .50630       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.548       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1471       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.430       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .57502       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9834       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.5525       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.432       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.414       1.0000         .10000E-03   10000.    
    21 'norm      '    5.9988       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.0399       1.0000         .10000E-03   10000.    
    24 'norm      '    .10258E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.118       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.245       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.3491       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2899       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .72826       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=   5067.682     FROM MIGRAD    STATUS=CONVERGED    851 CALLS     4355 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.531        .36279E-06** at limit **
   2  Prefactor     8.2767        27.799        .13936E-07    .14328E-05
   3  Prefactor     .10000E-03    16.455        .25075E-06** at limit **
   4  Prefactor     .50877        3.2867        .21633E-06   -.77545E-04
   5  Prefactor     .10000E-03    87.363        .22855E-05** at limit **
   6  Prefactor     .10000E-03    2.1496        .95057E-07** at limit **
   7  Prefactor     15.541        19.327       -.36179E-06   -.16834E-04
   8  Prefactor     4.1440        14.509        .29408E-06    .65025E-05
   9  Prefactor     10.424        14.372       -.19523E-06   -.63843E-05
  10  Prefactor     .57598        4.1112       -.56253E-07   -.34794E-04
  11  Prefactor     .10000E-03    35.638        .31272E-06** at limit **
  12  Prefactor     .10000E-03    110.00        .62520E-06** at limit **
  13  Prefactor     4.9838        16.364        .47632E-06    .16619E-05
  14  norm          .10000E-03    3.6233       -.37990E-07** at limit **
  15  norm          .10000E-03    2.3986        .16917E-07** at limit **
  16  norm          6.5543        5.6432        .79636E-07   -.72721E-04
  17  norm          .10000E-03    3.6685       -.27888E-06** at limit **
  18  Prefactor     .10000E-03    3.8377        .59912E-07** at limit **
  19  Prefactor     39.318        47.412       -.13105E-05   -.93541E-04
  20  Prefactor     13.373        50.260       -.20082E-05   -.28644E-04
  21  norm          5.9994        5.7878       -.32984E-06   -.17941E-03
  22  Prefactor     .10000E-03    10.695       -.10553E-06** at limit **
  23  norm          5.0394        1.6657       -.11428E-06   -.49612E-03
  24  norm          .10000E-03    1.8315       -.11214E-05** at limit **
  25  Prefactor     .10000E-03    2.2142        .54058E-06** at limit **
  26  Prefactor     16.119        20.763       -.18284E-06   -.68125E-04
  27  Prefactor     .10000E-03    40.377       -.20762E-07** at limit **
  28  Prefactor     .10000E-03    2.3872        .13539E-06** at limit **
  29  Prefactor     15.239        7.3490       -.33671E-06   -.18891E-04
  30  Prefactor     8.3480        26.632        .10598E-06    .31427E-06
  31  Normalizat    1.2911        .24988        .82427E-05   -.36487E-03
  32  Prefactor     .72715        .25093       -.11823E-04   -.18074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.27675
  Prefactor  = 0.0001
  Prefactor  = 0.508765
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 15.5411
  Prefactor  = 4.14399
  Prefactor  = 10.4243
  Prefactor  = 0.575982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.98379
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.55434
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.3185
  Prefactor  = 13.3732
  norm       = 5.99937
  Prefactor  = 0.0001
  norm       = 5.03937
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2391
  Prefactor  = 8.34797
  Normalizat = 1.29106
  Prefactor  = 0.727145
 **********
 **   18 **HESSE 
 **********

 FCN=   5067.682     FROM HESSE     STATUS=OK           659 CALLS     5014 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.2767        27.716        .13932E-03   -1.5133    
   3  Prefactor     .10000E-03    16.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .50877        6.3664        .24040E-02   -1.5565    
   5  Prefactor     .10000E-03    88.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1553        .10193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.541        19.318        .10157E-03   -1.4919    
   8  Prefactor     4.1440        14.480        .19793E-03   -1.5301    
   9  Prefactor     10.424        14.371        .12406E-03   -1.5062    
  10  Prefactor     .57598        13.696        .27461E-02   -1.5556    
  11  Prefactor     .10000E-03    35.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    110.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9838        16.338        .18015E-03   -1.5261    
  14  norm          .10000E-03    3.6241        .13234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3997        .10767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.5543        5.6453        .14980E-03   -1.5196    
  17  norm          .10000E-03    3.6763        .13319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8655        .13614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.318        47.453        .63830E-04   -1.4453    
  20  Prefactor     13.373        50.329        .10936E-03   -1.4976    
  21  norm          5.9994        5.7665        .14207E-03   -1.5218    
  22  Prefactor     .10000E-03    10.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.0394        1.6605        .49088E-04   -1.5259    
  24  norm          .10000E-03    1.8847        .95129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.1238        .20331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.119        20.618        .99763E-04   -1.4905    
  27  Prefactor     .10000E-03    40.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.4021        .10742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.239        7.3284        .10258E-03   -1.4927    
  30  Prefactor     8.3480        26.624        .13874E-03   -1.5130    
  31  Normalizat    1.2911        .25026        .22259E-03   -.83834    
  32  Prefactor     .72715        .25224        .30684E-03   -1.0247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97901e-08
Minuit parameter uncertainties:
  1  9.91063e-05
  2  27.7593
  3  2.52136e-05
  4  3.59957
  5  0.00106007
  6  3.57347e-06
  7  19.3255
  8  14.4926
  9  14.3762
  10  5.61828
  11  4.10397e-05
  12  0.000150294
  13  16.3522
  14  2.9248e-06
  15  2.22939e-06
  16  5.64577
  17  1.38005e-05
  18  4.38377e-06
  19  47.4981
  20  50.4896
  21  5.76707
  22  1.14969e-05
  23  1.66049
  24  4.38582e-05
  25  8.79826e-06
  26  20.6268
  27  2.99746e-05
  28  4.82783e-06
  29  7.32884
  30  26.6615
  31  0.250497
  32  0.252639
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  6.554e+00  5.646e+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:  7.271e-01  2.526e-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.291e+00  2.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.86
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.61e-08 +/- 1.38e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 3.00e-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) = 5067.54529934
delta logL = 0.136584269535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5067.5408793
delta logL = 0.141004311811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9762       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2623       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73152       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=   5067.541     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      245 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9750        5.9575        .15299E-03   -.10812E-03
   2  alpha         1.2619        .67453        .17921E-01    .42305E-04
   3  Normalizat    1.2915        .23103        .22261E-03    .10211E-02
   4  Prefactor     .73152        .24755        .30618E-03    .64005E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.97496
  alpha      = 1.26189
  Normalizat = 1.29152
  Prefactor  = 0.731519
 **********
 **   18 **HESSE 
 **********

 FCN=   5067.541     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9750        6.0496        .61197E-05   -1.5219    
   2  alpha         1.2619        .68467        .71686E-03   -.51812    
   3  Normalizat    1.2915        .23123        .44522E-04   -.83820    
   4  Prefactor     .73152        .24778        .61236E-04   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20626e-09
Minuit parameter uncertainties:
  1  6.05023
  2  0.69655
  3  0.231415
  4  0.248156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849291': 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) = 5067.54087908
delta logL = 0.14100453093

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  5.975e+00  6.050e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.262e+00  6.965e-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:  7.315e-01  2.482e-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.292e+00  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.15
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.26 +/- 0.70
Photon Flux (Free Index): 9.64e-09 +/- 1.27e-08
Energy Flux (Free Index): 5.52e-05 +/- 6.87e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/849291/cmap_HighResolution_352339201_352598401_4FGL_J2324.7-4041_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.61e-08', energy_flux2='5.52e-05', photon_flux_error='1.38e-08', dlogl='1.41e-01', energy_flux='3.48e-05', photon_flux2='9.64e-09', job_status='DONE', time_completed='2021-09-29 16:55:53.741987', photon_index_error2='0.70', photon_index2='1.26', ts='10.86', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='6.87e-05', EG='1.29', time_epoch_completed='1632959753.74', return_code='0', job_id='849291', GAL2='0.73', EG2='1.29', return_code2='0', energy_flux_error='3.00e-05', photon_flux_error2='1.27e-08', ts2='11.15', photon_index='1.62' WHERE bin_id='436' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:55:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 849291: <4FGL_J2324.7-4041_daily_bin436> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin436> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 16:40:21 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:40:22 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:40:22 2021
Terminated at Wed Sep 29 16:55:54 2021
Results reported at Wed Sep 29 16:55:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin436 351.182 -40.6834 352339201 352598401 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 :                                   716.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

