/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 1 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_bin940
RA = 346.922, Dec = 14.8644
tmin = 482976001, tmax = 483235201
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='669547', job_status='RUN', time_executed='2021-09-29 07:05:37.426446', time_epoch_executed='1632924337.43' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669547

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669547/ft1_4FGL_J2307.6+1451_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669547/ft2_4FGL_J2307.6+1451_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669547/ft1_4FGL_J2307.6+1451_daily_bin940.fits outfile=/scratch/kocevski/669547/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin940.fits ra=346.922 dec=14.8644 rad=12.0 tmin=482976001.0 tmax=483235201.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 6.19
user 4.03
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669547/ft1_filtered_4FGL_J2307.6+1451_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/669547/ft2_4FGL_J2307.6+1451_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/669547/ltcube_482976001_483235201_4FGL_J2307.6+1451_daily_bin940.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/669547/ft2_4FGL_J2307.6+1451_daily_bin940.fits
.....................!
real 11.60
user 11.28
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669547/ft1_filtered_4FGL_J2307.6+1451_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/669547/ft2_4FGL_J2307.6+1451_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/669547/ltcube_482976001_483235201_4FGL_J2307.6+1451_daily_bin940.fits outfile=/scratch/kocevski/669547/expmap_482976001_483235201_4FGL_J2307.6+1451_daily_bin940.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/669547/ltcube_482976001_483235201_4FGL_J2307.6+1451_daily_bin940.fits
.....................!
real 190.24
user 185.74
sys 4.14

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/669547/ft1_filtered_4FGL_J2307.6+1451_daily_bin940.fits scfile=/scratch/kocevski/669547/ft2_4FGL_J2307.6+1451_daily_bin940.fits outfile=/scratch/kocevski/669547/cmap_482976001_483235201_4FGL_J2307.6+1451_daily_bin940.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669547/ft1_filtered_4FGL_J2307.6+1451_daily_bin940.fits scfile=/scratch/kocevski/669547/ft2_4FGL_J2307.6+1451_daily_bin940.fits outfile=/scratch/kocevski/669547/cmap_HighResolution_482976001_483235201_4FGL_J2307.6+1451_daily_bin940.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.53
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/669547/ft1_filtered_4FGL_J2307.6+1451_daily_bin940.fits', '/scratch/kocevski/669547/ft2_4FGL_J2307.6+1451_daily_bin940.fits', expMap='/scratch/kocevski/669547/expmap_482976001_483235201_4FGL_J2307.6+1451_daily_bin940.fits', expCube='/scratch/kocevski/669547/ltcube_482976001_483235201_4FGL_J2307.6+1451_daily_bin940.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/669547/Model_4FGL_J2307.6+1451_daily_bin940.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/669547/ft1_filtered_4FGL_J2307.6+1451_daily_bin940.fits
Spacecraft file(s): /scratch/kocevski/669547/ft2_4FGL_J2307.6+1451_daily_bin940.fits
Exposure map: /scratch/kocevski/669547/expmap_482976001_483235201_4FGL_J2307.6+1451_daily_bin940.fits
Exposure cube: /scratch/kocevski/669547/ltcube_482976001_483235201_4FGL_J2307.6+1451_daily_bin940.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/669547/Model_4FGL_J2307.6+1451_daily_bin940.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) = 8897.14388581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.654       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4875       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8061       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0297       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.599       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 '    1.4756       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6061       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8277       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1770       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .13207E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2466       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86182       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=   8897.138     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2720 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.654        21.081        .21250E-06   -.10015E-04
   2  Prefactor     1.4848        15.196       -.31601E-05   -.33785E-03
   3  Prefactor     3.1107        .38904       -.25697E-07    .36199E-03
   4  Prefactor     8.8058        7.9064       -.12515E-06   -.49759E-04
   5  norm          1.0291        1.6539       -.40775E-06   -.17275E-02
   6  Prefactor     20.598        30.185       -.24337E-05   -.33415E-05
   7  Prefactor     .10000E-03    3.2525        .18365E-07** at limit **
   8  Prefactor     .10000E-03    7.0199        .46916E-05** at limit **
   9  Prefactor     1.4756        .23123       -.13092E-07    .32332E-03
  10  Prefactor     2.6052        9.2130       -.17374E-05   -.23466E-03
  11  Prefactor     .10000E-03    14.381        .11255E-04** at limit **
  12  Prefactor     1.8276        3.9299       -.15212E-05   -.73730E-03
  13  Prefactor     .10000E-03    4.2617       -.10714E-05** at limit **
  14  Prefactor     .10000E-03    9.1475       -.53039E-05** at limit **
  15  Prefactor     .10000E-03    3.8662        .52079E-06** at limit **
  16  Prefactor     5.1615        12.345       -.71758E-05    .13259E-03
  17  Prefactor     .10000E-03    4.3247       -.11602E-06** at limit **
  18  norm          .10001E-03    17.082       -.79602E-05** at limit **
  19  Prefactor     .10000E-03    9.4610       -.27034E-05** at limit **
  20  Prefactor     .10000E-03    11.109        .63696E-05** at limit **
  21  norm          .10000E-03    10.009       -.36593E-06** at limit **
  22  Prefactor     .10000E-03    7.5581       -.26078E-05** at limit **
  23  Normalizat    1.2465        .21086        .18211E-05    .23372E-03
  24  Prefactor     .86190        .11788        .47566E-06    .34179E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.6545
  Prefactor  = 1.48482
  Prefactor  = 3.11066
  Prefactor  = 8.80579
  norm       = 1.02914
  Prefactor  = 20.5981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.47562
  Prefactor  = 2.60516
  Prefactor  = 0.0001
  Prefactor  = 1.82756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.16151
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24645
  Prefactor  = 0.861903
 **********
 **   18 **HESSE 
 **********

 FCN=   8897.138     FROM HESSE     STATUS=OK           395 CALLS     3115 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.654        21.190        .73574E-04   -1.4618    
   2  Prefactor     1.4848        15.708        .35163E-03   -1.5464    
   3  Prefactor     3.1107        .39189        .19037E-04   -1.5355    
   4  Prefactor     8.8058        7.9164        .13507E-03   -1.5114    
   5  norm          1.0291        1.4978        .15030E-02   -1.5505    
   6  Prefactor     20.598        30.273        .88249E-04   -1.4800    
   7  Prefactor     .10000E-03    3.2573        .16608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4756        .23210        .16665E-04   -1.5465    
  10  Prefactor     2.6052        9.2686        .25270E-03   -1.5385    
  11  Prefactor     .10000E-03    14.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8276        3.9552        .26961E-03   -1.5438    
  13  Prefactor     .10000E-03    4.2673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.1323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9270        .18098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1615        12.236        .17668E-03   -1.5254    
  17  Prefactor     .10000E-03    4.3267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    16.800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.6475        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    10.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.6557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2465        .25046        .33723E-03   -.85179    
  24  Prefactor     .86190        .14035        .22413E-03   -.97485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55977e-09
