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


Performing analysis on: 4FGL_J0713.0+5738_daily_bin1267
RA = 108.26, Dec = 57.6345
tmin = 567734401, tmax = 567993601
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='188613', job_status='RUN', time_executed='2021-08-26 22:21:04.508206', time_epoch_executed='1630041664.51' WHERE source_name='4FGL J0713.0+5738' and cadence='daily' and bin_id='1267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188613

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188613/ft1_4FGL_J0713.0+5738_daily_bin1267.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188613/ft2_4FGL_J0713.0+5738_daily_bin1267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188613/ft1_4FGL_J0713.0+5738_daily_bin1267.fits outfile=/scratch/kocevski/188613/ft1_filteredMKT_4FGL_J0713.0+5738_daily_bin1267.fits ra=108.26 dec=57.6345 rad=12.0 tmin=567734401.0 tmax=567993601.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 3.34
user 2.11
sys 1.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188613/ft1_filtered_4FGL_J0713.0+5738_daily_bin1267.fits" evtable="EVENTS" scfile=/scratch/kocevski/188613/ft2_4FGL_J0713.0+5738_daily_bin1267.fits sctable="SC_DATA" outfile=/scratch/kocevski/188613/ltcube_567734401_567993601_4FGL_J0713.0+5738_daily_bin1267.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/188613/ft2_4FGL_J0713.0+5738_daily_bin1267.fits
.....................!
real 13.95
user 12.31
sys 1.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188613/ft1_filtered_4FGL_J0713.0+5738_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/188613/ft2_4FGL_J0713.0+5738_daily_bin1267.fits sctable="SC_DATA" expcube=/scratch/kocevski/188613/ltcube_567734401_567993601_4FGL_J0713.0+5738_daily_bin1267.fits outfile=/scratch/kocevski/188613/expmap_567734401_567993601_4FGL_J0713.0+5738_daily_bin1267.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/188613/ltcube_567734401_567993601_4FGL_J0713.0+5738_daily_bin1267.fits
.....................!
real 191.18
user 185.12
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/188613/ft1_filtered_4FGL_J0713.0+5738_daily_bin1267.fits scfile=/scratch/kocevski/188613/ft2_4FGL_J0713.0+5738_daily_bin1267.fits outfile=/scratch/kocevski/188613/cmap_567734401_567993601_4FGL_J0713.0+5738_daily_bin1267.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.69
user 0.37
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188613/ft1_filtered_4FGL_J0713.0+5738_daily_bin1267.fits scfile=/scratch/kocevski/188613/ft2_4FGL_J0713.0+5738_daily_bin1267.fits outfile=/scratch/kocevski/188613/cmap_HighResolution_567734401_567993601_4FGL_J0713.0+5738_daily_bin1267.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.65
user 0.37
sys 1.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .31263E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12898E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    100.10       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.763       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    138.72       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .50435E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11179E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.9733       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.412       1.0000         .10000E-03   10000.    
    22 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2377       1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.096       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10913E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .82577       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92849       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=   1727.850     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3719 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        9157.2        .45780E-02** at limit **
   2  Prefactor     .10001E-03    238.89       -.60137E-04** at limit **
   3  Prefactor     .10000E-03    180.29        .41436E-05** at limit **
   4  Prefactor     .10001E-03    115.96        .80002E-04** at limit **
   5  Prefactor     .10000E-03    140.21       -.11122E-04** at limit **
   6  norm          .10000E-03    16.310       -.77315E-05** at limit **
   7  norm          .10000E-03    15.892       -.26063E-05** at limit **
   8  Prefactor     100.05        79.045       -.57752E-04   -.95554E-04
   9  Prefactor     .10000E-03    31.804        .22090E-04** at limit **
  10  Prefactor     .10000E-03    52.985        .40741E-05** at limit **
  11  Prefactor     18.047        104.49        .55348E-03    .13653E-03
  12  Prefactor     .10005E-03    37.695       -.28268E-04** at limit **
  13  Prefactor     138.71        141.37       -.31647E-05   -.16683E-04
  14  Prefactor     .10000E-03    204.25       -.98900E-05** at limit **
  15  norm          .10000E-03    .68208       -.30324E-06** at limit **
  16  Prefactor     .10000E-03    49.133       -.13631E-04** at limit **
  17  norm          .10000E-03    5.5355       -.37173E-07** at limit **
  18  Prefactor     .10000E-03    13.093       -.85407E-06** at limit **
  19  norm          6.9731        5.2841        .15314E-05   -.43899E-03
  20  Prefactor     .10000E-03    17.996       -.38491E-06** at limit **
  21  norm          10.409        11.307        .35135E-05   -.28180E-03
  22  norm          .10000E-03    2.1644        .13591E-06** at limit **
  23  Prefactor     2.2373        2.6398        .23014E-05   -.93624E-04
  24  Prefactor     32.105        27.404        .56903E-05   -.24268E-03
  25  Prefactor     .10000E-03    15.216        .10418E-04** at limit **
  26  Normalizat    .82487        .42887       -.56478E-04   -.19324E-04
  27  Prefactor     .92907        .25465       -.58187E-05   -.21816E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 100.049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0475
  Prefactor  = 0.000100051
  Prefactor  = 138.713
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.97306
  Prefactor  = 0.0001
  norm       = 10.4092
  norm       = 0.0001
  Prefactor  = 2.23726
  Prefactor  = 32.1053
  Prefactor  = 0.000100001
  Normalizat = 0.824873
  Prefactor  = 0.929075
 **********
 **   18 **HESSE 
 **********

 FCN=   1727.850     FROM HESSE     STATUS=OK           468 CALLS     4187 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9151.7        .18589E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    241.25        .20761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    181.15        .21372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    115.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    140.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    16.310        .16401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    15.892        .16189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     100.05        79.072        .20091E-03   -1.3704    
   9  Prefactor     .10000E-03    31.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    52.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.047        103.50        .95031E-04   -1.4858    
  12  Prefactor     .10005E-03    37.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     138.71        141.39        .34200E-04   -1.3347    
  14  Prefactor     .10000E-03    204.44        .21153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .68368        .33522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    49.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.5433        .95518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.095        .14693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.9731        5.2794        .77507E-04   -1.5180    
  20  Prefactor     .10000E-03    17.997        .17227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.409        11.316        .12417E-03   -1.5063    
  22  norm          .10000E-03    2.1686        .59680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.2373        2.6219        .68641E-04   -1.5409    
  24  Prefactor     32.105        27.408        .70727E-04   -1.4574    
  25  Prefactor     .10000E-03    15.286        .15815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .82487        .47506        .36419E-03   -.99153    
  27  Prefactor     .92907        .28415        .21330E-03   -.95132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92839e-09
