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


Performing analysis on: 4FGL_J1748.6+7005_daily_bin1205
RA = 267.158, Dec = 70.0969
tmin = 551664001, tmax = 551923201
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='183936', job_status='RUN', time_executed='2021-09-18 15:27:26.593950', time_epoch_executed='1632004046.59' WHERE source_name='4FGL J1748.6+7005' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/183936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/183936/ft1_4FGL_J1748.6+7005_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/183936/ft2_4FGL_J1748.6+7005_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/183936/ft1_4FGL_J1748.6+7005_daily_bin1205.fits outfile=/scratch/kocevski/183936/ft1_filteredMKT_4FGL_J1748.6+7005_daily_bin1205.fits ra=267.158 dec=70.0969 rad=12.0 tmin=551664001.0 tmax=551923201.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.79
user 3.57
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/183936/ft1_filtered_4FGL_J1748.6+7005_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/183936/ft2_4FGL_J1748.6+7005_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/183936/ltcube_551664001_551923201_4FGL_J1748.6+7005_daily_bin1205.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/183936/ft2_4FGL_J1748.6+7005_daily_bin1205.fits
.....................!
real 11.74
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/183936/ft1_filtered_4FGL_J1748.6+7005_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/183936/ft2_4FGL_J1748.6+7005_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/183936/ltcube_551664001_551923201_4FGL_J1748.6+7005_daily_bin1205.fits outfile=/scratch/kocevski/183936/expmap_551664001_551923201_4FGL_J1748.6+7005_daily_bin1205.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/183936/ltcube_551664001_551923201_4FGL_J1748.6+7005_daily_bin1205.fits
.....................!
real 190.74
user 185.93
sys 4.48

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/183936/ft1_filtered_4FGL_J1748.6+7005_daily_bin1205.fits scfile=/scratch/kocevski/183936/ft2_4FGL_J1748.6+7005_daily_bin1205.fits outfile=/scratch/kocevski/183936/cmap_551664001_551923201_4FGL_J1748.6+7005_daily_bin1205.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/183936/ft1_filtered_4FGL_J1748.6+7005_daily_bin1205.fits scfile=/scratch/kocevski/183936/ft2_4FGL_J1748.6+7005_daily_bin1205.fits outfile=/scratch/kocevski/183936/cmap_HighResolution_551664001_551923201_4FGL_J1748.6+7005_daily_bin1205.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/183936/ft1_filtered_4FGL_J1748.6+7005_daily_bin1205.fits', '/scratch/kocevski/183936/ft2_4FGL_J1748.6+7005_daily_bin1205.fits', expMap='/scratch/kocevski/183936/expmap_551664001_551923201_4FGL_J1748.6+7005_daily_bin1205.fits', expCube='/scratch/kocevski/183936/ltcube_551664001_551923201_4FGL_J1748.6+7005_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/183936/Model_4FGL_J1748.6+7005_daily_bin1205.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/183936/ft1_filtered_4FGL_J1748.6+7005_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/183936/ft2_4FGL_J1748.6+7005_daily_bin1205.fits
Exposure map: /scratch/kocevski/183936/expmap_551664001_551923201_4FGL_J1748.6+7005_daily_bin1205.fits
Exposure cube: /scratch/kocevski/183936/ltcube_551664001_551923201_4FGL_J1748.6+7005_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/183936/Model_4FGL_J1748.6+7005_daily_bin1205.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) = 19.2944809344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11784E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .67426E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3401.6       1.0000         .10000E-03   10000.    
     4 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .36472E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .15727E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11659E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22224E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18759E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34846E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .92285E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11520E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11244E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36690E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12307E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .29319E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .10616E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10531E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .70206E-09   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=   19.10267     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     4838 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1070.3       -.25010E-05** at limit **
   2  Prefactor     .10016E-03    9029.1       -.18086E-05** at limit **
   3  Prefactor     3406.8        3121.9       -.19695E-04   -.28377E-04
   4  norm          .10000E-03    500.32        .13768E-05** at limit **
   5  Prefactor     .10000E-03    1382.4        .13120E-06** at limit **
   6  norm          .10000E-03    292.34        .71935E-04** at limit **
   7  Prefactor     .10000E-03    611.30        .77594E-05** at limit **
   8  Prefactor     .10000E-03    115.63        .16161E-05** at limit **
   9  Prefactor     .10002E-03    2241.6        .29439E-04** at limit **
  10  Prefactor     .10000E-03    279.43        .80744E-06** at limit **
  11  Prefactor     .10000E-03    871.96        .13246E-05** at limit **
  12  Prefactor     .10000E-03    554.45        .70084E-07** at limit **
  13  Prefactor     .10001E-03    6200.7       -.13286E-05** at limit **
  14  norm          .10000E-03    103.71        .17054E-05** at limit **
  15  norm          .10000E-03    20.397        .24787E-06** at limit **
  16  Prefactor     .10000E-03    334.90        .79840E-06** at limit **
  17  norm          .10000E-03    136.13        .81928E-06** at limit **
  18  Prefactor     .10001E-03    901.43       -.19646E-05** at limit **
  19  Prefactor     .10022E-03    7322.8       -.90892E-05** at limit **
  20  Prefactor     .10000E-03    149.72        .26901E-06** at limit **
  21  Prefactor     .10000E-03    847.39        .64078E-07** at limit **
  22  Prefactor     .10000E-03    398.54        .85608E-06** at limit **
  23  Prefactor     .10001E-03    6368.4       -.19926E-05** at limit **
  24  Prefactor     .10004E-03    6527.6       -.37558E-05** at limit **
  25  norm          .10000E-03    77.784        .12019E-06** at limit **
  26  Prefactor     .10000E-03    351.06        .67395E-06** at limit **
  27  Prefactor     .10000E-03    98.387        .18597E-06** at limit **
  28  norm          .10008E-03    1880.0       -.57708E-05** at limit **
  29  norm          .10000E-03    157.04       -.39256E-06** at limit **
  30  norm          .10000E-03    90.082       -.19936E-06** at limit **
  31  Normalizat    .10000E-01    .92048        .97470E-05** at limit **
  32  Prefactor      .0000        .46434        .20209E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100024
  Prefactor  = 0.000100165
  Prefactor  = 3406.83
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.00010022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100012
  Prefactor  = 0.000100037
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100084
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   19.10267     FROM HESSE     STATUS=OK           625 CALLS     5463 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    1070.8        .14415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10016E-03    9027.8        .18760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3406.8        3156.7        .42215E-04   -.32429    
   4  norm          .10000E-03    500.20        .97538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1382.3        .16472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    292.47        .74201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    610.24        .10802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    115.59        .46583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    2230.5        .20132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    279.41        .72618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    871.73        .12961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    554.42        .10277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    6200.7        .20814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    103.68        .44108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    20.396        .19534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    334.91        .79577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    136.10        .50562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    901.73        .13188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10022E-03    7324.9        .18158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    149.71        .53040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    847.48        .12771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    398.54        .86903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    6368.5        .20620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10004E-03    6528.0        .19853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    77.782        .38183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    351.09        .81497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    98.386        .42958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10008E-03    1882.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    157.05        .54328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    90.085        .41100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .91987        .13334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor      .0000        .46424        .93905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09901e-10
