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


Performing analysis on: 4FGL_J2307.6+1451_monthly_bin157
RA = 346.922, Dec = 14.8644
tmin = 643939201, tmax = 646531201
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='631089', job_status='RUN', time_executed='2021-11-08 06:40:34.799511', time_epoch_executed='1636382434.8' WHERE source_name='4FGL J2307.6+1451' and cadence='monthly' and bin_id='157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631089

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631089/ft1_4FGL_J2307.6+1451_monthly_bin157.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631089/ft2_4FGL_J2307.6+1451_monthly_bin157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631089/ft1_4FGL_J2307.6+1451_monthly_bin157.fits outfile=/scratch/kocevski/631089/ft1_filteredMKT_4FGL_J2307.6+1451_monthly_bin157.fits ra=346.922 dec=14.8644 rad=12.0 tmin=643939201.0 tmax=646531201.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 28.00
user 27.28
sys 0.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/631089/ft2_4FGL_J2307.6+1451_monthly_bin157.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/631089/ft1_filteredMKT_4FGL_J2307.6+1451_monthly_bin157.fits evtable="EVENTS" outfile="/scratch/kocevski/631089/ft1_filtered_4FGL_J2307.6+1451_monthly_bin157.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.83
user 0.64
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631089/ft1_filtered_4FGL_J2307.6+1451_monthly_bin157.fits" evtable="EVENTS" scfile=/scratch/kocevski/631089/ft2_4FGL_J2307.6+1451_monthly_bin157.fits sctable="SC_DATA" outfile=/scratch/kocevski/631089/ltcube_643939201_646531201_4FGL_J2307.6+1451_monthly_bin157.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/631089/ft2_4FGL_J2307.6+1451_monthly_bin157.fits
.....................!
real 109.35
user 108.75
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631089/ft1_filtered_4FGL_J2307.6+1451_monthly_bin157.fits evtable="EVENTS" scfile=/scratch/kocevski/631089/ft2_4FGL_J2307.6+1451_monthly_bin157.fits sctable="SC_DATA" expcube=/scratch/kocevski/631089/ltcube_643939201_646531201_4FGL_J2307.6+1451_monthly_bin157.fits outfile=/scratch/kocevski/631089/expmap_643939201_646531201_4FGL_J2307.6+1451_monthly_bin157.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/631089/ltcube_643939201_646531201_4FGL_J2307.6+1451_monthly_bin157.fits
.....................!
real 192.24
user 186.47
sys 5.41

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/631089/ft1_filtered_4FGL_J2307.6+1451_monthly_bin157.fits scfile=/scratch/kocevski/631089/ft2_4FGL_J2307.6+1451_monthly_bin157.fits outfile=/scratch/kocevski/631089/cmap_643939201_646531201_4FGL_J2307.6+1451_monthly_bin157.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.77
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631089/ft1_filtered_4FGL_J2307.6+1451_monthly_bin157.fits scfile=/scratch/kocevski/631089/ft2_4FGL_J2307.6+1451_monthly_bin157.fits outfile=/scratch/kocevski/631089/cmap_HighResolution_643939201_646531201_4FGL_J2307.6+1451_monthly_bin157.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.77
user 0.61
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1333       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .31410       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2174       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1475       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.161       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1530       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10995E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .48543       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0518       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1800       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8749       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1866       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3782       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.103       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8834       1.0000         .10000E-03   10000.    
    21 'norm      '    5.5051       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4718       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91753       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0171       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.

 FCN=   99766.32     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2353 TOTAL
                     EDM=   .29E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1407         .0000    ** at limit **
   2  Prefactor     1.1356        2.3276         .0000        .15917    
   3  Prefactor     .31407        .44476E-01     .0000        .93378E-02
   4  Prefactor     2.2177        1.3547         .0000        .76893E-02
   5  norm          3.1478        .47546         .0000       -.86449E-03
   6  Prefactor     12.154        4.7704         .0000       -.10388E-04
   7  Prefactor     8.1534        2.5910         .0000        .21377E-01
   8  Prefactor     .10001E-03    3.5008         .0000    ** at limit **
   9  Prefactor     .48540        .40863E-01     .0000        .45853E-02
  10  Prefactor     3.0518        1.9739         .0000        .66465E-01
  11  Prefactor     6.1883        6.7926         .0000       -.60977E-02
  12  Prefactor     .10000E-03    .47188         .0000    ** at limit **
  13  Prefactor     .10000E-03    1.1720         .0000    ** at limit **
  14  Prefactor     3.8729        3.4865         .0000        .10980E-01
  15  Prefactor     1.1881        1.5288         .0000        .46575    
  16  Prefactor     4.3764        2.1888         .0000        .42513E-02
  17  Prefactor     .10001E-03    3.1031         .0000    ** at limit **
  18  norm          14.109        2.6996         .0000        .28303E-02
  19  Prefactor     .10000E-03    .36664         .0000    ** at limit **
  20  Prefactor     5.8885        5.4503         .0000        .10761E-01
  21  norm          5.5033        2.4587         .0000        .90891E-02
  22  Prefactor     1.4712        1.0018         .0000        .31213E-02
  23  Normalizat    .91753        .55378E-01     .0000        .23787E-03
  24  Prefactor     1.0170        .31387E-01     .0000        .14715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 1.13562
  Prefactor  = 0.314071
  Prefactor  = 2.21775
  norm       = 3.14784
  Prefactor  = 12.1539
  Prefactor  = 8.15342
  Prefactor  = 0.000100008
  Prefactor  = 0.485399
  Prefactor  = 3.05182
  Prefactor  = 6.18826
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 3.87292
  Prefactor  = 1.18808
  Prefactor  = 4.37645
  Prefactor  = 0.000100005
  norm       = 14.1087
  Prefactor  = 0.0001
  Prefactor  = 5.88846
  norm       = 5.50333
  Prefactor  = 1.47122
  Normalizat = 0.917528
  Prefactor  = 1.01704
 **********
 **   18 **HESSE 
 **********

 FCN=   99766.32     FROM HESSE     STATUS=OK           409 CALLS     2762 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1356        2.2993        .21913E-02   -1.5495    
   3  Prefactor     .31407        .43703E-01    .23904E-04   -1.5596    
   4  Prefactor     2.2177        1.3506        .27618E-03   -1.5410    
   5  norm          3.1478        .47542        .81169E-04   -1.5353    
   6  Prefactor     12.154        4.7725        .11487E-03   -1.5011    
   7  Prefactor     8.1534        2.5875        .70205E-03   -1.5137    
   8  Prefactor     .10001E-03    3.6633        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .48540        .40703E-01    .17450E-04   -1.5569    
  10  Prefactor     3.0518        1.9702        .11612E-02   -1.5359    
  11  Prefactor     6.1883        6.7900        .16149E-03   -1.5210    
  12  Prefactor     .10000E-03    .49196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8729        3.4858        .10249E-02   -1.5314    
  15  Prefactor     1.1881        1.5276        .20523E-02   -1.5490    
  16  Prefactor     4.3764        2.1783        .19249E-03   -1.5290    
  17  Prefactor     .10001E-03    3.2209        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.109        2.5461        .10666E-03   -1.4957    
  19  Prefactor     .10000E-03    1.5257        .34201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.8885        5.4335        .82781E-03   -1.5223    
  21  norm          5.5033        2.4579        .85622E-03   -1.5239    
  22  Prefactor     1.4712        1.0006        .25355E-03   -1.5465    
  23  Normalizat    .91753        .63727E-01    .32432E-03   -.95847    
  24  Prefactor     1.0170        .36683E-01    .18517E-03   -.92164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77832e-08
