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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1400
RA = 346.922, Dec = 14.8644
tmin = 602208001, tmax = 602467201
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='671316', job_status='RUN', time_executed='2021-09-29 07:11:24.507569', time_epoch_executed='1632924684.51' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671316

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671316/ft1_4FGL_J2307.6+1451_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671316/ft2_4FGL_J2307.6+1451_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671316/ft1_4FGL_J2307.6+1451_daily_bin1400.fits outfile=/scratch/kocevski/671316/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1400.fits ra=346.922 dec=14.8644 rad=12.0 tmin=602208001.0 tmax=602467201.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.26
user 5.01
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671316/ft1_filtered_4FGL_J2307.6+1451_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/671316/ft2_4FGL_J2307.6+1451_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/671316/ltcube_602208001_602467201_4FGL_J2307.6+1451_daily_bin1400.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/671316/ft2_4FGL_J2307.6+1451_daily_bin1400.fits
.....................!
real 11.65
user 11.34
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671316/ft1_filtered_4FGL_J2307.6+1451_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/671316/ft2_4FGL_J2307.6+1451_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/671316/ltcube_602208001_602467201_4FGL_J2307.6+1451_daily_bin1400.fits outfile=/scratch/kocevski/671316/expmap_602208001_602467201_4FGL_J2307.6+1451_daily_bin1400.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/671316/ltcube_602208001_602467201_4FGL_J2307.6+1451_daily_bin1400.fits
.....................!
real 192.83
user 187.81
sys 4.05

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/671316/ft1_filtered_4FGL_J2307.6+1451_daily_bin1400.fits scfile=/scratch/kocevski/671316/ft2_4FGL_J2307.6+1451_daily_bin1400.fits outfile=/scratch/kocevski/671316/cmap_602208001_602467201_4FGL_J2307.6+1451_daily_bin1400.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671316/ft1_filtered_4FGL_J2307.6+1451_daily_bin1400.fits scfile=/scratch/kocevski/671316/ft2_4FGL_J2307.6+1451_daily_bin1400.fits outfile=/scratch/kocevski/671316/cmap_HighResolution_602208001_602467201_4FGL_J2307.6+1451_daily_bin1400.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0192       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31424       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41048       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43124       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.958       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0660       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5797       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5209       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5362       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.615       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2208       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3156       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81570       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=   6085.885     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2730 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.242        .28552E-06** at limit **
   2  Prefactor     .10000E-03    12.624        .30610E-06** at limit **
   3  Prefactor     .10000E-03    .75461E-01    .11409E-06** at limit **
   4  Prefactor     .10000E-03    8.2439        .22416E-06** at limit **
   5  norm          3.0221        2.0105       -.74436E-07    .70608E-04
   6  Prefactor     .10000E-03    12.146       -.28244E-07** at limit **
   7  Prefactor     .18745        9.8862       -.16502E-06    .96795E-04
   8  Prefactor     .10000E-03    5.8924        .23611E-07** at limit **
   9  Prefactor     .41045        .16930       -.11267E-07   -.29305E-03
  10  Prefactor     .46896        7.6817        .32227E-06   -.64512E-04
  11  Prefactor     26.928        50.521       -.75166E-06   -.12423E-03
  12  Prefactor     7.0682        9.1930        .70023E-07   -.18844E-04
  13  Prefactor     8.5784        8.9405       -.19953E-07   -.12202E-05
  14  Prefactor     3.0344        20.004        .42881E-06   -.18889E-04
  15  Prefactor     5.5215        6.9455        .22646E-05   -.18945E-03
  16  Prefactor     .10000E-03    4.5101       -.98948E-07** at limit **
  17  Prefactor     4.5418        29.176       -.26214E-05   -.51977E-04
  18  norm          .10000E-03    5.8075       -.91286E-07** at limit **
  19  Prefactor     .10000E-03    4.4916        .72886E-08** at limit **
  20  Prefactor     19.620        29.819       -.54762E-08   -.49238E-04
  21  norm          .10000E-03    5.7156        .54216E-07** at limit **
  22  Prefactor     6.2213        9.0890        .20879E-06   -.12538E-04
  23  Normalizat    1.3153        .23355        .29679E-06   -.10553E-03
  24  Prefactor     .81579        .12447       -.98948E-06   -.28577E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.02212
  Prefactor  = 0.0001
  Prefactor  = 0.187445
  Prefactor  = 0.0001
  Prefactor  = 0.410454
  Prefactor  = 0.468956
  Prefactor  = 26.9276
  Prefactor  = 7.06817
  Prefactor  = 8.57841
  Prefactor  = 3.03437
  Prefactor  = 5.52153
  Prefactor  = 0.0001
  Prefactor  = 4.5418
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6196
  norm       = 0.0001
  Prefactor  = 6.22133
  Normalizat = 1.31534
  Prefactor  = 0.815786
 **********
 **   18 **HESSE 
 **********

 FCN=   6085.885     FROM HESSE     STATUS=OK           411 CALLS     3141 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .89897E-01    .41417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0221        2.0301        .85311E-04   -1.5360    
   6  Prefactor     .10000E-03    12.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18745        17.572        .71173E-01   -1.5621    
   8  Prefactor     .10000E-03    5.8936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .41045        .16783        .19460E-04   -1.5580    
  10  Prefactor     .46896        33.773        .41262E-02   -1.5571    
  11  Prefactor     26.928        50.651        .77157E-04   -1.4670    
  12  Prefactor     7.0682        9.1772        .15091E-03   -1.5176    
  13  Prefactor     8.5784        8.9439        .13685E-03   -1.5122    
  14  Prefactor     3.0344        19.981        .23302E-03   -1.5360    
  15  Prefactor     5.5215        6.9745        .85497E-03   -1.5238    
  16  Prefactor     .10000E-03    4.5170        .16174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5418        29.035        .18902E-03   -1.5282    
  18  norm          .10000E-03    5.8437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.5223        .16139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.620        29.875        .90434E-04   -1.4822    
  21  norm          .10000E-03    5.7198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.2213        9.0930        .16095E-03   -1.5209    
  23  Normalizat    1.3153        .27312        .29712E-03   -.83110    
  24  Prefactor     .81579        .14508        .20324E-03   -.99149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83044e-08
