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


Performing analysis on: 4FGL_J1748.6+7005_daily_bin86
RA = 267.158, Dec = 70.0969
tmin = 261619201, tmax = 261878401
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='175420', job_status='RUN', time_executed='2021-09-18 14:55:36.668757', time_epoch_executed='1632002136.67' WHERE source_name='4FGL J1748.6+7005' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175420

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175420/ft1_4FGL_J1748.6+7005_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175420/ft2_4FGL_J1748.6+7005_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175420/ft1_4FGL_J1748.6+7005_daily_bin86.fits outfile=/scratch/kocevski/175420/ft1_filteredMKT_4FGL_J1748.6+7005_daily_bin86.fits ra=267.158 dec=70.0969 rad=12.0 tmin=261619201.0 tmax=261878401.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 1.42
user 1.24
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/175420/ft2_4FGL_J1748.6+7005_daily_bin86.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/175420/ft2_4FGL_J1748.6+7005_daily_bin86.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/175420/ft1_filteredMKT_4FGL_J1748.6+7005_daily_bin86.fits evtable="EVENTS" outfile="/scratch/kocevski/175420/ft1_filtered_4FGL_J1748.6+7005_daily_bin86.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175420/ft1_filtered_4FGL_J1748.6+7005_daily_bin86.fits" evtable="EVENTS" scfile=/scratch/kocevski/175420/ft2_4FGL_J1748.6+7005_daily_bin86.fits sctable="SC_DATA" outfile=/scratch/kocevski/175420/ltcube_261619201_261878401_4FGL_J1748.6+7005_daily_bin86.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/175420/ft2_4FGL_J1748.6+7005_daily_bin86.fits
.....................!
real 12.63
user 12.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175420/ft1_filtered_4FGL_J1748.6+7005_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/175420/ft2_4FGL_J1748.6+7005_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/175420/ltcube_261619201_261878401_4FGL_J1748.6+7005_daily_bin86.fits outfile=/scratch/kocevski/175420/expmap_261619201_261878401_4FGL_J1748.6+7005_daily_bin86.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/175420/ltcube_261619201_261878401_4FGL_J1748.6+7005_daily_bin86.fits
.....................!
real 189.81
user 184.71
sys 4.70

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