Minuit parameter uncertainties:
  1  0.000123957
  2  2.29949
  3  0.0437035
  4  1.35061
  5  0.475417
  6  4.77268
  7  2.58753
  8  0.000351489
  9  0.0407034
  10  1.97025
  11  6.79083
  12  1.35951e-06
  13  0.000142599
  14  3.48595
  15  1.52765
  16  2.17838
  17  0.000263575
  18  2.54614
  19  5.26515e-05
  20  5.434
  21  2.45792
  22  1.00058
  23  0.0637318
  24  0.036684
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  1.360e-06  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.017e+00  3.668e-02  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:  9.175e-01  6.373e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/631089/likelihoodResults_643939201_646531201_4FGL_J2307.6+1451_monthly_bin157.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) = 99766.3340226
delta logL = -0.0097095733945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 99766.3243133
delta logL = -3.24682332575e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2009       1.0000          .0000       10.000    
     3 'Normalizat'    .91762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0170       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   99765.53     FROM MIGRAD    STATUS=FAILED       175 CALLS      331 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-02    .35053E-01    .61428E-04** at limit **
   2  Index         5.3844        3.6239        .12117E-01    .11607E-01
   3  Normalizat    .89405        .66520E-01    .32812E-03   -.41123E-02
   4  Prefactor     1.0253        .37158E-01    .18450E-03   -.52787E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   99765.53     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      416 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-02    .35053E-01    .11774E-04** at limit **
   2  Index         5.3844        3.6239        .23165E-02    .11607E-01
   3  Normalizat    .89405        .66520E-01    .41006E-04   -.41123E-02
   4  Prefactor     1.0253        .37158E-01    .11930E-04   -.52787E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   99765.53     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      447 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-02    .26182E-01    .12286E-04** at limit **
   2  Index         5.3844        3.2132        .24235E-02   -.43158E-04
   3  Normalizat    .89405        .63433E-01    .13125E-04   -.17158E-02
   4  Prefactor     1.0253        .37179E-01    .36900E-04   -.23790E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00100382
  Index      = 5.38435
  Normalizat = 0.894049
  Prefactor  = 1.02531
 **********
 **   18 **HESSE 
 **********

 FCN=   99765.53     FROM HESSE     STATUS=OK            27 CALLS      474 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10038E-02    .12857E-01    .49143E-06   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.3844        2.3446        .96940E-04    .76946E-01
   3  Normalizat    .89405        .63201E-01    .26250E-05   -.96670    
   4  Prefactor     1.0253        .37015E-01    .73800E-05   -.91891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31527e-10
