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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1130
RA = 351.182, Dec = -40.6834
tmin = 532224001, tmax = 532483201
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='851904', job_status='RUN', time_executed='2021-09-29 16:47:53.094616', time_epoch_executed='1632959273.09' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851904/ft1_4FGL_J2324.7-4041_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851904/ft2_4FGL_J2324.7-4041_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851904/ft1_4FGL_J2324.7-4041_daily_bin1130.fits outfile=/scratch/kocevski/851904/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1130.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=532224001.0 tmax=532483201.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.49
user 3.29
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851904/ft2_4FGL_J2324.7-4041_daily_bin1130.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/851904/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1130.fits evtable="EVENTS" outfile="/scratch/kocevski/851904/ft1_filtered_4FGL_J2324.7-4041_daily_bin1130.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851904/ft1_filtered_4FGL_J2324.7-4041_daily_bin1130.fits" evtable="EVENTS" scfile=/scratch/kocevski/851904/ft2_4FGL_J2324.7-4041_daily_bin1130.fits sctable="SC_DATA" outfile=/scratch/kocevski/851904/ltcube_532224001_532483201_4FGL_J2324.7-4041_daily_bin1130.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/851904/ft2_4FGL_J2324.7-4041_daily_bin1130.fits
.....................!
real 12.53
user 12.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851904/ft1_filtered_4FGL_J2324.7-4041_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/851904/ft2_4FGL_J2324.7-4041_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/851904/ltcube_532224001_532483201_4FGL_J2324.7-4041_daily_bin1130.fits outfile=/scratch/kocevski/851904/expmap_532224001_532483201_4FGL_J2324.7-4041_daily_bin1130.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/851904/ltcube_532224001_532483201_4FGL_J2324.7-4041_daily_bin1130.fits
.....................!
real 189.77
user 184.95
sys 4.34

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/851904/ft1_filtered_4FGL_J2324.7-4041_daily_bin1130.fits scfile=/scratch/kocevski/851904/ft2_4FGL_J2324.7-4041_daily_bin1130.fits outfile=/scratch/kocevski/851904/cmap_532224001_532483201_4FGL_J2324.7-4041_daily_bin1130.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851904/ft1_filtered_4FGL_J2324.7-4041_daily_bin1130.fits scfile=/scratch/kocevski/851904/ft2_4FGL_J2324.7-4041_daily_bin1130.fits outfile=/scratch/kocevski/851904/cmap_HighResolution_532224001_532483201_4FGL_J2324.7-4041_daily_bin1130.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.60
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851904/ft1_filtered_4FGL_J2324.7-4041_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/851904/ft2_4FGL_J2324.7-4041_daily_bin1130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851904/Model_4FGL_J2324.7-4041_daily_bin1130.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/851904/ft1_filtered_4FGL_J2324.7-4041_daily_bin1130.fits......................!
real 33.25
user 31.98
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.188       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3728       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1134       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1581       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.921       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4628       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.260       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.299       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    93.435       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.046       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      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6472       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.584       1.0000         .10000E-03   10000.    
    20 'Prefactor '    78.779       1.0000         .10000E-03   10000.    
    21 'norm      '    6.3349       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .11482E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.4089       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .14344E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2841       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .45518       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=   3776.317     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     4410 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.911       -.11516E-06** at limit **
   2  Prefactor     52.235        34.664       -.15591E-05   -.25741E-03
   3  Prefactor     .10000E-03    17.877        .43698E-06** at limit **
   4  Prefactor     6.3730        4.7644        .48942E-07   -.12972E-03
   5  Prefactor     8.1050        86.286       -.13307E-05   -.17958E-04
   6  Prefactor     5.1574        6.2591        .11866E-06   -.44636E-04
   7  Prefactor     36.916        37.100        .18066E-06   -.38036E-04
   8  Prefactor     9.4489        34.271        .13606E-07   -.41795E-04
   9  Prefactor     14.261        14.423        .28824E-06   -.29031E-04
  10  Prefactor     13.297        10.039        .22822E-06   -.58476E-04
  11  Prefactor     .10000E-03    16.438        .40881E-06** at limit **
  12  Prefactor     93.478        85.746        .48017E-05    .63231E-04
  13  Prefactor     35.049        20.171       -.14630E-06   -.19739E-03
  14  norm          .10000E-03    10.527       -.43900E-06** at limit **
  15  norm          .10000E-03    2.6295        .11028E-07** at limit **
  16  norm          .10000E-03    2.8718        .92020E-07** at limit **
  17  norm          .10000E-03    9.1390        .21112E-06** at limit **
  18  Prefactor     5.6489        6.4165       -.28429E-06   -.19222E-03
  19  Prefactor     35.602        48.610        .20775E-05   -.20590E-04
  20  Prefactor     78.764        73.334        .25588E-06   -.76042E-04
  21  norm          6.3353        6.1771       -.95552E-07   -.12899E-03
  22  Prefactor     .10000E-03    23.794       -.66281E-06** at limit **
  23  norm          .10000E-03    .95353        .38177E-06** at limit **
  24  norm          .10000E-03    4.1586        .21357E-06** at limit **
  25  Prefactor     4.4126        6.0799        .14920E-06   -.46208E-03
  26  Prefactor     .10000E-03    89.831        .50689E-05** at limit **
  27  Prefactor     .10000E-03    31.431        .10311E-05** at limit **
  28  Prefactor     .10000E-03    4.9193       -.70409E-07** at limit **
  29  Prefactor     .10008E-03    4.3963        .19787E-05** at limit **
  30  Prefactor     .10000E-03    29.154       -.22093E-06** at limit **
  31  Normalizat    1.2839        .25483       -.56317E-05   -.34238E-03
  32  Prefactor     .45553        .24296        .42301E-05   -.31969E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 52.2349
  Prefactor  = 0.0001
  Prefactor  = 6.37298
  Prefactor  = 8.10496
  Prefactor  = 5.15742
  Prefactor  = 36.9159
  Prefactor  = 9.44893
  Prefactor  = 14.2607
  Prefactor  = 13.2973
  Prefactor  = 0.0001
  Prefactor  = 93.4778
  Prefactor  = 35.049
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.64893
  Prefactor  = 35.602
  Prefactor  = 78.7639
  norm       = 6.3353
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.41264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100077
  Prefactor  = 0.0001
  Normalizat = 1.28387
  Prefactor  = 0.455526
 **********
 **   18 **HESSE 
 **********

 FCN=   3776.317     FROM HESSE     STATUS=OK           655 CALLS     5065 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     52.235        34.780        .55518E-04   -1.4261    
   3  Prefactor     .10000E-03    17.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.3730        4.7586        .11043E-03   -1.5203    
   5  Prefactor     8.1050        85.758        .14076E-03   -1.5139    
   6  Prefactor     5.1574        6.2536        .16435E-03   -1.5254    
   7  Prefactor     36.916        37.047        .65958E-04   -1.4492    
   8  Prefactor     9.4489        34.259        .13028E-03   -1.5093    
   9  Prefactor     14.261        14.432        .10607E-03   -1.4953    
  10  Prefactor     13.297        10.032        .10984E-03   -1.4978    
  11  Prefactor     .10000E-03    16.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     93.478        86.022        .20788E-03   -1.3771    
  13  Prefactor     35.049        19.938        .67694E-04   -1.4523    
  14  norm          .10000E-03    10.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6297        .97317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8727        .10166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.2199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6489        6.3726        .15856E-03   -1.5233    
  19  Prefactor     35.602        48.651        .67181E-04   -1.4514    
  20  Prefactor     78.764        74.029        .45246E-04   -1.3931    
  21  norm          6.3353        6.1809        .12948E-03   -1.5205    
  22  Prefactor     .10000E-03    23.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.5479        .10895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.1836        .12226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.4126        5.8744        .16031E-03   -1.5288    
  26  Prefactor     .10000E-03    90.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    31.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.9705        .13306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10008E-03    36.530        .22494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    29.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2839        .27843        .21321E-03   -.84049    
  32  Prefactor     .45553        .26784        .35257E-03   -1.1406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91118e-09
