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


Performing analysis on: 4FGL_J0702.7-1951_daily_bin257
RA = 105.678, Dec = -19.8517
tmin = 305942401, tmax = 306201601
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='67419', job_status='RUN', time_executed='2021-08-26 15:55:54.221461', time_epoch_executed='1630018554.22' WHERE source_name='4FGL J0702.7-1951' and cadence='daily' and bin_id='257'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67419

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67419/ft1_4FGL_J0702.7-1951_daily_bin257.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67419/ft2_4FGL_J0702.7-1951_daily_bin257.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67419/ft1_4FGL_J0702.7-1951_daily_bin257.fits outfile=/scratch/kocevski/67419/ft1_filteredMKT_4FGL_J0702.7-1951_daily_bin257.fits ra=105.678 dec=-19.8517 rad=12.0 tmin=305942401.0 tmax=306201601.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.80
user 3.29
sys 0.49

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/67419/ft2_4FGL_J0702.7-1951_daily_bin257.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/67419/ft2_4FGL_J0702.7-1951_daily_bin257.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/67419/ft1_filteredMKT_4FGL_J0702.7-1951_daily_bin257.fits evtable="EVENTS" outfile="/scratch/kocevski/67419/ft1_filtered_4FGL_J0702.7-1951_daily_bin257.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.78
user 0.33
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67419/ft1_filtered_4FGL_J0702.7-1951_daily_bin257.fits" evtable="EVENTS" scfile=/scratch/kocevski/67419/ft2_4FGL_J0702.7-1951_daily_bin257.fits sctable="SC_DATA" outfile=/scratch/kocevski/67419/ltcube_305942401_306201601_4FGL_J0702.7-1951_daily_bin257.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/67419/ft2_4FGL_J0702.7-1951_daily_bin257.fits
.....................!
real 12.18
user 11.53
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67419/ft1_filtered_4FGL_J0702.7-1951_daily_bin257.fits evtable="EVENTS" scfile=/scratch/kocevski/67419/ft2_4FGL_J0702.7-1951_daily_bin257.fits sctable="SC_DATA" expcube=/scratch/kocevski/67419/ltcube_305942401_306201601_4FGL_J0702.7-1951_daily_bin257.fits outfile=/scratch/kocevski/67419/expmap_305942401_306201601_4FGL_J0702.7-1951_daily_bin257.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/67419/ltcube_305942401_306201601_4FGL_J0702.7-1951_daily_bin257.fits
.....................!
real 190.67
user 185.24
sys 5.08

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

Setting source of interest to:
4FGL J0702.7-1951 @ 105.678 -19.8517

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/67419/ft1_filtered_4FGL_J0702.7-1951_daily_bin257.fits scfile=/scratch/kocevski/67419/ft2_4FGL_J0702.7-1951_daily_bin257.fits outfile=/scratch/kocevski/67419/cmap_305942401_306201601_4FGL_J0702.7-1951_daily_bin257.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=105.678 yref=-19.8517 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.83
user 0.40
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67419/ft1_filtered_4FGL_J0702.7-1951_daily_bin257.fits scfile=/scratch/kocevski/67419/ft2_4FGL_J0702.7-1951_daily_bin257.fits outfile=/scratch/kocevski/67419/cmap_HighResolution_305942401_306201601_4FGL_J0702.7-1951_daily_bin257.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=105.678 yref=-19.8517 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.83
user 0.40
sys 0.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/67419/ft1_filtered_4FGL_J0702.7-1951_daily_bin257.fits evtable="EVENTS" scfile=/scratch/kocevski/67419/ft2_4FGL_J0702.7-1951_daily_bin257.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67419/Model_4FGL_J0702.7-1951_daily_bin257.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/67419/ft1_filtered_4FGL_J0702.7-1951_daily_bin257.fits.....................!
real 197.29
user 195.28
sys 1.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/67419/ft1_filtered_4FGL_J0702.7-1951_daily_bin257.fits', '/scratch/kocevski/67419/ft2_4FGL_J0702.7-1951_daily_bin257.fits', expMap='/scratch/kocevski/67419/expmap_305942401_306201601_4FGL_J0702.7-1951_daily_bin257.fits', expCube='/scratch/kocevski/67419/ltcube_305942401_306201601_4FGL_J0702.7-1951_daily_bin257.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/67419/Model_4FGL_J0702.7-1951_daily_bin257.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0702.7-1951'