Minuit parameter uncertainties:
  1  0.00681768
  2  2.44098
  3  0.0632062
  4  0.0370163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631089': 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) = 99765.5338212
delta logL = 0.790491835156

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.004e-03  6.818e-03  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  5.384e+00  2.441e+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.025e+00  3.702e-02  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:  8.940e-01  6.321e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 346.922 14.864
Photon Index (Free Index): 5.38 +/- 2.44
Photon Flux (Free Index): 1.92e-08 +/- 2.56e-07
Energy Flux (Free Index): 2.48e-06 +/- 3.27e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/631089/cmap_HighResolution_643939201_646531201_4FGL_J2307.6+1451_monthly_bin157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-04', comment='SUCCESS', energy_flux2='2.48e-06', dlogl='7.90e-01', photon_flux2='1.92e-08', job_status='DONE', time_completed='2021-11-08 08:23:39.600448', photon_index_error2='2.44', photon_index2='5.38', ts='-0.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.04e-08', energy_flux_error2='3.27e-05', EG='0.92', time_epoch_completed='1636388619.6', return_code='0', job_id='631089', GAL2='1.03', EG2='0.89', return_code2='0', photon_flux_error2='2.56e-07', ts2='1.71', photon_index='2.18' WHERE bin_id='157' AND source_name='4FGL J2307.6+1451' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Nov  8 08:23:39 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 631089: <4FGL_J2307.6+1451_monthly_bin157> in cluster <slac> Done

Job <4FGL_J2307.6+1451_monthly_bin157> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Nov  8 06:40:23 2021
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov  8 06:40:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov  8 06:40:25 2021
Terminated at Mon Nov  8 08:23:40 2021
Results reported at Mon Nov  8 08:23:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_monthly_bin157 346.922 14.8644 643939201 646531201 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 :                                   6105.91 sec.
    Max Memory :                                 650 MB
    Average Memory :                             435.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2951 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   6195 sec.
    Turnaround time :                            6197 sec.

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

