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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin439
RA = 351.19, Dec = 8.0282
tmin = 353116801, tmax = 353376001
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='839264', job_status='RUN', time_executed='2021-09-29 16:12:58.023633', time_epoch_executed='1632957178.02' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839264

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839264/ft1_4FGL_J2324.7+0801_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839264/ft2_4FGL_J2324.7+0801_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839264/ft1_4FGL_J2324.7+0801_daily_bin439.fits outfile=/scratch/kocevski/839264/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin439.fits ra=351.19 dec=8.0282 rad=12.0 tmin=353116801.0 tmax=353376001.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.48
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/839264/ft2_4FGL_J2324.7+0801_daily_bin439.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/839264/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin439.fits evtable="EVENTS" outfile="/scratch/kocevski/839264/ft1_filtered_4FGL_J2324.7+0801_daily_bin439.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/839264/ft1_filtered_4FGL_J2324.7+0801_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/839264/ft2_4FGL_J2324.7+0801_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/839264/ltcube_353116801_353376001_4FGL_J2324.7+0801_daily_bin439.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/839264/ft2_4FGL_J2324.7+0801_daily_bin439.fits
.....................!
real 11.90
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839264/ft1_filtered_4FGL_J2324.7+0801_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/839264/ft2_4FGL_J2324.7+0801_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/839264/ltcube_353116801_353376001_4FGL_J2324.7+0801_daily_bin439.fits outfile=/scratch/kocevski/839264/expmap_353116801_353376001_4FGL_J2324.7+0801_daily_bin439.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/839264/ltcube_353116801_353376001_4FGL_J2324.7+0801_daily_bin439.fits
.....................!
real 192.34
user 188.03
sys 3.91

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/839264/ft1_filtered_4FGL_J2324.7+0801_daily_bin439.fits scfile=/scratch/kocevski/839264/ft2_4FGL_J2324.7+0801_daily_bin439.fits outfile=/scratch/kocevski/839264/cmap_353116801_353376001_4FGL_J2324.7+0801_daily_bin439.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839264/ft1_filtered_4FGL_J2324.7+0801_daily_bin439.fits scfile=/scratch/kocevski/839264/ft2_4FGL_J2324.7+0801_daily_bin439.fits outfile=/scratch/kocevski/839264/cmap_HighResolution_353116801_353376001_4FGL_J2324.7+0801_daily_bin439.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/839264/ft1_filtered_4FGL_J2324.7+0801_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/839264/ft2_4FGL_J2324.7+0801_daily_bin439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839264/Model_4FGL_J2324.7+0801_daily_bin439.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/839264/ft1_filtered_4FGL_J2324.7+0801_daily_bin439.fits.....................!
real 66.23
user 64.90
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21523       1.0000         .10000E-03   10000.    
     3 'norm      '    .11644E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.273       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15642E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6606       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.593       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72350       1.0000         .10000E-03   10000.    
     9 'norm      '    7.0501       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29512E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25882E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    15.693       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9068       1.0000         .10000E-03   10000.    
    15 'Prefactor '    576.29       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52198       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19974E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10607E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    30.079       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.932       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0248       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12963E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .75429       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0300       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=   6100.117     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3193 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9138        .15745E-07** at limit **
   2  Prefactor     .21529        .12786        .11168E-07   -.26963E-05
   3  norm          .10000E-03    18.400       -.23517E-07** at limit **
   4  Prefactor     33.351        29.858        .36814E-07   -.84102E-06
   5  Prefactor     .10000E-03    6.0704        .16457E-06** at limit **
   6  Prefactor     1.6732        13.055        .94731E-05    .17446E-03
   7  Prefactor     17.659        22.028        .12683E-06    .32798E-05
   8  Prefactor     .72199        3.4598        .13178E-06   -.58492E-04
   9  norm          7.0520        2.0602       -.19500E-06   -.12421E-02
  10  Prefactor     .10000E-03    7.8228       -.21842E-07** at limit **
  11  Prefactor     .10000E-03    10.343       -.59667E-07** at limit **
  12  Prefactor     .47132        82.079       -.59366E-05    .99134E-04
  13  norm          15.706        10.433        .17404E-07   -.21075E-05
  14  Prefactor     6.9045        8.0500        .93198E-07   -.12753E-05
  15  Prefactor     575.24        382.01        .24112E-04   -.51974E-04
  16  Prefactor     .29159        21.258        .39660E-05   -.57446E-03
  17  Prefactor     .10000E-03    19.511       -.54737E-07** at limit **
  18  norm          .10000E-03    3.8196       -.92273E-08** at limit **
  19  norm          30.140        37.997       -.17891E-05   -.49930E-03
  20  Prefactor     16.996        9.3935       -.10289E-05   -.12179E-02
  21  Prefactor     8.0323        38.263        .38013E-06   -.25203E-04
  22  Prefactor     .10000E-03    8.7562       -.21974E-07** at limit **
  23  Prefactor     .10000E-03    3.8796       -.32287E-07** at limit **
  24  Normalizat    .75401        .21698       -.28082E-06   -.12827E-03
  25  Prefactor     1.0300        .13259       -.51545E-06   -.13012E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.215286
  norm       = 0.0001
  Prefactor  = 33.3505
  Prefactor  = 0.0001
  Prefactor  = 1.6732
  Prefactor  = 17.6585
  Prefactor  = 0.721987
  norm       = 7.05201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.471324
  norm       = 15.7063
  Prefactor  = 6.90448
  Prefactor  = 575.238
  Prefactor  = 0.291588
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 30.14
  Prefactor  = 16.996
  Prefactor  = 8.03235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.754014
  Prefactor  = 1.02998
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.117     FROM HESSE     STATUS=OK           435 CALLS     3628 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .21529        .12658        .20701E-04   -1.5615    
   3  norm          .10000E-03    18.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.351        29.872        .69469E-04   -1.4552    
   5  Prefactor     .10000E-03    6.1895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6732        12.986        .16369E-02   -1.5449    
   7  Prefactor     17.659        22.038        .95488E-04   -1.4867    
   8  Prefactor     .72199        10.974        .27599E-02   -1.5538    
   9  norm          7.0520        2.1181        .56420E-04   -1.5177    
  10  Prefactor     .10000E-03    7.9096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.400        .21397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .47132        67.360        .17602       -1.5571    
  13  norm          15.706        10.395        .10111E-03   -1.4915    
  14  Prefactor     6.9045        8.0315        .15266E-03   -1.5182    
  15  Prefactor     575.24        389.36        .85822E-04   -1.0864    
  16  Prefactor     .29159        1168.1        .47883E-02   -1.5600    
  17  Prefactor     .10000E-03    19.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.8213        .14908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          30.140        64.778        .73054E-04   -1.4609    
  20  Prefactor     16.996        9.7578        .97334E-04   -1.4883    
  21  Prefactor     8.0323        38.375        .14154E-03   -1.5141    
  22  Prefactor     .10000E-03    8.7719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.9019        .15023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .75401        .25190        .33614E-03   -1.0180    
  25  Prefactor     1.0300        .15476        .18943E-03   -.91737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2237e-07
