/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 57 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 = 7389
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0713.0+5738_daily_bin76
RA = 108.26, Dec = 57.6345
tmin = 259027201, tmax = 259286401
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='181026', job_status='RUN', time_executed='2021-08-26 21:57:17.706696', time_epoch_executed='1630040237.71' WHERE source_name='4FGL J0713.0+5738' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/181026

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/181026/ft1_4FGL_J0713.0+5738_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/181026/ft2_4FGL_J0713.0+5738_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/181026/ft1_4FGL_J0713.0+5738_daily_bin76.fits outfile=/scratch/kocevski/181026/ft1_filteredMKT_4FGL_J0713.0+5738_daily_bin76.fits ra=108.26 dec=57.6345 rad=12.0 tmin=259027201.0 tmax=259286401.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 2.28
user 1.25
sys 0.77

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/181026/ft2_4FGL_J0713.0+5738_daily_bin76.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/181026/ft2_4FGL_J0713.0+5738_daily_bin76.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/181026/ft1_filteredMKT_4FGL_J0713.0+5738_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/181026/ft1_filtered_4FGL_J0713.0+5738_daily_bin76.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 1.19
user 0.33
sys 0.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/181026/ft1_filtered_4FGL_J0713.0+5738_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/181026/ft2_4FGL_J0713.0+5738_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/181026/ltcube_259027201_259286401_4FGL_J0713.0+5738_daily_bin76.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/181026/ft2_4FGL_J0713.0+5738_daily_bin76.fits
.....................!
real 13.37
user 12.14
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/181026/ft1_filtered_4FGL_J0713.0+5738_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/181026/ft2_4FGL_J0713.0+5738_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/181026/ltcube_259027201_259286401_4FGL_J0713.0+5738_daily_bin76.fits outfile=/scratch/kocevski/181026/expmap_259027201_259286401_4FGL_J0713.0+5738_daily_bin76.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/181026/ltcube_259027201_259286401_4FGL_J0713.0+5738_daily_bin76.fits
.....................!
real 192.34
user 185.98
sys 5.64

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J0713.0+5738 @ 108.26 57.6345

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/181026/ft1_filtered_4FGL_J0713.0+5738_daily_bin76.fits scfile=/scratch/kocevski/181026/ft2_4FGL_J0713.0+5738_daily_bin76.fits outfile=/scratch/kocevski/181026/cmap_259027201_259286401_4FGL_J0713.0+5738_daily_bin76.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=108.26 yref=57.6345 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 1.06
user 0.37
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/181026/ft1_filtered_4FGL_J0713.0+5738_daily_bin76.fits scfile=/scratch/kocevski/181026/ft2_4FGL_J0713.0+5738_daily_bin76.fits outfile=/scratch/kocevski/181026/cmap_HighResolution_259027201_259286401_4FGL_J0713.0+5738_daily_bin76.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=108.26 yref=57.6345 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 1.14
user 0.37
sys 0.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/181026/ft1_filtered_4FGL_J0713.0+5738_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/181026/ft2_4FGL_J0713.0+5738_daily_bin76.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/181026/Model_4FGL_J0713.0+5738_daily_bin76.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/181026/ft1_filtered_4FGL_J0713.0+5738_daily_bin76.fits.....................!
real 84.72
user 81.64
sys 2.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/181026/ft1_filtered_4FGL_J0713.0+5738_daily_bin76.fits', '/scratch/kocevski/181026/ft2_4FGL_J0713.0+5738_daily_bin76.fits', expMap='/scratch/kocevski/181026/expmap_259027201_259286401_4FGL_J0713.0+5738_daily_bin76.fits', expCube='/scratch/kocevski/181026/ltcube_259027201_259286401_4FGL_J0713.0+5738_daily_bin76.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/181026/Model_4FGL_J0713.0+5738_daily_bin76.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0713.0+5738'

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  5.768e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.400e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  9.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/181026/ft1_filtered_4FGL_J0713.0+5738_daily_bin76.fits
Spacecraft file(s): /scratch/kocevski/181026/ft2_4FGL_J0713.0+5738_daily_bin76.fits
Exposure map: /scratch/kocevski/181026/expmap_259027201_259286401_4FGL_J0713.0+5738_daily_bin76.fits
Exposure cube: /scratch/kocevski/181026/ltcube_259027201_259286401_4FGL_J0713.0+5738_daily_bin76.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/181026/Model_4FGL_J0713.0+5738_daily_bin76.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) = 7062.35919063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3263       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.4717       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.753       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39622       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3446       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .82243       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12407E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.025       1.0000         .10000E-03   10000.    
    21 'norm      '    .43184E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5673       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .70265       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5386       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3678       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84979       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7062.270     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     2826 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9203        .47963E-06** at limit **
   2  Prefactor     .10000E-03    11.654       -.15218E-07** at limit **
   3  Prefactor     8.3250        12.003        .35932E-07   -.27621E-04
   4  Prefactor     .10000E-03    8.4458       -.13116E-05** at limit **
   5  Prefactor     .10000E-03    44.751       -.30771E-05** at limit **
   6  norm          5.4731        5.0496        .20359E-05   -.21822E-02
   7  norm          .10000E-03    4.0325       -.21028E-06** at limit **
   8  Prefactor     22.753        17.637        .98586E-07    .18074E-04
   9  Prefactor     .41797        3.8974       -.82505E-06    .26124E-03
  10  Prefactor     .10000E-03    12.175       -.10981E-05** at limit **
  11  Prefactor     .10000E-03    10.783        .72316E-06** at limit **
  12  Prefactor     7.3434        26.442        .19863E-05   -.13480E-03
  13  Prefactor     .10000E-03    19.874       -.31674E-06** at limit **
  14  Prefactor     .10000E-03    42.953        .37060E-05** at limit **
  15  norm          .10000E-03    .25290       -.67642E-08** at limit **
  16  Prefactor     .10000E-03    6.2832       -.54933E-06** at limit **
  17  norm          .82172        2.0825        .46801E-06    .72397E-04
  18  Prefactor     .10000E-03    10.193        .67897E-06** at limit **
  19  norm          .10000E-03    1.9125        .16811E-06** at limit **
  20  Prefactor     23.006        26.477       -.75576E-05   -.62523E-03
  21  norm          .10000E-03    3.9021        .11237E-07** at limit **
  22  norm          2.5720        2.6935        .99021E-08   -.13012E-03
  23  Prefactor     .70316        1.4686        .33091E-06    .18283E-04
  24  Prefactor     .10000E-03    6.6340        .93113E-06** at limit **
  25  Prefactor     2.5455        8.5048        .69442E-06   -.11111E-03
  26  Normalizat    1.3674        .21132        .31675E-07    .41189E-04
  27  Prefactor     .84998        .10390       -.32963E-06    .14558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.32495
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.47313
  norm       = 0.0001
  Prefactor  = 22.7531
  Prefactor  = 0.417971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.34337
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.821725
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 23.006
  norm       = 0.0001
  norm       = 2.57205
  Prefactor  = 0.703158
  Prefactor  = 0.0001
  Prefactor  = 2.54546
  Normalizat = 1.36738
  Prefactor  = 0.849983
 **********
 **   18 **HESSE 
 **********

 FCN=   7062.270     FROM HESSE     STATUS=OK           490 CALLS     3316 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3250        12.025        .13893E-03   -1.5131    
   4  Prefactor     .10000E-03    8.4716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.4731        6.2143        .85887E-03   -1.5240    
   7  norm          .10000E-03    4.0782        .16455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.753        17.637        .83974E-04   -1.4754    
   9  Prefactor     .41797        33.105        .30523E-02   -1.5579    
  10  Prefactor     .10000E-03    12.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.3434        26.837        .73998E-03   -1.5166    
  13  Prefactor     .10000E-03    19.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    43.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .25628        .41227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.3078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .82172        1.6905        .19023E-02   -1.5527    
  18  Prefactor     .10000E-03    10.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.2996        .22287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.006        28.096        .83476E-04   -1.4748    
  21  norm          .10000E-03    13.447        .28890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5720        2.5220        .12671E-03   -1.5387    
  23  Prefactor     .70316        1.2386        .14245E-02   -1.5540    
  24  Prefactor     .10000E-03    6.7053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.5455        8.3808        .25632E-03   -1.5389    
  26  Normalizat    1.3674        .24287        .29210E-03   -.81577    
  27  Prefactor     .84998        .11981        .18902E-03   -.97911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01395e-09