Minuit parameter uncertainties:
  1  21.1953
  2  9.66175
  3  0.391891
  4  7.91739
  5  1.49783
  6  30.2956
  7  2.51604e-06
  8  5.22967e-07
  9  0.232099
  10  9.27368
  11  1.13187e-05
  12  3.95574
  13  3.6248e-06
  14  5.37753e-06
  15  1.22355e-05
  16  12.2416
  17  2.86448e-06
  18  0.000635809
  19  0.000116696
  20  6.65634e-05
  21  8.36461e-06
  22  1.54419e-05
  23  0.250703
  24  0.14041
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.828e+00  3.956e+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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.619e-01  1.404e-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:  1.246e+00  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/669547/likelihoodResults_482976001_483235201_4FGL_J2307.6+1451_daily_bin940.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8897.06081378
delta logL = 0.0774078029663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8897.03382952
delta logL = 0.104392062469

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8897.034     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      261 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9681        5.3263        .23568E-03    .68305E-04
   2  Index         1.6969        .93777        .10606E-01    .41625E-04
   3  Normalizat    1.2521        .24270        .33661E-03   -.44515E-04
   4  Prefactor     .85938        .13795        .22440E-03   -.93826E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.96812
  Index      = 1.69693
  Normalizat = 1.25208
  Prefactor  = 0.859384
 **********
 **   18 **HESSE 
 **********

 FCN=   8897.034     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9681        5.3063        .94272E-05   -1.5363    
   2  Index         1.6969        .93454        .42423E-03   -.72164    
   3  Normalizat    1.2521        .24295        .13464E-04   -.85008    
   4  Prefactor     .85938        .13809        .89761E-05   -.97575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15459e-10
Minuit parameter uncertainties:
  1  5.30711
  2  0.94447
  3  0.243168
  4  0.138151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669547': 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) = 8897.03382949
delta logL = 0.104392094045

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  2.968e+00  5.307e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  1.697e+00  9.445e-01  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:  8.594e-01  1.382e-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:  1.252e+00  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/669547/cmap_HighResolution_482976001_483235201_4FGL_J2307.6+1451_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', job_status='DONE', photon_flux_upper_limit='7.96e-08', time_completed='2021-09-29 07:19:22.983743', job_id='669547', GAL2='0.86', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1632925162.98', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.04e-01', ts2='0.51', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='940' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:19:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 669547: <4FGL_J2307.6+1451_daily_bin940> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin940> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:05:26 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:05:27 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:27 2021
Terminated at Wed Sep 29 07:19:23 2021
Results reported at Wed Sep 29 07:19:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin940 346.922 14.8644 482976001 483235201 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 :                                   818.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            837 sec.

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

