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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin1549
RA = 351.17, Dec = 31.2573
tmin = 640828801, tmax = 641088001
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='836584', job_status='RUN', time_executed='2021-09-29 16:01:23.992572', time_epoch_executed='1632956483.99' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='1549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/836584

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/836584/ft1_4FGL_J2324.6+3115_daily_bin1549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/836584/ft2_4FGL_J2324.6+3115_daily_bin1549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/836584/ft1_4FGL_J2324.6+3115_daily_bin1549.fits outfile=/scratch/kocevski/836584/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin1549.fits ra=351.17 dec=31.2573 rad=12.0 tmin=640828801.0 tmax=641088001.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.15
user 2.95
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/836584/ft2_4FGL_J2324.6+3115_daily_bin1549.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/836584/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin1549.fits evtable="EVENTS" outfile="/scratch/kocevski/836584/ft1_filtered_4FGL_J2324.6+3115_daily_bin1549.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/836584/ft1_filtered_4FGL_J2324.6+3115_daily_bin1549.fits" evtable="EVENTS" scfile=/scratch/kocevski/836584/ft2_4FGL_J2324.6+3115_daily_bin1549.fits sctable="SC_DATA" outfile=/scratch/kocevski/836584/ltcube_640828801_641088001_4FGL_J2324.6+3115_daily_bin1549.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/836584/ft2_4FGL_J2324.6+3115_daily_bin1549.fits
.....................!
real 12.47
user 12.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/836584/ft1_filtered_4FGL_J2324.6+3115_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/836584/ft2_4FGL_J2324.6+3115_daily_bin1549.fits sctable="SC_DATA" expcube=/scratch/kocevski/836584/ltcube_640828801_641088001_4FGL_J2324.6+3115_daily_bin1549.fits outfile=/scratch/kocevski/836584/expmap_640828801_641088001_4FGL_J2324.6+3115_daily_bin1549.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/836584/ltcube_640828801_641088001_4FGL_J2324.6+3115_daily_bin1549.fits
.....................!
real 190.27
user 185.27
sys 4.69

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/836584/ft1_filtered_4FGL_J2324.6+3115_daily_bin1549.fits scfile=/scratch/kocevski/836584/ft2_4FGL_J2324.6+3115_daily_bin1549.fits outfile=/scratch/kocevski/836584/cmap_640828801_641088001_4FGL_J2324.6+3115_daily_bin1549.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/836584/ft1_filtered_4FGL_J2324.6+3115_daily_bin1549.fits scfile=/scratch/kocevski/836584/ft2_4FGL_J2324.6+3115_daily_bin1549.fits outfile=/scratch/kocevski/836584/cmap_HighResolution_640828801_641088001_4FGL_J2324.6+3115_daily_bin1549.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/836584/ft1_filtered_4FGL_J2324.6+3115_daily_bin1549.fits', '/scratch/kocevski/836584/ft2_4FGL_J2324.6+3115_daily_bin1549.fits', expMap='/scratch/kocevski/836584/expmap_640828801_641088001_4FGL_J2324.6+3115_daily_bin1549.fits', expCube='/scratch/kocevski/836584/ltcube_640828801_641088001_4FGL_J2324.6+3115_daily_bin1549.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/836584/Model_4FGL_J2324.6+3115_daily_bin1549.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/836584/ft1_filtered_4FGL_J2324.6+3115_daily_bin1549.fits
Spacecraft file(s): /scratch/kocevski/836584/ft2_4FGL_J2324.6+3115_daily_bin1549.fits
Exposure map: /scratch/kocevski/836584/expmap_640828801_641088001_4FGL_J2324.6+3115_daily_bin1549.fits
Exposure cube: /scratch/kocevski/836584/ltcube_640828801_641088001_4FGL_J2324.6+3115_daily_bin1549.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/836584/Model_4FGL_J2324.6+3115_daily_bin1549.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) = 7483.51094847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.939       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6357       1.0000         .10000E-03   10000.    
     3 'norm      '    .11752E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0555       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .53537       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11302E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.954       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.970       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.2584       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .23962E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.162       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4399       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80253       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=   7483.466     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2239 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.939        21.853        .78529E-07    .37802E-04
   2  Prefactor     8.6365        11.447       -.11914E-07   -.48351E-04
   3  norm          .10000E-03    .61549       -.14160E-07** at limit **
   4  Prefactor     .10000E-03    132.61       -.28563E-05** at limit **
   5  Prefactor     2.9989        28.745        .40820E-05    .11676E-03
   6  Prefactor     .54413        9.8911        .31893E-06   -.94872E-04
   7  Prefactor     .10000E-03    2.4647       -.10752E-07** at limit **
   8  Prefactor     .10000E-03    4.5458        .36173E-07** at limit **
   9  Prefactor     .10000E-03    37.857        .30164E-06** at limit **
  10  norm          .10000E-03    .63420        .19699E-07** at limit **
  11  Prefactor     .10000E-03    13.247        .12767E-06** at limit **
  12  Prefactor     14.943        12.325        .41423E-06    .10695E-03
  13  Prefactor     10.971        14.777        .12264E-06    .23391E-05
  14  norm          .10000E-03    2.4382       -.13394E-07** at limit **
  15  norm          6.2562        7.8490        .14277E-05   -.45726E-03
  16  Prefactor     .10000E-03    10.513       -.11344E-06** at limit **
  17  norm          .10000E-03    1.4334       -.62504E-07** at limit **
  18  Prefactor     .10000E-03    5.2289        .13374E-07** at limit **
  19  Prefactor     .10000E-03    14.304       -.50949E-07** at limit **
  20  Prefactor     .10000E-03    51.600       -.11463E-05** at limit **
  21  Prefactor     16.157        11.425        .55871E-06    .21245E-03
  22  Normalizat    1.4399        .21631       -.43935E-06    .15657E-04
  23  Prefactor     .80247        .10008       -.22087E-06    .59991E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 21.9388
  Prefactor  = 8.63652
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.9989
  Prefactor  = 0.544133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9432
  Prefactor  = 10.9713
  norm       = 0.0001
  norm       = 6.25616
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.1567
  Normalizat = 1.43986
  Prefactor  = 0.802473
 **********
 **   18 **HESSE 
 **********

 FCN=   7483.466     FROM HESSE     STATUS=OK           374 CALLS     2613 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.939        21.842        .85515E-04   -1.4771    
   2  Prefactor     8.6365        11.466        .13641E-03   -1.5120    
   3  norm          .10000E-03    1.2807        .12946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    134.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9989        31.596        .23209E-03   -1.5362    
   6  Prefactor     .54413        70.208        .52483E-02   -1.5560    
   7  Prefactor     .10000E-03    2.4804        .13260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5628        .18013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.4773        .13193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.943        12.209        .10357E-03   -1.4935    
  13  Prefactor     10.971        14.773        .12096E-03   -1.5045    
  14  norm          .10000E-03    2.4612        .13187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.2562        8.7338        .80230E-03   -1.5208    
  16  Prefactor     .10000E-03    10.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.8946        .19653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.2300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    52.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.157        11.504        .99626E-04   -1.4904    
  22  Normalizat    1.4399        .25518        .30456E-03   -.79483    
  23  Prefactor     .80247        .11889        .18333E-03   -.99637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07465e-08
