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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin666
RA = 346.922, Dec = 14.8644
tmin = 411955201, tmax = 412214401
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='667985', job_status='RUN', time_executed='2021-09-29 07:00:33.975514', time_epoch_executed='1632924033.98' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667985

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667985/ft1_4FGL_J2307.6+1451_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667985/ft2_4FGL_J2307.6+1451_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667985/ft1_4FGL_J2307.6+1451_daily_bin666.fits outfile=/scratch/kocevski/667985/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin666.fits ra=346.922 dec=14.8644 rad=12.0 tmin=411955201.0 tmax=412214401.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 5.57
user 5.32
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/667985/ft2_4FGL_J2307.6+1451_daily_bin666.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/667985/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/667985/ft1_filtered_4FGL_J2307.6+1451_daily_bin666.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/667985/ft1_filtered_4FGL_J2307.6+1451_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/667985/ft2_4FGL_J2307.6+1451_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/667985/ltcube_411955201_412214401_4FGL_J2307.6+1451_daily_bin666.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/667985/ft2_4FGL_J2307.6+1451_daily_bin666.fits
.....................!
real 11.95
user 11.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667985/ft1_filtered_4FGL_J2307.6+1451_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/667985/ft2_4FGL_J2307.6+1451_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/667985/ltcube_411955201_412214401_4FGL_J2307.6+1451_daily_bin666.fits outfile=/scratch/kocevski/667985/expmap_411955201_412214401_4FGL_J2307.6+1451_daily_bin666.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/667985/ltcube_411955201_412214401_4FGL_J2307.6+1451_daily_bin666.fits
.....................!
real 191.78
user 186.55
sys 4.86

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/667985/ft1_filtered_4FGL_J2307.6+1451_daily_bin666.fits scfile=/scratch/kocevski/667985/ft2_4FGL_J2307.6+1451_daily_bin666.fits outfile=/scratch/kocevski/667985/cmap_411955201_412214401_4FGL_J2307.6+1451_daily_bin666.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.15

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4101.59548872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.341       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.477       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0365       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4214       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12751E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.593       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49669E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1513       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2410       1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.134       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10806E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14348E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.281       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16769E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.619       1.0000         .10000E-03   10000.    
    18 'norm      '    .73101E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .83488E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.480       1.0000         .10000E-03   10000.    
    21 'norm      '    .12818E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9667       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .20957       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1842       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4101.592     FROM MIGRAD    STATUS=CONVERGED   1016 CALLS     2890 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.258        25.887        .91074E-04    .58670E-05
   2  Prefactor     44.909        26.833        .59454E-04   -.12047E-04
   3  Prefactor     2.0365        .48403        .18957E-04   -.16972E-03
   4  Prefactor     .10000E-03    7.4785        .17064E-02** at limit **
   5  norm          2.4174        2.1409        .84143E-04   -.25806E-04
   6  Prefactor     .10000E-03    39.517        .18173E-02** at limit **
   7  Prefactor     26.902        20.184        .77684E-04    .25171E-04
   8  Prefactor     .10000E-03    22.318        .19212E-02** at limit **
   9  Prefactor     2.1507        .38439        .15560E-04   -.21100E-03
  10  Prefactor     4.3984        12.671        .19566E-03   -.91804E-05
  11  Prefactor     47.546        72.672        .60348E-04   -.10135E-04
  12  Prefactor     .10001E-03    102.28        .44461E-02** at limit **
  13  Prefactor     .10000E-03    10.997        .20505E-02** at limit **
  14  Prefactor     11.250        49.364        .10991E-03    .50684E-05
  15  Prefactor     .10000E-03    10.280        .18142E-02** at limit **
  16  Prefactor     .10000E-03    18.523        .18142E-02** at limit **
  17  Prefactor     12.613        40.413        .11276E-03   -.11393E-04
  18  norm          .10000E-03    28.000        .41910E-03** at limit **
  19  Prefactor     .10000E-03    12.236        .20876E-02** at limit **
  20  Prefactor     39.942        56.489        .63792E-04    .24986E-04
  21  norm          .10000E-03    79.011        .36348E-03** at limit **
  22  Prefactor     4.7910        8.2519        .90228E-03    .18358E-04
  23  Normalizat    .21039        .42089        .78205E-03   -.24858E-04
  24  Prefactor     1.1841        .21440        .19754E-03   -.23135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2583
  Prefactor  = 44.9085
  Prefactor  = 2.03649
  Prefactor  = 0.0001
  norm       = 2.4174
  Prefactor  = 0.0001
  Prefactor  = 26.9021
  Prefactor  = 0.0001
  Prefactor  = 2.15073
  Prefactor  = 4.39844
  Prefactor  = 47.5458
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 11.2498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6126
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.9416
  norm       = 0.0001
  Prefactor  = 4.79097
  Normalizat = 0.210388
  Prefactor  = 1.1841
 **********
 **   18 **HESSE 
 **********

 FCN=   4101.592     FROM HESSE     STATUS=OK           375 CALLS     3265 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.258        25.885        .36429E-05   -1.4830    
   2  Prefactor     44.909        26.817        .23782E-05   -1.4367    
   3  Prefactor     2.0365        .48398        .75828E-06   -1.5423    
   4  Prefactor     .10000E-03    7.4796        .34128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4174        2.1409        .33657E-05   -1.5397    
   6  Prefactor     .10000E-03    39.519        .36347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.902        20.180        .31074E-05   -1.4670    
   8  Prefactor     .10000E-03    22.319        .38423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1507        .38423        .31120E-05   -1.5415    
  10  Prefactor     4.3984        12.670        .78265E-05   -1.5288    
  11  Prefactor     47.546        72.661        .12070E-04   -1.4328    
  12  Prefactor     .10001E-03    104.33        .88922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.997        .41011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.250        49.266        .43964E-05   -1.5037    
  15  Prefactor     .10000E-03    10.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.613        40.383        .45104E-05   -1.4998    
  18  norm          .10000E-03    28.001        .83820E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.241        .41753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     39.942        56.473        .12758E-04   -1.4443    
  21  norm          .10000E-03    79.015        .72696E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.7910        8.2514        .36091E-04   -1.5270    
  23  Normalizat    .21039        .41939        .31282E-04   -1.2866    
  24  Prefactor     1.1841        .21387        .79017E-05   -.86822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34919e-10
