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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1411
RA = 351.182, Dec = -40.6834
tmin = 605059201, tmax = 605318401
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='854556', job_status='RUN', time_executed='2021-09-29 16:58:28.833430', time_epoch_executed='1632959908.83' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854556

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854556/ft1_4FGL_J2324.7-4041_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854556/ft2_4FGL_J2324.7-4041_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854556/ft1_4FGL_J2324.7-4041_daily_bin1411.fits outfile=/scratch/kocevski/854556/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1411.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=605059201.0 tmax=605318401.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 5.45
user 5.11
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854556/ft1_filtered_4FGL_J2324.7-4041_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/854556/ft2_4FGL_J2324.7-4041_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/854556/ltcube_605059201_605318401_4FGL_J2324.7-4041_daily_bin1411.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/854556/ft2_4FGL_J2324.7-4041_daily_bin1411.fits
.....................!
real 11.83
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854556/ft1_filtered_4FGL_J2324.7-4041_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/854556/ft2_4FGL_J2324.7-4041_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/854556/ltcube_605059201_605318401_4FGL_J2324.7-4041_daily_bin1411.fits outfile=/scratch/kocevski/854556/expmap_605059201_605318401_4FGL_J2324.7-4041_daily_bin1411.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/854556/ltcube_605059201_605318401_4FGL_J2324.7-4041_daily_bin1411.fits
.....................!
real 191.68
user 185.74
sys 4.74

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/854556/ft1_filtered_4FGL_J2324.7-4041_daily_bin1411.fits scfile=/scratch/kocevski/854556/ft2_4FGL_J2324.7-4041_daily_bin1411.fits outfile=/scratch/kocevski/854556/cmap_605059201_605318401_4FGL_J2324.7-4041_daily_bin1411.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854556/ft1_filtered_4FGL_J2324.7-4041_daily_bin1411.fits scfile=/scratch/kocevski/854556/ft2_4FGL_J2324.7-4041_daily_bin1411.fits outfile=/scratch/kocevski/854556/cmap_HighResolution_605059201_605318401_4FGL_J2324.7-4041_daily_bin1411.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854556/ft1_filtered_4FGL_J2324.7-4041_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/854556/ft2_4FGL_J2324.7-4041_daily_bin1411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854556/Model_4FGL_J2324.7-4041_daily_bin1411.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/854556/ft1_filtered_4FGL_J2324.7-4041_daily_bin1411.fits.....................!
real 31.88
user 30.17
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.307       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.891       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3259       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5848       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.909       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .44562E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.5251       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.678       1.0000         .10000E-03   10000.    
    19 'Prefactor '    91.639       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .57812       1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2125       1.0000         .10000E-03   10000.    
    24 'norm      '    3.0447       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.109       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11721E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.7618       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    27.497       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .98076       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1448       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=   3476.027     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     4433 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.307        47.474       -.87824E-05    .11307E-04
   2  Prefactor     36.879        32.154        .17909E-05    .31558E-04
   3  Prefactor     4.4064        80.113       -.10780E-03    .27306E-05
   4  Prefactor     2.5842        4.5361       -.12590E-05   -.30578E-03
   5  Prefactor     .10000E-03    17.984        .18354E-06** at limit **
   6  Prefactor     .10000E-03    9.6221        .15413E-06** at limit **
   7  Prefactor     .10000E-03    26.518        .33456E-07** at limit **
   8  Prefactor     .10000E-03    36.851       -.16988E-05** at limit **
   9  Prefactor     24.914        26.860       -.31131E-05    .44154E-04
  10  Prefactor     .10000E-03    7.1462       -.21185E-06** at limit **
  11  Prefactor     .10000E-03    14.106       -.95008E-06** at limit **
  12  Prefactor     .10000E-03    50.926        .19307E-05** at limit **
  13  Prefactor     .10000E-03    11.280       -.19126E-05** at limit **
  14  norm          .10000E-03    5.4334        .70621E-08** at limit **
  15  norm          .10001E-03    7.1031        .55578E-06** at limit **
  16  norm          .10000E-03    2.6907        .24719E-07** at limit **
  17  norm          7.5291        10.961       -.43499E-06    .12866E-03
  18  Prefactor     10.682        8.5004       -.21108E-06   -.69790E-04
  19  Prefactor     91.632        78.276       -.70005E-05    .41453E-04
  20  Prefactor     .27596        50.414       -.84005E-05    .27134E-03
  21  norm          .10000E-03    7.6724        .28909E-06** at limit **
  22  Prefactor     .10000E-03    12.077        .18593E-05** at limit **
  23  norm          1.2129        1.2662       -.24464E-06   -.26724E-03
  24  norm          3.0448        7.9699        .61790E-07   -.27984E-03
  25  Prefactor     .10000E-03    2.7929       -.38329E-07** at limit **
  26  Prefactor     13.110        29.270       -.52390E-05    .36055E-05
  27  Prefactor     .10000E-03    139.04       -.13244E-04** at limit **
  28  Prefactor     3.7619        6.2909       -.55188E-05   -.10001E-03
  29  Prefactor     .10000E-03    2.6652       -.28442E-07** at limit **
  30  Prefactor     27.453        57.156       -.62407E-05    .23977E-04
  31  Normalizat    .98042        .27039        .56031E-05    .26749E-03
  32  Prefactor     1.1453        .27932        .43207E-05    .24736E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3072
  Prefactor  = 36.8788
  Prefactor  = 4.40643
  Prefactor  = 2.58419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100006
  norm       = 0.0001
  norm       = 7.52913
  Prefactor  = 10.6816
  Prefactor  = 91.6317
  Prefactor  = 0.275963
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21295
  norm       = 3.04485
  Prefactor  = 0.0001
  Prefactor  = 13.1096
  Prefactor  = 0.0001
  Prefactor  = 3.76188
  Prefactor  = 0.0001
  Prefactor  = 27.4535
  Normalizat = 0.980422
  Prefactor  = 1.14529
 **********
 **   18 **HESSE 
 **********

 FCN=   3476.027     FROM HESSE     STATUS=OK           659 CALLS     5092 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.307        47.479        .11419E-03   -1.5006    
   2  Prefactor     36.879        32.189        .65985E-04   -1.4493    
   3  Prefactor     4.4064        80.667        .19368E-03   -1.5288    
   4  Prefactor     2.5842        4.5269        .15945E-03   -1.5386    
   5  Prefactor     .10000E-03    17.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.8486        .17852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.914        26.971        .80262E-04   -1.4709    
  10  Prefactor     .10000E-03    7.1885        .15390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.4339        .13423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    17.479        .30109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6914        .94445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.5291        10.955        .14620E-03   -1.5159    
  18  Prefactor     10.682        8.3897        .12261E-03   -1.5054    
  19  Prefactor     91.632        78.254        .41978E-04   -1.3791    
  20  Prefactor     .27596        57.095        .13590       -1.5603    
  21  norm          .10000E-03    7.7312        .15860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2129        1.2425        .63591E-04   -1.5488    
  24  norm          3.0448        7.8650        .22707E-03   -1.5359    
  25  Prefactor     .10000E-03    2.8200        .96101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.110        29.255        .11063E-03   -1.4984    
  27  Prefactor     .10000E-03    139.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.7619        6.2904        .18464E-03   -1.5320    
  29  Prefactor     .10000E-03    2.6797        .93942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     27.453        57.122        .76400E-04   -1.4660    
  31  Normalizat    .98042        .33634        .26062E-03   -.93689    
  32  Prefactor     1.1453        .34675        .26593E-03   -.88032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23983e-09
