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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1287
RA = 346.922, Dec = 14.8644
tmin = 572918401, tmax = 573177601
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='671150', job_status='RUN', time_executed='2021-09-29 07:13:08.673234', time_epoch_executed='1632924788.67' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671150

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671150/ft1_4FGL_J2307.6+1451_daily_bin1287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671150/ft2_4FGL_J2307.6+1451_daily_bin1287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671150/ft1_4FGL_J2307.6+1451_daily_bin1287.fits outfile=/scratch/kocevski/671150/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1287.fits ra=346.922 dec=14.8644 rad=12.0 tmin=572918401.0 tmax=573177601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.96
user 4.65
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671150/ft1_filtered_4FGL_J2307.6+1451_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/671150/ft2_4FGL_J2307.6+1451_daily_bin1287.fits sctable="SC_DATA" expcube=/scratch/kocevski/671150/ltcube_572918401_573177601_4FGL_J2307.6+1451_daily_bin1287.fits outfile=/scratch/kocevski/671150/expmap_572918401_573177601_4FGL_J2307.6+1451_daily_bin1287.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/671150/ltcube_572918401_573177601_4FGL_J2307.6+1451_daily_bin1287.fits
.....................!
real 193.84
user 186.96
sys 6.15

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/671150/ft1_filtered_4FGL_J2307.6+1451_daily_bin1287.fits scfile=/scratch/kocevski/671150/ft2_4FGL_J2307.6+1451_daily_bin1287.fits outfile=/scratch/kocevski/671150/cmap_572918401_573177601_4FGL_J2307.6+1451_daily_bin1287.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671150/ft1_filtered_4FGL_J2307.6+1451_daily_bin1287.fits scfile=/scratch/kocevski/671150/ft2_4FGL_J2307.6+1451_daily_bin1287.fits outfile=/scratch/kocevski/671150/cmap_HighResolution_572918401_573177601_4FGL_J2307.6+1451_daily_bin1287.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=346.922 yref=14.8644 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .71235       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0112       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8971       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4186       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.941       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2315       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7097       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5460       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.807       1.0000         .10000E-03   10000.    
    21 'norm      '    3.8073       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .98303       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0663       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83387       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=   6838.554     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2699 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3967       -.24452E-06** at limit **
   2  Prefactor     .10000E-03    4.1763        .78469E-06** at limit **
   3  Prefactor     .71240        .21416        .65072E-08   -.19912E-03
   4  Prefactor     .10000E-03    4.2389        .21189E-06** at limit **
   5  norm          3.0111        1.6822        .32151E-08    .21903E-04
   6  Prefactor     .10000E-03    12.228        .41240E-05** at limit **
   7  Prefactor     9.8978        10.239        .37817E-06    .17521E-04
   8  Prefactor     .10000E-03    7.8549        .40965E-06** at limit **
   9  Prefactor     1.4186        .22167        .53591E-08   -.52648E-03
  10  Prefactor     18.584        14.098       -.45676E-06   -.98634E-04
  11  Prefactor     70.946        48.190        .34510E-05    .16545E-03
  12  Prefactor     .10000E-03    3.0053        .86572E-07** at limit **
  13  Prefactor     .10000E-03    4.3295       -.76136E-06** at limit **
  14  Prefactor     .10000E-03    7.7336       -.71981E-06** at limit **
  15  Prefactor     6.2336        6.7290        .11877E-06   -.47926E-05
  16  Prefactor     9.7098        6.9879       -.42874E-07   -.50632E-05
  17  Prefactor     .10000E-03    13.063       -.39141E-05** at limit **
  18  norm          .10000E-03    2.0583        .16450E-08** at limit **
  19  Prefactor     6.5482        7.0252       -.41541E-07   -.92023E-04
  20  Prefactor     12.808        13.447        .58050E-06    .65434E-04
  21  norm          3.8071        7.4433        .16260E-05   -.95230E-03
  22  Prefactor     .99465        7.7001        .93238E-06   -.42022E-03
  23  Normalizat    1.0659        .22143       -.10698E-05    .34757E-04
  24  Prefactor     .83410        .11889        .62577E-07   -.28806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.712401
  Prefactor  = 0.0001
  norm       = 3.01113
  Prefactor  = 0.000100001
  Prefactor  = 9.89777
  Prefactor  = 0.0001
  Prefactor  = 1.41865
  Prefactor  = 18.5835
  Prefactor  = 70.946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.23364
  Prefactor  = 9.70983
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.54821
  Prefactor  = 12.8079
  norm       = 3.80706
  Prefactor  = 0.994652
  Normalizat = 1.06585
  Prefactor  = 0.8341
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.554     FROM HESSE     STATUS=OK           399 CALLS     3098 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3988        .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1884        .16525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .71240        .21396        .20172E-04   -1.5539    
   4  Prefactor     .10000E-03    4.2522        .16627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0111        1.6835        .77593E-04   -1.5361    
   6  Prefactor     .10000E-03    12.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.8978        10.236        .12737E-03   -1.5079    
   8  Prefactor     .10000E-03    7.8666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4186        .22245        .14582E-04   -1.5470    
  10  Prefactor     18.584        14.141        .92906E-04   -1.4846    
  11  Prefactor     70.946        48.573        .47662E-04   -1.4021    
  12  Prefactor     .10000E-03    3.0353        .13998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3480        .16826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.7463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2336        6.7617        .16081E-03   -1.5209    
  16  Prefactor     9.7098        6.9872        .12860E-03   -1.5085    
  17  Prefactor     .10000E-03    13.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0604        .11581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5482        7.0595        .15685E-03   -1.5196    
  20  Prefactor     12.808        13.451        .11193E-03   -1.4992    
  21  norm          3.8071        10.171        .10343E-02   -1.5318    
  22  Prefactor     .99465        8.9381        .46622E-03   -1.5509    
  23  Normalizat    1.0659        .25898        .31524E-03   -.90856    
  24  Prefactor     .83410        .13882        .20410E-03   -.98483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38537e-09