Minuit parameter uncertainties:
  1  3.99101e-05
  2  5.92403e-06
  3  12.0289
  4  0.000104387
  5  0.00056408
  6  6.21508
  7  6.14603e-06
  8  17.6413
  9  7.44296
  10  0.000100131
  11  6.02797e-05
  12  26.8811
  13  4.09511e-05
  14  0.000653836
  15  1.0037e-07
  16  3.96972e-05
  17  1.69055
  18  5.70353e-05
  19  0.000112476
  20  28.1121
  21  4.5323e-05
  22  2.52207
  23  1.23861
  24  8.63095e-05
  25  8.38465
  26  0.243077
  27  0.119848
Done.

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

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  6.028e-05  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.400e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  9.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
669    Prefactor:  8.500e-01  1.198e-01  0.000e+00  1.000e+01 ( 1.000e+00)
670        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
671        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
668   Normalization:  1.367e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 108.260 57.635
Photon Flux Upper Limit: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/181026/likelihoodResults_259027201_259286401_4FGL_J0713.0+5738_daily_bin76.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) = 7062.27002305
delta logL = -0.000440952688223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7062.26958756
delta logL = -5.45999409951e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15617E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3762       1.0000          .0000       10.000    
     3 'Normalizat'    1.3668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85024       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6720E+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=   7062.270     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10203E-03    135.63        .18142E-02** at limit **
   2  Index         2.3007        7.9761        .50000        .12777E-04
   3  Normalizat    1.3674        .18783E-01    .29210E-03    .29113E-04
   4  Prefactor     .84998        .99077E-02    .18902E-03    .27607E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102034
  Index      = 2.30065
  Normalizat = 1.36738
  Prefactor  = 0.849982
 **********
 **   18 **HESSE 
 **********

 FCN=   7062.270     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 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     .10203E-03    552.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3007        8.7972        .50000       -.57028    
   3  Normalizat    1.3674        .39850E-01    .11684E-04   -.81577    
   4  Prefactor     .84998        .21020E-01    .75607E-05   -.97911    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94254e-08
Minuit parameter uncertainties:
  1  0.0676942
  2  942.121
  3  0.0398507
  4  0.0210205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/181026': 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) = 7062.26958183
delta logL = 2.64075424639e-07

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  1.020e-04  6.769e-02  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.301e+00  9.421e+02  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  9.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
669    Prefactor:  8.500e-01  2.102e-02  0.000e+00  1.000e+01 ( 1.000e+00)
670        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
671        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
668   Normalization:  1.367e+00  3.985e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 108.260 57.635

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/181026/cmap_HighResolution_259027201_259286401_4FGL_J0713.0+5738_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-08-26 22:12:07.984219', job_id='181026', GAL2='0.85', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630041127.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='76' AND source_name='4FGL J0713.0+5738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 22:12:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 181026: <4FGL_J0713.0+5738_daily_bin76> in cluster <slac> Done

Job <4FGL_J0713.0+5738_daily_bin76> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 21:55:44 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 21:55:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 21:55:45 2021
Terminated at Thu Aug 26 22:12:09 2021
Results reported at Thu Aug 26 22:12:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0713.0+5738_daily_bin76 108.26 57.6345 259027201 259286401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0713.0+5738 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   898.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