Minuit parameter uncertainties:
  1  47.6252
  2  32.2042
  3  37.7658
  4  4.52748
  5  1.46805e-05
  6  8.76556e-05
  7  8.71974e-05
  8  0.000218388
  9  26.9844
  10  4.72659e-05
  11  1.22139e-05
  12  7.11949e-05
  13  4.48745e-05
  14  3.42866e-06
  15  0.000636722
  16  3.0047e-06
  17  10.958
  18  8.39062
  19  78.3418
  20  7.94506
  21  6.84263e-05
  22  2.64782e-05
  23  1.24249
  24  7.86768
  25  6.52198e-06
  26  29.2872
  27  5.42315e-05
  28  6.29154
  29  4.90881e-06
  30  57.2363
  31  0.337066
  32  0.347443
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.005e-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:  1.145e+00  3.474e-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:  9.804e-01  3.371e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854556/likelihoodResults_605059201_605318401_4FGL_J2324.7-4041_daily_bin1411.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) = 3476.02899915
delta logL = -0.00156742806939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3476.02743239
delta logL = -6.64016170049e-07

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.6212       1.0000          .0000       5.0000    
     3 'Normalizat'    .98075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1449       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=   3475.941     FROM MIGRAD    STATUS=CONVERGED    153 CALLS      293 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23859E-01    .70126        .46248E-02    .38318E-02
   2  alpha         4.1607        4.2350        .36396        .38964E-04
   3  Normalizat    .93605        .31237E-01    .26062E-03   -.51910E-05
   4  Prefactor     1.1736        .34329E-01    .26593E-03   -.58569E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.023859
  alpha      = 4.16071
  Normalizat = 0.936054
  Prefactor  = 1.17364
 **********
 **   18 **HESSE 
 **********

 FCN=   3475.941     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      324 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23859E-01    5.9793        .18976E-03   -1.5677    
   2  alpha         4.1607        2.9148        .17400E-01   -5.5567    
   3  Normalizat    .93605        .18500        .10425E-04   -.95205    
   4  Prefactor     1.1736        .19991        .10637E-04   -.87146    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.23985e-07
Minuit parameter uncertainties:
  1  0.753901
  2  10.3283
  3  0.185127
  4  0.200043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854556': 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): 102
logL (Free Index) = 3475.94065604
delta logL = 0.0867756821503

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  2.386e-02  7.539e-01  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  4.161e+00  1.033e+01  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.174e+00  2.000e-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:  9.361e-01  1.851e-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/854556/cmap_HighResolution_605059201_605318401_4FGL_J2324.7-4041_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-05', job_status='DONE', photon_flux_upper_limit='3.77e-08', time_completed='2021-09-29 17:09:52.352992', job_id='854556', GAL2='1.17', fit_tolerance='1e-08', EG2='0.94', EG='0.98', time_epoch_completed='1632960592.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='8.68e-02', ts2='0.19', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1411' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:09:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 854556: <4FGL_J2324.7-4041_daily_bin1411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1411 351.182 -40.6834 605059201 605318401 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 :                                   652.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             245.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            882 sec.

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