Minuit parameter uncertainties:
  1  7.03931e-06
  2  2.70123e-05
  3  0.213964
  4  7.44531e-06
  5  1.68355
  6  0.00023899
  7  10.2374
  8  1.8834e-05
  9  0.22245
  10  14.144
  11  48.6
  12  3.28002e-06
  13  2.77732e-05
  14  2.88714e-05
  15  6.76254
  16  6.98783
  17  0.000218913
  18  1.16372e-07
  19  7.06035
  20  13.4545
  21  10.1758
  22  5.96421
  23  0.259285
  24  0.138877
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  3.280e-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:  8.341e-01  1.389e-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.066e+00  2.593e-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: 6.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671150/likelihoodResults_572918401_573177601_4FGL_J2307.6+1451_daily_bin1287.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) = 6838.5550893
delta logL = -0.0015675922632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6838.55352177
delta logL = -6.29534042673e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1696       1.0000          .0000       10.000    
     3 'Normalizat'    1.0659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83408       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=   6838.554     FROM MIGRAD    STATUS=FAILED        90 CALLS      241 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10221E-03    1.2507        .14117E-01** at limit **
   2  Index         1.8521        9.0626        .50000        .90960E-05
   3  Normalizat    1.0659        .32363E-02    .31524E-03   -.11901E-04
   4  Prefactor     .83410        .18884E-02    .20410E-03   -.36207E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6838.554     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      334 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10221E-03    1.2507        .24228E-03** at limit **
   2  Index         1.8521        9.0626        .60269E-01    .90960E-05
   3  Normalizat    1.0659        .32363E-02    .33413E-04   -.11901E-04
   4  Prefactor     .83410        .18884E-02    .18495E-04   -.36207E-05
                               ERR DEF=  .500    

 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=   6838.554     FROM MIGRAD    STATUS=FAILED        72 CALLS      406 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    606.19        .29860E-03** at limit **
   2  Index         1.7524        7.2400        .50000       -.53576E-06
   3  Normalizat    1.0659        .10168        .25219E-05    .64014E-04
   4  Prefactor     .83410        .58984E-01    .81639E-05    .10556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.75239
  Normalizat = 1.06585
  Prefactor  = 0.834101
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.554     FROM HESSE     STATUS=OK            27 CALLS      433 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9878        .59721E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7524        5.2739        .50000       -.70696    
   3  Normalizat    1.0659        .23543        .50438E-06   -.90856    
   4  Prefactor     .83410        .13735        .16328E-05   -.98483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36462e-10
Minuit parameter uncertainties:
  1  1.09731e-05
  2  150.408
  3  0.235663
  4  0.13741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671150': 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): 1
logL (Free Index) = 6838.55351963
delta logL = 2.07413177122e-06

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  1.097e-05  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  1.752e+00  1.504e+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:  8.341e-01  1.374e-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.066e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/671150/cmap_HighResolution_572918401_573177601_4FGL_J2307.6+1451_daily_bin1287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.28e-08', time_completed='2021-09-29 07:27:00.407125', job_id='671150', GAL2='0.83', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632925620.41', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1287' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:27:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 671150: <4FGL_J2307.6+1451_daily_bin1287> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1287> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 07:10:39 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:10:42 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:10:42 2021
Terminated at Wed Sep 29 07:27:01 2021
Results reported at Wed Sep 29 07:27:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1287 346.922 14.8644 572918401 573177601 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 :                                   733.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            982 sec.

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

