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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1549
RA = 346.922, Dec = 14.8644
tmin = 640828801, tmax = 641088001
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='672628', job_status='RUN', time_executed='2021-09-29 07:19:22.677598', time_epoch_executed='1632925162.68' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672628

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672628/ft1_4FGL_J2307.6+1451_daily_bin1549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672628/ft2_4FGL_J2307.6+1451_daily_bin1549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/672628/ft1_4FGL_J2307.6+1451_daily_bin1549.fits outfile=/scratch/kocevski/672628/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1549.fits ra=346.922 dec=14.8644 rad=12.0 tmin=640828801.0 tmax=641088001.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.13
user 2.91
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/672628/ft2_4FGL_J2307.6+1451_daily_bin1549.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/672628/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1549.fits evtable="EVENTS" outfile="/scratch/kocevski/672628/ft1_filtered_4FGL_J2307.6+1451_daily_bin1549.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/672628/ft1_filtered_4FGL_J2307.6+1451_daily_bin1549.fits" evtable="EVENTS" scfile=/scratch/kocevski/672628/ft2_4FGL_J2307.6+1451_daily_bin1549.fits sctable="SC_DATA" outfile=/scratch/kocevski/672628/ltcube_640828801_641088001_4FGL_J2307.6+1451_daily_bin1549.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/672628/ft2_4FGL_J2307.6+1451_daily_bin1549.fits
.....................!
real 12.64
user 12.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672628/ft1_filtered_4FGL_J2307.6+1451_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/672628/ft2_4FGL_J2307.6+1451_daily_bin1549.fits sctable="SC_DATA" expcube=/scratch/kocevski/672628/ltcube_640828801_641088001_4FGL_J2307.6+1451_daily_bin1549.fits outfile=/scratch/kocevski/672628/expmap_640828801_641088001_4FGL_J2307.6+1451_daily_bin1549.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/672628/ltcube_640828801_641088001_4FGL_J2307.6+1451_daily_bin1549.fits
.....................!
real 191.02
user 185.24
sys 5.40

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/672628/ft1_filtered_4FGL_J2307.6+1451_daily_bin1549.fits scfile=/scratch/kocevski/672628/ft2_4FGL_J2307.6+1451_daily_bin1549.fits outfile=/scratch/kocevski/672628/cmap_640828801_641088001_4FGL_J2307.6+1451_daily_bin1549.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.896       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.916       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .40591       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3643       1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.000       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .29887       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4722       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5358       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10263E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6160       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2322       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82410       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=   7162.931     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2334 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.894        14.549       -.33420E-06   -.17156E-04
   2  Prefactor     12.916        12.173       -.33315E-07    .32212E-05
   3  Prefactor     .40595        .18720        .12522E-07   -.65816E-04
   4  Prefactor     .10000E-03    3.5192        .44469E-06** at limit **
   5  norm          1.3642        1.1482        .72973E-07    .15047E-03
   6  Prefactor     52.000        30.006       -.52896E-06   -.50456E-06
   7  Prefactor     .10000E-03    4.9970       -.32980E-05** at limit **
   8  Prefactor     .10000E-03    6.9823       -.23461E-05** at limit **
   9  Prefactor     .29888        .12520        .68950E-08    .34958E-03
  10  Prefactor     .10000E-03    5.1257        .27071E-05** at limit **
  11  Prefactor     .10000E-03    28.945       -.16216E-05** at limit **
  12  Prefactor     .10000E-03    3.8581        .73830E-07** at limit **
  13  Prefactor     2.4670        5.2052        .10336E-05   -.81631E-03
  14  Prefactor     .10000E-03    23.368        .45834E-05** at limit **
  15  Prefactor     5.5370        6.6545       -.32473E-07   -.30044E-04
  16  Prefactor     .10000E-03    10.812        .25749E-05** at limit **
  17  Prefactor     .10000E-03    11.748       -.13153E-05** at limit **
  18  norm          .10000E-03    11.707       -.23981E-05** at limit **
  19  Prefactor     1.6177        5.5220        .71138E-07   -.10507E-03
  20  Prefactor     .10000E-03    29.668       -.44960E-05** at limit **
  21  norm          .10000E-03    8.3393        .28698E-05** at limit **
  22  Prefactor     .10000E-03    6.5617       -.28239E-06** at limit **
  23  Normalizat    1.2322        .20673       -.57635E-06    .57160E-04
  24  Prefactor     .82413        .11307        .34523E-06   -.16532E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8937
  Prefactor  = 12.9159
  Prefactor  = 0.405949
  Prefactor  = 0.0001
  norm       = 1.36417
  Prefactor  = 51.9996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.298875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.46704
  Prefactor  = 0.0001
  Prefactor  = 5.53704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.61767
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2322
  Prefactor  = 0.824126
 **********
 **   18 **HESSE 
 **********

 FCN=   7162.931     FROM HESSE     STATUS=OK           395 CALLS     2729 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.894        14.526        .89795E-04   -1.4816    
   2  Prefactor     12.916        12.180        .11146E-03   -1.4989    
   3  Prefactor     .40595        .18437        .22963E-04   -1.5581    
   4  Prefactor     .10000E-03    3.5538        .15501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3642        1.1621        .80979E-04   -1.5474    
   6  Prefactor     52.000        30.008        .55617E-04   -1.4264    
   7  Prefactor     .10000E-03    5.0308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .29888        .12453        .18190E-04   -1.5599    
  10  Prefactor     .10000E-03    5.1530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8971        .16230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4670        13.513        .13003E-02   -1.5394    
  14  Prefactor     .10000E-03    23.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.5370        6.6748        .17076E-03   -1.5237    
  16  Prefactor     .10000E-03    10.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6177        5.5121        .33305E-03   -1.5454    
  20  Prefactor     .10000E-03    29.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    8.3715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.6075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2322        .24617        .29315E-03   -.85613    
  24  Prefactor     .82413        .13480        .19757E-03   -.98845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64497e-09
