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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin867
RA = 351.182, Dec = -40.6834
tmin = 464054401, tmax = 464313601
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='851496', job_status='RUN', time_executed='2021-09-29 16:47:30.919950', time_epoch_executed='1632959250.92' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='867'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851496/ft1_4FGL_J2324.7-4041_daily_bin867.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851496/ft2_4FGL_J2324.7-4041_daily_bin867.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851496/ft1_4FGL_J2324.7-4041_daily_bin867.fits outfile=/scratch/kocevski/851496/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin867.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=464054401.0 tmax=464313601.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.39
user 3.18
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851496/ft1_filtered_4FGL_J2324.7-4041_daily_bin867.fits" evtable="EVENTS" scfile=/scratch/kocevski/851496/ft2_4FGL_J2324.7-4041_daily_bin867.fits sctable="SC_DATA" outfile=/scratch/kocevski/851496/ltcube_464054401_464313601_4FGL_J2324.7-4041_daily_bin867.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/851496/ft2_4FGL_J2324.7-4041_daily_bin867.fits
.....................!
real 11.72
user 11.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851496/ft1_filtered_4FGL_J2324.7-4041_daily_bin867.fits evtable="EVENTS" scfile=/scratch/kocevski/851496/ft2_4FGL_J2324.7-4041_daily_bin867.fits sctable="SC_DATA" expcube=/scratch/kocevski/851496/ltcube_464054401_464313601_4FGL_J2324.7-4041_daily_bin867.fits outfile=/scratch/kocevski/851496/expmap_464054401_464313601_4FGL_J2324.7-4041_daily_bin867.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/851496/ltcube_464054401_464313601_4FGL_J2324.7-4041_daily_bin867.fits
.....................!
real 188.10
user 183.69
sys 4.07

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/851496/ft1_filtered_4FGL_J2324.7-4041_daily_bin867.fits scfile=/scratch/kocevski/851496/ft2_4FGL_J2324.7-4041_daily_bin867.fits outfile=/scratch/kocevski/851496/cmap_464054401_464313601_4FGL_J2324.7-4041_daily_bin867.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.182 yref=-40.6834 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.793       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7920       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.037       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8304       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1159       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14918E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .67663E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10789E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.041       1.0000         .10000E-03   10000.    
    14 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6470       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.676       1.0000         .10000E-03   10000.    
    19 'Prefactor '    54.519       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.919       1.0000         .10000E-03   10000.    
    23 'norm      '    1.0355       1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6361       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14684E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.4430       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2985       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .44220       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=   4021.068     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     4360 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.813        37.253        .69134E-05    .13294E-04
   2  Prefactor     .10000E-03    11.938        .23213E-06** at limit **
   3  Prefactor     .10000E-03    21.154        .24854E-05** at limit **
   4  Prefactor     5.7910        5.4244        .44356E-06   -.61581E-06
   5  Prefactor     37.043        50.967        .63331E-05    .54982E-04
   6  Prefactor     .10000E-03    4.1029       -.63644E-06** at limit **
   7  Prefactor     5.8234        23.646        .27169E-05    .17432E-04
   8  Prefactor     1.1103        24.245       -.28878E-05   -.37205E-05
   9  Prefactor     .10000E-03    7.5267       -.27850E-06** at limit **
  10  Prefactor     .10044E-03    8.1962       -.83074E-06** at limit **
  11  Prefactor     .10000E-03    251.59       -.84525E-05** at limit **
  12  Prefactor     .10000E-03    26.076        .84727E-05** at limit **
  13  Prefactor     18.026        19.893        .24419E-05    .15891E-04
  14  norm          .10000E-03    4.2533        .92628E-06** at limit **
  15  norm          .10000E-03    3.9322        .11354E-06** at limit **
  16  norm          4.6508        6.7272       -.14320E-05   -.12247E-03
  17  norm          .10000E-03    2.9619       -.17231E-08** at limit **
  18  Prefactor     12.676        9.0913       -.14130E-06   -.14002E-04
  19  Prefactor     54.526        41.603        .26632E-05    .47139E-04
  20  Prefactor     .10000E-03    72.151        .38228E-04** at limit **
  21  norm          .10000E-03    4.3220       -.40225E-06** at limit **
  22  Prefactor     10.918        12.889       -.30429E-06    .45504E-05
  23  norm          1.0358        1.3172       -.92562E-07   -.42672E-03
  24  norm          .10000E-03    1.5452       -.35619E-07** at limit **
  25  Prefactor     4.6359        4.2199       -.59966E-06   -.18294E-03
  26  Prefactor     .10000E-03    7.1832        .24077E-06** at limit **
  27  Prefactor     .10000E-03    20.820       -.49017E-05** at limit **
  28  Prefactor     .10095E-03    4.4482       -.22242E-05** at limit **
  29  Prefactor     3.4443        4.3503       -.35645E-06   -.25731E-03
  30  Prefactor     .10000E-03    64.551       -.29334E-04** at limit **
  31  Normalizat    1.2985        .21252        .18686E-06    .50947E-03
  32  Prefactor     .44210        .21533       -.14412E-05    .20667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.79102
  Prefactor  = 37.0432
  Prefactor  = 0.0001
  Prefactor  = 5.82343
  Prefactor  = 1.11027
  Prefactor  = 0.0001
  Prefactor  = 0.000100437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0263
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.65075
  norm       = 0.0001
  Prefactor  = 12.6757
  Prefactor  = 54.5261
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.918
  norm       = 1.0358
  norm       = 0.0001
  Prefactor  = 4.63585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100953
  Prefactor  = 3.44432
  Prefactor  = 0.0001
  Normalizat = 1.29853
  Prefactor  = 0.442101
 **********
 **   18 **HESSE 
 **********

 FCN=   4021.068     FROM HESSE     STATUS=OK           665 CALLS     5025 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.813        37.233        .83899E-04   -1.4752    
   2  Prefactor     .10000E-03    11.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7910        5.4143        .13453E-03   -1.5227    
   5  Prefactor     37.043        51.067        .65855E-04   -1.4490    
   6  Prefactor     .10000E-03    4.1223        .12543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8234        23.484        .16632E-03   -1.5225    
   8  Prefactor     1.1103        119.41        .57875E-02   -1.5497    
   9  Prefactor     .10000E-03    7.5478        .16991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10044E-03    9.9430        .53191E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    260.29        .41997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.026        19.773        .94295E-04   -1.4859    
  14  norm          .10000E-03    4.2542        .12773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9447        .12276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6508        6.7364        .17823E-03   -1.5277    
  17  norm          .10000E-03    2.9661        .10658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.676        9.0585        .11251E-03   -1.4996    
  19  Prefactor     54.526        41.786        .54324E-04   -1.4230    
  20  Prefactor     .10000E-03    72.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.3836        .12809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.918        12.881        .12124E-03   -1.5047    
  23  norm          1.0358        1.2578        .73871E-03   -1.5504    
  24  norm          .10000E-03    1.5565        .76953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.6359        4.2058        .11839E-03   -1.5277    
  26  Prefactor     .10000E-03    7.1855        .16598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10095E-03    37.940        .25212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.4443        4.3475        .14172E-03   -1.5337    
  30  Prefactor     .10000E-03    64.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2985        .23559        .19647E-03   -.83610    
  32  Prefactor     .44210        .23767        .33593E-03   -1.1471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61464e-08
