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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin331
RA = 351.17, Dec = 31.2573
tmin = 325123201, tmax = 325382401
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='830472', job_status='RUN', time_executed='2021-09-29 15:42:19.937727', time_epoch_executed='1632955339.94' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830472

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830472/ft1_4FGL_J2324.6+3115_daily_bin331.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830472/ft2_4FGL_J2324.6+3115_daily_bin331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830472/ft1_4FGL_J2324.6+3115_daily_bin331.fits outfile=/scratch/kocevski/830472/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin331.fits ra=351.17 dec=31.2573 rad=12.0 tmin=325123201.0 tmax=325382401.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 2.77
user 2.57
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/830472/ft2_4FGL_J2324.6+3115_daily_bin331.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/830472/ft2_4FGL_J2324.6+3115_daily_bin331.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/830472/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin331.fits evtable="EVENTS" outfile="/scratch/kocevski/830472/ft1_filtered_4FGL_J2324.6+3115_daily_bin331.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.41
user 0.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/830472/ft1_filtered_4FGL_J2324.6+3115_daily_bin331.fits" evtable="EVENTS" scfile=/scratch/kocevski/830472/ft2_4FGL_J2324.6+3115_daily_bin331.fits sctable="SC_DATA" outfile=/scratch/kocevski/830472/ltcube_325123201_325382401_4FGL_J2324.6+3115_daily_bin331.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/830472/ft2_4FGL_J2324.6+3115_daily_bin331.fits
.....................!
real 9.01
user 8.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830472/ft1_filtered_4FGL_J2324.6+3115_daily_bin331.fits evtable="EVENTS" scfile=/scratch/kocevski/830472/ft2_4FGL_J2324.6+3115_daily_bin331.fits sctable="SC_DATA" expcube=/scratch/kocevski/830472/ltcube_325123201_325382401_4FGL_J2324.6+3115_daily_bin331.fits outfile=/scratch/kocevski/830472/expmap_325123201_325382401_4FGL_J2324.6+3115_daily_bin331.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/830472/ltcube_325123201_325382401_4FGL_J2324.6+3115_daily_bin331.fits
.....................!
real 144.05
user 140.38
sys 3.44

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

