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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1332
RA = 351.182, Dec = -40.6834
tmin = 584582401, tmax = 584841601
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='853292', job_status='RUN', time_executed='2021-09-29 16:51:52.155557', time_epoch_executed='1632959512.16' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853292

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853292/ft1_4FGL_J2324.7-4041_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853292/ft2_4FGL_J2324.7-4041_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853292/ft1_4FGL_J2324.7-4041_daily_bin1332.fits outfile=/scratch/kocevski/853292/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1332.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=584582401.0 tmax=584841601.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 2.83
user 2.62
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853292/ft2_4FGL_J2324.7-4041_daily_bin1332.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/853292/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1332.fits evtable="EVENTS" outfile="/scratch/kocevski/853292/ft1_filtered_4FGL_J2324.7-4041_daily_bin1332.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/853292/ft1_filtered_4FGL_J2324.7-4041_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/853292/ft2_4FGL_J2324.7-4041_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/853292/ltcube_584582401_584841601_4FGL_J2324.7-4041_daily_bin1332.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/853292/ft2_4FGL_J2324.7-4041_daily_bin1332.fits
.....................!
real 12.67
user 12.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853292/ft1_filtered_4FGL_J2324.7-4041_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/853292/ft2_4FGL_J2324.7-4041_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/853292/ltcube_584582401_584841601_4FGL_J2324.7-4041_daily_bin1332.fits outfile=/scratch/kocevski/853292/expmap_584582401_584841601_4FGL_J2324.7-4041_daily_bin1332.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/853292/ltcube_584582401_584841601_4FGL_J2324.7-4041_daily_bin1332.fits
.....................!
real 191.32
user 186.04
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/853292/ft1_filtered_4FGL_J2324.7-4041_daily_bin1332.fits scfile=/scratch/kocevski/853292/ft2_4FGL_J2324.7-4041_daily_bin1332.fits outfile=/scratch/kocevski/853292/cmap_584582401_584841601_4FGL_J2324.7-4041_daily_bin1332.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/853292/ft1_filtered_4FGL_J2324.7-4041_daily_bin1332.fits scfile=/scratch/kocevski/853292/ft2_4FGL_J2324.7-4041_daily_bin1332.fits outfile=/scratch/kocevski/853292/cmap_HighResolution_584582401_584841601_4FGL_J2324.7-4041_daily_bin1332.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853292/ft1_filtered_4FGL_J2324.7-4041_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/853292/ft2_4FGL_J2324.7-4041_daily_bin1332.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853292/Model_4FGL_J2324.7-4041_daily_bin1332.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/853292/ft1_filtered_4FGL_J2324.7-4041_daily_bin1332.fits.....................!
real 33.54
user 32.12
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6374       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9158       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.682       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.479       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.307       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.132       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4861       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8965       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6030       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0684       1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.158       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.514       1.0000         .10000E-03   10000.    
    21 'norm      '    .94225       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9619       1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.0703       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.8288       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .74909       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .91798       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=   3954.951     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     4357 TOTAL
                     EDM=   .24E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    86.700        .21959E-05** at limit **
   2  Prefactor     2.6371        35.112        .32341E-05   -.60049E-05
   3  Prefactor     .10000E-03    15.551       -.33223E-07** at limit **
   4  Prefactor     5.9150        10.699        .66744E-06    .57781E-06
   5  Prefactor     .10000E-03    31.273        .13744E-05** at limit **
   6  Prefactor     71.686        38.478       -.28102E-06    .75023E-05
   7  Prefactor     17.481        28.993       -.95945E-07    .28594E-05
   8  Prefactor     18.307        28.629       -.77022E-07    .19814E-05
   9  Prefactor     .10000E-03    20.860       -.67230E-06** at limit **
  10  Prefactor     .10000E-03    11.111       -.16244E-06** at limit **
  11  Prefactor     .10000E-03    50.744       -.27626E-05** at limit **
  12  Prefactor     .10000E-03    73.860       -.15398E-05** at limit **
  13  Prefactor     16.132        18.590       -.49376E-07   -.14884E-05
  14  norm          3.4852        9.9531        .14008E-05   -.95301E-06
  15  norm          .10000E-03    14.432        .15656E-06** at limit **
  16  norm          2.8963        4.0298       -.12597E-07    .34603E-05
  17  norm          2.6022        5.8145        .11627E-05    .32848E-04
  18  Prefactor     6.0679        6.7089        .18905E-07   -.58776E-05
  19  Prefactor     50.166        44.157       -.25765E-06    .65203E-05
  20  Prefactor     16.568        49.075       -.66520E-05   -.67366E-06
  21  norm          .94216        4.2034        .99492E-07   -.71391E-05
  22  Prefactor     .10000E-03    14.876        .49315E-07** at limit **
  23  norm          1.9618        1.2737       -.18777E-07   -.16541E-04
  24  norm          .10000E-03    1.4048        .14638E-08** at limit **
  25  Prefactor     .10000E-03    1.7845       -.48834E-07** at limit **
  26  Prefactor     .10000E-03    7.2513       -.10111E-07** at limit **
  27  Prefactor     .10000E-03    18.214       -.52690E-06** at limit **
  28  Prefactor     8.0722        6.8553        .31331E-07   -.14192E-05
  29  Prefactor     2.8296        4.7854       -.48391E-07    .53888E-05
  30  Prefactor     .10000E-03    35.939        .76004E-06** at limit **
  31  Normalizat    .74874        .20748       -.75500E-06    .52702E-05
  32  Prefactor     .91831        .21793        .10740E-05    .45319E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.63715
  Prefactor  = 0.0001
  Prefactor  = 5.91501
  Prefactor  = 0.0001
  Prefactor  = 71.6865
  Prefactor  = 17.4812
  Prefactor  = 18.3073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1323
  norm       = 3.48515
  norm       = 0.0001
  norm       = 2.89629
  norm       = 2.60219
  Prefactor  = 6.0679
  Prefactor  = 50.1661
  Prefactor  = 16.5685
  norm       = 0.942159
  Prefactor  = 0.0001
  norm       = 1.96177
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.07219
  Prefactor  = 2.82956
  Prefactor  = 0.0001
  Normalizat = 0.748745
  Prefactor  = 0.918307
 **********
 **   18 **HESSE 
 **********

 FCN=   3954.951     FROM HESSE     STATUS=OK           661 CALLS     5018 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6371        35.160        .12554E-02   -1.5383    
   3  Prefactor     .10000E-03    15.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.9150        10.694        .82551E-03   -1.5222    
   5  Prefactor     .10000E-03    31.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     71.686        38.464        .47416E-04   -1.4013    
   7  Prefactor     17.481        28.987        .95798E-04   -1.4872    
   8  Prefactor     18.307        28.628        .93608E-04   -1.4852    
   9  Prefactor     .10000E-03    21.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    50.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    73.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.132        18.559        .99718E-04   -1.4904    
  14  norm          3.4852        9.9591        .10828E-02   -1.5335    
  15  norm          .10000E-03    14.980        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8963        3.9861        .13628E-03   -1.5368    
  17  norm          2.6022        5.8126        .21845E-03   -1.5385    
  18  Prefactor     6.0679        6.6884        .16269E-03   -1.5215    
  19  Prefactor     50.166        42.303        .56625E-04   -1.4290    
  20  Prefactor     16.568        49.314        .98560E-04   -1.4894    
  21  norm          .94216        3.6931        .20532E-03   -1.5514    
  22  Prefactor     .10000E-03    14.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9618        1.2673        .53710E-04   -1.5428    
  24  norm          .10000E-03    1.4101        .72735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.8263        .82017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.2582        .16540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    18.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.0722        6.8951        .13919E-03   -1.5140    
  29  Prefactor     2.8296        4.7444        .15529E-03   -1.5372    
  30  Prefactor     .10000E-03    35.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .74874        .24478        .23693E-03   -1.0200    
  32  Prefactor     .91831        .25860        .24283E-03   -.95504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60677e-11