4FGL J0702.7-1951
   Spectrum: LogParabola
249         norm:  1.267e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
250        alpha:  2.015e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
251         beta:  8.908e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
252           Eb:  1.379e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/67419/ft1_filtered_4FGL_J0702.7-1951_daily_bin257.fits
Spacecraft file(s): /scratch/kocevski/67419/ft2_4FGL_J0702.7-1951_daily_bin257.fits
Exposure map: /scratch/kocevski/67419/expmap_305942401_306201601_4FGL_J0702.7-1951_daily_bin257.fits
Exposure cube: /scratch/kocevski/67419/ltcube_305942401_306201601_4FGL_J0702.7-1951_daily_bin257.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/67419/Model_4FGL_J0702.7-1951_daily_bin257.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) = 13285.8253155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25416E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2973       1.0000         .10000E-03   10000.    
     4 'norm      '    17.857       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7403       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.0053       1.0000         .10000E-03   10000.    
     9 'norm      '    15.861       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11439E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12869E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.478       1.0000         .10000E-03   10000.    
    16 'norm      '    41.795       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .39376       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13285.72     FROM MIGRAD    STATUS=CONVERGED    374 CALLS     1779 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.1078       -.16891E-05** at limit **
   2  Prefactor     .10000E-03    6.6879        .88160E-07** at limit **
   3  Prefactor     6.2990        5.8936       -.11651E-05   -.68223E-03
   4  norm          17.856        8.5770       -.13057E-06   -.55383E-03
   5  norm          .10000E-03    .57924        .84889E-07** at limit **
   6  norm          1.7389        14.404        .21829E-05    .23399E-03
   7  Prefactor     .10000E-03    8.6221        .70223E-05** at limit **
   8  norm          7.0076        10.469        .13582E-06    .29970E-04
   9  norm          15.862        10.999        .56434E-07    .18687E-04
  10  Prefactor     .10000E-03    1.3576        .52412E-07** at limit **
  11  norm          .10000E-03    33.006       -.52754E-08** at limit **
  12  norm          .10000E-03    152.69        .38391E-06** at limit **
  13  norm          .10001E-03    7.6036       -.62274E-05** at limit **
  14  Prefactor     .10000E-03    5.6387       -.10007E-07** at limit **
  15  norm          10.478        2.3802        .33174E-07   -.49133E-04
  16  norm          41.799        18.615        .25873E-06   -.19921E-03
  17  Normalizat    .39382        .32224       -.26428E-05   -.13568E-03
  18  Prefactor     1.0217        .50525E-01   -.16323E-07   -.14760E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 6.29902
  norm       = 17.8561
  norm       = 0.0001
  norm       = 1.73886
  Prefactor  = 0.0001
  norm       = 7.00755
  norm       = 15.8618
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.000100006
  Prefactor  = 0.0001
  norm       = 10.478
  norm       = 41.7988
  Normalizat = 0.393821
  Prefactor  = 1.02166
 **********
 **   18 **HESSE 
 **********

 FCN=   13285.72     FROM HESSE     STATUS=OK           244 CALLS     2023 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.343        .41316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.2990        6.0721        .15996E-03   -1.5206    
   4  norm          17.856        8.5724        .94779E-04   -1.4863    
   5  norm          .10000E-03    .58117        .85648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7389        13.184        .31803E-03   -1.5444    
   7  Prefactor     .10000E-03    13.987        .35827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.0076        10.459        .15157E-03   -1.5178    
   9  norm          15.862        10.971        .10057E-03   -1.4911    
  10  Prefactor     .10000E-03    1.3647        .13094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    33.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    153.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    14.143        .33903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.478        2.3829        .82037E-04   -1.5060    
  16  norm          41.799        18.636        .62007E-04   -1.4414    
  17  Normalizat    .39382        .32498        .11799E-02   -1.1762    
  18  Prefactor     1.0217        .50419E-01    .12107E-03   -.92011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71305e-09
