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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin61
RA = 267.011, Dec = 34.0641
tmin = 255139201, tmax = 255398401
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='157176', job_status='RUN', time_executed='2021-09-18 13:45:34.723590', time_epoch_executed='1631997934.72' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157176

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157176/ft1_4FGL_J1748.0+3403_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157176/ft2_4FGL_J1748.0+3403_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157176/ft1_4FGL_J1748.0+3403_daily_bin61.fits outfile=/scratch/kocevski/157176/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin61.fits ra=267.011 dec=34.0641 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.46
user 7.18
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/157176/ft2_4FGL_J1748.0+3403_daily_bin61.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/157176/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin61.fits evtable="EVENTS" outfile="/scratch/kocevski/157176/ft1_filtered_4FGL_J1748.0+3403_daily_bin61.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.53
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/157176/ft1_filtered_4FGL_J1748.0+3403_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/157176/ft2_4FGL_J1748.0+3403_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/157176/ltcube_255139201_255398401_4FGL_J1748.0+3403_daily_bin61.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/157176/ft2_4FGL_J1748.0+3403_daily_bin61.fits
.....................!
real 12.38
user 11.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157176/ft1_filtered_4FGL_J1748.0+3403_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/157176/ft2_4FGL_J1748.0+3403_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/157176/ltcube_255139201_255398401_4FGL_J1748.0+3403_daily_bin61.fits outfile=/scratch/kocevski/157176/expmap_255139201_255398401_4FGL_J1748.0+3403_daily_bin61.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/157176/ltcube_255139201_255398401_4FGL_J1748.0+3403_daily_bin61.fits
.....................!
real 191.01
user 184.86
sys 5.52

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/157176/ft1_filtered_4FGL_J1748.0+3403_daily_bin61.fits scfile=/scratch/kocevski/157176/ft2_4FGL_J1748.0+3403_daily_bin61.fits outfile=/scratch/kocevski/157176/cmap_255139201_255398401_4FGL_J1748.0+3403_daily_bin61.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/157176/ft1_filtered_4FGL_J1748.0+3403_daily_bin61.fits scfile=/scratch/kocevski/157176/ft2_4FGL_J1748.0+3403_daily_bin61.fits outfile=/scratch/kocevski/157176/cmap_HighResolution_255139201_255398401_4FGL_J1748.0+3403_daily_bin61.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/157176/ft1_filtered_4FGL_J1748.0+3403_daily_bin61.fits', '/scratch/kocevski/157176/ft2_4FGL_J1748.0+3403_daily_bin61.fits', expMap='/scratch/kocevski/157176/expmap_255139201_255398401_4FGL_J1748.0+3403_daily_bin61.fits', expCube='/scratch/kocevski/157176/ltcube_255139201_255398401_4FGL_J1748.0+3403_daily_bin61.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/157176/Model_4FGL_J1748.0+3403_daily_bin61.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/157176/ft1_filtered_4FGL_J1748.0+3403_daily_bin61.fits
Spacecraft file(s): /scratch/kocevski/157176/ft2_4FGL_J1748.0+3403_daily_bin61.fits
Exposure map: /scratch/kocevski/157176/expmap_255139201_255398401_4FGL_J1748.0+3403_daily_bin61.fits
Exposure cube: /scratch/kocevski/157176/ltcube_255139201_255398401_4FGL_J1748.0+3403_daily_bin61.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/157176/Model_4FGL_J1748.0+3403_daily_bin61.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) = 8956.79545319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7647       1.0000         .10000E-03   10000.    
     2 'norm      '    .49451E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    22.090       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23376E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    95.293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.407       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.111       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.222       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8078       1.0000         .10000E-03   10000.    
    14 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5761       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.2767       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.962       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    71.778       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .60461       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1171       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=   8956.767     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2739 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7654        1.0352       -.24301E-07   -.66292E-04
   2  norm          .10021E-03    5.4046        .64712E-06** at limit **
   3  Prefactor     .10000E-03    13.289        .83295E-07** at limit **
   4  norm          22.115        7.8897       -.16437E-05    .23803E-03
   5  Prefactor     .10000E-03    428.73       -.34438E-05** at limit **
   6  Prefactor     95.323        114.04        .60037E-06    .16022E-04
   7  Prefactor     12.405        15.144        .14235E-06    .26923E-05
   8  Prefactor     29.133        53.827        .78296E-06    .17904E-04
   9  Prefactor     33.225        14.602       -.50220E-06    .30102E-04
  10  Prefactor     .10000E-03    35.634        .87466E-06** at limit **
  11  Prefactor     .10000E-03    85.128        .15399E-05** at limit **
  12  Prefactor     .10000E-03    3.6954        .17284E-06** at limit **
  13  norm          1.8076        1.4034        .57704E-09    .16972E-04
  14  norm          .10000E-03    28.813        .80765E-07** at limit **
  15  norm          1.5743        8.5334        .18669E-05    .20042E-05
  16  Prefactor     .10000E-03    2.5463       -.42813E-07** at limit **
  17  norm          8.2744        7.1022        .49044E-07    .33166E-05
  18  Prefactor     .10000E-03    1.7055       -.24715E-07** at limit **
  19  Prefactor     .10000E-03    5.9643       -.48717E-08** at limit **
  20  norm          12.957        18.382        .53232E-07    .21888E-05
  21  Prefactor     .10000E-03    3.6985       -.77669E-07** at limit **
  22  norm          71.773        54.953       -.11784E-08   -.65456E-05
  23  Normalizat    .60467        .21981       -.10794E-05   -.12225E-04
  24  Prefactor     1.1171        .10647       -.18392E-07   -.71470E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.76541
  norm       = 0.000100209
  Prefactor  = 0.0001
  norm       = 22.1152
  Prefactor  = 0.000100001
  Prefactor  = 95.3226
  Prefactor  = 12.4055
  Prefactor  = 29.1333
  Prefactor  = 33.2249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.80758
  norm       = 0.0001
  norm       = 1.57434
  Prefactor  = 0.0001
  norm       = 8.27435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.9567
  Prefactor  = 0.0001
  norm       = 71.7735
  Normalizat = 0.604674
  Prefactor  = 1.11713
 **********
 **   18 **HESSE 
 **********

 FCN=   8956.767     FROM HESSE     STATUS=OK           395 CALLS     3134 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7654        1.0340        .31534E-04   -1.5442    
   2  norm          .10021E-03    39.269        .42463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          22.115        7.8738        .85222E-04   -1.4767    
   5  Prefactor     .10000E-03    430.12        .20084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     95.323        113.95        .41173E-04   -1.3752    
   7  Prefactor     12.405        15.114        .11372E-03   -1.5003    
   8  Prefactor     29.133        53.800        .74256E-04   -1.4628    
   9  Prefactor     33.225        14.534        .69521E-04   -1.4555    
  10  Prefactor     .10000E-03    35.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    85.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7319        .17762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8076        1.4058        .95919E-04   -1.5439    
  14  norm          .10000E-03    28.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5743        8.4251        .33845E-03   -1.5457    
  16  Prefactor     .10000E-03    2.5655        .14743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.2744        7.1088        .13935E-03   -1.5133    
  18  Prefactor     .10000E-03    1.7179        .12066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.957        18.396        .11126E-03   -1.4988    
  21  Prefactor     .10000E-03    3.7209        .17769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          71.773        54.990        .23692E-03   -1.4012    
  23  Normalizat    .60467        .24011        .43251E-03   -1.0779    
  24  Prefactor     1.1171        .11837        .16473E-03   -.88921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19479e-09