Minuit parameter uncertainties:
  1  0.000141438
  2  19.2719
  3  1.18822e-05
  4  10.6976
  5  7.43611e-06
  6  38.4769
  7  29.0103
  8  28.6498
  9  3.01534e-06
  10  8.09959e-06
  11  1.2718e-05
  12  4.46388e-06
  13  18.5661
  14  9.96386
  15  1.04727e-05
  16  3.98648
  17  5.81385
  18  6.68927
  19  42.3282
  20  49.4354
  21  3.69399
  22  1.43793e-05
  23  1.26731
  24  2.19773e-07
  25  2.19902e-06
  26  3.08724e-06
  27  3.46508e-06
  28  6.89576
  29  4.74499
  30  7.41708e-07
  31  0.245144
  32  0.258951
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  2.896e+00  3.986e+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:  9.183e-01  2.590e-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.487e-01  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 7.10e-09 +/- 9.77e-09
Energy Flux (Fixed Index): 1.54e-05 +/- 2.12e-05

TS (Fixed Index): 1.33
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 3.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853292/likelihoodResults_584582401_584841601_4FGL_J2324.7-4041_daily_bin1332.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): 0
logL (Free Index) = 3954.84843886
delta logL = 0.103015980023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3954.84736023
delta logL = 0.104094612843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3052       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1350       1.0000          .0000       5.0000    
     3 'Normalizat'    .74443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91775       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=   3954.847     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      301 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3047        3.7465        .11188E-03    .43945E-03
   2  alpha         2.1346        1.1111        .15190E-01    .22443E-04
   3  Normalizat    .74437        .22380        .23746E-03   -.17747E-03
   4  Prefactor     .91791        .25268        .24275E-03   -.21142E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.30466
  alpha      = 2.13464
  Normalizat = 0.74437
  Prefactor  = 0.917912
 **********
 **   18 **HESSE 
 **********

 FCN=   3954.847     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3047        3.5374        .44750E-05   -1.5404    
   2  alpha         2.1346        1.0533        .60759E-03   -.14667    
   3  Normalizat    .74437        .22388        .94986E-05   -1.0217    
   4  Prefactor     .91791        .25292        .48550E-04   -.95518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52742e-10
