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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin51
RA = 267.011, Dec = 34.0641
tmin = 252547201, tmax = 252806401
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='157157', job_status='RUN', time_executed='2021-09-18 13:47:50.193962', time_epoch_executed='1631998070.19' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157157

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157157/ft1_4FGL_J1748.0+3403_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157157/ft2_4FGL_J1748.0+3403_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157157/ft1_4FGL_J1748.0+3403_daily_bin51.fits outfile=/scratch/kocevski/157157/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin51.fits ra=267.011 dec=34.0641 rad=12.0 tmin=252547201.0 tmax=252806401.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.39
user 1.22
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/157157/ft2_4FGL_J1748.0+3403_daily_bin51.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/157157/ft2_4FGL_J1748.0+3403_daily_bin51.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/157157/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin51.fits evtable="EVENTS" outfile="/scratch/kocevski/157157/ft1_filtered_4FGL_J1748.0+3403_daily_bin51.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/157157/ft1_filtered_4FGL_J1748.0+3403_daily_bin51.fits" evtable="EVENTS" scfile=/scratch/kocevski/157157/ft2_4FGL_J1748.0+3403_daily_bin51.fits sctable="SC_DATA" outfile=/scratch/kocevski/157157/ltcube_252547201_252806401_4FGL_J1748.0+3403_daily_bin51.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/157157/ft2_4FGL_J1748.0+3403_daily_bin51.fits
.....................!
real 13.11
user 12.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157157/ft1_filtered_4FGL_J1748.0+3403_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/157157/ft2_4FGL_J1748.0+3403_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/157157/ltcube_252547201_252806401_4FGL_J1748.0+3403_daily_bin51.fits outfile=/scratch/kocevski/157157/expmap_252547201_252806401_4FGL_J1748.0+3403_daily_bin51.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/157157/ltcube_252547201_252806401_4FGL_J1748.0+3403_daily_bin51.fits
.....................!
real 191.84
user 186.67
sys 4.63

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

Setting source of interest to:
4FGL J1748.0+3403 @ 267.011 34.0641

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/157157/ft1_filtered_4FGL_J1748.0+3403_daily_bin51.fits scfile=/scratch/kocevski/157157/ft2_4FGL_J1748.0+3403_daily_bin51.fits outfile=/scratch/kocevski/157157/cmap_252547201_252806401_4FGL_J1748.0+3403_daily_bin51.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.011 yref=34.0641 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/157157/ft1_filtered_4FGL_J1748.0+3403_daily_bin51.fits scfile=/scratch/kocevski/157157/ft2_4FGL_J1748.0+3403_daily_bin51.fits outfile=/scratch/kocevski/157157/cmap_HighResolution_252547201_252806401_4FGL_J1748.0+3403_daily_bin51.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.011 yref=34.0641 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/157157/ft1_filtered_4FGL_J1748.0+3403_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/157157/ft2_4FGL_J1748.0+3403_daily_bin51.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/157157/Model_4FGL_J1748.0+3403_daily_bin51.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/157157/ft1_filtered_4FGL_J1748.0+3403_daily_bin51.fits.....................!
real 61.57
user 60.08
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/157157/ft1_filtered_4FGL_J1748.0+3403_daily_bin51.fits', '/scratch/kocevski/157157/ft2_4FGL_J1748.0+3403_daily_bin51.fits', expMap='/scratch/kocevski/157157/expmap_252547201_252806401_4FGL_J1748.0+3403_daily_bin51.fits', expCube='/scratch/kocevski/157157/ltcube_252547201_252806401_4FGL_J1748.0+3403_daily_bin51.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/157157/Model_4FGL_J1748.0+3403_daily_bin51.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1748.0+3403'

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  4.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.337e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
335        Scale:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/157157/ft1_filtered_4FGL_J1748.0+3403_daily_bin51.fits
Spacecraft file(s): /scratch/kocevski/157157/ft2_4FGL_J1748.0+3403_daily_bin51.fits
Exposure map: /scratch/kocevski/157157/expmap_252547201_252806401_4FGL_J1748.0+3403_daily_bin51.fits
Exposure cube: /scratch/kocevski/157157/ltcube_252547201_252806401_4FGL_J1748.0+3403_daily_bin51.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/157157/Model_4FGL_J1748.0+3403_daily_bin51.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) = 7285.80641383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1840       1.0000         .10000E-03   10000.    
     2 'norm      '    35.749       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.676       1.0000         .10000E-03   10000.    
     4 'norm      '    5.1270       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11412E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    105.18       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5057       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5696       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.3354       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23309E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.3563       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6370       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.439       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    56.229       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .67206       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7285.801     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2709 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1840        1.1554       -.29305E-07   -.63268E-03
   2  norm          35.747        13.010        .48353E-06    .68298E-04
   3  Prefactor     35.677        41.900        .56536E-06    .25555E-05
   4  norm          5.1205        6.3806        .34711E-06   -.12242E-03
   5  Prefactor     .10000E-03    189.29       -.20459E-04** at limit **
   6  Prefactor     105.19        105.40        .93299E-05   -.25810E-04
   7  Prefactor     .10000E-03    15.716        .18587E-04** at limit **
   8  Prefactor     3.4743        174.41       -.68018E-04    .58725E-05
   9  Prefactor     7.5678        10.481       -.12736E-06   -.36859E-04
  10  Prefactor     .10000E-03    16.458       -.22994E-04** at limit **
  11  Prefactor     .10000E-03    68.374        .24394E-04** at limit **
  12  Prefactor     .10000E-03    10.400        .44034E-06** at limit **
  13  norm          .10000E-03    .84400       -.24194E-07** at limit **
  14  norm          .10000E-03    51.735       -.15973E-04** at limit **
  15  norm          5.3342        10.380       -.69795E-06   -.11205E-03
  16  Prefactor     .10000E-03    6.4448       -.89224E-07** at limit **
  17  norm          4.3556        6.9881       -.14205E-05   -.76088E-04
  18  Prefactor     7.6384        5.7290       -.14368E-06   -.11793E-03
  19  Prefactor     15.439        25.278        .18664E-07    .40219E-04
  20  norm          .10000E-03    19.862        .59226E-05** at limit **
  21  Prefactor     .10000E-03    2.8996       -.15967E-07** at limit **
  22  norm          56.230        48.906        .52346E-06    .35087E-05
  23  Normalizat    .67196        .22065       -.70899E-05   -.79351E-03
  24  Prefactor     1.0572        .10888        .32477E-05   -.36087E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18396
  norm       = 35.7466
  Prefactor  = 35.6775
  norm       = 5.12052
  Prefactor  = 0.0001
  Prefactor  = 105.187
  Prefactor  = 0.0001
  Prefactor  = 3.47433
  Prefactor  = 7.56778
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.33425
  Prefactor  = 0.0001
  norm       = 4.35558
  Prefactor  = 7.63841
  Prefactor  = 15.4389
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 56.2302
  Normalizat = 0.67196
  Prefactor  = 1.05723
 **********
 **   18 **HESSE 
 **********

 FCN=   7285.801     FROM HESSE     STATUS=OK           393 CALLS     3102 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1840        1.1288        .86806E-04   -1.5490    
   2  norm          35.747        13.005        .67027E-04   -1.4511    
   3  Prefactor     35.677        41.863        .67095E-04   -1.4513    
   4  norm          5.1205        6.3556        .17756E-03   -1.5255    
   5  Prefactor     .10000E-03    190.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     105.19        105.78        .39211E-04   -1.3653    
   7  Prefactor     .10000E-03    15.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4743        171.50        .21593E-03   -1.5335    
   9  Prefactor     7.5678        10.446        .14576E-03   -1.5158    
  10  Prefactor     .10000E-03    16.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    68.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .85187        .76559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    51.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.3342        10.341        .17399E-03   -1.5246    
  16  Prefactor     .10000E-03    6.7350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.3556        6.9725        .19298E-03   -1.5291    
  18  Prefactor     7.6384        5.7148        .14511E-03   -1.5155    
  19  Prefactor     15.439        25.203        .10193E-03   -1.4922    
  20  norm          .10000E-03    19.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9129        .14193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          56.230        48.919        .53496E-04   -1.4207    
  23  Normalizat    .67196        .25388        .19657E-02   -1.0501    
  24  Prefactor     1.0572        .12653        .16404E-03   -.90845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69019e-09
