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


Performing analysis on: 4FGL_J0713.8+1935_daily_bin1337
RA = 108.465, Dec = 19.5879
tmin = 585878401, tmax = 586137601
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='198924', job_status='RUN', time_executed='2021-08-26 22:56:28.754889', time_epoch_executed='1630043788.75' WHERE source_name='4FGL J0713.8+1935' and cadence='daily' and bin_id='1337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198924/ft1_4FGL_J0713.8+1935_daily_bin1337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198924/ft2_4FGL_J0713.8+1935_daily_bin1337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198924/ft1_4FGL_J0713.8+1935_daily_bin1337.fits outfile=/scratch/kocevski/198924/ft1_filteredMKT_4FGL_J0713.8+1935_daily_bin1337.fits ra=108.465 dec=19.5879 rad=12.0 tmin=585878401.0 tmax=586137601.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 4.49
user 2.57
sys 1.90

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/198924/ft2_4FGL_J0713.8+1935_daily_bin1337.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198924/ft2_4FGL_J0713.8+1935_daily_bin1337.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/198924/ft1_filteredMKT_4FGL_J0713.8+1935_daily_bin1337.fits evtable="EVENTS" outfile="/scratch/kocevski/198924/ft1_filtered_4FGL_J0713.8+1935_daily_bin1337.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 2.23
user 0.33
sys 1.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198924/ft1_filtered_4FGL_J0713.8+1935_daily_bin1337.fits" evtable="EVENTS" scfile=/scratch/kocevski/198924/ft2_4FGL_J0713.8+1935_daily_bin1337.fits sctable="SC_DATA" outfile=/scratch/kocevski/198924/ltcube_585878401_586137601_4FGL_J0713.8+1935_daily_bin1337.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/198924/ft2_4FGL_J0713.8+1935_daily_bin1337.fits
.....................!
real 14.71
user 12.42
sys 2.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198924/ft1_filtered_4FGL_J0713.8+1935_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/198924/ft2_4FGL_J0713.8+1935_daily_bin1337.fits sctable="SC_DATA" expcube=/scratch/kocevski/198924/ltcube_585878401_586137601_4FGL_J0713.8+1935_daily_bin1337.fits outfile=/scratch/kocevski/198924/expmap_585878401_586137601_4FGL_J0713.8+1935_daily_bin1337.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/198924/ltcube_585878401_586137601_4FGL_J0713.8+1935_daily_bin1337.fits
.....................!
real 193.38
user 186.14
sys 6.83

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Added 164 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0713.8+1935 @ 108.465 19.5879

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/198924/ft1_filtered_4FGL_J0713.8+1935_daily_bin1337.fits scfile=/scratch/kocevski/198924/ft2_4FGL_J0713.8+1935_daily_bin1337.fits outfile=/scratch/kocevski/198924/cmap_585878401_586137601_4FGL_J0713.8+1935_daily_bin1337.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.465 yref=19.5879 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 3.42
user 0.38
sys 1.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198924/ft1_filtered_4FGL_J0713.8+1935_daily_bin1337.fits scfile=/scratch/kocevski/198924/ft2_4FGL_J0713.8+1935_daily_bin1337.fits outfile=/scratch/kocevski/198924/cmap_HighResolution_585878401_586137601_4FGL_J0713.8+1935_daily_bin1337.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.465 yref=19.5879 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 2.20
user 0.38
sys 1.79

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/198924/ft1_filtered_4FGL_J0713.8+1935_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/198924/ft2_4FGL_J0713.8+1935_daily_bin1337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/198924/Model_4FGL_J0713.8+1935_daily_bin1337.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
adding source IC 443
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/198924/ft1_filtered_4FGL_J0713.8+1935_daily_bin1337.fits.....................!
real 89.48
user 85.38
sys 3.65

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/198924/ft1_filtered_4FGL_J0713.8+1935_daily_bin1337.fits', '/scratch/kocevski/198924/ft2_4FGL_J0713.8+1935_daily_bin1337.fits', expMap='/scratch/kocevski/198924/expmap_585878401_586137601_4FGL_J0713.8+1935_daily_bin1337.fits', expCube='/scratch/kocevski/198924/ltcube_585878401_586137601_4FGL_J0713.8+1935_daily_bin1337.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/198924/Model_4FGL_J0713.8+1935_daily_bin1337.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0713.8+1935'