Minuit parameter uncertainties:
  1  3.53775
  2  1.08808
  3  0.224158
  4  0.253241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853292': 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) = 3954.84735972
delta logL = 0.104095122954

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  2.305e+00  3.538e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.135e+00  1.088e+00  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:  9.179e-01  2.532e-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.444e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 2.13 +/- 1.09
Photon Flux (Free Index): 1.52e-08 +/- 2.91e-08
Energy Flux (Free Index): 9.96e-06 +/- 1.32e-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/853292/cmap_HighResolution_584582401_584841601_4FGL_J2324.7-4041_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.64e-05', comment='SUCCESS', photon_flux='7.10e-09', energy_flux2='9.96e-06', photon_flux_error='9.77e-09', dlogl='1.04e-01', energy_flux='1.54e-05', photon_flux2='1.52e-08', job_status='DONE', time_completed='2021-09-29 17:03:49.685408', photon_index_error2='1.09', photon_index2='2.13', ts='1.33', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='3.99e-08', energy_flux_error2='1.32e-05', EG='0.75', time_epoch_completed='1632960229.69', return_code='0', job_id='853292', GAL2='0.92', EG2='0.74', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='2.91e-08', ts2='1.55', photon_index='1.62' WHERE bin_id='1332' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:03:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 853292: <4FGL_J2324.7-4041_daily_bin1332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1332 351.182 -40.6834 584582401 584841601 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 :                                   679.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            802 sec.

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