Minuit parameter uncertainties:
  1  1.03401
  2  0.00573633
  3  2.29171e-05
  4  7.87417
  5  0.000947807
  6  114.209
  7  15.1187
  8  53.8895
  9  14.5355
  10  8.81779e-05
  11  0.000215835
  12  9.77056e-07
  13  1.40585
  14  5.77815e-05
  15  7.28532
  16  4.49917e-06
  17  7.10955
  18  2.07984e-06
  19  3.05129e-06
  20  18.4044
  21  4.57257e-06
  22  55.029
  23  0.240523
  24  0.118397
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.241e+01  1.512e+01  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.117e+00  1.184e-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.047e-01  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 267.011 34.064
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.29e-05

TS (Fixed Index): 1.05
Ra Dec: 267.011 34.064
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/157176/likelihoodResults_255139201_255398401_4FGL_J1748.0+3403_daily_bin61.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): 0
logL (Free Index) = 8956.68032569
delta logL = 0.0863347378126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8956.67543433
delta logL = 0.0912260977475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.314       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9165       1.0000          .0000       10.000    
     3 'Normalizat'    .62066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1116       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8956.675     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      299 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.313        19.240        .99162E-04    .44442E-03
   2  Index         1.9165        .84043        .12224E-01    .16372E-03
   3  Normalizat    .62029        .23031        .42732E-03   -.16633E-03
   4  Prefactor     1.1118        .11658        .16506E-03   -.27823E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3129
  Index      = 1.91655
  Normalizat = 0.620291
  Prefactor  = 1.11181
 **********
 **   18 **HESSE 
 **********

 FCN=   8956.675     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.313        19.128        .19832E-04   -1.4900    
   2  Index         1.9165        .83529        .48896E-03   -.66453    
   3  Normalizat    .62029        .23025        .17093E-04   -1.0713    
   4  Prefactor     1.1118        .11658        .33012E-04   -.89090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78013e-09
Minuit parameter uncertainties:
  1  19.1349
  2  0.841695
  3  0.230612
  4  0.116612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157176': 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) = 8956.67543296
delta logL = 0.0912274659713

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.631e+01  1.913e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  1.917e+00  8.417e-01  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.112e+00  1.166e-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.203e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 267.011 34.064
Photon Index (Free Index): 1.92 +/- 0.84
Photon Flux (Free Index): 2.00e-08 +/- 3.17e-08
Energy Flux (Free Index): 1.72e-05 +/- 2.88e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/157176/cmap_HighResolution_255139201_255398401_4FGL_J1748.0+3403_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-03', comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.72e-05', photon_flux_error='3.59e-08', dlogl='9.12e-02', energy_flux='1.05e-05', photon_flux2='2.00e-08', job_status='DONE', time_completed='2021-09-18 14:01:48.251619', photon_index_error2='0.84', photon_index2='1.92', ts='1.05', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='2.88e-05', EG='0.60', time_epoch_completed='1631998908.25', return_code='0', job_id='157176', GAL2='1.11', EG2='0.62', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.17e-08', ts2='1.23', photon_index='2.34' WHERE bin_id='61' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:01:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 157176: <4FGL_J1748.0+3403_daily_bin61> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin61> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 13:45:23 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 13:45: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 13:45:24 2021
Terminated at Sat Sep 18 14:01:49 2021
Results reported at Sat Sep 18 14:01:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin61 267.011 34.0641 255139201 255398401 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 :                                   968.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