Setting source of interest to:
4FGL J2324.6+3115 @ 351.17 31.2573

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/830472/ft1_filtered_4FGL_J2324.6+3115_daily_bin331.fits scfile=/scratch/kocevski/830472/ft2_4FGL_J2324.6+3115_daily_bin331.fits outfile=/scratch/kocevski/830472/cmap_325123201_325382401_4FGL_J2324.6+3115_daily_bin331.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.17 yref=31.2573 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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830472/ft1_filtered_4FGL_J2324.6+3115_daily_bin331.fits scfile=/scratch/kocevski/830472/ft2_4FGL_J2324.6+3115_daily_bin331.fits outfile=/scratch/kocevski/830472/cmap_HighResolution_325123201_325382401_4FGL_J2324.6+3115_daily_bin331.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.17 yref=31.2573 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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/830472/ft1_filtered_4FGL_J2324.6+3115_daily_bin331.fits evtable="EVENTS" scfile=/scratch/kocevski/830472/ft2_4FGL_J2324.6+3115_daily_bin331.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/830472/Model_4FGL_J2324.6+3115_daily_bin331.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/830472/ft1_filtered_4FGL_J2324.6+3115_daily_bin331.fits.....................!
real 74.05
user 72.90
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/830472/ft1_filtered_4FGL_J2324.6+3115_daily_bin331.fits', '/scratch/kocevski/830472/ft2_4FGL_J2324.6+3115_daily_bin331.fits', expMap='/scratch/kocevski/830472/expmap_325123201_325382401_4FGL_J2324.6+3115_daily_bin331.fits', expCube='/scratch/kocevski/830472/ltcube_325123201_325382401_4FGL_J2324.6+3115_daily_bin331.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/830472/Model_4FGL_J2324.6+3115_daily_bin331.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.6+3115'

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.967e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/830472/ft1_filtered_4FGL_J2324.6+3115_daily_bin331.fits
Spacecraft file(s): /scratch/kocevski/830472/ft2_4FGL_J2324.6+3115_daily_bin331.fits
Exposure map: /scratch/kocevski/830472/expmap_325123201_325382401_4FGL_J2324.6+3115_daily_bin331.fits
Exposure cube: /scratch/kocevski/830472/ltcube_325123201_325382401_4FGL_J2324.6+3115_daily_bin331.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/830472/Model_4FGL_J2324.6+3115_daily_bin331.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) = 9121.65898537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.288       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18685E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4479       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.502       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.683       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4515       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2442       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.716       1.0000         .10000E-03   10000.    
    14 'norm      '    44.106       1.0000         .10000E-03   10000.    
    15 'norm      '    9.7116       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7395       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2711       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88493       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0383       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9121.642     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2569 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.292        20.096        .29461E-04    .23001E-03
   2  Prefactor     .10008E-03    4.7872       -.53747E-06** at limit **
   3  norm          3.4478        1.2836       -.22391E-07   -.18168E-03
   4  Prefactor     .10000E-03    20.096        .19682E-06** at limit **
   5  Prefactor     17.500        17.183        .24332E-05   -.11563E-04
   6  Prefactor     10.683        10.751        .16888E-07    .20815E-04
   7  Prefactor     .10000E-03    2.3606        .38910E-07** at limit **
   8  Prefactor     8.4511        7.6373        .47602E-05   -.24786E-04
   9  Prefactor     .10000E-03    17.972       -.25609E-05** at limit **
  10  norm          2.6575        1.6287        .16377E-06   -.38372E-03
  11  Prefactor     18.756        20.240        .67716E-05   -.28058E-04
  12  Prefactor     2.2438        6.7507       -.63086E-06   -.47115E-03
  13  Prefactor     10.715        18.021        .27586E-05   -.26818E-04
  14  norm          44.102        8.9207       -.18576E-06   -.13076E-05
  15  norm          9.7114        7.6492        .95214E-06    .11907E-05
  16  Prefactor     .10000E-03    13.294       -.24665E-06** at limit **
  17  norm          .10000E-03    1.0414        .49963E-07** at limit **
  18  Prefactor     .10000E-03    5.6204       -.52545E-07** at limit **
  19  Prefactor     .10000E-03    20.814        .18676E-05** at limit **
  20  Prefactor     3.4906        447.83       -.94136E-04   -.63477E-04
  21  Prefactor     7.2760        12.133       -.45326E-06    .17308E-03
  22  Normalizat    .88495        .20379       -.48397E-05    .15648E-03
  23  Prefactor     1.0383        .10016        .27574E-06    .61556E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.2918
  Prefactor  = 0.000100075
  norm       = 3.44785
  Prefactor  = 0.0001
  Prefactor  = 17.5002
  Prefactor  = 10.6831
  Prefactor  = 0.0001
  Prefactor  = 8.45114
  Prefactor  = 0.0001
  norm       = 2.65745
  Prefactor  = 18.756
  Prefactor  = 2.2438
  Prefactor  = 10.7146
  norm       = 44.1022
  norm       = 9.71138
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.49062
  Prefactor  = 7.27601
  Normalizat = 0.884953
  Prefactor  = 1.03832
 **********
 **   18 **HESSE 
 **********

 FCN=   9121.642     FROM HESSE     STATUS=OK           376 CALLS     2945 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.292        20.094        .88923E-04   -1.4807    
   2  Prefactor     .10008E-03    58.449        .39800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4478        1.2828        .62564E-04   -1.5337    
   4  Prefactor     .10000E-03    20.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.500        17.181        .95737E-04   -1.4871    
   6  Prefactor     10.683        10.756        .12258E-03   -1.5054    
   7  Prefactor     .10000E-03    2.3880        .14329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4511        7.6251        .13789E-03   -1.5126    
   9  Prefactor     .10000E-03    18.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6575        1.6202        .89733E-04   -1.5382    
  11  Prefactor     18.756        20.197        .92475E-04   -1.4842    
  12  Prefactor     2.2438        6.7494        .27433E-03   -1.5408    
  13  Prefactor     10.715        18.000        .12239E-03   -1.5053    
  14  norm          44.102        8.9041        .60367E-04   -1.4379    
  15  norm          9.7114        7.6509        .12859E-03   -1.5085    
  16  Prefactor     .10000E-03    13.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0658        .95137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.6252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4906        415.00        .20880E-03   -1.5334    
  21  Prefactor     7.2760        11.576        .14875E-03   -1.5168    
  22  Normalizat    .88495        .22704        .37572E-03   -.96991    
  23  Prefactor     1.0383        .11415        .17739E-03   -.91463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87502e-09