Minuit parameter uncertainties:
  1  37.2711
  2  1.25778e-05
  3  3.88039e-06
  4  5.4148
  5  51.1277
  6  2.26162e-06
  7  23.4042
  8  23.0746
  9  6.80267e-07
  10  0.00417191
  11  0.000407361
  12  8.9504e-07
  13  19.7807
  14  3.80024e-08
  15  4.81157e-06
  16  6.7375
  17  2.83902e-07
  18  9.05943
  19  41.8082
  20  0.00010505
  21  3.26651e-06
  22  12.8846
  23  1.25784
  24  1.84134e-06
  25  4.20607
  26  7.91768e-06
  27  6.25797e-06
  28  0.0120356
  29  4.34785
  30  0.000221212
  31  0.235782
  32  0.238207
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.651e+00  6.737e+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:  4.421e-01  2.382e-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.299e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.87
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851496/likelihoodResults_464054401_464313601_4FGL_J2324.7-4041_daily_bin867.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) = 4019.96533116
delta logL = 1.10222524258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4019.95633343
delta logL = 1.11122297837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3917       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8697       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45688       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.

 FCN=   4019.956     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      245 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3891        20.499        .92078E-02    .65180E-03
   2  alpha         2.8706        3.7380        .18610        .87226E-04
   3  Normalizat    1.2603        .62160E-01    .33555E-01    .99722E-05
   4  Prefactor     .45685        .59350E-01    .74491E-01    .15505E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.38915
  alpha      = 2.87063
  Normalizat = 1.26035
  Prefactor  = 0.45685
 **********
 **   18 **HESSE 
 **********

 FCN=   4019.956     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3891        4.5371        .55265E-04   -1.5472    
   2  alpha         2.8706        1.3770        .70009E-02    .14880    
   3  Normalizat    1.2603        .23331        .19857E-03   -.84758    
   4  Prefactor     .45685        .23811        .32989E-03   -1.1400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04907e-11
Minuit parameter uncertainties:
  1  4.53825
  2  1.46043
  3  0.233502
  4  0.23863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851496': 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) = 4019.95633282
delta logL = 1.11122358267

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.389e+00  4.538e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.871e+00  1.460e+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:  4.568e-01  2.386e-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.260e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 2.87 +/- 1.46
Photon Flux (Free Index): 5.79e-08 +/- 6.24e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.26e-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/851496/cmap_HighResolution_464054401_464313601_4FGL_J2324.7-4041_daily_bin867.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-04', comment='SUCCESS', energy_flux2='1.51e-05', dlogl='1.11e+00', photon_flux2='5.79e-08', job_status='DONE', time_completed='2021-09-29 16:59:09.517944', photon_index_error2='1.46', photon_index2='2.87', ts='0.87', fit_tolerance='1e-08', GAL='0.44', photon_index_error='0.00', photon_flux_upper_limit='5.46e-08', energy_flux_error2='1.26e-05', EG='1.30', time_epoch_completed='1632959949.52', return_code='0', job_id='851496', GAL2='0.46', EG2='1.26', return_code2='0', photon_flux_error2='6.24e-08', ts2='3.09', photon_index='1.62' WHERE bin_id='867' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 851496: <4FGL_J2324.7-4041_daily_bin867> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin867 351.182 -40.6834 464054401 464313601 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 :                                   695.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

