/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 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7402
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1083
RA = 346.922, Dec = 14.8644
tmin = 520041601, tmax = 520300801
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='669753', job_status='RUN', time_executed='2021-09-29 07:05:55.908001', time_epoch_executed='1632924355.91' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669753

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669753/ft1_4FGL_J2307.6+1451_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669753/ft2_4FGL_J2307.6+1451_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669753/ft1_4FGL_J2307.6+1451_daily_bin1083.fits outfile=/scratch/kocevski/669753/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1083.fits ra=346.922 dec=14.8644 rad=12.0 tmin=520041601.0 tmax=520300801.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.28
user 4.03
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/669753/ft2_4FGL_J2307.6+1451_daily_bin1083.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/669753/ft2_4FGL_J2307.6+1451_daily_bin1083.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/669753/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1083.fits evtable="EVENTS" outfile="/scratch/kocevski/669753/ft1_filtered_4FGL_J2307.6+1451_daily_bin1083.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669753/ft1_filtered_4FGL_J2307.6+1451_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/669753/ft2_4FGL_J2307.6+1451_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/669753/ltcube_520041601_520300801_4FGL_J2307.6+1451_daily_bin1083.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/669753/ft2_4FGL_J2307.6+1451_daily_bin1083.fits
.....................!
real 12.12
user 11.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669753/ft1_filtered_4FGL_J2307.6+1451_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/669753/ft2_4FGL_J2307.6+1451_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/669753/ltcube_520041601_520300801_4FGL_J2307.6+1451_daily_bin1083.fits outfile=/scratch/kocevski/669753/expmap_520041601_520300801_4FGL_J2307.6+1451_daily_bin1083.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/669753/ltcube_520041601_520300801_4FGL_J2307.6+1451_daily_bin1083.fits
.....................!
real 191.11
user 185.83
sys 4.26

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

Setting source of interest to:
4FGL J2307.6+1451 @ 346.922 14.8644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/669753/ft1_filtered_4FGL_J2307.6+1451_daily_bin1083.fits scfile=/scratch/kocevski/669753/ft2_4FGL_J2307.6+1451_daily_bin1083.fits outfile=/scratch/kocevski/669753/cmap_520041601_520300801_4FGL_J2307.6+1451_daily_bin1083.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=346.922 yref=14.8644 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669753/ft1_filtered_4FGL_J2307.6+1451_daily_bin1083.fits scfile=/scratch/kocevski/669753/ft2_4FGL_J2307.6+1451_daily_bin1083.fits outfile=/scratch/kocevski/669753/cmap_HighResolution_520041601_520300801_4FGL_J2307.6+1451_daily_bin1083.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=346.922 yref=14.8644 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.55
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/669753/ft1_filtered_4FGL_J2307.6+1451_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/669753/ft2_4FGL_J2307.6+1451_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/669753/Model_4FGL_J2307.6+1451_daily_bin1083.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/669753/ft1_filtered_4FGL_J2307.6+1451_daily_bin1083.fits.....................!
real 88.07
user 86.26
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/669753/ft1_filtered_4FGL_J2307.6+1451_daily_bin1083.fits', '/scratch/kocevski/669753/ft2_4FGL_J2307.6+1451_daily_bin1083.fits', expMap='/scratch/kocevski/669753/expmap_520041601_520300801_4FGL_J2307.6+1451_daily_bin1083.fits', expCube='/scratch/kocevski/669753/ltcube_520041601_520300801_4FGL_J2307.6+1451_daily_bin1083.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/669753/Model_4FGL_J2307.6+1451_daily_bin1083.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2307.6+1451'

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.115e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/669753/ft1_filtered_4FGL_J2307.6+1451_daily_bin1083.fits
Spacecraft file(s): /scratch/kocevski/669753/ft2_4FGL_J2307.6+1451_daily_bin1083.fits
Exposure map: /scratch/kocevski/669753/expmap_520041601_520300801_4FGL_J2307.6+1451_daily_bin1083.fits
Exposure cube: /scratch/kocevski/669753/ltcube_520041601_520300801_4FGL_J2307.6+1451_daily_bin1083.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/669753/Model_4FGL_J2307.6+1451_daily_bin1083.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) = 8391.77732048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56658E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .90469       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.803       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.912       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .94172       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.568       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.763       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .77853E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .87570E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1432       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .60779       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1050       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8391.751     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     3232 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    10.616       -.10287E-05** at limit **
   2  Prefactor     .10000E-03    6.9316       -.15269E-06** at limit **
   3  Prefactor     4.9385        .44582       -.49792E-08    .20535E-02
   4  Prefactor     .10000E-03    2.5254        .12034E-09** at limit **
   5  norm          .90432        .85219        .79816E-07    .51945E-03
   6  Prefactor     21.824        38.753        .30751E-05    .85589E-06
   7  Prefactor     11.911        9.5934       -.19743E-05    .54173E-05
   8  Prefactor     .10000E-03    10.585        .14348E-06** at limit **
   9  Prefactor     .94177        .20563       -.19702E-07    .86937E-03
  10  Prefactor     23.560        14.047       -.16154E-06    .10956E-04
  11  Prefactor     .10000E-03    72.063        .11602E-05** at limit **
  12  Prefactor     .10000E-03    5.0564       -.30154E-07** at limit **
  13  Prefactor     .10000E-03    4.7424       -.67881E-06** at limit **
  14  Prefactor     28.771        30.944       -.16435E-05    .11293E-04
  15  Prefactor     .10000E-03    5.5851       -.40245E-05** at limit **
  16  Prefactor     .10000E-03    5.6175        .39171E-05** at limit **
  17  Prefactor     .10000E-03    6.2952        .26526E-06** at limit **
  18  norm          .10000E-03    4.2862       -.23679E-07** at limit **
  19  Prefactor     .10001E-03    5.4248        .18800E-06** at limit **
  20  Prefactor     .10001E-03    18.511       -.68042E-06** at limit **
  21  norm          2.1384        25.660       -.23841E-05   -.11636E-03
  22  Prefactor     .10000E-03    2.6123       -.16262E-08** at limit **
  23  Normalizat    .60728        .23357        .60258E-06    .75858E-04
  24  Prefactor     1.1054        .12934        .23088E-06    .21349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 4.93854
  Prefactor  = 0.0001
  norm       = 0.90432
  Prefactor  = 21.8236
  Prefactor  = 11.9112
  Prefactor  = 0.0001
  Prefactor  = 0.941775
  Prefactor  = 23.5603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 28.7712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100007
  norm       = 2.13841
  Prefactor  = 0.0001
  Normalizat = 0.607275
  Prefactor  = 1.10541
 **********
 **   18 **HESSE 
 **********

 FCN=   8391.751     FROM HESSE     STATUS=OK           409 CALLS     3641 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    54.585        .56607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9385        .43724        .17145E-04   -1.5263    
   4  Prefactor     .10000E-03    2.5301        .14216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .90432        .90856        .80095E-03   -1.5518    
   6  Prefactor     21.824        38.796        .85781E-04   -1.4773    
   7  Prefactor     11.911        9.5956        .11607E-03   -1.5018    
   8  Prefactor     .10000E-03    10.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .94177        .20600        .17741E-04   -1.5514    
  10  Prefactor     23.560        14.048        .82511E-04   -1.4737    
  11  Prefactor     .10000E-03    74.091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.331        .38515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.771        30.892        .74702E-04   -1.4635    
  15  Prefactor     .10000E-03    5.6116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.5961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.3067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    37.795        .39155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    20.511        .11059       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1384        26.370        .28152E-03   -1.5415    
  22  Prefactor     .10000E-03    2.6286        .14459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .60728        .24890        .45039E-03   -1.0768    
  24  Prefactor     1.1054        .14300        .20031E-03   -.89294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38684e-09
