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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1530
RA = 346.922, Dec = 14.8644
tmin = 635904001, tmax = 636163201
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='672599', job_status='RUN', time_executed='2021-09-29 07:16:04.805662', time_epoch_executed='1632924964.81' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672599/ft1_4FGL_J2307.6+1451_daily_bin1530.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672599/ft2_4FGL_J2307.6+1451_daily_bin1530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/672599/ft1_4FGL_J2307.6+1451_daily_bin1530.fits outfile=/scratch/kocevski/672599/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1530.fits ra=346.922 dec=14.8644 rad=12.0 tmin=635904001.0 tmax=636163201.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.21
user 3.98
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672599/ft1_filtered_4FGL_J2307.6+1451_daily_bin1530.fits evtable="EVENTS" scfile=/scratch/kocevski/672599/ft2_4FGL_J2307.6+1451_daily_bin1530.fits sctable="SC_DATA" expcube=/scratch/kocevski/672599/ltcube_635904001_636163201_4FGL_J2307.6+1451_daily_bin1530.fits outfile=/scratch/kocevski/672599/expmap_635904001_636163201_4FGL_J2307.6+1451_daily_bin1530.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/672599/ltcube_635904001_636163201_4FGL_J2307.6+1451_daily_bin1530.fits
.....................!
real 193.18
user 187.98
sys 4.66

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/672599/ft1_filtered_4FGL_J2307.6+1451_daily_bin1530.fits scfile=/scratch/kocevski/672599/ft2_4FGL_J2307.6+1451_daily_bin1530.fits outfile=/scratch/kocevski/672599/cmap_635904001_636163201_4FGL_J2307.6+1451_daily_bin1530.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/672599/ft1_filtered_4FGL_J2307.6+1451_daily_bin1530.fits scfile=/scratch/kocevski/672599/ft2_4FGL_J2307.6+1451_daily_bin1530.fits outfile=/scratch/kocevski/672599/cmap_HighResolution_635904001_636163201_4FGL_J2307.6+1451_daily_bin1530.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/672599/ft1_filtered_4FGL_J2307.6+1451_daily_bin1530.fits evtable="EVENTS" scfile=/scratch/kocevski/672599/ft2_4FGL_J2307.6+1451_daily_bin1530.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/672599/Model_4FGL_J2307.6+1451_daily_bin1530.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/672599/ft1_filtered_4FGL_J2307.6+1451_daily_bin1530.fits.....................!
real 77.68
user 76.28
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62155       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20040       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4906       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.373       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.934       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .48652       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1501       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7883       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11644E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3454       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96825       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=   7171.606     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2720 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39102        13.934       -.94311E-06    .45393E-04
   2  Prefactor     .10000E-03    9.9963       -.93832E-05** at limit **
   3  Prefactor     .20106        .24278       -.27587E-07   -.12765E-02
   4  Prefactor     .10000E-03    2.4014       -.30889E-07** at limit **
   5  norm          2.4904        1.8928       -.20043E-07   -.67720E-04
   6  Prefactor     .10000E-03    21.345       -.80654E-05** at limit **
   7  Prefactor     10.370        13.454       -.29839E-06   -.20724E-04
   8  Prefactor     30.925        35.509       -.10047E-04    .30186E-04
   9  Prefactor     .48652        .20570        .16446E-06   -.85742E-03
  10  Prefactor     .10000E-03    6.6277       -.33749E-06** at limit **
  11  Prefactor     .10000E-03    16.005        .55372E-05** at limit **
  12  Prefactor     .10000E-03    2.3108       -.35169E-07** at limit **
  13  Prefactor     .10000E-03    9.4710        .12912E-05** at limit **
  14  Prefactor     .10000E-03    4.4494       -.18335E-06** at limit **
  15  Prefactor     6.1494        4.6646       -.94088E-06   -.24908E-02
  16  Prefactor     .10000E-03    27.238        .10084E-04** at limit **
  17  Prefactor     .10000E-03    9.4541        .69686E-05** at limit **
  18  norm          3.7830        8.1152       -.14556E-05   -.68512E-03
  19  Prefactor     .10002E-03    5.2764        .13549E-05** at limit **
  20  Prefactor     .10000E-03    21.342       -.83409E-05** at limit **
  21  norm          .10000E-03    4.6677        .17966E-06** at limit **
  22  Prefactor     .10000E-03    4.0623        .24135E-07** at limit **
  23  Normalizat    1.3455        .22570        .28982E-06   -.16946E-03
  24  Prefactor     .96833        .12576        .64142E-06   -.20249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.391016
  Prefactor  = 0.0001
  Prefactor  = 0.201058
  Prefactor  = 0.0001
  norm       = 2.49041
  Prefactor  = 0.0001
  Prefactor  = 10.3703
  Prefactor  = 30.9254
  Prefactor  = 0.486517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.14938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.78296
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.34546
  Prefactor  = 0.96833
 **********
 **   18 **HESSE 
 **********

 FCN=   7171.606     FROM HESSE     STATUS=OK           397 CALLS     3117 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39102        207.48        .54399E-02   -1.5583    
   2  Prefactor     .10000E-03    9.9295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .20106        .23256        .38606E-03   -1.5618    
   4  Prefactor     .10000E-03    2.4023        .12815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4904        1.8908        .95790E-04   -1.5392    
   6  Prefactor     .10000E-03    21.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.370        13.441        .12441E-03   -1.5064    
   8  Prefactor     30.925        35.341        .72040E-04   -1.4595    
   9  Prefactor     .48652        .20401        .21844E-04   -1.5568    
  10  Prefactor     .10000E-03    6.6544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3160        .12570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.5776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4501        .17446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1494        4.8312        .79762E-03   -1.5212    
  16  Prefactor     .10000E-03    28.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.4223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7830        7.8090        .20740E-03   -1.5319    
  19  Prefactor     .10002E-03    17.447        .35334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.6700        .17869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1021        .16667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3455        .26446        .31186E-03   -.82219    
  24  Prefactor     .96833        .14900        .20622E-03   -.93793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56472e-09
