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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin608
RA = 351.19, Dec = 8.0282
tmin = 396921601, tmax = 397180801
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='840622', job_status='RUN', time_executed='2021-09-29 16:18:45.525135', time_epoch_executed='1632957525.53' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840622

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840622/ft1_4FGL_J2324.7+0801_daily_bin608.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840622/ft2_4FGL_J2324.7+0801_daily_bin608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840622/ft1_4FGL_J2324.7+0801_daily_bin608.fits outfile=/scratch/kocevski/840622/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin608.fits ra=351.19 dec=8.0282 rad=12.0 tmin=396921601.0 tmax=397180801.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 4.53
user 4.33
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840622/ft1_filtered_4FGL_J2324.7+0801_daily_bin608.fits" evtable="EVENTS" scfile=/scratch/kocevski/840622/ft2_4FGL_J2324.7+0801_daily_bin608.fits sctable="SC_DATA" outfile=/scratch/kocevski/840622/ltcube_396921601_397180801_4FGL_J2324.7+0801_daily_bin608.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/840622/ft2_4FGL_J2324.7+0801_daily_bin608.fits
.....................!
real 12.07
user 11.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840622/ft1_filtered_4FGL_J2324.7+0801_daily_bin608.fits evtable="EVENTS" scfile=/scratch/kocevski/840622/ft2_4FGL_J2324.7+0801_daily_bin608.fits sctable="SC_DATA" expcube=/scratch/kocevski/840622/ltcube_396921601_397180801_4FGL_J2324.7+0801_daily_bin608.fits outfile=/scratch/kocevski/840622/expmap_396921601_397180801_4FGL_J2324.7+0801_daily_bin608.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/840622/ltcube_396921601_397180801_4FGL_J2324.7+0801_daily_bin608.fits
.....................!
real 190.81
user 186.05
sys 4.45

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/840622/ft1_filtered_4FGL_J2324.7+0801_daily_bin608.fits scfile=/scratch/kocevski/840622/ft2_4FGL_J2324.7+0801_daily_bin608.fits outfile=/scratch/kocevski/840622/cmap_396921601_397180801_4FGL_J2324.7+0801_daily_bin608.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840622/ft1_filtered_4FGL_J2324.7+0801_daily_bin608.fits scfile=/scratch/kocevski/840622/ft2_4FGL_J2324.7+0801_daily_bin608.fits outfile=/scratch/kocevski/840622/cmap_HighResolution_396921601_397180801_4FGL_J2324.7+0801_daily_bin608.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840622/ft1_filtered_4FGL_J2324.7+0801_daily_bin608.fits evtable="EVENTS" scfile=/scratch/kocevski/840622/ft2_4FGL_J2324.7+0801_daily_bin608.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840622/Model_4FGL_J2324.7+0801_daily_bin608.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/840622/ft1_filtered_4FGL_J2324.7+0801_daily_bin608.fits.....................!
real 79.08
user 77.75
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    1.1144       1.0000         .10000E-03   10000.    
     3 'norm      '    12.284       1.0000         .10000E-03   10000.    
     4 'Prefactor '    62.416       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.320       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0161       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11682E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6266       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2005       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32065E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    97.339       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.046       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10817E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.368       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.5221       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91868       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82208       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=   7703.662     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2877 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1743       -.21907E-06** at limit **
   2  Prefactor     1.1144        .21826        .15329E-08    .70753E-05
   3  norm          12.285        9.9990        .41877E-07    .34747E-06
   4  Prefactor     62.423        33.513       -.38781E-06    .39117E-05
   5  Prefactor     10.318        7.1848        .10153E-06   -.52058E-05
   6  Prefactor     .10000E-03    10.336        .20453E-06** at limit **
   7  Prefactor     9.0205        15.448       -.47054E-07    .24114E-05
   8  Prefactor     .10000E-03    8.0980       -.62424E-06** at limit **
   9  norm          2.6267        1.0247       -.35076E-07    .66990E-04
  10  Prefactor     9.2035        10.867        .10288E-06   -.17173E-04
  11  Prefactor     29.091        19.739        .83357E-06    .11037E-05
  12  Prefactor     .10000E-03    13.125       -.14315E-06** at limit **
  13  norm          .10000E-03    6.9497        .16228E-06** at limit **
  14  Prefactor     .10000E-03    4.8375        .12934E-06** at limit **
  15  Prefactor     97.239        137.87        .67291E-05   -.54079E-05
  16  Prefactor     .10000E-03    9.6925       -.47632E-06** at limit **
  17  Prefactor     .10000E-03    18.914       -.11940E-06** at limit **
  18  norm          .10000E-03    4.6187        .97880E-07** at limit **
  19  norm          14.036        18.153        .20009E-06    .30921E-04
  20  Prefactor     .10000E-03    4.5120       -.57033E-06** at limit **
  21  Prefactor     .10000E-03    10.312        .16260E-06** at limit **
  22  Prefactor     18.372        14.824       -.70184E-07    .97806E-06
  23  Prefactor     3.5236        7.6153        .14921E-05   -.14862E-04
  24  Normalizat    .91832        .18215       -.25779E-06    .96073E-05
  25  Prefactor     .82225        .10947       -.10533E-06   -.68234E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.11445
  norm       = 12.2853
  Prefactor  = 62.4232
  Prefactor  = 10.3185
  Prefactor  = 0.0001
  Prefactor  = 9.02047
  Prefactor  = 0.0001
  norm       = 2.62668
  Prefactor  = 9.20352
  Prefactor  = 29.0906
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.2386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.0356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3723
  Prefactor  = 3.52356
  Normalizat = 0.918318
  Prefactor  = 0.822248
 **********
 **   18 **HESSE 
 **********

 FCN=   7703.662     FROM HESSE     STATUS=OK           431 CALLS     3308 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1144        .21826        .17300E-04   -1.5497    
   3  norm          12.285        10.000        .11429E-03   -1.5007    
   4  Prefactor     62.423        33.550        .50791E-04   -1.4126    
   5  Prefactor     10.318        7.1869        .62364E-03   -1.5065    
   6  Prefactor     .10000E-03    10.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0205        15.443        .13348E-03   -1.5107    
   8  Prefactor     .10000E-03    8.4629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6267        1.0245        .12581E-03   -1.5384    
  10  Prefactor     9.2035        10.752        .13213E-03   -1.5101    
  11  Prefactor     29.091        19.751        .74262E-04   -1.4629    
  12  Prefactor     .10000E-03    13.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.0341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.900        .35988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     97.239        137.44        .20371E-03   -1.3733    
  16  Prefactor     .10000E-03    9.8060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.6228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.036        18.028        .10687E-03   -1.4959    
  20  Prefactor     .10000E-03    4.6510        .36152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.372        14.844        .93452E-04   -1.4850    
  23  Prefactor     3.5236        7.6202        .10770E-02   -1.5333    
  24  Normalizat    .91832        .20833        .30254E-03   -.95819    
  25  Prefactor     .82225        .12708        .20048E-03   -.98913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16086e-10