Minuit parameter uncertainties:
  1  14.5287
  2  12.1827
  3  0.184365
  4  1.84012e-06
  5  1.1621
  6  30.0163
  7  2.7948e-05
  8  2.34037e-05
  9  0.124534
  10  2.18925e-05
  11  3.05351e-05
  12  8.06228e-07
  13  11.5516
  14  7.34637e-05
  15  6.67566
  16  3.08125e-05
  17  1.55586e-05
  18  9.31207e-06
  19  5.51381
  20  7.7697e-05
  21  3.17792e-05
  22  2.2251e-06
  23  0.246407
  24  0.134858
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  8.062e-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:  8.241e-01  1.349e-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.232e+00  2.464e-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: 7.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/672628/likelihoodResults_640828801_641088001_4FGL_J2307.6+1451_daily_bin1549.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) = 7162.93255851
delta logL = -0.00122352268954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7162.93133499
delta logL = -6.25095708529e-09

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.1768       1.0000          .0000       10.000    
     3 'Normalizat'    1.2322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82414       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=   7162.931     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    48.348        .16265E-02** at limit **
   2  Index         2.1358        5.3045        .50000        .11975E-04
   3  Normalizat    1.2322        .18385E-01    .29315E-03   -.16482E-04
   4  Prefactor     .82413        .10415E-01    .19757E-03   -.21233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100379
  Index      = 2.1358
  Normalizat = 1.2322
  Prefactor  = 0.824126
 **********
 **   18 **HESSE 
 **********

 FCN=   7162.931     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10038E-03    307.83        .32530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1358        8.6973        .50000       -.60997    
   3  Normalizat    1.2322        .51261E-01    .11726E-04   -.85613    
   4  Prefactor     .82413        .28830E-01    .79028E-05   -.98845    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.55311e-08
Minuit parameter uncertainties:
  1  0.0217154
  2  997.126
  3  0.0512635
  4  0.0288305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672628': 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) = 7162.93133488
delta logL = 1.08689164335e-07

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.004e-04  2.172e-02  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.136e+00  9.971e+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.241e-01  2.883e-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:  1.232e+00  5.126e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/672628/cmap_HighResolution_640828801_641088001_4FGL_J2307.6+1451_daily_bin1549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='7.12e-08', time_completed='2021-09-29 07:30:46.976377', job_id='672628', GAL2='0.82', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1632925846.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1549' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:30:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 672628: <4FGL_J2307.6+1451_daily_bin1549> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1549 346.922 14.8644 640828801 641088001 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 :                                   681.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