Minuit parameter uncertainties:
  1  21.8495
  2  11.4685
  3  4.23662e-05
  4  0.000923309
  5  19.4811
  6  12.3753
  7  1.32991e-07
  8  4.12799e-06
  9  6.42618e-05
  10  1.24736e-05
  11  2.08359e-05
  12  12.2111
  13  14.7781
  14  1.33546e-06
  15  8.73561
  16  3.82349e-06
  17  2.92809e-05
  18  1.41851e-06
  19  2.56113e-06
  20  0.000361325
  21  11.506
  22  0.255408
  23  0.118924
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  3.823e-06  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:  8.025e-01  1.189e-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:  1.440e+00  2.554e-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: 9.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/836584/likelihoodResults_640828801_641088001_4FGL_J2324.6+3115_daily_bin1549.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) = 7483.46682742
delta logL = -0.000449977247627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7483.46637748
delta logL = -3.43197825714e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8724       1.0000          .0000       10.000    
     3 'Normalizat'    1.4398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80250       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=   7483.466     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    281.44        .18142E-02** at limit **
   2  Index         2.8537        8.5551        .50000        .18795E-05
   3  Normalizat    1.4399        .29960E-01    .30456E-03    .89178E-04
   4  Prefactor     .80247        .14013E-01    .18333E-03    .11051E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100072
  Index      = 2.85374
  Normalizat = 1.43986
  Prefactor  = 0.802473
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    1108.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8537        8.0974        .50000       -.44366    
   3  Normalizat    1.4399        .68163E-01    .12182E-04   -.79483    
   4  Prefactor     .80247        .31882E-01    .73332E-05   -.99637    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90942e-09
Minuit parameter uncertainties:
  1  0.0181703
  2  2036.69
  3  0.0681671
  4  0.0318832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/836584': 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) = 7483.46637744
delta logL = 7.39782990422e-09

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.001e-04  1.817e-02  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.854e+00  2.037e+03  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:  8.025e-01  3.188e-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:  1.440e+00  6.817e-02  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/836584/cmap_HighResolution_640828801_641088001_4FGL_J2324.6+3115_daily_bin1549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2021-09-29 16:13:02.512462', job_id='836584', GAL2='0.80', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1632957182.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='7.40e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1549' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:13:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 836584: <4FGL_J2324.6+3115_daily_bin1549> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin1549> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 16:01:07 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:01:09 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:01:09 2021
Terminated at Wed Sep 29 16:13:03 2021
Results reported at Wed Sep 29 16:13:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin1549 351.17 31.2573 640828801 641088001 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 :                                   693.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             346.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            716 sec.

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