Setting source of interest to:
4FGL J1748.6+7005 @ 267.158 70.0969

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/175420/ft1_filtered_4FGL_J1748.6+7005_daily_bin86.fits scfile=/scratch/kocevski/175420/ft2_4FGL_J1748.6+7005_daily_bin86.fits outfile=/scratch/kocevski/175420/cmap_261619201_261878401_4FGL_J1748.6+7005_daily_bin86.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=267.158 yref=70.0969 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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175420/ft1_filtered_4FGL_J1748.6+7005_daily_bin86.fits scfile=/scratch/kocevski/175420/ft2_4FGL_J1748.6+7005_daily_bin86.fits outfile=/scratch/kocevski/175420/cmap_HighResolution_261619201_261878401_4FGL_J1748.6+7005_daily_bin86.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=267.158 yref=70.0969 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/175420/ft1_filtered_4FGL_J1748.6+7005_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/175420/ft2_4FGL_J1748.6+7005_daily_bin86.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/175420/Model_4FGL_J1748.6+7005_daily_bin86.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/175420/ft1_filtered_4FGL_J1748.6+7005_daily_bin86.fits.....................!
real 83.71
user 82.11
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/175420/ft1_filtered_4FGL_J1748.6+7005_daily_bin86.fits', '/scratch/kocevski/175420/ft2_4FGL_J1748.6+7005_daily_bin86.fits', expMap='/scratch/kocevski/175420/expmap_261619201_261878401_4FGL_J1748.6+7005_daily_bin86.fits', expCube='/scratch/kocevski/175420/ltcube_261619201_261878401_4FGL_J1748.6+7005_daily_bin86.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/175420/Model_4FGL_J1748.6+7005_daily_bin86.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1748.6+7005'

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  4.089e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.953e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/175420/ft1_filtered_4FGL_J1748.6+7005_daily_bin86.fits
Spacecraft file(s): /scratch/kocevski/175420/ft2_4FGL_J1748.6+7005_daily_bin86.fits
Exposure map: /scratch/kocevski/175420/expmap_261619201_261878401_4FGL_J1748.6+7005_daily_bin86.fits
Exposure cube: /scratch/kocevski/175420/ltcube_261619201_261878401_4FGL_J1748.6+7005_daily_bin86.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/175420/Model_4FGL_J1748.6+7005_daily_bin86.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) = 7880.57844446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11851E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.465       1.0000         .10000E-03   10000.    
     4 'norm      '    7.4647       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .46467E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .99069       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11289E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .48650E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5309       1.0000         .10000E-03   10000.    
    15 'norm      '    .67025       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24631E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1963       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27117E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4992       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10850E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.944       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.522       1.0000         .10000E-03   10000.    
    28 'norm      '    30.881       1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .50131       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3459       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88695       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7880.514     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     3844 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    40.016       -.67695E-06** at limit **
   2  Prefactor     .10000E-03    91.140        .60650E-06** at limit **
   3  Prefactor     25.455        31.594        .48353E-07    .44406E-04
   4  norm          7.4624        10.934        .71648E-07    .17064E-03
   5  Prefactor     .10000E-03    4.3954       -.28678E-07** at limit **
   6  norm          .46576E-01    .45356        .34536E-06    .35546E-03
   7  Prefactor     .10000E-03    12.322       -.63726E-06** at limit **
   8  Prefactor     .98986        3.5205       -.58805E-06    .97201E-03
   9  Prefactor     .10000E-03    10.518       -.82567E-07** at limit **
  10  Prefactor     .10000E-03    5.2456       -.43671E-06** at limit **
  11  Prefactor     .10001E-03    109.41        .20694E-05** at limit **
  12  Prefactor     4.6747        5.7937       -.50520E-06   -.37268E-03
  13  Prefactor     .10018E-03    335.83        .19531E-04** at limit **
  14  norm          3.5307        2.1817        .90460E-08    .19913E-03
  15  norm          .67014        .51765        .12572E-06    .26370E-02
  16  Prefactor     .10007E-03    29.845       -.13595E-04** at limit **
  17  norm          3.1961        3.7669        .40748E-07    .35246E-03
  18  Prefactor     .10006E-03    17.794       -.13368E-05** at limit **
  19  Prefactor     .10000E-03    50.318        .51692E-06** at limit **
  20  Prefactor     3.4987        5.9032       -.33886E-06    .16103E-03
  21  Prefactor     .10000E-03    6.0964       -.89061E-07** at limit **
  22  Prefactor     .10000E-03    9.4351       -.11612E-06** at limit **
  23  Prefactor     .10002E-03    58.037        .63196E-05** at limit **
  24  Prefactor     .10000E-03    45.829       -.25058E-05** at limit **
  25  norm          .10000E-03    1.8260       -.15018E-06** at limit **
  26  Prefactor     15.936        22.524       -.96343E-07    .62984E-04
  27  Prefactor     17.519        8.3148       -.15317E-07    .43668E-03
  28  norm          30.862        32.365       -.54214E-07    .64861E-06
  29  norm          .10000E-03    2.7643       -.12837E-06** at limit **
  30  norm          .50943        4.2401        .37269E-05    .18585E-03
  31  Normalizat    1.3460        .20374        .13075E-05    .92982E-03
  32  Prefactor     .88693        .12188        .95410E-07    .11825E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.455
  norm       = 7.46238
  Prefactor  = 0.0001
  norm       = 0.0465756
  Prefactor  = 0.000100001
  Prefactor  = 0.989856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 4.6747
  Prefactor  = 0.000100185
  norm       = 3.5307
  norm       = 0.670139
  Prefactor  = 0.000100071
  norm       = 3.19608
  Prefactor  = 0.000100058
  Prefactor  = 0.0001
  Prefactor  = 3.49873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 15.9361
  Prefactor  = 17.5187
  norm       = 30.8616
  norm       = 0.0001
  norm       = 0.50943
  Normalizat = 1.34604
  Prefactor  = 0.886932
 **********
 **   18 **HESSE 
 **********

 FCN=   7880.514     FROM HESSE     STATUS=OK           655 CALLS     4499 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    40.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    91.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.455        31.438        .79382E-04   -1.4698    
   4  norm          7.4624        10.983        .14679E-03   -1.5162    
   5  Prefactor     .10000E-03    4.3961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .46576E-01    1.1900        .11112E-02   -1.5665    
   7  Prefactor     .10000E-03    12.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .98986        3.6033        .28943E-03   -1.5509    
   9  Prefactor     .10000E-03    10.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    112.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6747        5.8124        .18618E-03   -1.5276    
  13  Prefactor     .10018E-03    349.08        .19240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5307        2.1818        .99701E-04   -1.5332    
  15  norm          .67014        .52285        .53909E-04   -1.5544    
  16  Prefactor     .10007E-03    41.187        .46827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1961        3.7511        .17811E-03   -1.5350    
  18  Prefactor     .10006E-03    105.96        .71656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4987        5.8322        .21614E-03   -1.5334    
  21  Prefactor     .10000E-03    6.1043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.4473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    59.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    46.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    10.514        .22915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.936        22.502        .10030E-03   -1.4909    
  27  Prefactor     17.519        8.1575        .95682E-04   -1.4871    
  28  norm          30.862        32.378        .72101E-04   -1.4596    
  29  norm          .10000E-03    2.7903        .14417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .50943        9.1283        .25641E-02   -1.5565    
  31  Normalizat    1.3460        .23527        .29792E-03   -.82202    
  32  Prefactor     .88693        .14300        .21923E-03   -.96599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66496e-09
