/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 9 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 = 7385
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0713.0+5738_daily_bin433
RA = 108.26, Dec = 57.6345
tmin = 351561601, tmax = 351820801
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='182758', job_status='RUN', time_executed='2021-08-26 22:01:22.177150', time_epoch_executed='1630040482.18' WHERE source_name='4FGL J0713.0+5738' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/182758

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/182758/ft1_4FGL_J0713.0+5738_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/182758/ft2_4FGL_J0713.0+5738_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/182758/ft1_4FGL_J0713.0+5738_daily_bin433.fits outfile=/scratch/kocevski/182758/ft1_filteredMKT_4FGL_J0713.0+5738_daily_bin433.fits ra=108.26 dec=57.6345 rad=12.0 tmin=351561601.0 tmax=351820801.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 7.59
user 6.69
sys 0.79

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/182758/ft2_4FGL_J0713.0+5738_daily_bin433.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/182758/ft1_filteredMKT_4FGL_J0713.0+5738_daily_bin433.fits evtable="EVENTS" outfile="/scratch/kocevski/182758/ft1_filtered_4FGL_J0713.0+5738_daily_bin433.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.10
user 0.35
sys 0.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/182758/ft1_filtered_4FGL_J0713.0+5738_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/182758/ft2_4FGL_J0713.0+5738_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/182758/ltcube_351561601_351820801_4FGL_J0713.0+5738_daily_bin433.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/182758/ft2_4FGL_J0713.0+5738_daily_bin433.fits
.....................!
real 12.41
user 11.43
sys 0.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/182758/ft1_filtered_4FGL_J0713.0+5738_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/182758/ft2_4FGL_J0713.0+5738_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/182758/ltcube_351561601_351820801_4FGL_J0713.0+5738_daily_bin433.fits outfile=/scratch/kocevski/182758/expmap_351561601_351820801_4FGL_J0713.0+5738_daily_bin433.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/182758/ltcube_351561601_351820801_4FGL_J0713.0+5738_daily_bin433.fits
.....................!
real 191.81
user 186.01
sys 5.03

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/182758/ft1_filtered_4FGL_J0713.0+5738_daily_bin433.fits scfile=/scratch/kocevski/182758/ft2_4FGL_J0713.0+5738_daily_bin433.fits outfile=/scratch/kocevski/182758/cmap_351561601_351820801_4FGL_J0713.0+5738_daily_bin433.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.12
user 0.36
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/182758/ft1_filtered_4FGL_J0713.0+5738_daily_bin433.fits scfile=/scratch/kocevski/182758/ft2_4FGL_J0713.0+5738_daily_bin433.fits outfile=/scratch/kocevski/182758/cmap_HighResolution_351561601_351820801_4FGL_J0713.0+5738_daily_bin433.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.13
user 0.39
sys 0.73

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/182758/ft1_filtered_4FGL_J0713.0+5738_daily_bin433.fits', '/scratch/kocevski/182758/ft2_4FGL_J0713.0+5738_daily_bin433.fits', expMap='/scratch/kocevski/182758/expmap_351561601_351820801_4FGL_J0713.0+5738_daily_bin433.fits', expCube='/scratch/kocevski/182758/ltcube_351561601_351820801_4FGL_J0713.0+5738_daily_bin433.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/182758/Model_4FGL_J0713.0+5738_daily_bin433.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/182758/ft1_filtered_4FGL_J0713.0+5738_daily_bin433.fits
Spacecraft file(s): /scratch/kocevski/182758/ft2_4FGL_J0713.0+5738_daily_bin433.fits
Exposure map: /scratch/kocevski/182758/expmap_351561601_351820801_4FGL_J0713.0+5738_daily_bin433.fits
Exposure cube: /scratch/kocevski/182758/ltcube_351561601_351820801_4FGL_J0713.0+5738_daily_bin433.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/182758/Model_4FGL_J0713.0+5738_daily_bin433.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) = 6858.32405551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3671       1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.043       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8218       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.817       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.433       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.796       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6116       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.965       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.6721       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10708E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11370E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.8520       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5944       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .60192       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0508       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=   6858.311     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3371 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2910        48.745        .55122E-05    .59838E-04
   2  Prefactor     42.041        28.152        .92040E-09    .35630E-04
   3  Prefactor     1.8245        6.0736        .25331E-05    .12667E-02
   4  Prefactor     36.308        31.909       -.54867E-06    .22936E-04
   5  Prefactor     11.816        22.225       -.67183E-07    .51195E-05
   6  norm          .10000E-03    2.4680       -.21155E-06** at limit **
   7  norm          .10000E-03    1.5832       -.11996E-06** at limit **
   8  Prefactor     .10000E-03    7.0021       -.24143E-06** at limit **
   9  Prefactor     .10000E-03    2.2024       -.14233E-06** at limit **
  10  Prefactor     14.436        15.810       -.15682E-06    .43403E-04
  11  Prefactor     25.812        20.376       -.51733E-06    .37961E-04
  12  Prefactor     5.5474        31.929        .36825E-06    .76700E-04
  13  Prefactor     27.959        28.669        .14480E-06    .10145E-03
  14  Prefactor     .10000E-03    43.852       -.42510E-05** at limit **
  15  norm          .10000E-03    .45133       -.90529E-07** at limit **
  16  Prefactor     .10000E-03    6.3031       -.11071E-06** at limit **
  17  norm          4.6721        2.9553       -.35563E-07    .12773E-03
  18  Prefactor     .10000E-03    12.566       -.17649E-06** at limit **
  19  norm          .10148E-03    6.6759       -.38109E-05** at limit **
  20  Prefactor     .10000E-03    22.421       -.65641E-06** at limit **
  21  norm          .10000E-03    4.9456       -.34036E-06** at limit **
  22  norm          .10000E-03    1.1696       -.44413E-06** at limit **
  23  Prefactor     .10000E-03    .82525       -.46973E-06** at limit **
  24  Prefactor     7.8519        8.7798       -.20833E-07    .17843E-03
  25  Prefactor     4.5936        5.8384        .39334E-06    .10065E-02
  26  Normalizat    .60136        .21085        .65905E-05    .66277E-03
  27  Prefactor     1.0511        .11558       -.19373E-05    .15262E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.29103
  Prefactor  = 42.0406
  Prefactor  = 1.82449
  Prefactor  = 36.3083
  Prefactor  = 11.8156
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4359
  Prefactor  = 25.8117
  Prefactor  = 5.54742
  Prefactor  = 27.9585
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.67208
  Prefactor  = 0.0001
  norm       = 0.000101477
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.8519
  Prefactor  = 4.5936
  Normalizat = 0.601358
  Prefactor  = 1.0511
 **********
 **   18 **HESSE 
 **********

 FCN=   6858.311     FROM HESSE     STATUS=OK           492 CALLS     3863 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2910        48.251        .17347E-03   -1.5248    
   2  Prefactor     42.041        28.113        .61825E-04   -1.4410    
   3  Prefactor     1.8245        6.3874        .15468E-02   -1.5438    
   4  Prefactor     36.308        31.909        .66515E-04   -1.4502    
   5  Prefactor     11.816        22.220        .11653E-03   -1.5020    
   6  norm          .10000E-03    2.5246        .12711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5913        .10178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2212        .12007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.436        15.795        .10543E-03   -1.4948    
  11  Prefactor     25.812        20.330        .78873E-04   -1.4691    
  12  Prefactor     5.5474        31.193        .16959E-03   -1.5237    
  13  Prefactor     27.959        28.642        .75758E-04   -1.4650    
  14  Prefactor     .10000E-03    44.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.1765        .10417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.3189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6721        2.9537        .10985E-03   -1.5276    
  18  Prefactor     .10000E-03    12.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10148E-03    39.529        .17847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.1155        .35860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0192        .17320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3772        .14305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.8519        8.7650        .14310E-03   -1.5147    
  25  Prefactor     4.5936        5.8529        .93894E-03   -1.5279    
  26  Normalizat    .60136        .21956        .36616E-03   -1.0793    
  27  Prefactor     1.0511        .12095        .16072E-03   -.91045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8871e-08