4FGL J0713.8+1935
   Spectrum: LogParabola
266         norm:  8.175e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  2.272e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
268         beta:  1.056e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  5.687e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/198924/ft1_filtered_4FGL_J0713.8+1935_daily_bin1337.fits
Spacecraft file(s): /scratch/kocevski/198924/ft2_4FGL_J0713.8+1935_daily_bin1337.fits
Exposure map: /scratch/kocevski/198924/expmap_585878401_586137601_4FGL_J0713.8+1935_daily_bin1337.fits
Exposure cube: /scratch/kocevski/198924/ltcube_585878401_586137601_4FGL_J0713.8+1935_daily_bin1337.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/198924/Model_4FGL_J0713.8+1935_daily_bin1337.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) = 4611.90508472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    166.86       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.480       1.0000         .10000E-03   10000.    
     8 'norm      '    22.828       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.640       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8935       1.0000         .10000E-03   10000.    
    11 'norm      '    5.2449       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12695E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.062       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0787       1.0000         .10000E-03   10000.    
    16 'Prefactor '    82.741       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1437       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12743E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .49424E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97358       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98855       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4611.877     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2158 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     166.81        123.86       -.12912E-05   -.24281E-04
   2  Prefactor     .10001E-03    94.964        .18414E-05** at limit **
   3  norm          .10000E-03    11.151        .17493E-07** at limit **
   4  Prefactor     .10000E-03    29.445       -.25424E-06** at limit **
   5  norm          .10000E-03    17.364       -.43772E-06** at limit **
   6  Prefactor     .10000E-03    123.72       -.28175E-05** at limit **
   7  Prefactor     10.487        26.443        .15656E-05    .35965E-05
   8  norm          22.837        32.123        .21827E-05   -.51419E-05
   9  Prefactor     22.651        26.800        .34319E-05   -.18014E-03
  10  norm          3.8960        3.7980        .17682E-05    .28596E-04
  11  norm          5.2457        4.6967        .83478E-07   -.61425E-04
  12  Prefactor     .10000E-03    17.811        .65231E-07** at limit **
  13  norm          .10000E-03    20.763        .27398E-04** at limit **
  14  Prefactor     41.576        152.56        .76074E-05    .22689E-04
  15  Prefactor     4.0983        212.44        .16788E-04   -.12538E-04
  16  Prefactor     82.768        136.89        .82131E-05   -.31865E-04
  17  Prefactor     5.1512        10.485        .71631E-05    .23520E-04
  18  Prefactor     .10000E-03    123.17        .11229E-04** at limit **
  19  norm          .10002E-03    538.46       -.35456E-05** at limit **
  20  Normalizat    .97178        .54209       -.42371E-04   -.25693E-04
  21  Prefactor     .98901        .16426        .10340E-04   -.41621E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 166.809
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.4873
  norm       = 22.8373
  Prefactor  = 22.6515
  norm       = 3.89601
  norm       = 5.24565
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 41.5761
  Prefactor  = 4.09835
  Prefactor  = 82.768
  Prefactor  = 5.15123
  Prefactor  = 0.000100001
  norm       = 0.000100021
  Normalizat = 0.971784
  Prefactor  = 0.989012
 **********
 **   18 **HESSE 
 **********

 FCN=   4611.877     FROM HESSE     STATUS=OK           313 CALLS     2471 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     166.81        124.08        .15614E-03   -1.3118    
   2  Prefactor     .10001E-03    96.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    17.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    124.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.487        26.438        .12377E-03   -1.5060    
   8  norm          22.837        32.143        .83835E-04   -1.4752    
   9  Prefactor     22.651        26.886        .84183E-04   -1.4756    
  10  norm          3.8960        3.7959        .61615E-03   -1.5313    
  11  norm          5.2457        4.6969        .13441E-03   -1.5250    
  12  Prefactor     .10000E-03    17.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    21.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.576        151.86        .31278E-03   -1.4417    
  15  Prefactor     4.0983        209.99        .19963E-03   -1.5303    
  16  Prefactor     82.768        137.21        .44158E-04   -1.3886    
  17  Prefactor     5.1512        10.474        .88632E-03   -1.5254    
  18  Prefactor     .10000E-03    122.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10002E-03    538.85        .21163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97178        .55919        .71131E-03   -.93982    
  21  Prefactor     .98901        .17019        .23677E-03   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.28424e-10
