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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin453
RA = 346.922, Dec = 14.8644
tmin = 356745601, tmax = 357004801
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='666536', job_status='RUN', time_executed='2021-09-29 06:55:42.432170', time_epoch_executed='1632923742.43' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666536

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666536/ft1_4FGL_J2307.6+1451_daily_bin453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666536/ft2_4FGL_J2307.6+1451_daily_bin453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666536/ft1_4FGL_J2307.6+1451_daily_bin453.fits outfile=/scratch/kocevski/666536/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin453.fits ra=346.922 dec=14.8644 rad=12.0 tmin=356745601.0 tmax=357004801.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.54
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/666536/ft2_4FGL_J2307.6+1451_daily_bin453.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/666536/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin453.fits evtable="EVENTS" outfile="/scratch/kocevski/666536/ft1_filtered_4FGL_J2307.6+1451_daily_bin453.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666536/ft1_filtered_4FGL_J2307.6+1451_daily_bin453.fits" evtable="EVENTS" scfile=/scratch/kocevski/666536/ft2_4FGL_J2307.6+1451_daily_bin453.fits sctable="SC_DATA" outfile=/scratch/kocevski/666536/ltcube_356745601_357004801_4FGL_J2307.6+1451_daily_bin453.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/666536/ft2_4FGL_J2307.6+1451_daily_bin453.fits
.....................!
real 11.96
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666536/ft1_filtered_4FGL_J2307.6+1451_daily_bin453.fits evtable="EVENTS" scfile=/scratch/kocevski/666536/ft2_4FGL_J2307.6+1451_daily_bin453.fits sctable="SC_DATA" expcube=/scratch/kocevski/666536/ltcube_356745601_357004801_4FGL_J2307.6+1451_daily_bin453.fits outfile=/scratch/kocevski/666536/expmap_356745601_357004801_4FGL_J2307.6+1451_daily_bin453.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/666536/ltcube_356745601_357004801_4FGL_J2307.6+1451_daily_bin453.fits
.....................!
real 190.66
user 185.48
sys 4.81

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/666536/ft1_filtered_4FGL_J2307.6+1451_daily_bin453.fits scfile=/scratch/kocevski/666536/ft2_4FGL_J2307.6+1451_daily_bin453.fits outfile=/scratch/kocevski/666536/cmap_356745601_357004801_4FGL_J2307.6+1451_daily_bin453.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666536/ft1_filtered_4FGL_J2307.6+1451_daily_bin453.fits scfile=/scratch/kocevski/666536/ft2_4FGL_J2307.6+1451_daily_bin453.fits outfile=/scratch/kocevski/666536/cmap_HighResolution_356745601_357004801_4FGL_J2307.6+1451_daily_bin453.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83776       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8286       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7259       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4729       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9363       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.479       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.797       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .61214E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.648       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18011E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7694       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .15266E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.974       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .88612E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    6.8303       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1448       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87179       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8471.541     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     2815 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83235        76.820        .33311E-04   -.11703E-03
   2  Prefactor     8.8286        2.3477        .13198E-05    .64542E-03
   3  Prefactor     2.7262        .34298       -.19084E-06   -.22690E-02
   4  Prefactor     5.4714        7.7706        .11272E-04    .40496E-04
   5  norm          2.9361        1.6400        .63642E-07    .16964E-03
   6  Prefactor     24.474        3.6255       -.10796E-05    .14358E-02
   7  Prefactor     .10000E-03    3.0918       -.41598E-07** at limit **
   8  Prefactor     25.791        17.264       -.70657E-05    .20867E-03
   9  Prefactor     .61254E-01    .10259        .19973E-06   -.24196E-02
  10  Prefactor     25.647        4.4666       -.21128E-05   -.19326E-02
  11  Prefactor     .10000E-03    441.07        .17263E-04** at limit **
  12  Prefactor     3.7661        6.3811        .58810E-06    .13157E-03
  13  Prefactor     .10000E-03    22.669       -.39145E-06** at limit **
  14  Prefactor     .10000E-03    8.8408        .39537E-07** at limit **
  15  Prefactor     .10000E-03    4.6431       -.32798E-07** at limit **
  16  Prefactor     .10000E-03    3.9762       -.23591E-07** at limit **
  17  Prefactor     .10000E-03    10.978       -.12088E-06** at limit **
  18  norm          .10000E-03    24.373        .90188E-06** at limit **
  19  Prefactor     12.967        8.0387       -.87124E-06   -.38995E-03
  20  Prefactor     .10009E-03    1243.8       -.19392E-04** at limit **
  21  norm          6.8285        1.4454       -.10201E-05   -.30203E-03
  22  Prefactor     .10000E-03    2.5143       -.34252E-07** at limit **
  23  Normalizat    1.1448        .23420       -.36941E-06   -.82505E-03
  24  Prefactor     .87190        .13134       -.10103E-05   -.89179E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.83235
  Prefactor  = 8.82863
  Prefactor  = 2.72616
  Prefactor  = 5.47144
  norm       = 2.93614
  Prefactor  = 24.4737
  Prefactor  = 0.0001
  Prefactor  = 25.7913
  Prefactor  = 0.0612543
  Prefactor  = 25.6467
  Prefactor  = 0.000100005
  Prefactor  = 3.76609
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 12.9672
  Prefactor  = 0.000100095
  norm       = 6.82849
  Prefactor  = 0.0001
  Normalizat = 1.14477
  Prefactor  = 0.871896
 **********
 **   18 **HESSE 
 **********

 FCN=   8471.541     FROM HESSE     STATUS=OK           469 CALLS     3284 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83235        11.078        .12580       -1.5526    
   2  Prefactor     8.8286        12.642        .33725E-02   -1.5114    
   3  Prefactor     2.7262        .34795        .39290E-02   -1.5378    
   4  Prefactor     5.4714        7.7644        .42939E-02   -1.5240    
   5  norm          2.9361        1.6427        .59260E-02   -1.5365    
   6  Prefactor     24.474        35.478        .20241E-02   -1.4718    
   7  Prefactor     .10000E-03    3.0882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.791        17.772        .19718E-02   -1.4692    
   9  Prefactor     .61254E-01    .11135        .81239E-02   -1.5659    
  10  Prefactor     25.647        13.747        .19775E-02   -1.4695    
  11  Prefactor     .10000E-03    40.061        .13238       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7661        6.4281        .51985E-02   -1.5320    
  13  Prefactor     .10000E-03    22.286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8336        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9721        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.2501        .10228       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.967        8.9706        .27801E-02   -1.4988    
  20  Prefactor     .10009E-03    19.332        .12287       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.8285        13.550        .38380E-02   -1.5185    
  22  Prefactor     .10000E-03    2.5065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1448        .20742        .73398E-01   -.88327    
  24  Prefactor     .87190        .11225        .44644E-01   -.97130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56059e-08