Minuit parameter uncertainties:
  1  0.0103722
  2  0.0905068
  3  3454.61
  4  0.00047571
  5  0.00182241
  6  0.00148303
  7  0.00126181
  8  0.000233768
  9  0.0138217
  10  0.000582347
  11  0.000331219
  12  0.000210211
  13  0.00865215
  14  0.000231614
  15  4.32813e-07
  16  0.00112311
  17  0.000185108
  18  0.00681478
  19  0.0704493
  20  0.000454198
  21  0.000249719
  22  0.00123134
  23  0.0120621
  24  0.0224403
  25  1.04768e-05
  26  0.00120381
  27  0.000119929
  28  0.0259435
  29  0.000551338
  30  0.000209999
  31  1.92559e-07
  32  3.41748e-09
Done.

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

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  1.000e-04  2.316e-04  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:  0.000e+00  3.417e-09  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.000e-02  1.926e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 267.158 70.097
Photon Flux Upper Limit: 5.60e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/183936/likelihoodResults_551664001_551923201_4FGL_J1748.6+7005_daily_bin1205.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) = 19.1027135856
delta logL = -4.65933046847e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19.1026698415
delta logL = -2.84924286476e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27337E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8173       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .11851E-06   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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   19.10267     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      269 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9703.2        .28245E-02** at limit **
   2  alpha         1.4991        2.9808        .16631       -.11856E-08
   3  Normalizat    .10000E-01    .37545        .13332E-02** at limit **
   4  Prefactor     .41461E-11    .18766        .93899E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.49912
  Normalizat = 0.01
  Prefactor  = 4.14613e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   19.10267     FROM HESSE     STATUS=OK            27 CALLS      296 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    125.71        .47861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4991        3.2473        .66525E-01   -.41190    
   3  Normalizat    .10000E-01    .91987        .26663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41461E-11    .46424        .18780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73655e-12
Minuit parameter uncertainties:
  1  4.42451e-05
  2  1154.33
  3  1.39217e-06
  4  2.79662e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/183936': 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) = 19.1026669197
delta logL = 7.25360926879e-08

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  1.000e-04  4.425e-05  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.499e+00  1.154e+03  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:  4.146e-12  2.797e-06  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.000e-02  1.392e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 267.158 70.097

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/183936/cmap_HighResolution_551664001_551923201_4FGL_J1748.6+7005_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-03', job_status='DONE', photon_flux_upper_limit='5.60e-06', time_completed='2021-09-18 15:33:02.443488', job_id='183936', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632004382.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='7.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1205' AND source_name='4FGL J1748.6+7005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 15:33:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 183936: <4FGL_J1748.6+7005_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1748.6+7005_daily_bin1205> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 18 15:25:23 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 15:25:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 15:25:24 2021
Terminated at Sat Sep 18 15:33:03 2021
Results reported at Sat Sep 18 15:33:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.6+7005_daily_bin1205 267.158 70.0969 551664001 551923201 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 :                                   333.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             392.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   458 sec.
    Turnaround time :                            460 sec.

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

