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


Performing analysis on: 4FGL_J0713.0+5738_daily_bin381
RA = 108.26, Dec = 57.6345
tmin = 338083201, tmax = 338342401
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='182681', job_status='RUN', time_executed='2021-08-26 22:01:04.362126', time_epoch_executed='1630040464.36' WHERE source_name='4FGL J0713.0+5738' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/182681

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/182681/ft1_4FGL_J0713.0+5738_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/182681/ft2_4FGL_J0713.0+5738_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/182681/ft1_4FGL_J0713.0+5738_daily_bin381.fits outfile=/scratch/kocevski/182681/ft1_filteredMKT_4FGL_J0713.0+5738_daily_bin381.fits ra=108.26 dec=57.6345 rad=12.0 tmin=338083201.0 tmax=338342401.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.35
user 6.40
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/182681/ft2_4FGL_J0713.0+5738_daily_bin381.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/182681/ft1_filteredMKT_4FGL_J0713.0+5738_daily_bin381.fits evtable="EVENTS" outfile="/scratch/kocevski/182681/ft1_filtered_4FGL_J0713.0+5738_daily_bin381.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/182681/ft1_filtered_4FGL_J0713.0+5738_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/182681/ft2_4FGL_J0713.0+5738_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/182681/ltcube_338083201_338342401_4FGL_J0713.0+5738_daily_bin381.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/182681/ft2_4FGL_J0713.0+5738_daily_bin381.fits
.....................!
real 13.23
user 12.85
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/182681/ft1_filtered_4FGL_J0713.0+5738_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/182681/ft2_4FGL_J0713.0+5738_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/182681/ltcube_338083201_338342401_4FGL_J0713.0+5738_daily_bin381.fits outfile=/scratch/kocevski/182681/expmap_338083201_338342401_4FGL_J0713.0+5738_daily_bin381.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/182681/ltcube_338083201_338342401_4FGL_J0713.0+5738_daily_bin381.fits
.....................!
real 191.95
user 186.26
sys 5.20

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/182681/ft1_filtered_4FGL_J0713.0+5738_daily_bin381.fits scfile=/scratch/kocevski/182681/ft2_4FGL_J0713.0+5738_daily_bin381.fits outfile=/scratch/kocevski/182681/cmap_338083201_338342401_4FGL_J0713.0+5738_daily_bin381.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 0.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/182681/ft1_filtered_4FGL_J0713.0+5738_daily_bin381.fits scfile=/scratch/kocevski/182681/ft2_4FGL_J0713.0+5738_daily_bin381.fits outfile=/scratch/kocevski/182681/cmap_HighResolution_338083201_338342401_4FGL_J0713.0+5738_daily_bin381.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 0.61
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.812       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7692       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.219       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .92134E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.6206       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7656       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .62869       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2758       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1944       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11329E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9283       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.5238       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.575       1.0000         .10000E-03   10000.    
    19 'norm      '    2.9860       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.9528       1.0000         .10000E-03   10000.    
    22 'norm      '    7.0160       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.1509       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .44127       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80107       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0074       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=   7470.347     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     2889 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.824        34.088        .23725E-02   -.29418E-03
   2  Prefactor     .10003E-03    79.713        .90712E-02** at limit **
   3  Prefactor     8.7740        13.395        .33839E-02    .91845E-04
   4  Prefactor     12.222        18.477        .28650E-02   -.26504E-04
   5  Prefactor     .15683E-03    44.611        .14669    ** at limit **
   6  norm          5.6196        4.4920        .42362E-02    .25034E-03
   7  norm          2.7655        3.8508        .61186E-02    .42556E-03
   8  Prefactor     .10000E-03    6.4144        .90712E-02** at limit **
   9  Prefactor     .64267        2.9895        .76520E-01    .62216E-03
  10  Prefactor     9.2742        12.629        .32897E-02    .45945E-03
  11  Prefactor     6.1909        22.636        .40324E-02   -.45253E-04
  12  Prefactor     .10000E-03    28.233        .90712E-02** at limit **
  13  Prefactor     .10000E-03    37.951        .90712E-02** at limit **
  14  Prefactor     .10077E-03    186.22        .90712E-02** at limit **
  15  norm          2.9279        1.1345        .59346E-02    .34113E-03
  16  Prefactor     .10000E-03    5.3798        .90712E-02** at limit **
  17  norm          5.5232        2.9100        .42737E-02   -.20569E-04
  18  Prefactor     20.576        19.217        .22075E-02   -.31600E-04
  19  norm          2.9857        2.4171        .58733E-02    .42372E-03
  20  Prefactor     .10000E-03    6.8488        .90712E-02** at limit **
  21  norm          3.9530        4.7463        .50722E-02    .49536E-03
  22  norm          7.0160        2.4582        .37864E-02   -.10812E-02
  23  Prefactor     .10000E-03    .69008        .90712E-02** at limit **
  24  Prefactor     6.1543        9.1534        .40468E-02    .21026E-03
  25  Prefactor     .41042        3.3909        .85256E-01    .28780E-03
  26  Normalizat    .80130        .20090        .77211E-01    .19931E-04
  27  Prefactor     1.0073        .10562        .43743E-01   -.13010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8242
  Prefactor  = 0.000100026
  Prefactor  = 8.77404
  Prefactor  = 12.2217
  Prefactor  = 0.000156833
  norm       = 5.61961
  norm       = 2.76547
  Prefactor  = 0.0001
  Prefactor  = 0.642674
  Prefactor  = 9.27415
  Prefactor  = 6.19086
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.00010077
  norm       = 2.92795
  Prefactor  = 0.0001
  norm       = 5.52315
  Prefactor  = 20.5763
  norm       = 2.98565
  Prefactor  = 0.0001
  norm       = 3.95299
  norm       = 7.016
  Prefactor  = 0.0001
  Prefactor  = 6.15427
  Prefactor  = 0.410421
  Normalizat = 0.8013
  Prefactor  = 1.00734
 **********
 **   18 **HESSE 
 **********

 FCN=   7470.347     FROM HESSE     STATUS=OK           506 CALLS     3395 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.824        34.142        .94899E-04   -1.4863    
   2  Prefactor     .10003E-03    81.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.7740        13.404        .13536E-03   -1.5115    
   4  Prefactor     12.222        18.472        .11460E-03   -1.5009    
   5  Prefactor     .15683E-03    43.342        .14979       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.6196        4.4835        .15664E-03   -1.5234    
   7  norm          2.7655        3.8094        .18794E-03   -1.5375    
   8  Prefactor     .10000E-03    6.4190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .64267        9.8351        .27477E-02   -1.5548    
  10  Prefactor     9.2742        12.597        .65795E-03   -1.5099    
  11  Prefactor     6.1909        22.656        .16130E-03   -1.5210    
  12  Prefactor     .10000E-03    28.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10077E-03    186.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9279        1.1352        .54258E-04   -1.5366    
  16  Prefactor     .10000E-03    5.3995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.5232        2.9102        .10408E-03   -1.5238    
  18  Prefactor     20.576        19.207        .88301E-04   -1.4800    
  19  norm          2.9857        2.4167        .11421E-03   -1.5362    
  20  Prefactor     .10000E-03    6.8502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.9530        4.7300        .18677E-03   -1.5310    
  22  norm          7.0160        2.4572        .37193E-03   -1.5178    
  23  Prefactor     .10000E-03    .71079        .13986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.1543        9.1896        .16187E-03   -1.5212    
  25  Prefactor     .41042        25.818        .28646E-02   -1.5580    
  26  Normalizat    .80130        .22768        .34178E-03   -1.0002    
  27  Prefactor     1.0073        .12088        .17627E-03   -.92485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54066e-08
