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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin986
RA = 351.19, Dec = 8.0282
tmin = 494899201, tmax = 495158401
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='842253', job_status='RUN', time_executed='2021-09-29 16:22:42.235140', time_epoch_executed='1632957762.24' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='986'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842253

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842253/ft1_4FGL_J2324.7+0801_daily_bin986.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842253/ft2_4FGL_J2324.7+0801_daily_bin986.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842253/ft1_4FGL_J2324.7+0801_daily_bin986.fits outfile=/scratch/kocevski/842253/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin986.fits ra=351.19 dec=8.0282 rad=12.0 tmin=494899201.0 tmax=495158401.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.61
user 3.40
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/842253/ft2_4FGL_J2324.7+0801_daily_bin986.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/842253/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin986.fits evtable="EVENTS" outfile="/scratch/kocevski/842253/ft1_filtered_4FGL_J2324.7+0801_daily_bin986.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842253/ft1_filtered_4FGL_J2324.7+0801_daily_bin986.fits" evtable="EVENTS" scfile=/scratch/kocevski/842253/ft2_4FGL_J2324.7+0801_daily_bin986.fits sctable="SC_DATA" outfile=/scratch/kocevski/842253/ltcube_494899201_495158401_4FGL_J2324.7+0801_daily_bin986.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/842253/ft2_4FGL_J2324.7+0801_daily_bin986.fits
.....................!
real 11.74
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842253/ft1_filtered_4FGL_J2324.7+0801_daily_bin986.fits evtable="EVENTS" scfile=/scratch/kocevski/842253/ft2_4FGL_J2324.7+0801_daily_bin986.fits sctable="SC_DATA" expcube=/scratch/kocevski/842253/ltcube_494899201_495158401_4FGL_J2324.7+0801_daily_bin986.fits outfile=/scratch/kocevski/842253/expmap_494899201_495158401_4FGL_J2324.7+0801_daily_bin986.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/842253/ltcube_494899201_495158401_4FGL_J2324.7+0801_daily_bin986.fits
.....................!
real 189.87
user 185.02
sys 4.55

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/842253/ft1_filtered_4FGL_J2324.7+0801_daily_bin986.fits scfile=/scratch/kocevski/842253/ft2_4FGL_J2324.7+0801_daily_bin986.fits outfile=/scratch/kocevski/842253/cmap_494899201_495158401_4FGL_J2324.7+0801_daily_bin986.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.57
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842253/ft1_filtered_4FGL_J2324.7+0801_daily_bin986.fits scfile=/scratch/kocevski/842253/ft2_4FGL_J2324.7+0801_daily_bin986.fits outfile=/scratch/kocevski/842253/cmap_HighResolution_494899201_495158401_4FGL_J2324.7+0801_daily_bin986.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.67
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842253/ft1_filtered_4FGL_J2324.7+0801_daily_bin986.fits evtable="EVENTS" scfile=/scratch/kocevski/842253/ft2_4FGL_J2324.7+0801_daily_bin986.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842253/Model_4FGL_J2324.7+0801_daily_bin986.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/842253/ft1_filtered_4FGL_J2324.7+0801_daily_bin986.fits.....................!
real 80.04
user 76.44
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/842253/ft1_filtered_4FGL_J2324.7+0801_daily_bin986.fits', '/scratch/kocevski/842253/ft2_4FGL_J2324.7+0801_daily_bin986.fits', expMap='/scratch/kocevski/842253/expmap_494899201_495158401_4FGL_J2324.7+0801_daily_bin986.fits', expCube='/scratch/kocevski/842253/ltcube_494899201_495158401_4FGL_J2324.7+0801_daily_bin986.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/842253/Model_4FGL_J2324.7+0801_daily_bin986.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/842253/ft1_filtered_4FGL_J2324.7+0801_daily_bin986.fits
Spacecraft file(s): /scratch/kocevski/842253/ft2_4FGL_J2324.7+0801_daily_bin986.fits
Exposure map: /scratch/kocevski/842253/expmap_494899201_495158401_4FGL_J2324.7+0801_daily_bin986.fits
Exposure cube: /scratch/kocevski/842253/ltcube_494899201_495158401_4FGL_J2324.7+0801_daily_bin986.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/842253/Model_4FGL_J2324.7+0801_daily_bin986.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) = 6950.99818119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7496       1.0000         .10000E-03   10000.    
     3 'norm      '    21.720       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3648       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0825       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    338.76       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.949       1.0000         .10000E-03   10000.    
    19 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8402       1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.930       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1609       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92306       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=   6950.978     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2882 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.378       -.23597E-07** at limit **
   2  Prefactor     2.7496        .30474       -.10043E-07    .70595E-05
   3  norm          21.721        16.615        .50212E-07    .16928E-04
   4  Prefactor     .10000E-03    25.365        .48822E-07** at limit **
   5  Prefactor     .10000E-03    6.5943        .36192E-07** at limit **
   6  Prefactor     6.3658        10.176        .27507E-05   -.63883E-04
   7  Prefactor     .10000E-03    4.7978       -.46455E-08** at limit **
   8  Prefactor     .10000E-03    4.5262        .74251E-07** at limit **
   9  norm          .10000E-03    .48329       -.75833E-06** at limit **
  10  Prefactor     .10000E-03    2.9815        .19237E-08** at limit **
  11  Prefactor     8.0866        17.468        .29610E-07   -.23941E-05
  12  Prefactor     .10000E-03    20.493       -.85319E-07** at limit **
  13  norm          .10000E-03    2.7180        .52157E-09** at limit **
  14  Prefactor     .10000E-03    7.0510        .14689E-07** at limit **
  15  Prefactor     338.27        300.11        .71851E-05   -.56835E-05
  16  Prefactor     .10000E-03    23.422       -.59889E-06** at limit **
  17  Prefactor     .10000E-03    15.938        .95796E-07** at limit **
  18  norm          13.950        12.412       -.49121E-07    .94370E-07
  19  norm          .10000E-03    26.942       -.51606E-07** at limit **
  20  Prefactor     1.8582        6.4199       -.15726E-05    .40746E-04
  21  Prefactor     37.921        31.080        .33365E-06    .93060E-06
  22  Prefactor     .10000E-03    18.289        .21972E-08** at limit **
  23  Prefactor     .10000E-03    7.2863        .68297E-07** at limit **
  24  Normalizat    1.1606        .21028       -.62413E-07    .64778E-04
  25  Prefactor     .92320        .13094        .19752E-06    .49107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.74964
  norm       = 21.7208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.3658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.08664
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 338.271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.9498
  norm       = 0.0001
  Prefactor  = 1.85825
  Prefactor  = 37.9214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16065
  Prefactor  = 0.923203
 **********
 **   18 **HESSE 
 **********

 FCN=   6950.978     FROM HESSE     STATUS=OK           417 CALLS     3299 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7496        .30489        .14768E-04   -1.5376    
   3  norm          21.721        16.619        .85944E-04   -1.4776    
   4  Prefactor     .10000E-03    25.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.7443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3658        10.111        .79548E-03   -1.5203    
   7  Prefactor     .10000E-03    4.8002        .17835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5615        .17286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .49589        .11205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9858        .14059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0866        17.447        .14103E-03   -1.5139    
  12  Prefactor     .10000E-03    20.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.7443        .13421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.2797        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     338.27        297.25        .11055E-03   -1.2008    
  16  Prefactor     .10000E-03    23.593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.950        12.415        .10724E-03   -1.4961    
  19  norm          .10000E-03    27.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8582        6.2828        .30750E-03   -1.5435    
  21  Prefactor     37.921        31.111        .65078E-04   -1.4476    
  22  Prefactor     .10000E-03    18.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.4334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1606        .24512        .31411E-03   -.87828    
  25  Prefactor     .92320        .15273        .22058E-03   -.95335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35174e-11
