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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin952
RA = 267.011, Dec = 34.0641
tmin = 486086401, tmax = 486345601
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='168851', job_status='RUN', time_executed='2021-09-18 14:30:47.754663', time_epoch_executed='1632000647.75' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='952'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168851/ft1_4FGL_J1748.0+3403_daily_bin952.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168851/ft2_4FGL_J1748.0+3403_daily_bin952.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168851/ft1_4FGL_J1748.0+3403_daily_bin952.fits outfile=/scratch/kocevski/168851/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin952.fits ra=267.011 dec=34.0641 rad=12.0 tmin=486086401.0 tmax=486345601.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.77
user 3.55
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168851/ft1_filtered_4FGL_J1748.0+3403_daily_bin952.fits" evtable="EVENTS" scfile=/scratch/kocevski/168851/ft2_4FGL_J1748.0+3403_daily_bin952.fits sctable="SC_DATA" outfile=/scratch/kocevski/168851/ltcube_486086401_486345601_4FGL_J1748.0+3403_daily_bin952.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/168851/ft2_4FGL_J1748.0+3403_daily_bin952.fits
.....................!
real 11.90
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168851/ft1_filtered_4FGL_J1748.0+3403_daily_bin952.fits evtable="EVENTS" scfile=/scratch/kocevski/168851/ft2_4FGL_J1748.0+3403_daily_bin952.fits sctable="SC_DATA" expcube=/scratch/kocevski/168851/ltcube_486086401_486345601_4FGL_J1748.0+3403_daily_bin952.fits outfile=/scratch/kocevski/168851/expmap_486086401_486345601_4FGL_J1748.0+3403_daily_bin952.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/168851/ltcube_486086401_486345601_4FGL_J1748.0+3403_daily_bin952.fits
.....................!
real 191.80
user 187.09
sys 4.40

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/168851/ft1_filtered_4FGL_J1748.0+3403_daily_bin952.fits scfile=/scratch/kocevski/168851/ft2_4FGL_J1748.0+3403_daily_bin952.fits outfile=/scratch/kocevski/168851/cmap_486086401_486345601_4FGL_J1748.0+3403_daily_bin952.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.54
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.7859       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.346       1.0000         .10000E-03   10000.    
     4 'norm      '    10.025       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13887E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.761       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.588       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8065       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.732       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1129       1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.223       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3007       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8123       1.0000         .10000E-03   10000.    
    14 'norm      '    .11985E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.107       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6893       1.0000         .10000E-03   10000.    
    17 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0439       1.0000         .10000E-03   10000.    
    22 'norm      '    .10598E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4302       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70949       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=   8543.408     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2743 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .47974        .37743E-07** at limit **
   2  norm          5.7849        7.8214        .30117E-06    .32621E-05
   3  Prefactor     32.353        39.387        .49692E-06   -.33810E-05
   4  norm          10.029        6.1177       -.10331E-06    .18559E-04
   5  Prefactor     .10000E-03    52.651       -.14092E-05** at limit **
   6  Prefactor     33.451        91.873        .33979E-04   -.50423E-04
   7  Prefactor     19.602        15.050       -.13705E-05   -.13979E-04
   8  Prefactor     2.7984        482.49       -.59745E-05    .18697E-04
   9  Prefactor     10.739        9.6156        .63903E-06   -.92640E-05
  10  Prefactor     8.0869        255.09       -.39037E-04   -.30346E-04
  11  Prefactor     82.127        208.07        .19544E-04    .11346E-03
  12  Prefactor     4.3073        8.5618        .11766E-05    .66966E-04
  13  norm          1.8125        1.6448        .86977E-07    .33177E-04
  14  norm          .10000E-03    52.053        .20143E-05** at limit **
  15  norm          13.106        8.6425       -.20532E-06    .10321E-04
  16  Prefactor     1.6873        4.8933        .86257E-05   -.17338E-03
  17  norm          .10000E-03    2.2300        .19230E-07** at limit **
  18  Prefactor     5.5553        4.0586        .26099E-07    .33209E-04
  19  Prefactor     .10000E-03    5.1906        .11025E-06** at limit **
  20  norm          .10000E-03    10.492        .43104E-08** at limit **
  21  Prefactor     6.0514        8.2150       -.73184E-07    .11629E-04
  22  norm          .10000E-03    26.057        .73053E-07** at limit **
  23  Normalizat    1.4300        .20296        .32110E-06    .10426E-03
  24  Prefactor     .70962        .96541E-01   -.11663E-05    .16959E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.78491
  Prefactor  = 32.3534
  norm       = 10.0294
  Prefactor  = 0.0001
  Prefactor  = 33.4506
  Prefactor  = 19.602
  Prefactor  = 2.7984
  Prefactor  = 10.7391
  Prefactor  = 8.08689
  Prefactor  = 82.1271
  Prefactor  = 4.30729
  norm       = 1.81252
  norm       = 0.0001
  norm       = 13.1063
  Prefactor  = 1.68729
  norm       = 0.0001
  Prefactor  = 5.55534
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.0514
  norm       = 0.0001
  Normalizat = 1.42996
  Prefactor  = 0.709616
 **********
 **   18 **HESSE 
 **********

 FCN=   8543.408     FROM HESSE     STATUS=OK           409 CALLS     3152 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1420        .12318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.7849        7.8032        .16697E-03   -1.5227    
   3  Prefactor     32.353        39.390        .70454E-04   -1.4570    
   4  norm          10.029        6.1220        .12656E-03   -1.5074    
   5  Prefactor     .10000E-03    52.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.451        91.551        .34483E-03   -1.4551    
   7  Prefactor     19.602        15.040        .90497E-04   -1.4822    
   8  Prefactor     2.7984        448.95        .24283E-03   -1.5373    
   9  Prefactor     10.739        9.6177        .12230E-03   -1.5052    
  10  Prefactor     8.0869        217.00        .14076E-03   -1.5139    
  11  Prefactor     82.127        190.91        .22148E-03   -1.3893    
  12  Prefactor     4.3073        8.5158        .19426E-03   -1.5293    
  13  norm          1.8125        1.6296        .10933E-03   -1.5439    
  14  norm          .10000E-03    52.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.106        8.6477        .11064E-03   -1.4984    
  16  Prefactor     1.6873        4.8748        .16195E-02   -1.5448    
  17  norm          .10000E-03    2.2319        .13480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5553        4.0546        .15372E-03   -1.5237    
  19  Prefactor     .10000E-03    5.2009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0514        8.2178        .16332E-03   -1.5216    
  22  norm          .10000E-03    26.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4300        .23675        .29308E-03   -.79766    
  24  Prefactor     .70962        .11266        .19559E-03   -1.0315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08593e-09