Minuit parameter uncertainties:
  1  8.84247e-05
  2  0.000278099
  3  31.4587
  4  10.9864
  5  4.62988e-06
  6  0.470353
  7  0.0001742
  8  3.6041
  9  3.4209e-05
  10  7.56913e-05
  11  0.00220888
  12  5.81309
  13  0.0161583
  14  2.18185
  15  0.522852
  16  0.00342318
  17  3.75135
  18  0.00498735
  19  0.000192753
  20  5.83315
  21  8.62891e-06
  22  7.92723e-06
  23  0.00237959
  24  0.000839324
  25  5.33769e-05
  26  22.5143
  27  8.15797
  28  32.3965
  29  1.49643e-05
  30  4.31323
  31  0.235461
  32  0.143058
Done.

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

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  3.531e+00  2.182e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.953e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  8.869e-01  1.431e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.346e+00  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.22
Ra Dec: 267.158 70.097
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 1.48e-05

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) = 7876.90783929
delta logL = 3.60649404149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7876.63643619
delta logL = 3.87789714489

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7876.636     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8864        1.2520        .75762E-02   -.30021E-03
   2  alpha         .81741        .25957        .24361       -.48475E-04
   3  Normalizat    1.3486        .18951        .67225E-01    .10482E-04
   4  Prefactor     .89123        .11679        .44892E-01    .11984E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88642
  alpha      = 0.817411
  Normalizat = 1.34857
  Prefactor  = 0.891226
 **********
 **   18 **HESSE 
 **********

 FCN=   7876.636     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8864        1.8855        .68887E-04   -1.5433    
   2  alpha         .81741        .39162        .10645E-02   -.73831    
   3  Normalizat    1.3486        .21742        .29739E-03   -.82128    
   4  Prefactor     .89123        .13409        .21883E-03   -.96448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24937e-14
Minuit parameter uncertainties:
  1  1.8856
  2  0.394607
  3  0.217563
  4  0.134136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175420': 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) = 7876.63643545
delta logL = 3.87789788284

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  1.886e+00  1.886e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  8.174e-01  3.946e-01  0.000e+00  5.000e+00 ( 1.000e+00)
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  8.912e-01  1.341e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.349e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.94
Ra Dec: 267.158 70.097
Photon Index (Free Index): 0.82 +/- 0.39
Photon Flux (Free Index): 1.37e-08 +/- 8.89e-09
Energy Flux (Free Index): 2.05e-04 +/- 1.65e-04

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/175420/cmap_HighResolution_261619201_261878401_4FGL_J1748.6+7005_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='2.05e-04', photon_flux_error='2.09e-08', dlogl='3.88e+00', energy_flux='2.39e-05', photon_flux2='1.37e-08', job_status='DONE', time_completed='2021-09-18 15:10:50.529580', photon_index_error2='0.39', photon_index2='0.82', ts='12.22', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.65e-04', EG='1.35', time_epoch_completed='1632003050.53', return_code='0', job_id='175420', GAL2='0.89', EG2='1.35', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='8.89e-09', ts2='19.94', photon_index='1.95' WHERE bin_id='86' AND source_name='4FGL J1748.6+7005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 15:10:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 175420: <4FGL_J1748.6+7005_daily_bin86> in cluster <slac> Done

Job <4FGL_J1748.6+7005_daily_bin86> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 14:55:18 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 14:55:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 14:55:20 2021
Terminated at Sat Sep 18 15:10:51 2021
Results reported at Sat Sep 18 15:10:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.6+7005_daily_bin86 267.158 70.0969 261619201 261878401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1748.6+7005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   911.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