Minuit parameter uncertainties:
  1  2.6661e-05
  2  0.30489
  3  16.6226
  4  8.30024e-06
  5  1.19543e-05
  6  10.1134
  7  3.9948e-07
  8  2.66907e-06
  9  3.28128e-06
  10  1.69723e-06
  11  17.4578
  12  1.1084e-05
  13  2.32389e-06
  14  1.25971e-05
  15  298.603
  16  0.000119845
  17  1.9663e-06
  18  12.4174
  19  7.03644e-05
  20  6.285
  21  31.1242
  22  1.31278e-05
  23  2.82999e-06
  24  0.245362
  25  0.152803
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  1.697e-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:  9.232e-01  1.528e-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:  1.161e+00  2.454e-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: 5.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/842253/likelihoodResults_494899201_495158401_4FGL_J2324.7+0801_daily_bin986.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) = 6950.97968644
delta logL = -0.00158555317648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6950.97810059
delta logL = 2.98648046737e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2066       1.0000          .0000       10.000    
     3 'Normalizat'    1.1606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92321       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=   6950.978     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10172E-03    37.973        .14314E-02** at limit **
   2  Index         2.1397        7.3765        .50000        .49803E-04
   3  Normalizat    1.1606        .19121E-01    .31411E-03    .87334E-04
   4  Prefactor     .92320        .12200E-01    .22058E-03    .21898E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6950.978     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      365 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10172E-03    37.973        .31206E-03** at limit **
   2  Index         2.1397        7.3765        .42342E-03    .49803E-04
   3  Normalizat    1.1606        .19121E-01    .23380E-05    .87334E-04
   4  Prefactor     .92320        .12200E-01    .14487E-05    .21898E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6950.978     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      412 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.152        .28628E-02** at limit **
   2  Index         1.6679        8.7839        .50000        .18781E-06
   3  Normalizat    1.1606        .19997E-01    .12564E-04   -.21470E-02
   4  Prefactor     .92320        .12759E-01    .44116E-04   -.31093E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.66786
  Normalizat = 1.16064
  Prefactor  = 0.9232
 **********
 **   18 **HESSE 
 **********

 FCN=   6950.978     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      441 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    228.67        .57257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6679        5.3033        .50000       -.72941    
   3  Normalizat    1.1606        .45310E-01    .25129E-05   -.87828    
   4  Prefactor     .92320        .28908E-01    .88233E-05   -.95335    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.68877e-09
Minuit parameter uncertainties:
  1  0.000331089
  2  779.793
  3  0.0453115
  4  0.0289084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842253': 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) = 6950.97809701
delta logL = 3.87846830563e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  3.311e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.668e+00  7.798e+02  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:  9.232e-01  2.891e-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:  1.161e+00  4.531e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/842253/cmap_HighResolution_494899201_495158401_4FGL_J2324.7+0801_daily_bin986.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.53e-08', time_completed='2021-09-29 16:35:04.373945', job_id='842253', GAL2='0.92', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632958504.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.88e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='986' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:35:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 842253: <4FGL_J2324.7+0801_daily_bin986> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin986> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 16:20:35 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:20:37 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:20:37 2021
Terminated at Wed Sep 29 16:35:05 2021
Results reported at Wed Sep 29 16:35:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin986 351.19 8.0282 494899201 495158401 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 :                                   737.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             315.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            870 sec.

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