Minuit parameter uncertainties:
  1  9.42847e-06
  2  7.80456
  3  39.4216
  4  6.12236
  5  2.64321e-06
  6  91.9391
  7  15.0433
  8  71.4402
  9  9.61911
  10  84.1211
  11  192.362
  12  8.5182
  13  1.62962
  14  4.5947e-05
  15  8.64853
  16  4.87592
  17  1.21468e-06
  18  4.05481
  19  4.34564e-06
  20  1.137e-06
  21  8.21938
  22  7.05563e-06
  23  0.236934
  24  0.1127
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.960e+01  1.504e+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:  7.096e-01  1.127e-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:  1.430e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.04
Ra Dec: 267.011 34.064
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 4.65e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/168851/likelihoodResults_486086401_486345601_4FGL_J1748.0+3403_daily_bin952.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) = 8543.32143762
delta logL = 0.0866116918623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8543.315187
delta logL = 0.0928623087402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.677       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0868       1.0000          .0000       10.000    
     3 'Normalizat'    1.4419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70600       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=   8543.315     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      281 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.678        19.488        .82321E-04    .11601E-04
   2  Index         2.0865        .56726        .94748E-02    .26599E-03
   3  Normalizat    1.4419        .22416        .29206E-03   -.17439E-04
   4  Prefactor     .70601        .10929        .19603E-03   -.59733E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.6783
  Index      = 2.08652
  Normalizat = 1.44195
  Prefactor  = 0.706005
 **********
 **   18 **HESSE 
 **********

 FCN=   8543.315     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.678        19.204        .32929E-05   -1.4734    
   2  Index         2.0865        .55876        .18950E-02   -.62204    
   3  Normalizat    1.4419        .22427        .11682E-04   -.79423    
   4  Prefactor     .70601        .10936        .78413E-05   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92177e-12
Minuit parameter uncertainties:
  1  19.2093
  2  0.560536
  3  0.224427
  4  0.109394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168851': 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) = 8543.31518686
delta logL = 0.0928624525895

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  2.368e+01  1.921e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.087e+00  5.605e-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:  7.060e-01  1.094e-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:  1.442e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 267.011 34.064
Photon Index (Free Index): 2.09 +/- 0.56
Photon Flux (Free Index): 3.73e-08 +/- 3.64e-08
Energy Flux (Free Index): 2.11e-05 +/- 2.09e-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/168851/cmap_HighResolution_486086401_486345601_4FGL_J1748.0+3403_daily_bin952.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.60e-03', comment='SUCCESS', photon_flux='4.65e-08', energy_flux2='2.11e-05', photon_flux_error='3.57e-08', dlogl='9.29e-02', energy_flux='1.67e-05', photon_flux2='3.73e-08', job_status='DONE', time_completed='2021-09-18 14:46:27.230869', photon_index_error2='0.56', photon_index2='2.09', ts='3.04', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='2.09e-05', EG='1.43', time_epoch_completed='1632001587.23', return_code='0', job_id='168851', GAL2='0.71', EG2='1.44', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='3.64e-08', ts2='3.22', photon_index='2.34' WHERE bin_id='952' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:46:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 168851: <4FGL_J1748.0+3403_daily_bin952> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin952> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 14:30:31 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 14:30:32 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:30:32 2021
Terminated at Sat Sep 18 14:46:28 2021
Results reported at Sat Sep 18 14:46:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin952 267.011 34.0641 486086401 486345601 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 :                                   934.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