Minuit parameter uncertainties:
  1  4.4164e-06
  2  34.7934
  3  5.06232e-05
  4  4.7589
  5  52.8251
  6  6.2544
  7  37.0698
  8  34.3306
  9  14.4357
  10  10.0328
  11  3.72972e-05
  12  86.1366
  13  19.9414
  14  1.14958e-05
  15  7.95671e-07
  16  1.57847e-06
  17  4.12367e-05
  18  6.3734
  19  48.7053
  20  74.1162
  21  6.18147
  22  9.3902e-06
  23  0.000104691
  24  8.70856e-06
  25  5.87521
  26  0.000307614
  27  0.000117558
  28  2.15429e-05
  29  0.00336388
  30  1.12454e-05
  31  0.278753
  32  0.268584
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.578e-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:  4.555e-01  2.686e-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.284e+00  2.788e-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: 3.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851904/likelihoodResults_532224001_532483201_4FGL_J2324.7-4041_daily_bin1130.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) = 3776.31805312
delta logL = -0.00143199823742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3776.31662115
delta logL = -2.41820998781e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6192       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45549       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=   3776.317     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      245 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    248.20        .10175E-02** at limit **
   2  alpha         1.5228        2.5841        .50000        .14518E-07
   3  Normalizat    1.2839        .54905E-01    .21321E-03    .17095E-04
   4  Prefactor     .45553        .56667E-01    .35256E-03    .10238E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.52276
  Normalizat = 1.28387
  Prefactor  = 0.45553
 **********
 **   18 **HESSE 
 **********

 FCN=   3776.317     FROM HESSE     STATUS=OK            29 CALLS      274 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    37.221        .20350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5228        4.2111        .50000       -.40161    
   3  Normalizat    1.2839        .25485        .42642E-04   -.84049    
   4  Prefactor     .45553        .26260        .14102E-04   -1.1406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0773e-11
Minuit parameter uncertainties:
  1  4.28528e-05
  2  487.522
  3  0.255094
  4  0.263304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851904': 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) = 3776.31662095
delta logL = 1.72346972249e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  4.285e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.523e+00  4.875e+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:  4.555e-01  2.633e-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.284e+00  2.551e-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/851904/cmap_HighResolution_532224001_532483201_4FGL_J2324.7-4041_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.13e-05', job_status='DONE', photon_flux_upper_limit='3.75e-08', time_completed='2021-09-29 16:59:08.926283', job_id='851904', GAL2='0.46', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632959948.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='1.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1130' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 851904: <4FGL_J2324.7-4041_daily_bin1130> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1130> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:55 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:57 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:57 2021
Terminated at Wed Sep 29 16:59:09 2021
Results reported at Wed Sep 29 16:59:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1130 351.182 -40.6834 532224001 532483201 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 :                                   669.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            794 sec.

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