Minuit parameter uncertainties:
  1  6.07421
  2  12.6462
  3  0.347949
  4  7.76579
  5  1.64273
  6  35.5082
  7  1.00731e-05
  8  17.776
  9  0.111348
  10  13.7487
  11  0.000870232
  12  6.42924
  13  0.000456852
  14  1.73134e-05
  15  1.69567e-05
  16  1.4835e-05
  17  0.000104248
  18  0.000185366
  19  8.97156
  20  0.00270522
  21  13.5556
  22  9.44671e-06
  23  0.20757
  24  0.112276
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  3.766e+00  6.429e+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.719e-01  1.123e-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.145e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/666536/likelihoodResults_356745601_357004801_4FGL_J2307.6+1451_daily_bin453.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) = 8471.51445547
delta logL = 0.0260877893979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8471.49997254
delta logL = 0.0405707202299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1558       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9098       1.0000          .0000       10.000    
     3 'Normalizat'    1.1525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86858       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8471.500     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      256 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1600        8.8930        .88526E-03   -.12611E-04
   2  Index         1.9101        .88134        .10165E-01    .95849E-05
   3  Normalizat    1.1528        .22506        .32383E-03    .66000E-04
   4  Prefactor     .86839        .12951        .20949E-03    .61865E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.15996
  Index      = 1.91013
  Normalizat = 1.15279
  Prefactor  = 0.868394
 **********
 **   18 **HESSE 
 **********

 FCN=   8471.500     FROM HESSE     STATUS=OK            27 CALLS      283 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1600        8.6373        .35410E-04   -1.5254    
   2  Index         1.9101        .85628        .40659E-03   -.66616    
   3  Normalizat    1.1528        .22506        .12953E-04   -.88075    
   4  Prefactor     .86839        .12956        .83798E-05   -.97254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09544e-11
Minuit parameter uncertainties:
  1  8.63936
  2  0.863204
  3  0.225249
  4  0.129602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666536': 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) = 8471.49997135
delta logL = 0.0405719091868

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  5.160e+00  8.639e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  1.910e+00  8.632e-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.684e-01  1.296e-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.153e+00  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/666536/cmap_HighResolution_356745601_357004801_4FGL_J2307.6+1451_daily_bin453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.57e-03', job_status='DONE', photon_flux_upper_limit='9.94e-08', time_completed='2021-09-29 07:09:22.478662', job_id='666536', GAL2='0.87', fit_tolerance='1e-08', EG2='1.15', EG='1.14', time_epoch_completed='1632924562.48', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.06e-02', ts2='0.51', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='453' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:09:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 666536: <4FGL_J2307.6+1451_daily_bin453> in cluster <slac> Done

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

Your job looked like:

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

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

