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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1534
RA = 346.922, Dec = 14.8644
tmin = 636940801, tmax = 637200001
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='672605', job_status='RUN', time_executed='2021-09-29 07:18:39.258531', time_epoch_executed='1632925119.26' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1534'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672605

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672605/ft1_4FGL_J2307.6+1451_daily_bin1534.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672605/ft2_4FGL_J2307.6+1451_daily_bin1534.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/672605/ft1_4FGL_J2307.6+1451_daily_bin1534.fits outfile=/scratch/kocevski/672605/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1534.fits ra=346.922 dec=14.8644 rad=12.0 tmin=636940801.0 tmax=637200001.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.37
user 5.09
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/672605/ft1_filtered_4FGL_J2307.6+1451_daily_bin1534.fits" evtable="EVENTS" scfile=/scratch/kocevski/672605/ft2_4FGL_J2307.6+1451_daily_bin1534.fits sctable="SC_DATA" outfile=/scratch/kocevski/672605/ltcube_636940801_637200001_4FGL_J2307.6+1451_daily_bin1534.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/672605/ft2_4FGL_J2307.6+1451_daily_bin1534.fits
.....................!
real 11.94
user 11.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672605/ft1_filtered_4FGL_J2307.6+1451_daily_bin1534.fits evtable="EVENTS" scfile=/scratch/kocevski/672605/ft2_4FGL_J2307.6+1451_daily_bin1534.fits sctable="SC_DATA" expcube=/scratch/kocevski/672605/ltcube_636940801_637200001_4FGL_J2307.6+1451_daily_bin1534.fits outfile=/scratch/kocevski/672605/expmap_636940801_637200001_4FGL_J2307.6+1451_daily_bin1534.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/672605/ltcube_636940801_637200001_4FGL_J2307.6+1451_daily_bin1534.fits
.....................!
real 190.67
user 185.49
sys 4.58

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/672605/ft1_filtered_4FGL_J2307.6+1451_daily_bin1534.fits scfile=/scratch/kocevski/672605/ft2_4FGL_J2307.6+1451_daily_bin1534.fits outfile=/scratch/kocevski/672605/cmap_636940801_637200001_4FGL_J2307.6+1451_daily_bin1534.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/672605/ft1_filtered_4FGL_J2307.6+1451_daily_bin1534.fits scfile=/scratch/kocevski/672605/ft2_4FGL_J2307.6+1451_daily_bin1534.fits outfile=/scratch/kocevski/672605/cmap_HighResolution_636940801_637200001_4FGL_J2307.6+1451_daily_bin1534.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3392       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.415       1.0000         .10000E-03   10000.    
     5 'norm      '    9.0231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .90932       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20682E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .56426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.290       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12429E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.011       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.152       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .98518       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    21.116       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75374       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2430       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=   7144.826     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2702 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3379        14.132        .15995E-05   -.27327E-03
   2  Prefactor     .10001E-03    14.177        .36243E-05** at limit **
   3  Prefactor     .10000E-03    .75443E-01   -.24319E-07** at limit **
   4  Prefactor     12.414        7.7053        .21231E-07    .17795E-04
   5  norm          9.0232        2.7797       -.10473E-06   -.22317E-03
   6  Prefactor     .10000E-03    11.971       -.13523E-05** at limit **
   7  Prefactor     .91097        16.367        .36829E-05   -.23777E-03
   8  Prefactor     .10000E-03    93.676       -.12184E-05** at limit **
   9  Prefactor     .56408        .16694        .45342E-08   -.11652E-03
  10  Prefactor     .10000E-03    16.190       -.30583E-05** at limit **
  11  Prefactor     46.238        41.740        .30812E-05    .28023E-03
  12  Prefactor     .10000E-03    3.5835        .28679E-07** at limit **
  13  Prefactor     14.292        10.550        .77254E-07    .22060E-04
  14  Prefactor     .10000E-03    40.545        .39772E-06** at limit **
  15  Prefactor     13.013        7.2736        .73026E-06   -.69925E-03
  16  Prefactor     12.155        10.110       -.57798E-07   -.15607E-06
  17  Prefactor     .10000E-03    10.268        .27828E-06** at limit **
  18  norm          .98492        4.7415        .16690E-05   -.31718E-03
  19  Prefactor     .10000E-03    4.4380       -.42749E-07** at limit **
  20  Prefactor     .10000E-03    7.1817       -.59604E-07** at limit **
  21  norm          21.119        14.910        .53821E-07   -.18394E-04
  22  Prefactor     .10000E-03    2.1445        .22024E-07** at limit **
  23  Normalizat    .75350        .23023       -.16849E-05   -.34285E-04
  24  Prefactor     1.2430        .13703       -.10680E-06   -.53463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.33788
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 12.4145
  norm       = 9.02315
  Prefactor  = 0.000100001
  Prefactor  = 0.910973
  Prefactor  = 0.0001
  Prefactor  = 0.564084
  Prefactor  = 0.000100003
  Prefactor  = 46.2383
  Prefactor  = 0.0001
  Prefactor  = 14.2923
  Prefactor  = 0.0001
  Prefactor  = 13.0126
  Prefactor  = 12.1546
  Prefactor  = 0.0001
  norm       = 0.98492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.1192
  Prefactor  = 0.0001
  Normalizat = 0.753499
  Prefactor  = 1.24296
 **********
 **   18 **HESSE 
 **********

 FCN=   7144.826     FROM HESSE     STATUS=OK           399 CALLS     3101 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3379        14.297        .65570E-03   -1.5097    
   2  Prefactor     .10001E-03    15.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .16029        .44534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.414        7.6974        .11369E-03   -1.5003    
   5  norm          9.0232        2.7639        .73938E-04   -1.5107    
   6  Prefactor     .10000E-03    12.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .91097        18.032        .51365E-03   -1.5517    
   8  Prefactor     .10000E-03    97.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .56408        .16591        .17848E-04   -1.5558    
  10  Prefactor     .10000E-03    16.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     46.238        42.830        .58972E-04   -1.4347    
  12  Prefactor     .10000E-03    3.6269        .15623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.292        10.547        .10595E-03   -1.4952    
  14  Prefactor     .10000E-03    41.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.013        7.4078        .55524E-03   -1.4986    
  16  Prefactor     12.155        10.065        .11491E-03   -1.5011    
  17  Prefactor     .10000E-03    10.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .98492        4.8583        .36074E-03   -1.5509    
  19  Prefactor     .10000E-03    4.4944        .17371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          21.119        14.909        .87164E-04   -1.4789    
  22  Prefactor     .10000E-03    2.1611        .12089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .75350        .25654        .38241E-03   -1.0182    
  24  Prefactor     1.2430        .15412        .18756E-03   -.85019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79936e-09
