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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1640
RA = 346.922, Dec = 14.8644
tmin = 664416001, tmax = 664675201
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='284958', job_status='RUN', time_executed='2022-01-24 00:44:11.275523', time_epoch_executed='1643013851.28' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284958

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284958/ft1_4FGL_J2307.6+1451_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284958/ft2_4FGL_J2307.6+1451_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284958/ft1_4FGL_J2307.6+1451_daily_bin1640.fits outfile=/scratch/kocevski/284958/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1640.fits ra=346.922 dec=14.8644 rad=12.0 tmin=664416001.0 tmax=664675201.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.69
user 3.46
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284958/ft1_filtered_4FGL_J2307.6+1451_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284958/ft2_4FGL_J2307.6+1451_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/284958/ltcube_664416001_664675201_4FGL_J2307.6+1451_daily_bin1640.fits outfile=/scratch/kocevski/284958/expmap_664416001_664675201_4FGL_J2307.6+1451_daily_bin1640.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/284958/ltcube_664416001_664675201_4FGL_J2307.6+1451_daily_bin1640.fits
.....................!
real 191.04
user 186.33
sys 4.37

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/284958/ft1_filtered_4FGL_J2307.6+1451_daily_bin1640.fits scfile=/scratch/kocevski/284958/ft2_4FGL_J2307.6+1451_daily_bin1640.fits outfile=/scratch/kocevski/284958/cmap_664416001_664675201_4FGL_J2307.6+1451_daily_bin1640.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284958/ft1_filtered_4FGL_J2307.6+1451_daily_bin1640.fits scfile=/scratch/kocevski/284958/ft2_4FGL_J2307.6+1451_daily_bin1640.fits outfile=/scratch/kocevski/284958/cmap_HighResolution_664416001_664675201_4FGL_J2307.6+1451_daily_bin1640.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1774       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10378       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .52711       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4339       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .84835       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2852       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1459       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3944       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7726       1.0000         .10000E-03   10000.    
    18 'norm      '    11.238       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.9509       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2398       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88716       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=   6936.158     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2344 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1748        12.199        .11846E-05    .46147E-04
   2  Prefactor     .10000E-03    12.362        .17471E-06** at limit **
   3  Prefactor     .52706        .21075       -.65501E-09   -.21330E-03
   4  Prefactor     .10000E-03    4.0009        .27073E-06** at limit **
   5  norm          1.4339        1.5731        .44714E-07   -.16523E-03
   6  Prefactor     .10000E-03    9.4961       -.50883E-06** at limit **
   7  Prefactor     .10000E-03    3.2581        .17085E-07** at limit **
   8  Prefactor     .10000E-03    11.382        .24003E-05** at limit **
   9  Prefactor     .84828        .18220        .89967E-08   -.29012E-03
  10  Prefactor     .10000E-03    7.3178        .60925E-06** at limit **
  11  Prefactor     .10000E-03    16.121       -.16463E-05** at limit **
  12  Prefactor     .10000E-03    1.9274        .27341E-07** at limit **
  13  Prefactor     3.2842        5.3775        .25590E-05   -.15141E-02
  14  Prefactor     .10000E-03    10.146       -.99963E-06** at limit **
  15  Prefactor     2.1456        4.8143       -.29335E-05   -.70905E-03
  16  Prefactor     4.3937        10.520        .11432E-05    .51916E-05
  17  Prefactor     2.7678        13.866        .23585E-05    .31094E-04
  18  norm          11.239        10.094       -.48737E-06   -.19162E-03
  19  Prefactor     .10000E-03    5.5737        .19077E-06** at limit **
  20  Prefactor     .10000E-03    6.1038       -.50801E-06** at limit **
  21  norm          7.9429        15.651        .52194E-05    .23595E-03
  22  Prefactor     .10000E-03    2.1384        .95042E-07** at limit **
  23  Normalizat    1.2400        .21214       -.14559E-07   -.77139E-04
  24  Prefactor     .88706        .12001       -.49467E-06   -.24272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.17483
  Prefactor  = 0.000100001
  Prefactor  = 0.527062
  Prefactor  = 0.0001
  norm       = 1.43393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.848279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28417
  Prefactor  = 0.0001
  Prefactor  = 2.14556
  Prefactor  = 4.39373
  Prefactor  = 2.7678
  norm       = 11.2394
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.9429
  Prefactor  = 0.0001
  Normalizat = 1.24
  Prefactor  = 0.887057
 **********
 **   18 **HESSE 
 **********

 FCN=   6936.158     FROM HESSE     STATUS=OK           409 CALLS     2753 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1748        12.190        .16152E-03   -1.5211    
   2  Prefactor     .10000E-03    15.073        .83588E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .52706        .20930        .22739E-04   -1.5563    
   4  Prefactor     .10000E-03    4.0109        .16268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4339        1.5493        .10612E-03   -1.5468    
   6  Prefactor     .10000E-03    9.5018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2628        .14679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .84828        .18251        .15642E-04   -1.5524    
  10  Prefactor     .10000E-03    7.3816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9351        .11291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2842        7.5124        .11170E-02   -1.5346    
  14  Prefactor     .10000E-03    10.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1456        4.9773        .26594E-03   -1.5415    
  16  Prefactor     4.3937        10.457        .19212E-03   -1.5289    
  17  Prefactor     2.7678        13.817        .24441E-03   -1.5375    
  18  norm          11.239        9.2307        .11951E-03   -1.5037    
  19  Prefactor     .10000E-03    19.742        .34210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.9429        15.765        .14220E-03   -1.5144    
  22  Prefactor     .10000E-03    2.1602        .11893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2400        .24936        .29678E-03   -.85376    
  24  Prefactor     .88706        .14101        .20187E-03   -.96595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.767e-09
