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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin422
RA = 351.19, Dec = 8.0282
tmin = 348710401, tmax = 348969601
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='839238', job_status='RUN', time_executed='2021-09-29 16:12:30.564514', time_epoch_executed='1632957150.56' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839238/ft1_4FGL_J2324.7+0801_daily_bin422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839238/ft2_4FGL_J2324.7+0801_daily_bin422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839238/ft1_4FGL_J2324.7+0801_daily_bin422.fits outfile=/scratch/kocevski/839238/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin422.fits ra=351.19 dec=8.0282 rad=12.0 tmin=348710401.0 tmax=348969601.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.47
user 3.25
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/839238/ft2_4FGL_J2324.7+0801_daily_bin422.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/839238/ft2_4FGL_J2324.7+0801_daily_bin422.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/839238/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin422.fits evtable="EVENTS" outfile="/scratch/kocevski/839238/ft1_filtered_4FGL_J2324.7+0801_daily_bin422.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/839238/ft1_filtered_4FGL_J2324.7+0801_daily_bin422.fits" evtable="EVENTS" scfile=/scratch/kocevski/839238/ft2_4FGL_J2324.7+0801_daily_bin422.fits sctable="SC_DATA" outfile=/scratch/kocevski/839238/ltcube_348710401_348969601_4FGL_J2324.7+0801_daily_bin422.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/839238/ft2_4FGL_J2324.7+0801_daily_bin422.fits
.....................!
real 12.07
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839238/ft1_filtered_4FGL_J2324.7+0801_daily_bin422.fits evtable="EVENTS" scfile=/scratch/kocevski/839238/ft2_4FGL_J2324.7+0801_daily_bin422.fits sctable="SC_DATA" expcube=/scratch/kocevski/839238/ltcube_348710401_348969601_4FGL_J2324.7+0801_daily_bin422.fits outfile=/scratch/kocevski/839238/expmap_348710401_348969601_4FGL_J2324.7+0801_daily_bin422.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/839238/ltcube_348710401_348969601_4FGL_J2324.7+0801_daily_bin422.fits
.....................!
real 197.14
user 192.09
sys 4.66

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7+0801 @ 351.19 8.0282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/839238/ft1_filtered_4FGL_J2324.7+0801_daily_bin422.fits scfile=/scratch/kocevski/839238/ft2_4FGL_J2324.7+0801_daily_bin422.fits outfile=/scratch/kocevski/839238/cmap_348710401_348969601_4FGL_J2324.7+0801_daily_bin422.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.19 yref=8.0282 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839238/ft1_filtered_4FGL_J2324.7+0801_daily_bin422.fits scfile=/scratch/kocevski/839238/ft2_4FGL_J2324.7+0801_daily_bin422.fits outfile=/scratch/kocevski/839238/cmap_HighResolution_348710401_348969601_4FGL_J2324.7+0801_daily_bin422.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.19 yref=8.0282 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.56
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839238/ft1_filtered_4FGL_J2324.7+0801_daily_bin422.fits evtable="EVENTS" scfile=/scratch/kocevski/839238/ft2_4FGL_J2324.7+0801_daily_bin422.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839238/Model_4FGL_J2324.7+0801_daily_bin422.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/839238/ft1_filtered_4FGL_J2324.7+0801_daily_bin422.fits.....................!
real 64.69
user 63.28
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/839238/ft1_filtered_4FGL_J2324.7+0801_daily_bin422.fits', '/scratch/kocevski/839238/ft2_4FGL_J2324.7+0801_daily_bin422.fits', expMap='/scratch/kocevski/839238/expmap_348710401_348969601_4FGL_J2324.7+0801_daily_bin422.fits', expCube='/scratch/kocevski/839238/ltcube_348710401_348969601_4FGL_J2324.7+0801_daily_bin422.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/839238/Model_4FGL_J2324.7+0801_daily_bin422.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7+0801'

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/839238/ft1_filtered_4FGL_J2324.7+0801_daily_bin422.fits
Spacecraft file(s): /scratch/kocevski/839238/ft2_4FGL_J2324.7+0801_daily_bin422.fits
Exposure map: /scratch/kocevski/839238/expmap_348710401_348969601_4FGL_J2324.7+0801_daily_bin422.fits
Exposure cube: /scratch/kocevski/839238/ltcube_348710401_348969601_4FGL_J2324.7+0801_daily_bin422.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/839238/Model_4FGL_J2324.7+0801_daily_bin422.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) = 5790.50545221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3870       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .53903E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    27.672       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1387       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9050       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2685       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    65.234       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.434       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84252       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0283       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5790.461     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2861 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3859        22.408        .50882E-06   -.15078E-04
   2  Prefactor     .53897E-01    .99359E-01    .87168E-07    .15470E-03
   3  norm          27.673        16.398        .92747E-07   -.15229E-05
   4  Prefactor     7.1050        31.332       -.13555E-06   -.28460E-04
   5  Prefactor     .10000E-03    6.0235        .29788E-07** at limit **
   6  Prefactor     8.9048        14.380        .27659E-05   -.44602E-04
   7  Prefactor     .10000E-03    12.371       -.31934E-07** at limit **
   8  Prefactor     .10000E-03    2.0888        .50610E-07** at limit **
   9  norm          1.2682        1.0618       -.36863E-07    .12413E-04
  10  Prefactor     .10000E-03    3.6164       -.47841E-07** at limit **
  11  Prefactor     .10000E-03    5.3567        .47989E-07** at limit **
  12  Prefactor     .10000E-03    13.228        .64639E-08** at limit **
  13  norm          .10000E-03    4.4602       -.14478E-06** at limit **
  14  Prefactor     6.2330        5.5509        .12318E-05   -.76317E-04
  15  Prefactor     65.088        152.50       -.56035E-06   -.32388E-04
  16  Prefactor     .10000E-03    5.5321       -.39770E-06** at limit **
  17  Prefactor     .10000E-03    11.924        .59279E-08** at limit **
  18  norm          .10000E-03    4.2243        .23551E-07** at limit **
  19  norm          16.435        15.830        .13078E-06    .96494E-05
  20  Prefactor     .10000E-03    1.4457       -.16445E-06** at limit **
  21  Prefactor     .10000E-03    42.279        .15436E-06** at limit **
  22  Prefactor     .10000E-03    51.415        .10375E-05** at limit **
  23  Prefactor     .10000E-03    3.3668        .64940E-07** at limit **
  24  Normalizat    .84252        .20014       -.14722E-05   -.69501E-05
  25  Prefactor     1.0284        .12810        .90475E-07   -.86900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38586
  Prefactor  = 0.0538975
  norm       = 27.6728
  Prefactor  = 7.105
  Prefactor  = 0.0001
  Prefactor  = 8.9048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.23304
  Prefactor  = 65.0877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.4346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.842524
  Prefactor  = 1.02837
 **********
 **   18 **HESSE 
 **********

 FCN=   5790.461     FROM HESSE     STATUS=OK           421 CALLS     3282 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3859        22.081        .26511E-03   -1.5399    
   2  Prefactor     .53897E-01    .94346E-01    .30913E-03   -1.5662    
   3  norm          27.673        16.397        .76158E-04   -1.4655    
   4  Prefactor     7.1050        31.367        .15014E-03   -1.5175    
   5  Prefactor     .10000E-03    6.1175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.9048        14.333        .67158E-03   -1.5111    
   7  Prefactor     .10000E-03    12.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0984        .10740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2682        1.0421        .68446E-04   -1.5483    
  10  Prefactor     .10000E-03    3.6269        .14132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3683        .17201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.5217        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2330        5.5493        .80395E-03   -1.5209    
  15  Prefactor     65.088        152.19        .24844E-03   -1.4093    
  16  Prefactor     .10000E-03    5.5464        .17455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.2304        .15275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.435        15.820        .98798E-04   -1.4897    
  20  Prefactor     .10000E-03    1.4489        .89292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    42.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    52.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.3732        .13637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84252        .23147        .30226E-03   -.98510    
  25  Prefactor     1.0284        .14990        .18109E-03   -.91790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11898e-11