Minuit parameter uncertainties:
  1  8.17658e-07
  2  0.126577
  3  5.87001e-06
  4  29.8849
  5  2.37823e-06
  6  9.32507
  7  22.0484
  8  5.63045
  9  2.11814
  10  2.77832e-06
  11  3.35612e-06
  12  11.2809
  13  10.3965
  14  8.03274
  15  391.2
  16  37.6641
  17  2.90039e-06
  18  1.82735e-07
  19  64.9296
  20  9.75868
  21  35.15
  22  9.6567e-07
  23  3.17116e-07
  24  0.252289
  25  0.154831
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  2.778e-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.030e+00  1.548e-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:  7.540e-01  2.523e-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: 7.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839264/likelihoodResults_353116801_353376001_4FGL_J2324.7+0801_daily_bin439.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) = 6100.11758168
delta logL = -0.000602807369432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6100.1169789
delta logL = -2.5370354706e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2153       1.0000          .0000       10.000    
     3 'Normalizat'    .75400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0300       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=   6100.117     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7093        .90712E-02** at limit **
   2  Index         2.2038        8.1829        .50000        .11361E-04
   3  Normalizat    .75402        .43945E-02    .75936E-01    .38401E-04
   4  Prefactor     1.0300        .28701E-02    .41258E-01    .45930E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20375
  Normalizat = 0.754015
  Prefactor  = 1.02998
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.117     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      236 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2038        8.6613        .50000       -.59348    
   3  Normalizat    .75402        .11697E-01    .33614E-03   -1.0180    
   4  Prefactor     1.0300        .76544E-02    .18943E-03   -.91737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11365e-07
Minuit parameter uncertainties:
  1  5.75228e-05
  2  123.067
  3  0.0116967
  4  0.00765442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839264': 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) = 6100.1169788
delta logL = 7.12661858415e-08

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  5.752e-05  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.204e+00  1.231e+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:  1.030e+00  7.654e-03  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:  7.540e-01  1.170e-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/839264/cmap_HighResolution_353116801_353376001_4FGL_J2324.7+0801_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-03', job_status='DONE', photon_flux_upper_limit='7.45e-08', time_completed='2021-09-29 16:24:34.797522', job_id='839264', GAL2='1.03', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632957874.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='7.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='439' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:24:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 839264: <4FGL_J2324.7+0801_daily_bin439> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin439 351.19 8.0282 353116801 353376001 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 :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            857 sec.

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