Minuit parameter uncertainties:
  1  124.27
  2  0.00153472
  3  4.78195e-05
  4  0.000127571
  5  1.68385e-05
  6  0.000708716
  7  26.4674
  8  32.1672
  9  26.9003
  10  3.79617
  11  4.69727
  12  3.1596e-05
  13  0.00055438
  14  153.308
  15  58.8908
  16  137.739
  17  10.478
  18  0.000516663
  19  0.00685233
  20  0.562606
  21  0.170283
Done.

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

Extracting fit parameters...

4FGL J0713.8+1935
   Spectrum: LogParabola
266         norm:  2.284e+01  3.217e+01  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  2.272e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
268         beta:  1.056e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  5.687e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  9.890e-01  1.703e-01  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  9.718e-01  5.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.78
Ra Dec: 108.465 19.588
Photon Flux Upper Limit: 3.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198924/likelihoodResults_585878401_586137601_4FGL_J0713.8+1935_daily_bin1337.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) = 4611.6619402
delta logL = 0.214809545165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4611.65393653
delta logL = 0.222813215526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.152       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3241       1.0000          .0000       5.0000    
     3 'Normalizat'    .91523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0000       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   4611.654     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      293 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.139        34.355        .11045E-03    .14812E-02
   2  alpha         3.3248        1.9364        .24758E-01    .16163E-03
   3  Normalizat    .91566        .48795        .73042E-03   -.31928E-03
   4  Prefactor     .99989        .16262        .23546E-03   -.11180E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 13.1394
  alpha      = 3.32476
  Normalizat = 0.915659
  Prefactor  = 0.999887
 **********
 **   18 **HESSE 
 **********

 FCN=   4611.654     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.139        27.203        .22090E-04   -1.4983    
   2  alpha         3.3248        1.6269        .99033E-03    .33620    
   3  Normalizat    .91566        .48739        .29217E-04   -.95912    
   4  Prefactor     .99989        .16238        .47093E-04   -.92733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12299e-09
Minuit parameter uncertainties:
  1  27.2283
  2  1.79503
  3  0.48977
  4  0.162459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198924': 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) = 4611.65393592
delta logL = 0.222813828586

Extracting fit parameters...

4FGL J0713.8+1935
   Spectrum: LogParabola
266         norm:  1.314e+01  2.723e+01  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  3.325e+00  1.795e+00  0.000e+00  5.000e+00 ( 1.000e+00)
268         beta:  1.056e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  5.687e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  9.999e-01  1.625e-01  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  9.157e-01  4.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 108.465 19.588
Photon Index (Free Index): 3.32 +/- 1.80
Photon Flux (Free Index): 1.50e-07 +/- 1.92e-07
Energy Flux (Free Index): 2.75e-05 +/- 3.15e-05

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/198924/cmap_HighResolution_585878401_586137601_4FGL_J0713.8+1935_daily_bin1337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-04', comment='SUCCESS', energy_flux2='2.75e-05', dlogl='2.23e-01', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-08-26 23:06:45.555987', photon_index_error2='1.80', photon_index2='3.32', ts='0.78', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='3.79e-07', energy_flux_error2='3.15e-05', EG='0.97', time_epoch_completed='1630044405.56', return_code='0', job_id='198924', GAL2='1.00', EG2='0.92', return_code2='0', photon_flux_error2='1.92e-07', ts2='1.28', photon_index='2.27' WHERE bin_id='1337' AND source_name='4FGL J0713.8+1935' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:06:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 198924: <4FGL_J0713.8+1935_daily_bin1337> in cluster <slac> Done

Job <4FGL_J0713.8+1935_daily_bin1337> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 26 22:55:45 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 22:55:50 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:55:50 2021
Terminated at Thu Aug 26 23:06:46 2021
Results reported at Thu Aug 26 23:06:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0713.8+1935_daily_bin1337 108.465 19.5879 585878401 586137601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0713.8+1935 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   640.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            661 sec.

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