Minuit parameter uncertainties:
  1  34.1793
  2  0.00289313
  3  13.4086
  4  18.4804
  5  0.0993344
  6  4.48375
  7  3.80975
  8  4.83026e-06
  9  5.02883
  10  12.6011
  11  22.6871
  12  0.000282577
  13  0.000522072
  14  0.0240552
  15  1.13518
  16  3.227e-06
  17  2.91031
  18  19.2132
  19  2.41682
  20  2.67242e-06
  21  4.73045
  22  2.45724
  23  5.88625e-07
  24  9.19174
  25  6.5125
  26  0.227952
  27  0.120916
Done.

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

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  6.191e+00  2.269e+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.007e+00  1.209e-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.013e-01  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/182681/likelihoodResults_338083201_338342401_4FGL_J0713.0+5738_daily_bin381.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) = 7470.31271055
delta logL = 0.034281788754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7470.22661215
delta logL = 0.120380192736

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39979       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5282       1.0000          .0000       10.000    
     3 'Normalizat'    .76776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0203       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7470.227     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      291 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39896        59.661        .21709E-03    .45949E-03
   2  Index         4.5297        6.1864        .78697E-02    .15145E-04
   3  Normalizat    .76768        .16292        .34879E-03    .19818E-04
   4  Prefactor     1.0204        .91477E-01    .17529E-03   -.10183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.398959
  Index      = 4.52966
  Normalizat = 0.767676
  Prefactor  = 1.0204
 **********
 **   18 **HESSE 
 **********

 FCN=   7470.227     FROM HESSE     STATUS=OK            27 CALLS      318 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39896        10.376        .43418E-04   -1.5582    
   2  Index         4.5297        7.0045        .31479E-03   -.94206E-01
   3  Normalizat    .76768        .21756        .13952E-04   -1.0128    
   4  Prefactor     1.0204        .12060        .70115E-05   -.92053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11904e-12
Minuit parameter uncertainties:
  1  4.06956
  2  5.05811
  3  0.217805
  4  0.120635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/182681': 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) = 7470.22661194
delta logL = 0.120380398133

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  3.990e-01  4.070e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  4.530e+00  5.058e+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:  1.020e+00  1.206e-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:  7.677e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/182681/cmap_HighResolution_338083201_338342401_4FGL_J0713.0+5738_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.57e-03', job_status='DONE', photon_flux_upper_limit='9.80e-08', time_completed='2021-08-26 22:17:09.090015', job_id='182681', GAL2='1.02', fit_tolerance='1e-08', EG2='0.77', EG='0.80', time_epoch_completed='1630041429.09', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.20e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='381' AND source_name='4FGL J0713.0+5738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 22:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 182681: <4FGL_J0713.0+5738_daily_bin381> in cluster <slac> Done

Job <4FGL_J0713.0+5738_daily_bin381> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 26 22:00:42 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 22:00:44 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:44 2021
Terminated at Thu Aug 26 22:17:11 2021
Results reported at Thu Aug 26 22:17:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0713.0+5738_daily_bin381 108.26 57.6345 338083201 338342401 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 :                                   956.31 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             308.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            989 sec.

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

