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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1539
RA = 346.922, Dec = 14.8644
tmin = 638236801, tmax = 638496001
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='672613', job_status='RUN', time_executed='2021-09-29 07:19:09.823334', time_epoch_executed='1632925149.82' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672613

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672613/ft1_4FGL_J2307.6+1451_daily_bin1539.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672613/ft2_4FGL_J2307.6+1451_daily_bin1539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/672613/ft1_4FGL_J2307.6+1451_daily_bin1539.fits outfile=/scratch/kocevski/672613/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1539.fits ra=346.922 dec=14.8644 rad=12.0 tmin=638236801.0 tmax=638496001.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.64
user 3.44
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/672613/ft2_4FGL_J2307.6+1451_daily_bin1539.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/672613/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1539.fits evtable="EVENTS" outfile="/scratch/kocevski/672613/ft1_filtered_4FGL_J2307.6+1451_daily_bin1539.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/672613/ft1_filtered_4FGL_J2307.6+1451_daily_bin1539.fits" evtable="EVENTS" scfile=/scratch/kocevski/672613/ft2_4FGL_J2307.6+1451_daily_bin1539.fits sctable="SC_DATA" outfile=/scratch/kocevski/672613/ltcube_638236801_638496001_4FGL_J2307.6+1451_daily_bin1539.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/672613/ft2_4FGL_J2307.6+1451_daily_bin1539.fits
.....................!
real 11.94
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672613/ft1_filtered_4FGL_J2307.6+1451_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/672613/ft2_4FGL_J2307.6+1451_daily_bin1539.fits sctable="SC_DATA" expcube=/scratch/kocevski/672613/ltcube_638236801_638496001_4FGL_J2307.6+1451_daily_bin1539.fits outfile=/scratch/kocevski/672613/expmap_638236801_638496001_4FGL_J2307.6+1451_daily_bin1539.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/672613/ltcube_638236801_638496001_4FGL_J2307.6+1451_daily_bin1539.fits
.....................!
real 191.70
user 185.00
sys 6.34

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/672613/ft1_filtered_4FGL_J2307.6+1451_daily_bin1539.fits scfile=/scratch/kocevski/672613/ft2_4FGL_J2307.6+1451_daily_bin1539.fits outfile=/scratch/kocevski/672613/cmap_638236801_638496001_4FGL_J2307.6+1451_daily_bin1539.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/672613/ft1_filtered_4FGL_J2307.6+1451_daily_bin1539.fits scfile=/scratch/kocevski/672613/ft2_4FGL_J2307.6+1451_daily_bin1539.fits outfile=/scratch/kocevski/672613/cmap_HighResolution_638236801_638496001_4FGL_J2307.6+1451_daily_bin1539.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14440E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.185       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41050       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1974       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4930       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44475E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .46353       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5163       1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.340       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0530       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.708       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    19.343       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6654       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92801       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97958       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=   6809.850     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2729 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    10.041       -.15214E-05** at limit **
   2  Prefactor     11.186        14.517        .38037E-07   -.35148E-04
   3  Prefactor     .41044        .20310       -.15337E-08    .20221E-02
   4  Prefactor     4.1971        5.3027        .88491E-06   -.99876E-03
   5  norm          2.4929        1.6072       -.10601E-07   -.25958E-03
   6  Prefactor     .10000E-03    17.256        .43470E-06** at limit **
   7  Prefactor     .10008E-03    7.1301        .96354E-06** at limit **
   8  Prefactor     .10000E-03    10.201        .13348E-06** at limit **
   9  Prefactor     .46356        .15190       -.71232E-08   -.94427E-03
  10  Prefactor     4.5163        6.3324        .53877E-06   -.61888E-03
  11  Prefactor     51.337        43.464       -.16780E-05   -.95459E-04
  12  Prefactor     .10000E-03    2.0624        .93662E-08** at limit **
  13  Prefactor     .10000E-03    2.9887       -.13977E-06** at limit **
  14  Prefactor     .10000E-03    10.596       -.35552E-05** at limit **
  15  Prefactor     7.0529        5.8784        .35855E-06   -.11642E-02
  16  Prefactor     .10000E-03    3.3223       -.10305E-06** at limit **
  17  Prefactor     20.713        21.161        .13605E-05    .13533E-03
  18  norm          .10000E-03    5.0157        .11836E-06** at limit **
  19  Prefactor     .10000E-03    8.5153        .38947E-05** at limit **
  20  Prefactor     .10000E-03    7.9340       -.24087E-05** at limit **
  21  norm          19.343        18.855        .88418E-07   -.18569E-04
  22  Prefactor     3.6656        5.1518       -.19618E-07   -.89124E-04
  23  Normalizat    .92787        .21410       -.47023E-06   -.45998E-04
  24  Prefactor     .97966        .11981        .23528E-06   -.58515E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100097
  Prefactor  = 11.1856
  Prefactor  = 0.410436
  Prefactor  = 4.19713
  norm       = 2.49295
  Prefactor  = 0.0001
  Prefactor  = 0.000100076
  Prefactor  = 0.0001
  Prefactor  = 0.463562
  Prefactor  = 4.5163
  Prefactor  = 51.3374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.05291
  Prefactor  = 0.0001
  Prefactor  = 20.7127
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 19.3429
  Prefactor  = 3.66557
  Normalizat = 0.927867
  Prefactor  = 0.979656
 **********
 **   18 **HESSE 
 **********

 FCN=   6809.850     FROM HESSE     STATUS=OK           399 CALLS     3128 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    47.682        .48224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.186        14.511        .11979E-03   -1.5039    
   3  Prefactor     .41044        .19709        .24291E-04   -1.5580    
   4  Prefactor     4.1971        6.0465        .98352E-03   -1.5298    
   5  norm          2.4929        1.5950        .80911E-04   -1.5392    
   6  Prefactor     .10000E-03    17.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10008E-03    42.199        .40904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .46356        .15121        .17571E-04   -1.5572    
  10  Prefactor     4.5163        6.6064        .94722E-03   -1.5283    
  11  Prefactor     51.337        43.710        .55972E-04   -1.4274    
  12  Prefactor     .10000E-03    2.0693        .11572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9907        .13933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0529        6.6766        .75526E-03   -1.5177    
  16  Prefactor     .10000E-03    3.3290        .14689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.713        21.694        .88017E-04   -1.4797    
  18  norm          .10000E-03    5.0657        .18041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.8445        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.0598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          19.343        18.857        .91069E-04   -1.4828    
  22  Prefactor     3.6656        5.1489        .21098E-03   -1.5325    
  23  Normalizat    .92787        .25002        .33102E-03   -.95488    
  24  Prefactor     .97966        .14179        .18776E-03   -.93411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31833e-09