Minuit parameter uncertainties:
  1  12.1953
  2  0.000200216
  3  0.209302
  4  8.8586e-06
  5  1.54932
  6  2.40548e-05
  7  1.87388e-06
  8  0.000123137
  9  0.182515
  10  3.05937e-05
  11  0.000100218
  12  1.83372e-06
  13  7.51457
  14  4.23689e-05
  15  4.97823
  16  10.4611
  17  12.3723
  18  9.23185
  19  0.000244899
  20  1.94071e-05
  21  15.7735
  22  1.6599e-06
  23  0.2496
  24  0.141069
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  1.834e-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.871e-01  1.411e-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.240e+00  2.496e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/284958/likelihoodResults_664416001_664675201_4FGL_J2307.6+1451_daily_bin1640.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) = 6936.16050073
delta logL = -0.00243735992535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6936.1580633
delta logL = 6.73926479067e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1666       1.0000          .0000       10.000    
     3 'Normalizat'    1.2399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88711       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=   6936.158     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      234 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    114.52        .11431E-01** at limit **
   2  Index         1.5834        8.8419        .99644E-01    .30041E-06
   3  Normalizat    1.2400        .38337E-01    .29678E-03    .95614E-04
   4  Prefactor     .88706        .22603E-01    .20187E-03    .22157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.58345
  Normalizat = 1.24
  Prefactor  = 0.887057
 **********
 **   18 **HESSE 
 **********

 FCN=   6936.158     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4915        .12813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5834        5.4321        .39857E-02   -.75229    
   3  Normalizat    1.2400        .23690        .11871E-04   -.85376    
   4  Prefactor     .88706        .13974        .40374E-04   -.96595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36262e-10
Minuit parameter uncertainties:
  1  1.85227e-05
  2  167.33
  3  0.237101
  4  0.139794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284958': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6936.15805767
delta logL = 5.70080737816e-06

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  1.852e-05  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  1.583e+00  1.673e+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.871e-01  1.398e-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.240e+00  2.371e-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/284958/cmap_HighResolution_664416001_664675201_4FGL_J2307.6+1451_daily_bin1640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='5.13e-08', time_completed='2022-01-24 00:55:42.741041', job_id='284958', GAL2='0.89', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1643014542.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='5.70e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1640' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:55:42 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 284958: <4FGL_J2307.6+1451_daily_bin1640> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1640> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jan 24 00:40:26 2022
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:40:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:40:28 2022
Terminated at Mon Jan 24 00:55:43 2022
Results reported at Mon Jan 24 00:55:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1640 346.922 14.8644 664416001 664675201 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 :                                   693.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