Minuit parameter uncertainties:
  1  1.12878
  2  13.0062
  3  41.8972
  4  6.35644
  5  0.000168835
  6  105.974
  7  9.9514e-05
  8  48.9679
  9  10.4487
  10  9.97557e-05
  11  0.000481607
  12  0.000182084
  13  2.05405e-06
  14  4.47502e-05
  15  10.344
  16  8.2425e-07
  17  6.97381
  18  5.71519
  19  25.2205
  20  2.55267e-05
  21  2.51613e-06
  22  48.9537
  23  0.254327
  24  0.126562
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  9.951e-05  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.337e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
335        Scale:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  6.720e-01  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 267.011 34.064
Photon Flux Upper Limit: 8.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/157157/likelihoodResults_252547201_252806401_4FGL_J1748.0+3403_daily_bin51.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) = 7285.80115871
delta logL = -0.000303498567519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7285.80085525
delta logL = -4.21987351729e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3405       1.0000          .0000       10.000    
     3 'Normalizat'    .67192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0573       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7285.801     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.785        .90712E-02** at limit **
   2  Index         2.3443        6.1713        .50000       -.20106E-05
   3  Normalizat    .67198        .45585E-02    .88753E-01    .20445E-03
   4  Prefactor     1.0572        .23536E-02    .39502E-01    .45136E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.34427
  Normalizat = 0.671975
  Prefactor  = 1.05723
 **********
 **   18 **HESSE 
 **********

 FCN=   7285.801     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      240 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    449.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3443        8.5374        .50000       -.55995    
   3  Normalizat    .67198        .29043E-01    .39313E-03   -1.0501    
   4  Prefactor     1.0572        .15033E-01    .16404E-03   -.90845    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.87861e-07
Minuit parameter uncertainties:
  1  0.00296341
  2  1510.27
  3  0.0290433
  4  0.0150326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157157': 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) = 7285.8008552
delta logL = 5.70162228541e-09

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  2.963e-03  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.344e+00  1.510e+03  0.000e+00  1.000e+01 (-1.000e+00)
335        Scale:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  1.057e+00  1.503e-02  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  6.720e-01  2.904e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 267.011 34.064

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/157157/cmap_HighResolution_252547201_252806401_4FGL_J1748.0+3403_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.45e-08', time_completed='2021-09-18 14:01:29.531714', job_id='157157', GAL2='1.06', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1631998889.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.70e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='51' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:01:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 157157: <4FGL_J1748.0+3403_daily_bin51> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin51> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 13:45:21 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 13:45:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 13:45:23 2021
Terminated at Sat Sep 18 14:01:30 2021
Results reported at Sat Sep 18 14:01:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin51 267.011 34.0641 252547201 252806401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1748.0+3403 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   818.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

