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


Performing analysis on: 4FGL_J2005.1+7003_daily_bin1171
RA = 301.278, Dec = 70.0624
tmin = 542851201, tmax = 543110401
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='578270', job_status='RUN', time_executed='2021-09-24 09:30:08.683250', time_epoch_executed='1632501008.68' WHERE source_name='4FGL J2005.1+7003' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578270

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578270/ft1_4FGL_J2005.1+7003_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578270/ft2_4FGL_J2005.1+7003_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578270/ft1_4FGL_J2005.1+7003_daily_bin1171.fits outfile=/scratch/kocevski/578270/ft1_filteredMKT_4FGL_J2005.1+7003_daily_bin1171.fits ra=301.278 dec=70.0624 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.76
user 0.58
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/578270/ft2_4FGL_J2005.1+7003_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/578270/ft2_4FGL_J2005.1+7003_daily_bin1171.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/578270/ft1_filteredMKT_4FGL_J2005.1+7003_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/578270/ft1_filtered_4FGL_J2005.1+7003_daily_bin1171.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.46
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578270/ft1_filtered_4FGL_J2005.1+7003_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/578270/ft2_4FGL_J2005.1+7003_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/578270/ltcube_542851201_543110401_4FGL_J2005.1+7003_daily_bin1171.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/578270/ft2_4FGL_J2005.1+7003_daily_bin1171.fits
.....................!
real 1.86
user 1.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578270/ft1_filtered_4FGL_J2005.1+7003_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/578270/ft2_4FGL_J2005.1+7003_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/578270/ltcube_542851201_543110401_4FGL_J2005.1+7003_daily_bin1171.fits outfile=/scratch/kocevski/578270/expmap_542851201_543110401_4FGL_J2005.1+7003_daily_bin1171.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/578270/ltcube_542851201_543110401_4FGL_J2005.1+7003_daily_bin1171.fits
.....................!
real 191.32
user 186.62
sys 4.38

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 FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 193 point sources and 4 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 J2005.1+7003 @ 301.278 70.0624

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/578270/ft1_filtered_4FGL_J2005.1+7003_daily_bin1171.fits scfile=/scratch/kocevski/578270/ft2_4FGL_J2005.1+7003_daily_bin1171.fits outfile=/scratch/kocevski/578270/cmap_542851201_543110401_4FGL_J2005.1+7003_daily_bin1171.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=301.278 yref=70.0624 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.54
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578270/ft1_filtered_4FGL_J2005.1+7003_daily_bin1171.fits scfile=/scratch/kocevski/578270/ft2_4FGL_J2005.1+7003_daily_bin1171.fits outfile=/scratch/kocevski/578270/cmap_HighResolution_542851201_543110401_4FGL_J2005.1+7003_daily_bin1171.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=301.278 yref=70.0624 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.52
user 0.36
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/578270/ft1_filtered_4FGL_J2005.1+7003_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/578270/ft2_4FGL_J2005.1+7003_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/578270/Model_4FGL_J2005.1+7003_daily_bin1171.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/578270/ft1_filtered_4FGL_J2005.1+7003_daily_bin1171.fits......................!
real 26.29
user 25.00
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/578270/ft1_filtered_4FGL_J2005.1+7003_daily_bin1171.fits', '/scratch/kocevski/578270/ft2_4FGL_J2005.1+7003_daily_bin1171.fits', expMap='/scratch/kocevski/578270/expmap_542851201_543110401_4FGL_J2005.1+7003_daily_bin1171.fits', expCube='/scratch/kocevski/578270/ltcube_542851201_543110401_4FGL_J2005.1+7003_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/578270/Model_4FGL_J2005.1+7003_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2005.1+7003'

4FGL J2005.1+7003
   Spectrum: LogParabola
354         norm:  5.049e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
355        alpha:  1.640e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
356         beta:  1.694e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
357           Eb:  3.789e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/578270/ft1_filtered_4FGL_J2005.1+7003_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/578270/ft2_4FGL_J2005.1+7003_daily_bin1171.fits
Exposure map: /scratch/kocevski/578270/expmap_542851201_543110401_4FGL_J2005.1+7003_daily_bin1171.fits
Exposure cube: /scratch/kocevski/578270/ltcube_542851201_543110401_4FGL_J2005.1+7003_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/578270/Model_4FGL_J2005.1+7003_daily_bin1171.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) = 1049.29802097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.6762       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.453       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10709E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11544E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    30.555       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.896       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0027       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0266       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1049.295     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2811 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1972       -.14691E-07** at limit **
   2  norm          8.6785        7.9681       -.25070E-05   -.70225E-04
   3  norm          .10000E-03    6.9868       -.38663E-07** at limit **
   4  Prefactor     .10000E-03    257.30       -.51417E-04** at limit **
   5  Prefactor     .10000E-03    7.8942        .37562E-07** at limit **
   6  Prefactor     .10000E-03    31.365       -.22936E-04** at limit **
   7  Prefactor     .10000E-03    321.70       -.20765E-03** at limit **
   8  Prefactor     .10000E-03    174.19        .96603E-04** at limit **
   9  norm          .10000E-03    5.0370       -.16640E-07** at limit **
  10  norm          .10000E-03    14.030        .16338E-06** at limit **
  11  norm          .10000E-03    77.351       -.49580E-04** at limit **
  12  Prefactor     24.448        68.041       -.75106E-05    .32032E-05
  13  Prefactor     .10000E-03    40.526        .27310E-04** at limit **
  14  norm          .10000E-03    4.8222       -.22334E-06** at limit **
  15  norm          .10000E-03    119.50        .60786E-04** at limit **
  16  norm          .10000E-03    47.287        .14167E-04** at limit **
  17  norm          30.539        69.393       -.18791E-04    .14059E-05
  18  Prefactor     36.915        84.787        .23708E-04   -.52027E-05
  19  norm          .10000E-03    8.2229       -.12291E-06** at limit **
  20  Prefactor     .10000E-03    77.278       -.49868E-04** at limit **
  21  norm          .10000E-03    19.064       -.45509E-05** at limit **
  22  Prefactor     .10000E-03    21.809        .96695E-05** at limit **
  23  Prefactor     .10000E-03    114.40        .48505E-04** at limit **
  24  Normalizat    1.0016        .75341        .41221E-05   -.23944E-04
  25  Prefactor     1.0268        .18414       -.63713E-06   -.82383E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 8.67846
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 24.4477
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 30.5388
  Prefactor  = 36.915
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00165
  Prefactor  = 1.02677
 **********
 **   18 **HESSE 
 **********

 FCN=   1049.295     FROM HESSE     STATUS=OK           411 CALLS     3222 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1973        .72140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.6785        7.9917        .82549E-04   -1.5119    
   3  norm          .10000E-03    6.9874        .83645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    257.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8947        .88912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.369        .17730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    321.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    174.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.0380        .71015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    14.033        .11854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    77.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.448        68.623        .81006E-04   -1.4719    
  13  Prefactor     .10000E-03    40.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.8302        .69379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    119.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    47.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          30.539        69.372        .72484E-04   -1.4602    
  18  Prefactor     36.915        84.655        .65980E-04   -1.4492    
  19  norm          .10000E-03    8.2285        .90741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    77.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    19.065        .13820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.861        .14777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    114.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0016        .78979        .51920E-03   -.92975    
  25  Prefactor     1.0268        .19348        .13406E-03   -.91842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03475e-11