Minuit parameter uncertainties:
  1  0.000764034
  2  0.00349068
  3  0.000296177
  4  0.00165331
  5  0.00164929
  6  9.93608e-05
  7  5.35329e-05
  8  79.1558
  9  3.09481e-05
  10  0.000233555
  11  86.6684
  12  0.00277244
  13  141.742
  14  0.0015386
  15  3.60076e-05
  16  0.00052868
  17  5.60482e-05
  18  3.52396e-05
  19  5.27972
  20  9.56483e-06
  21  11.3187
  22  1.98022e-05
  23  2.62203
  24  27.4191
  25  0.000268864
  26  0.477484
  27  0.284602
Done.

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

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  1.805e+01  8.667e+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:  9.291e-01  2.846e-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:  8.249e-01  4.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 108.260 57.635
Photon Flux Upper Limit: 3.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188613/likelihoodResults_567734401_567993601_4FGL_J0713.0+5738_daily_bin1267.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) = 1727.81513858
delta logL = 0.0348108382852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1727.81268781
delta logL = 0.0372616097752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.948       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9017       1.0000          .0000       10.000    
     3 'Normalizat'    .81202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93172       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=   1727.813     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      232 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.948        6032.0        .25899E-02   -.52592E-04
   2  Index         2.9013        5.8357        .22342        .20051E-04
   3  Normalizat    .81231        .11192        .82803E-01    .67645E-05
   4  Prefactor     .93155        .70382E-01    .45408E-01    .11033E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9478
  Index      = 2.90133
  Normalizat = 0.81231
  Prefactor  = 0.93155
 **********
 **   18 **HESSE 
 **********

 FCN=   1727.813     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.948        74.971        .10360E-03   -1.4935    
   2  Index         2.9013        2.0473        .82433E-02   -.43315    
   3  Normalizat    .81231        .45416        .36665E-03   -.99614    
   4  Prefactor     .93155        .28138        .21298E-03   -.95047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22126e-10
Minuit parameter uncertainties:
  1  67.0865
  2  2.12403
  3  0.456309
  4  0.281821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188613': 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) = 1727.81268757
delta logL = 0.0372618445017

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  1.495e+01  6.709e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.901e+00  2.124e+00  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:  9.316e-01  2.818e-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:  8.123e-01  4.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 108.260 57.635

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/188613/cmap_HighResolution_567734401_567993601_4FGL_J0713.0+5738_daily_bin1267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-02', job_status='DONE', photon_flux_upper_limit='3.78e-07', time_completed='2021-08-26 22:29:06.867335', job_id='188613', GAL2='0.93', fit_tolerance='1e-08', EG2='0.81', EG='0.82', time_epoch_completed='1630042146.87', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.73e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1267' AND source_name='4FGL J0713.0+5738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 22:29:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 188613: <4FGL_J0713.0+5738_daily_bin1267> in cluster <slac> Done

Job <4FGL_J0713.0+5738_daily_bin1267> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 26 22:20:34 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 22:20:36 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:20:36 2021
Terminated at Thu Aug 26 22:29:07 2021
Results reported at Thu Aug 26 22:29:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0713.0+5738_daily_bin1267 108.26 57.6345 567734401 567993601 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 :                                   496.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             375.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   511 sec.
    Turnaround time :                            513 sec.

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