Minuit parameter uncertainties:
  1  18.0752
  2  1.39345e-05
  3  0.232558
  4  7.72343e-07
  5  1.89086
  6  3.96638e-05
  7  13.4449
  8  35.365
  9  0.204008
  10  4.11163e-06
  11  5.21511e-06
  12  3.18731e-06
  13  1.26444e-06
  14  5.83554e-07
  15  4.83148
  16  0.000152682
  17  1.59699e-07
  18  7.81108
  19  0.00114306
  20  1.03817e-05
  21  1.90852e-06
  22  3.68539e-06
  23  0.264725
  24  0.149064
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  3.187e-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:  9.683e-01  1.491e-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.345e+00  2.647e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/672599/likelihoodResults_635904001_636163201_4FGL_J2307.6+1451_daily_bin1530.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) = 7171.60774852
delta logL = -0.00204481209948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7171.60570417
delta logL = -4.60589944851e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1599       1.0000          .0000       10.000    
     3 'Normalizat'    1.3454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96836       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=   7171.606     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      243 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10233E-03    1.1072        .12868E-01** at limit **
   2  Index         2.0790        8.5747        .50000        .70042E-04
   3  Normalizat    1.3455        .37757E-02    .31186E-03   -.84210E-05
   4  Prefactor     .96833        .21736E-02    .20622E-03   -.39471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102335
  Index      = 2.07899
  Normalizat = 1.34546
  Prefactor  = 0.968329
 **********
 **   18 **HESSE 
 **********

 FCN=   7171.606     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10233E-03    34.013        .13191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0790        8.9554        .50000       -.62390    
   3  Normalizat    1.3455        .21179E-01    .12474E-04   -.82219    
   4  Prefactor     .96833        .12192E-01    .82490E-05   -.93793    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23968e-07
Minuit parameter uncertainties:
  1  0.0178336
  2  220.31
  3  0.0211793
  4  0.0121922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672599': 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) = 7171.60570216
delta logL = 1.5502464521e-06

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.023e-04  1.783e-02  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.079e+00  2.203e+02  0.000e+00  1.000e+01 (-1.000e+00)
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.683e-01  1.219e-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.345e+00  2.118e-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/672599/cmap_HighResolution_635904001_636163201_4FGL_J2307.6+1451_daily_bin1530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.27e-08', time_completed='2021-09-29 07:28:47.006410', job_id='672599', GAL2='0.97', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1632925727.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1530' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:28:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 672599: <4FGL_J2307.6+1451_daily_bin1530> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1530 346.922 14.8644 635904001 636163201 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 :                                   722.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             354.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            813 sec.

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