Minuit parameter uncertainties:
  1  2.18424e-06
  2  0.218257
  3  10.0017
  4  33.5603
  5  7.18752
  6  1.50805e-06
  7  15.4497
  8  3.02599e-05
  9  1.02449
  10  10.7547
  11  19.7551
  12  1.56994e-06
  13  2.93683e-06
  14  4.91179e-05
  15  137.89
  16  4.43955e-05
  17  4.26746e-06
  18  1.6246e-06
  19  18.0345
  20  2.07208e-05
  21  8.32369e-07
  22  14.8465
  23  7.6223
  24  0.208516
  25  0.127122
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  9.204e+00  1.075e+01  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:  8.222e-01  1.271e-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:  9.183e-01  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840622/likelihoodResults_396921601_397180801_4FGL_J2324.7+0801_daily_bin608.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) = 7703.01130594
delta logL = 0.650495213928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7702.97236486
delta logL = 0.689436297539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8301       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1799       1.0000          .0000       10.000    
     3 'Normalizat'    .86666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84087       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.

 FCN=   7702.972     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      256 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8209        41.131        .60435E-02    .44428E-03
   2  Index         3.1811        2.6974        .98951E-01    .18703E-03
   3  Normalizat    .86657        .60728E-01    .70152E-01   -.92885E-05
   4  Prefactor     .84097        .36337E-01    .44247E-01   -.22517E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.82093
  Index      = 3.18106
  Normalizat = 0.866566
  Prefactor  = 0.840965
 **********
 **   18 **HESSE 
 **********

 FCN=   7702.972     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8209        72.860        .10393E-03   -1.5372    
   2  Index         3.1811        3.9068        .49909E-02   -.37233    
   3  Normalizat    .86657        .23279        .31040E-03   -.97645    
   4  Prefactor     .84097        .14822        .19836E-03   -.98236    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.52047e-07
Minuit parameter uncertainties:
  1  28.7112
  2  4.63469
  3  0.233056
  4  0.148294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840622': 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) = 7702.97236315
delta logL = 0.689438011431

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.821e+00  2.871e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.181e+00  4.635e+00  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:  8.410e-01  1.483e-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.666e-01  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 351.190 8.028
Photon Index (Free Index): 3.18 +/- 4.63
Photon Flux (Free Index): 7.75e-08 +/- 6.61e-08
Energy Flux (Free Index): 1.43e-05 +/- 2.27e-05

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/840622/cmap_HighResolution_396921601_397180801_4FGL_J2324.7+0801_daily_bin608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.74e-03', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='6.89e-01', photon_flux2='7.75e-08', job_status='DONE', time_completed='2021-09-29 16:31:18.954398', photon_index_error2='4.63', photon_index2='3.18', ts='0.94', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='2.27e-05', EG='0.92', time_epoch_completed='1632958278.95', return_code='0', job_id='840622', GAL2='0.84', EG2='0.87', return_code2='102', photon_flux_error2='6.61e-08', ts2='2.38', photon_index='2.23' WHERE bin_id='608' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:31:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 840622: <4FGL_J2324.7+0801_daily_bin608> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin608 351.19 8.0282 396921601 397180801 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 :                                   753.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