Minuit parameter uncertainties:
  1  31.99
  2  28.1216
  3  6.38981
  4  31.9238
  5  22.2354
  6  1.10863e-05
  7  5.98973e-06
  8  1.39185e-05
  9  1.24823e-05
  10  15.7998
  11  20.3353
  12  26.3296
  13  28.6558
  14  0.000760812
  15  2.00913e-06
  16  2.16998e-05
  17  2.95383
  18  1.07334e-05
  19  0.0152924
  20  6.11576e-05
  21  4.12172e-05
  22  2.55643e-05
  23  2.71336e-05
  24  8.76645
  25  5.85367
  26  0.219883
  27  0.120982
Done.

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

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  2.581e+01  2.034e+01  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:  1.051e+00  1.210e-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:  6.014e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 108.260 57.635
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.16e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.07e-05

TS (Fixed Index): 3.30
Ra Dec: 108.260 57.635
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/182758/likelihoodResults_351561601_351820801_4FGL_J0713.0+5738_daily_bin433.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) = 6857.84641647
delta logL = 0.464586383594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6857.78547614
delta logL = 0.525526712513

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.518       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7692       1.0000          .0000       10.000    
     3 'Normalizat'    .62514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0429       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.

 FCN=   6857.785     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      218 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.570        35.799        .17052E-02    .22935E-04
   2  Index         1.7697        .63113        .19680       -.43845E-04
   3  Normalizat    .62460        .18435        .81196E-01    .23180E-03
   4  Prefactor     1.0431        .10442        .40347E-01    .65018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.5702
  Index      = 1.76972
  Normalizat = 0.624605
  Prefactor  = 1.04315
 **********
 **   18 **HESSE 
 **********

 FCN=   6857.785     FROM HESSE     STATUS=OK            29 CALLS      247 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.570        26.641        .68207E-04   -1.4531    
   2  Index         1.7697        .54777        .97962E-02   -.70241    
   3  Normalizat    .62460        .20455        .35957E-03   -1.0695    
   4  Prefactor     1.0431        .11667        .16123E-03   -.91305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04755e-10