Minuit parameter uncertainties:
  1  9.41591e-08
  2  7.99265
  3  4.10939e-07
  4  3.32687e-07
  5  3.78704e-07
  6  3.42616e-07
  7  3.33827e-05
  8  5.94829e-06
  9  1.5741e-06
  10  7.63096e-06
  11  0.000111536
  12  68.8453
  13  0.000225947
  14  4.44481e-05
  15  8.271e-06
  16  3.41717e-05
  17  69.5562
  18  84.9324
  19  8.49459e-06
  20  3.56468e-06
  21  7.11137e-06
  22  3.08284e-05
  23  1.2227e-05
  24  0.799293
  25  0.193615
Done.

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

Extracting fit parameters...

4FGL J2005.1+7003
   Spectrum: LogParabola
354         norm:  1.000e-04  8.271e-06  1.000e-04  1.000e+04 ( 1.000e-14)
355        alpha:  1.640e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
356         beta:  1.694e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
357           Eb:  3.789e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
653    Prefactor:  1.027e+00  1.936e-01  0.000e+00  1.000e+01 ( 1.000e+00)
654        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
655        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
645   Normalization:  1.002e+00  7.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 301.278 70.062
Photon Flux Upper Limit: 1.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/578270/likelihoodResults_542851201_543110401_4FGL_J2005.1+7003_daily_bin1171.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) = 1049.29548354
delta logL = -3.96349309995e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1049.29544483
delta logL = -9.27266682993e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12228E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3687       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0268       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+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=   1049.295     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      315 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6838.5        .18142E-01** at limit **
   2  alpha         1.1240        4.0966        .16489        .47572E-08
   3  Normalizat    1.0016        .11905        .51920E-03    .63555E-05
   4  Prefactor     1.0268        .31376E-01    .13406E-03    .37308E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.12401
  Normalizat = 1.00165
  Prefactor  = 1.02677
 **********
 **   18 **HESSE 
 **********

 FCN=   1049.295     FROM HESSE     STATUS=OK            23 CALLS      338 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    155.65        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1240        4.2779        .65958E-02   -.58284    
   3  Normalizat    1.0016        .71146        .20768E-04   -.92975    
   4  Prefactor     1.0268        .18916        .26813E-04   -.91842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36828e-11
Minuit parameter uncertainties:
  1  0.000308851
  2  1319.02
  3  0.718363
  4  0.18928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578270': 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) = 1049.29544382
delta logL = 8.59174633661e-08

Extracting fit parameters...

4FGL J2005.1+7003
   Spectrum: LogParabola
354         norm:  1.000e-04  3.089e-04  1.000e-04  1.000e+04 ( 1.000e-14)
355        alpha:  1.124e+00  1.319e+03  0.000e+00  5.000e+00 ( 1.000e+00)
356         beta:  1.694e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
357           Eb:  3.789e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
653    Prefactor:  1.027e+00  1.893e-01  0.000e+00  1.000e+01 ( 1.000e+00)
654        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
655        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
645   Normalization:  1.002e+00  7.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 301.278 70.062

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/578270/cmap_HighResolution_542851201_543110401_4FGL_J2005.1+7003_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-04', job_status='DONE', photon_flux_upper_limit='1.80e-07', time_completed='2021-09-24 09:36:25.650035', job_id='578270', GAL2='1.03', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632501385.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='8.59e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.64' WHERE bin_id='1171' AND source_name='4FGL J2005.1+7003' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 09:36:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 578270: <4FGL_J2005.1+7003_daily_bin1171> in cluster <slac> Done

Job <4FGL_J2005.1+7003_daily_bin1171> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 24 09:26:22 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 09:26:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 09:26:24 2021
Terminated at Fri Sep 24 09:36:26 2021
Results reported at Fri Sep 24 09:36:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.1+7003_daily_bin1171 301.278 70.0624 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2005.1+7003 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   381.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             230.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            604 sec.

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