Minuit parameter uncertainties:
  1  25.8999
  2  26.8245
  3  0.483979
  4  2.62018e-06
  5  2.14095
  6  2.32776e-05
  7  20.1851
  8  1.29919e-05
  9  0.384231
  10  12.6772
  11  72.7965
  12  0.00191954
  13  2.9657e-06
  14  47.1496
  15  2.77844e-05
  16  6.00643e-06
  17  40.4707
  18  3.60472e-05
  19  1.10184e-05
  20  56.5483
  21  0.000137948
  22  8.25337
  23  0.425923
  24  0.214031
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  1.920e-03  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.184e+00  2.140e-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:  2.104e-01  4.259e-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: 2.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.55e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/667985/likelihoodResults_411955201_412214401_4FGL_J2307.6+1451_daily_bin666.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) = 4101.59215699
delta logL = -4.56930647488e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4101.59204999
delta logL = 6.13051979599e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33156E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3901       1.0000          .0000       10.000    
     3 'Normalizat'    .21029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1842       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.

 FCN=   4101.390     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      272 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95553        39.681        .98587E-02    .14557E-02
   2  Index         3.3747        3.3393        .11397        .16889E-03
   3  Normalizat    .15479        .68035E-01    .20947        .11322E-03
   4  Prefactor     1.1955        .40237E-01    .35016E-01    .36578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.955525
  Index      = 3.37466
  Normalizat = 0.154792
  Prefactor  = 1.19549
 **********
 **   18 **HESSE 
 **********

 FCN=   4101.390     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      305 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95553        119.25        .97622E-04   -1.5512    
   2  Index         3.3747        6.1668        .60685E-02   -.33108    
   3  Normalizat    .15479        .37653        .89114E-02   -1.3294    
   4  Prefactor     1.1955        .22016        .19647E-03   -.86470    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.42205e-10
Minuit parameter uncertainties:
  1  21.3914
  2  8.96898
  3  0.383067
  4  0.220334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667985': 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) = 4101.38980692
delta logL = 0.202304380153

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  9.555e-01  2.139e+01  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  3.375e+00  8.969e+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.195e+00  2.203e-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.548e-01  3.831e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/667985/cmap_HighResolution_411955201_412214401_4FGL_J2307.6+1451_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-02', job_status='DONE', photon_flux_upper_limit='2.04e-07', time_completed='2021-09-29 07:09:58.718535', job_id='667985', GAL2='1.20', fit_tolerance='1e-08', EG2='0.15', EG='0.21', time_epoch_completed='1632924598.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.02e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='666' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:09:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 667985: <4FGL_J2307.6+1451_daily_bin666> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin666> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 07:00:22 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:00:24 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:00:24 2021
Terminated at Wed Sep 29 07:09:59 2021
Results reported at Wed Sep 29 07:09:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin666 346.922 14.8644 411955201 412214401 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 :                                   561.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   575 sec.
    Turnaround time :                            577 sec.

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