Minuit parameter uncertainties:
  1  20.1005
  2  0.0042006
  3  1.28277
  4  6.30377e-06
  5  17.1861
  6  10.7583
  7  4.99826e-06
  8  7.62597
  9  3.36796e-05
  10  1.62023
  11  20.2039
  12  6.75167
  13  18.0089
  14  8.90436
  15  7.65168
  16  2.82128e-05
  17  3.11432e-06
  18  3.07877e-06
  19  3.40775e-05
  20  76.6708
  21  11.5799
  22  0.227288
  23  0.114179
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  2.821e-05  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.038e+00  1.142e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  8.850e-01  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830472/likelihoodResults_325123201_325382401_4FGL_J2324.6+3115_daily_bin331.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) = 9121.6426188
delta logL = -0.000357017655915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9121.64226178
delta logL = 1.9481376512e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8824       1.0000          .0000       10.000    
     3 'Normalizat'    .88495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0383       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+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.

 FCN=   9121.579     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      310 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36013E-01    .71438        .84215E-02    .75832E-02
   2  Index         7.3030        3.4547        .50000        .63899E-04
   3  Normalizat    .86435        .19617E-01    .37572E-03   -.27414E-04
   4  Prefactor     1.0448        .10029E-01    .17739E-03   -.59345E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0360131
  Index      = 7.30296
  Normalizat = 0.864353
  Prefactor  = 1.04476
 **********
 **   18 **HESSE 
 **********

 FCN=   9121.579     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      341 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36013E-01    13.656        .41366E-03   -1.5670    
   2  Index         7.3030        5.2057        .21831E-01    .47866    
   3  Normalizat    .86435        .12147        .15029E-04   -.97724    
   4  Prefactor     1.0448        .60537E-01    .35479E-04   -.91252    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.20952e-10
Minuit parameter uncertainties:
  1  1.40096
  2  28.2876
  3  0.121506
  4  0.0605412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830472': 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) = 9121.57894421
delta logL = 0.0633175682688

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.601e-02  1.401e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  7.303e+00  2.829e+01  0.000e+00  1.000e+01 (-1.000e+00)
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.045e+00  6.054e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  8.644e-01  1.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.170 31.257

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/830472/cmap_HighResolution_325123201_325382401_4FGL_J2324.6+3115_daily_bin331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.58e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-29 15:53:03.988068', job_id='830472', GAL2='1.04', fit_tolerance='1e-08', EG2='0.86', EG='0.88', time_epoch_completed='1632955983.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='6.33e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='331' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:53:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 830472: <4FGL_J2324.6+3115_daily_bin331> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin331> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 15:40:24 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:40:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:40:25 2021
Terminated at Wed Sep 29 15:53:04 2021
Results reported at Wed Sep 29 15:53:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin331 351.17 31.2573 325123201 325382401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.6+3115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   637.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            760 sec.

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