Minuit parameter uncertainties:
  1  0.000508727
  2  1.14741e-05
  3  6.07273
  4  8.57299
  5  3.7574e-06
  6  9.57885
  7  0.000131522
  8  10.4615
  9  10.9722
  10  8.77009e-06
  11  3.21837e-05
  12  0.000841221
  13  0.000562931
  14  7.17991e-07
  15  2.38296
  16  18.6384
  17  0.326552
  18  0.050421
Done.

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

Extracting fit parameters...

4FGL J0702.7-1951
   Spectrum: LogParabola
249         norm:  1.000e-04  5.629e-04  1.000e-04  1.000e+04 ( 1.000e-12)
250        alpha:  2.015e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
251         beta:  8.908e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
252           Eb:  1.379e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.022e+00  5.042e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  3.938e-01  3.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 105.678 -19.852
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/67419/likelihoodResults_305942401_306201601_4FGL_J0702.7-1951_daily_bin257.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) = 13285.7174371
delta logL = -0.000332056462867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13285.0339231
delta logL = 0.683181947521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77522       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3201       1.0000          .0000       5.0000    
     3 'Normalizat'    .32215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0205       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13285.03     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      265 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77537        9.4244        .12347E-01    .46043E-02
   2  alpha         3.3208        3.7573        .29233        .23190E-03
   3  Normalizat    .32209        .73832E-01    .29560        .16951E-03
   4  Prefactor     1.0206        .12079E-01    .27394E-01   -.94361E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.775366
  alpha      = 3.32081
  Normalizat = 0.322092
  Prefactor  = 1.02064
 **********
 **   18 **HESSE 
 **********

 FCN=   13285.03     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77537        31.622        .89960E-04   -1.5532    
   2  alpha         3.3208        3.8947        .15800E-01    .33453    
   3  Normalizat    .32209        .34636        .12812E-02   -1.2154    
   4  Prefactor     1.0206        .56337E-01    .12108E-03   -.92045    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52277e-09
Minuit parameter uncertainties:
  1  9.90828
  2  6.06762
  3  0.348697
  4  0.0563405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67419': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13285.0339125
delta logL = 0.683192517788

Extracting fit parameters...

4FGL J0702.7-1951
   Spectrum: LogParabola
249         norm:  7.754e-01  9.908e+00  1.000e-04  1.000e+04 ( 1.000e-12)
250        alpha:  3.321e+00  6.068e+00  0.000e+00  5.000e+00 ( 1.000e+00)
251         beta:  8.908e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
252           Eb:  1.379e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.021e+00  5.634e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  3.221e-01  3.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 105.678 -19.852
Photon Index (Free Index): 3.32 +/- 6.07
Photon Flux (Free Index): 1.32e-07 +/- 1.25e-07
Energy Flux (Free Index): 2.53e-05 +/- 5.94e-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/67419/cmap_HighResolution_305942401_306201601_4FGL_J0702.7-1951_daily_bin257.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-05', comment='SUCCESS', energy_flux2='2.53e-05', dlogl='6.83e-01', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-08-26 16:11:17.635093', photon_index_error2='6.07', photon_index2='3.32', ts='-0.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='5.94e-05', EG='0.39', time_epoch_completed='1630019477.64', return_code='0', job_id='67419', GAL2='1.02', EG2='0.32', return_code2='102', photon_flux_error2='1.25e-07', ts2='1.42', photon_index='2.01' WHERE bin_id='257' AND source_name='4FGL J0702.7-1951' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 16:11:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 67419: <4FGL_J0702.7-1951_daily_bin257> in cluster <slac> Done

Job <4FGL_J0702.7-1951_daily_bin257> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 15:55:35 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 15:55: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 15:55:36 2021
Terminated at Thu Aug 26 16:11:18 2021
Results reported at Thu Aug 26 16:11:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0702.7-1951_daily_bin257 105.678 -19.8517 305942401 306201601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0702.7-1951 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   925.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