Minuit parameter uncertainties:
  1  26.6504
  2  0.549664
  3  0.204796
  4  0.116703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/182758': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6857.7854709
delta logL = 0.525531952414

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  3.457e+01  2.665e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  1.770e+00  5.497e-01  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:  1.043e+00  1.167e-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:  6.246e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 108.260 57.635
Photon Index (Free Index): 1.77 +/- 0.55
Photon Flux (Free Index): 2.43e-08 +/- 2.40e-08
Energy Flux (Free Index): 3.19e-05 +/- 4.18e-05

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/182758/cmap_HighResolution_351561601_351820801_4FGL_J0713.0+5738_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.96e-03', comment='SUCCESS', photon_flux='4.16e-08', energy_flux2='3.19e-05', photon_flux_error='3.28e-08', dlogl='5.26e-01', energy_flux='1.36e-05', photon_flux2='2.43e-08', job_status='DONE', time_completed='2021-08-26 22:17:16.888678', photon_index_error2='0.55', photon_index2='1.77', ts='3.30', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='4.18e-05', EG='0.60', time_epoch_completed='1630041436.89', return_code='0', job_id='182758', GAL2='1.04', EG2='0.62', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.40e-08', ts2='4.34', photon_index='2.40' WHERE bin_id='433' AND source_name='4FGL J0713.0+5738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 22:17:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 182758: <4FGL_J0713.0+5738_daily_bin433> in cluster <slac> Done

Job <4FGL_J0713.0+5738_daily_bin433> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 26 22:00:47 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 22:00:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 22:00:54 2021
Terminated at Thu Aug 26 22:17:17 2021
Results reported at Thu Aug 26 22:17:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0713.0+5738_daily_bin433 108.26 57.6345 351561601 351820801 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 :                                   957.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            990 sec.

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