Minuit parameter uncertainties:
  1  14.5233
  2  0.094346
  3  16.4001
  4  29.8835
  5  1.54497e-05
  6  14.3382
  7  1.32424e-05
  8  3.72363e-07
  9  1.04208
  10  3.26541e-06
  11  1.8782e-07
  12  4.9686e-06
  13  1.76234e-05
  14  5.54976
  15  153.11
  16  8.0409e-06
  17  9.98481e-06
  18  7.23745e-07
  19  15.8238
  20  1.774e-06
  21  8.56619e-06
  22  0.000145562
  23  1.56437e-06
  24  0.231738
  25  0.14996
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  3.265e-06  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.028e+00  1.500e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  8.425e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839238/likelihoodResults_348710401_348969601_4FGL_J2324.7+0801_daily_bin422.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) = 5790.46252012
delta logL = -0.00131105477521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5790.46120902
delta logL = 5.39239408681e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2164       1.0000          .0000       10.000    
     3 'Normalizat'    .84251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0284       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5790.461     FROM MIGRAD    STATUS=FAILED        86 CALLS      235 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10105E-03    69.929        .14209E-02** at limit **
   2  Index         2.1522        6.1185        .50000        .22170E-04
   3  Normalizat    .84252        .22087E-01    .30226E-03   -.13089E-04
   4  Prefactor     1.0284        .14579E-01    .18109E-03   -.12644E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5790.461     FROM SIMPLEX   STATUS=UNCHANGED    137 CALLS      372 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10105E-03    69.929        .35299E-03** at limit **
   2  Index         2.1522        6.1185        .50875E-03    .22170E-04
   3  Normalizat    .84252        .22087E-01    .55925E-05   -.13089E-04
   4  Prefactor     1.0284        .14579E-01    .31799E-05   -.12644E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5790.461     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      416 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.107        .28418E-02** at limit **
   2  Index         1.8082        5.6851        .50000        .10004E-07
   3  Normalizat    .84252        .21615E-01    .12090E-04    .16606E-03
   4  Prefactor     1.0284        .14268E-01    .36219E-04    .27993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8082
  Normalizat = 0.842524
  Prefactor  = 1.02838
 **********
 **   18 **HESSE 
 **********

 FCN=   5790.461     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      445 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    329.96        .56835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8082        7.0872        .50000       -.69236    
   3  Normalizat    .84252        .50659E-01    .24181E-05   -.98510    
   4  Prefactor     1.0284        .33426E-01    .72437E-05   -.91790    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85814e-09
Minuit parameter uncertainties:
  1  0.000321779
  2  1205.68
  3  0.0506618
  4  0.0334266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839238': 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) = 5790.46120769
delta logL = 1.37709139381e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  3.218e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.808e+00  1.206e+03  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.028e+00  3.343e-02  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  8.425e-01  5.066e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.190 8.028

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/839238/cmap_HighResolution_348710401_348969601_4FGL_J2324.7+0801_daily_bin422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-09-29 16:23:31.066432', job_id='839238', GAL2='1.03', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632957811.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='422' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:23:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 839238: <4FGL_J2324.7+0801_daily_bin422> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin422> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:16 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:18 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:10:18 2021
Terminated at Wed Sep 29 16:23:31 2021
Results reported at Wed Sep 29 16:23:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin422 351.19 8.0282 348710401 348969601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7+0801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