Minuit parameter uncertainties:
  1  0.00302235
  2  1.03705e-06
  3  0.437243
  4  2.63422e-07
  5  0.908576
  6  38.8406
  7  9.59688
  8  5.25185e-06
  9  0.205997
  10  14.0498
  11  0.000107279
  12  9.34613e-07
  13  0.000511766
  14  30.9093
  15  1.71743e-05
  16  7.13749e-06
  17  2.21179e-06
  18  4.98883e-06
  19  0.00104691
  20  0.000773588
  21  15.0265
  22  7.79166e-07
  23  0.249362
  24  0.143052
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  9.346e-07  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.105e+00  1.431e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  6.073e-01  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 346.922 14.864
Photon Flux Upper Limit: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/669753/likelihoodResults_520041601_520300801_4FGL_J2307.6+1451_daily_bin1083.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) = 8391.75189361
delta logL = -0.000926779046495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8391.75096683
delta logL = 9.52968548518e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1666       1.0000          .0000       10.000    
     3 'Normalizat'    .60728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8391.751     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.927        .90712E-02** at limit **
   2  Index         2.1499        7.0368        .50000        .25365E-04
   3  Normalizat    .60728        .14925E-01    .10158        .94611E-04
   4  Prefactor     1.1054        .87963E-02    .37384E-01    .90047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14994
  Normalizat = 0.607276
  Prefactor  = 1.10541
 **********
 **   18 **HESSE 
 **********

 FCN=   8391.751     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1499        5.4550        .50000       -.60652    
   3  Normalizat    .60728        .23843        .45039E-03   -1.0768    
   4  Prefactor     1.1054        .14123        .20031E-03   -.89294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56695e-09
Minuit parameter uncertainties:
  1  9.9657e-05
  2  6.91801
  3  0.238837
  4  0.141282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669753': 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): 0
logL (Free Index) = 8391.75096661
delta logL = 2.19810317503e-07

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  9.966e-05  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.150e+00  6.918e+00  0.000e+00  1.000e+01 (-1.000e+00)
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.105e+00  1.413e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  6.073e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.922 14.864

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/669753/cmap_HighResolution_520041601_520300801_4FGL_J2307.6+1451_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-09-29 07:20:44.843529', job_id='669753', GAL2='1.11', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632925244.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1083' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:20:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 669753: <4FGL_J2307.6+1451_daily_bin1083> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1083> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:05:41 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:05:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 07:05:43 2021
Terminated at Wed Sep 29 07:20:45 2021
Results reported at Wed Sep 29 07:20:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1083 346.922 14.8644 520041601 520300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2307.6+1451 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   855.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             303.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