Minuit parameter uncertainties:
  1  0.00429471
  2  14.516
  3  0.197091
  4  6.04743
  5  1.59506
  6  3.37447e-05
  7  0.00357449
  8  7.85708e-06
  9  0.151209
  10  6.60744
  11  43.737
  12  5.53425e-07
  13  4.41566e-06
  14  0.000225182
  15  6.67731
  16  3.8099e-06
  17  21.7023
  18  2.76682e-06
  19  0.000171241
  20  0.00013162
  21  18.8627
  22  5.14956
  23  0.250338
  24  0.141844
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  5.534e-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:  9.797e-01  1.418e-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:  9.279e-01  2.503e-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: 5.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/672613/likelihoodResults_638236801_638496001_4FGL_J2307.6+1451_daily_bin1539.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) = 6809.8526204
delta logL = -0.00229291156938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6809.85032683
delta logL = 6.53119968774e-07

Fit tolerance = 1e-08

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

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

 FCN=   6809.850     FROM MIGRAD    STATUS=FAILED        86 CALLS      237 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10127E-03    21.677        .11900E-02** at limit **
   2  Index         2.1042        6.8902        .50000        .88592E-04
   3  Normalizat    .92787        .16590E-01    .33102E-03    .47018E-04
   4  Prefactor     .97966        .97088E-02    .18776E-03    .17499E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6809.850     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      362 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10127E-03    21.677        .22979E-03** at limit **
   2  Index         2.1042        6.8902        .23094E-03    .88592E-04
   3  Normalizat    .92787        .16590E-01    .34162E-05    .47018E-04
   4  Prefactor     .97966        .97088E-02    .11948E-05    .17499E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6809.850     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      410 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.484        .23800E-02** at limit **
   2  Index         1.6311        5.3330        .50000        .69874E-06
   3  Normalizat    .92786        .17211E-01    .13241E-04   -.85106E-03
   4  Prefactor     .97965        .10072E-01    .75103E-05   -.14057E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.6311
  Normalizat = 0.927864
  Prefactor  = 0.979655
 **********
 **   18 **HESSE 
 **********

 FCN=   6809.850     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      439 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    136.69        .47600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6311        5.4224        .50000       -.73931    
   3  Normalizat    .92786        .38808E-01    .26481E-05   -.95488    
   4  Prefactor     .97965        .22711E-01    .15021E-05   -.93411    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.31598e-10
Minuit parameter uncertainties:
  1  0.000446435
  2  465.256
  3  0.0388091
  4  0.0227111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672613': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6809.85032091
delta logL = 6.57383225189e-06

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  4.464e-04  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  1.631e+00  4.653e+02  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:  9.797e-01  2.271e-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.279e-01  3.881e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/672613/cmap_HighResolution_638236801_638496001_4FGL_J2307.6+1451_daily_bin1539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.48e-08', time_completed='2021-09-29 07:30:50.052594', job_id='672613', GAL2='0.98', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632925850.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1539' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:30:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 672613: <4FGL_J2307.6+1451_daily_bin1539> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1539> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:15:15 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:15:16 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:15:16 2021
Terminated at Wed Sep 29 07:30:50 2021
Results reported at Wed Sep 29 07:30:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1539 346.922 14.8644 638236801 638496001 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 :                                   696.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