Minuit parameter uncertainties:
  1  14.3023
  2  0.000556581
  3  5.53972e-07
  4  7.69799
  5  2.76391
  6  0.000188296
  7  8.10826
  8  0.000334149
  9  0.16591
  10  0.000438344
  11  42.8588
  12  3.89379e-06
  13  10.5488
  14  0.000153158
  15  7.40831
  16  10.0664
  17  4.09312e-05
  18  4.37531
  19  3.6341e-07
  20  5.99148e-06
  21  14.9118
  22  2.16762e-06
  23  0.256949
  24  0.154179
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  3.894e-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:  1.243e+00  1.542e-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:  7.535e-01  2.569e-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.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/672605/likelihoodResults_636940801_637200001_4FGL_J2307.6+1451_daily_bin1534.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) = 7144.82701048
delta logL = -0.00131198724193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7144.82569875
delta logL = -2.5536337489e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1635       1.0000          .0000       10.000    
     3 'Normalizat'    .75330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2431       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=   7144.826     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    21.208        .15878E-02** at limit **
   2  Index         2.1319        7.5799        .50000        .38567E-04
   3  Normalizat    .75350        .12907E-01    .38241E-03    .24348E-04
   4  Prefactor     1.2430        .79869E-02    .18756E-03    .68009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100422
  Index      = 2.13191
  Normalizat = 0.753499
  Prefactor  = 1.24296
 **********
 **   18 **HESSE 
 **********

 FCN=   7144.826     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10042E-03    100.34        .31755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1319        8.6417        .50000       -.61091    
   3  Normalizat    .75350        .28759E-01    .15296E-04   -1.0182    
   4  Prefactor     1.2430        .17795E-01    .37512E-04   -.85019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.88641e-08
Minuit parameter uncertainties:
  1  0.0130288
  2  194.932
  3  0.02876
  4  0.0177952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672605': 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) = 7144.82569801
delta logL = 4.81512870465e-07

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.004e-04  1.303e-02  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.132e+00  1.949e+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:  1.243e+00  1.780e-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:  7.535e-01  2.876e-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/672605/cmap_HighResolution_636940801_637200001_4FGL_J2307.6+1451_daily_bin1534.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.80e-08', time_completed='2021-09-29 07:30:54.473575', job_id='672605', GAL2='1.24', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632925854.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='4.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1534' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:30:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 672605: <4FGL_J2307.6+1451_daily_bin1534> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1534> 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) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:15:16 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:16 2021
Terminated at Wed Sep 29 07:30:55 2021
Results reported at Wed Sep 29 07:30:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1534 346.922 14.8644 636940801 637200001 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 :                                   728.00 sec.
    Max Memory :                                 1192 MB
    Average Memory :                             284.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            941 sec.

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