Minuit parameter uncertainties:
  1  8.38065e-06
  2  3.51442e-05
  3  3.70498e-07
  4  4.0136e-06
  5  2.03018
  6  2.61216e-05
  7  3.62989
  8  1.57171e-06
  9  0.167834
  10  7.96327
  11  50.7324
  12  9.179
  13  8.94526
  14  15.5804
  15  6.97556
  16  6.14797e-06
  17  22.9833
  18  5.67227e-06
  19  2.70111e-06
  20  29.8978
  21  2.96262e-06
  22  9.09499
  23  0.273423
  24  0.145153
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  7.068e+00  9.179e+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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.158e-01  1.452e-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.315e+00  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.74
Ra Dec: 346.922 14.864
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671316/likelihoodResults_602208001_602467201_4FGL_J2307.6+1451_daily_bin1400.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): 0
logL (Free Index) = 6084.96576111
delta logL = 0.919091576261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6084.93820898
delta logL = 0.946643710131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3223       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4231       1.0000          .0000       10.000    
     3 'Normalizat'    1.2207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84579       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=   6084.938     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      254 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3186        12.506        .95632E-02    .82039E-03
   2  Index         3.4242        1.9773        .99068E-01    .19129E-03
   3  Normalizat    1.2204        .62949E-01    .69185E-01   -.21118E-04
   4  Prefactor     .84594        .34133E-01    .44310E-01   -.93016E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.3186
  Index      = 3.42421
  Normalizat = 1.22041
  Prefactor  = 0.845937
 **********
 **   18 **HESSE 
 **********

 FCN=   6084.938     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3186        28.086        .58013E-04   -1.5478    
   2  Index         3.4242        3.4949        .35211E-02   -.32062    
   3  Normalizat    1.2204        .29809        .30611E-03   -.85974    
   4  Prefactor     .84594        .15943        .19970E-03   -.98057    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.0567e-10
Minuit parameter uncertainties:
  1  12.1771
  2  3.92862
  3  0.298507
  4  0.159513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671316': 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) = 6084.93820768
delta logL = 0.946645003411

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.319e+00  1.218e+01  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  3.424e+00  3.929e+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:  8.459e-01  1.595e-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.220e+00  2.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 346.922 14.864
Photon Index (Free Index): 3.42 +/- 3.93
Photon Flux (Free Index): 1.37e-07 +/- 1.43e-07
Energy Flux (Free Index): 2.33e-05 +/- 1.78e-05

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/671316/cmap_HighResolution_602208001_602467201_4FGL_J2307.6+1451_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', energy_flux2='2.33e-05', dlogl='9.47e-01', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-29 07:22:38.130084', photon_index_error2='3.93', photon_index2='3.42', ts='0.74', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.78e-05', EG='1.32', time_epoch_completed='1632925358.13', return_code='0', job_id='671316', GAL2='0.85', EG2='1.22', return_code2='102', photon_flux_error2='1.43e-07', ts2='2.74', photon_index='2.18' WHERE bin_id='1400' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:22:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 671316: <4FGL_J2307.6+1451_daily_bin1400> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1400> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 07:10:54 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:10:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 07:10:56 2021
Terminated at Wed Sep 29 07:22:38 2021
Results reported at Wed Sep 29 07:22:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1400 346.922 14.8644 602208001 602467201 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 :                                   651.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            704 sec.

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

